nmeum on Nostr: POSIX.1-2008 moved support for unnamed semaphores from the semaphore option to the ...
Published at
2025-01-06 21:16:27Event JSON
{
"id": "090454356d5afe89dc179ec49539eb09fa3b6a155998410eae49d34f6d55cc85",
"pubkey": "bbcc0157351db1c396e6b4bb5561f38a278e9d29f5b9265f1007a512df4e209d",
"created_at": 1736198187,
"kind": 1,
"tags": [
[
"e",
"3662cb68dd96abdc979f00396f001cc67fe82bc325501c1f13e103b56c4367ff",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://chaos.social/users/nmeum/statuses/113783484442303087",
"activitypub"
]
],
"content": "POSIX.1-2008 moved support for unnamed semaphores from the semaphore option to the base specification. macOS has never followed up on that. To make things more confusing, it does provide the function prototypes (though with a deprecated declaration annotation) and just has sem_init(3) return -1 unconditionally: https://github.com/apple-oss-distributions/xnu/blob/a5e7219620fa69943647714baaf632196f37249e/libsyscall/wrappers/posix_sem_obsolete.c\n\nFun!",
"sig": "a115b2109c6b19f2f1b3c9c99e29167b9b3b596589166428b3b8a8ae9adaa835a79e9f8c5e00e09227651c98f7283a1d100b6ad1cb29b43256f742dc9323dcab"
}