musl/src/ipc
Rich Felker 17aef0b41e prevent shmget from allocating objects that overflow ptrdiff_t
rather than returning an error, we have to increase the size argument
so high that the kernel will have no choice but to fail. this is
because POSIX only permits the EINVAL error for size errors when a new
shared memory segment would be created; if it already exists, the size
argument must be ignored. unfortunately Linux is non-conforming in
this regard, but I want to keep the code correct in userspace anyway
so that if/when Linux is fixed, the behavior applications see will be
conforming.
2013-06-29 00:02:38 -04:00
..
ftok.c initial check-in, version 0.5.0 2011-02-12 00:22:29 -05:00
ipc.h fix remaining IPC_64 issue (shmctl) 2012-09-22 16:08:58 -04:00
msgctl.c fix IPC_64 in msgctl too 2012-09-22 08:04:17 -04:00
msgget.c consistency: change all remaining syscalls to use SYS_ rather than __NR_ prefix 2011-04-06 20:32:53 -04:00
msgrcv.c overhaul pthread cancellation 2011-04-17 11:43:03 -04:00
msgsnd.c overhaul pthread cancellation 2011-04-17 11:43:03 -04:00
semctl.c fix IPC_64 in msgctl too 2012-09-22 08:04:17 -04:00
semget.c work around wrong kernel type for sem_nsems member of struct semid_ds 2013-06-28 23:57:58 -04:00
semop.c consistency: change all remaining syscalls to use SYS_ rather than __NR_ prefix 2011-04-06 20:32:53 -04:00
shmat.c consistency: change all remaining syscalls to use SYS_ rather than __NR_ prefix 2011-04-06 20:32:53 -04:00
shmctl.c fix remaining IPC_64 issue (shmctl) 2012-09-22 16:08:58 -04:00
shmdt.c fix shmdt syscall calling convention on old archs 2012-10-28 15:04:26 -04:00
shmget.c prevent shmget from allocating objects that overflow ptrdiff_t 2013-06-29 00:02:38 -04:00