#
8271d9b9 |
| 20-Feb-2024 |
Konstantin Belousov <kib@FreeBSD.org> |
libsys: remove usage of pthread_once and _once_stub
that existed in auxv.c, use simple bool gate instead. This leaves a small window if two threads try to call _elf_aux_info(3) simultaneously. The s
libsys: remove usage of pthread_once and _once_stub
that existed in auxv.c, use simple bool gate instead. This leaves a small window if two threads try to call _elf_aux_info(3) simultaneously. The situation is safe because auxv parsing is really idempotent. The parsed data is the same, and we store atomic types (int/long/ptr) so double-init does not matter.
Reviewed by: brooks, imp Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D43985
show more ...
|
#
4c33415e |
| 15-Nov-2023 |
Brooks Davis <brooks@FreeBSD.org> |
libc: elf auxiliary vector handling to libsys
This is part of the interface to the kernel and some syscall wrappers depend on it so move it there.
Reviewed by: kib, emaste, imp Pull Request: https:
libc: elf auxiliary vector handling to libsys
This is part of the interface to the kernel and some syscall wrappers depend on it so move it there.
Reviewed by: kib, emaste, imp Pull Request: https://github.com/freebsd/freebsd-src/pull/908
show more ...
|