Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add IPC information for Darwin #22

Open
jamesodhunt opened this issue Jun 20, 2021 · 1 comment
Open

Add IPC information for Darwin #22

jamesodhunt opened this issue Jun 20, 2021 · 1 comment

Comments

@jamesodhunt
Copy link
Owner

Find a way to support the following on Darwin:

  • --message-queues
  • --semaphores
  • --shared-memory

The fundamental problem is that Darwin's shmctl(2) doesn't support the IPC_INFO command. However, presumably there is some equivalent using the Mach API.

@jamesodhunt
Copy link
Owner Author

From https://opensource.apple.com/source/xnu/xnu-792.24.17/bsd/sys/ipcs.h.auto.html:

/*
 * NOTE: Internal ipcs.h header; all interfaces are private; if you want this
 * same information from your own program, popen(3) the ipcs(2) command and
 * parse its output, or your program may not work on future OS releases.
 */

Ugh 😭

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant