1
0
Fork 0
mirror of git://git.musl-libc.org/musl synced 2025-03-06 20:48:29 +01:00
musl/src
Rich Felker f70375df85 fix sem_close unmapping of still-referenced semaphore
sem_open is required to return the same sem_t pointer for all
references to the same named semaphore when it's opened more than once
in the same process. thus we keep a table of all the mapped semaphores
and their reference counts. the code path for sem_close checked the
reference count, but then proceeded to unmap the semaphore regardless
of whether the count had reached zero.

add an immediate unlock-and-return for the nonzero refcnt case so the
property of performing the munmap syscall after releasing the lock can
be preserved.
2020-10-28 16:13:45 -04:00
..
aio move aio implementation details to a proper internal header 2020-10-14 20:27:12 -04:00
complex fix incorrect results for catanf and catanl with some inputs 2020-02-05 09:40:11 -05:00
conf fix build regression in sysconf for archs with variable page size 2018-09-14 16:25:56 -04:00
crypt update crypt_blowfish to support $2b$ prefix 2020-10-18 12:16:55 -04:00
ctype fix wcwidth wrongly returning 0 for most of planes 4 and up 2020-01-01 20:02:51 -05:00
dirent fail fdopendir for O_PATH file descriptors 2019-02-07 12:51:02 -05:00
env remove redundant pthread struct members repeated for layout purposes 2020-08-27 18:36:45 -04:00
errno improve strerror speed 2020-03-14 21:23:37 -04:00
exit remove incorrect fflush from assert failure handler 2020-10-14 20:27:12 -04:00
fcntl remove spurious inclusion of libc.h for LFS64 ABI aliases 2018-09-12 14:34:38 -04:00
fenv fix sh fesetround failure to clear old mode 2020-04-18 03:23:40 -04:00
include move aio implementation details to a proper internal header 2020-10-14 20:27:12 -04:00
internal move aio implementation details to a proper internal header 2020-10-14 20:27:12 -04:00
ipc fix corrupt sysvipc timestamps on 32-bit archs with old kernels 2020-03-14 21:23:37 -04:00
ldso fix time64 link regression of dlsym stub for static-linked programs 2019-11-03 01:19:01 -05:00
legacy remove spurious inclusion of libc.h for LFS64 ABI aliases 2018-09-12 14:34:38 -04:00
linux fix setgroups behavior in multithreaded process 2020-10-27 00:59:54 -04:00
locale fix MUSL_LOCPATH search 2020-08-22 13:51:32 -04:00
malloc import mallocng 2020-06-30 00:59:48 -04:00
math math: new software sqrtl 2020-08-05 23:06:01 -04:00
misc avoid __synccall for setrlimit on kernels with prlimit syscall 2020-10-27 00:45:59 -04:00
mman revert unwanted and inadvertent change that slipped into mmap.c 2019-12-20 21:27:39 -05:00
mq mq_timedsend, mq_timedreceive: add time64, decouple 32-bit time_t 2019-07-28 17:09:30 -04:00
multibyte fix aliasing-based undefined behavior in mbsrtowcs 2019-10-13 17:21:36 -04:00
network fix missing newline in herror output 2020-09-03 17:30:22 -04:00
passwd fix getgrouplist when nscd reports an empty list 2020-10-14 20:27:12 -04:00
prng split internal lock API out of libc.h, creating lock.h 2018-09-12 18:40:35 -04:00
process fix reintroduction of errno clobbering by atfork handlers 2020-10-26 18:12:25 -04:00
regex fix failure of glob to match broken symlinks under some conditions 2019-08-07 02:38:45 -04:00
sched sched_rr_get_interval: don't assume time_t is 32-bit on 32-bit archs 2019-07-29 12:31:20 -04:00
search new tsearch implementation 2018-09-20 17:57:47 -04:00
select fix regression in select with no timeout 2019-08-07 02:57:53 -04:00
setjmp aarch64: fix setjmp return value 2020-08-12 21:53:25 -04:00
signal lift sigaction abort locking to fix posix_spawn child deadlock 2020-10-24 15:59:40 -04:00
stat fix remaining direct use of stat syscalls outside fstatat.c 2020-02-12 17:34:17 -05:00
stdio move aio implementation details to a proper internal header 2020-10-14 20:27:12 -04:00
stdlib fix undefined behavior in wcsto[ld] family functions 2020-04-24 10:39:17 -04:00
string add optimized aarch64 memcpy and memset 2020-06-26 17:49:51 -04:00
temp remove spurious inclusion of libc.h for LFS64 ABI aliases 2018-09-12 14:34:38 -04:00
termios add tcgetwinsize and tcsetwinsize functions, move struct winsize 2020-08-24 21:31:18 -04:00
thread fix sem_close unmapping of still-referenced semaphore 2020-10-28 16:13:45 -04:00
time drop use of pthread_once in timer_create 2020-10-14 20:27:12 -04:00
unistd refactor setxid return path to use __syscall_ret 2020-10-27 01:15:06 -04:00