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
Fun!
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.