Page 1 of 1

posix vs sys v shm/sem

PostPosted: Thu Aug 08, 2019 7:42 am
by morpheus
EEK. Somehow in Chapter 3 (File descriptors in Darwin), I referred to System V IPC (shmat/shmdt/smget) and Semaphores (semget/semop/semctl) as POSIX, by quoting the wrong syscall numbers! This is, of course, a mistake of mine - The Sys V IPC objects are not descriptors, and the POSIX objects use different syscalls (shm_open/unlink, sem_*...).
I saved myself 0.01BTC by catching it in this update, which also ties better now to Volume II, where I ended up expanding on their in-kernel representation.

Re: posix vs sys v shm/sem

PostPosted: Sun Aug 11, 2019 11:07 pm
by gsn
How dare you.

If we're going there,
Code: Select all
and friends are from the POSIX realtime extension, not core POSIX.

Re: posix vs sys v shm/sem

PostPosted: Wed Aug 14, 2019 2:00 am
by morpheus

(good point, though, and since I haven't printed the edition yet, I'll add realtime ext)