ee632fb9 | 17-Apr-2024 |
Brooks Davis <brooks@FreeBSD.org> |
lib{c,sys}: normalize export of openat, setcontext, and swapcontext
List them in the symbol map rather than using the __sym_default to expose them. This will allow later improvements in the stub im
lib{c,sys}: normalize export of openat, setcontext, and swapcontext
List them in the symbol map rather than using the __sym_default to expose them. This will allow later improvements in the stub implementations in libc.so.
Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D44113
show more ...
|
83392afe | 07-Mar-2024 |
Brooks Davis <brooks@FreeBSD.org> |
libsys: don't expose __init_elf_aux_vector
__init_elf_aux_vector is now complied statically so don't try to export it from the dynamic library.
Fixes: 8271d9b99a3b libsys: remove usage of pthread_o
libsys: don't expose __init_elf_aux_vector
__init_elf_aux_vector is now complied statically so don't try to export it from the dynamic library.
Fixes: 8271d9b99a3b libsys: remove usage of pthread_once and _once_stub
Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D44237
show more ...
|
cc4ffc97 | 07-Mar-2024 |
Brooks Davis <brooks@FreeBSD.org> |
libsys: don't try to expose yield
The undocumented yield system call has never been implemented via libc or libsys (except accidentally for <15 minutes in 1998 between commits abd529cebab9 and 0db2f
libsys: don't try to expose yield
The undocumented yield system call has never been implemented via libc or libsys (except accidentally for <15 minutes in 1998 between commits abd529cebab9 and 0db2fac06ab7). Avoid trying to export it now to avoid failures when linking with --no-undefined-version.
Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D44236
show more ...
|
39a15d74 | 07-Mar-2024 |
Brooks Davis <brooks@FreeBSD.org> |
syscall(2): make i386 less of an outlier
Unlike other architectures, i386 only defined syscall() and not _syscall() or __sys_syscall(). The syscall() function then invoked the desired system call d
syscall(2): make i386 less of an outlier
Unlike other architectures, i386 only defined syscall() and not _syscall() or __sys_syscall(). The syscall() function then invoked the desired system call directly rather than invoking syscall(2). Keep the latter as it's marginally more efficent, but also create the conventional _syscall() and __sys_syscall() stubs.
This avoids the need to special case syscall(2) in the symbol list generation in libsys.
Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D44235
show more ...
|
7b3836c2 | 07-Mar-2024 |
Brooks Davis <brooks@FreeBSD.org> |
libsys/aarch: Remove pointless MD syscall(2)
This file is functionally identical to the stub generated by Makefile.sys once the MD version is removed.
Reviewed by: kib Differential Revision: https:
libsys/aarch: Remove pointless MD syscall(2)
This file is functionally identical to the stub generated by Makefile.sys once the MD version is removed.
Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D44234
show more ...
|
0ee0ae23 | 07-Mar-2024 |
Brooks Davis <brooks@FreeBSD.org> |
libsys/arm: Remove pointless MD syscall(2)
This file is functionally identical to the stub generated by Makefile.sys once the MD version is removed.
Reviewed by: kib Differential Revision: https://
libsys/arm: Remove pointless MD syscall(2)
This file is functionally identical to the stub generated by Makefile.sys once the MD version is removed.
Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D44233
show more ...
|
e6ffc766 | 07-Mar-2024 |
Brooks Davis <brooks@FreeBSD.org> |
libsys/riscv: Remove pointless MD syscall(2)
This file is functionally identical to the stub generated by Makefile.sys once the MD version is removed.
Reviewed by: kib Differential Revision: https:
libsys/riscv: Remove pointless MD syscall(2)
This file is functionally identical to the stub generated by Makefile.sys once the MD version is removed.
Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D44232
show more ...
|
304cdac7 | 29-Feb-2024 |
Brooks Davis <brooks@FreeBSD.org> |
lib{c,sys}: expose _getlogin consistently
Historically we exposed _getlogin as a private symbol on a per-arch basis (except on aarch64 and riscv) for no obvious reason. We now need to expose it for
lib{c,sys}: expose _getlogin consistently
Historically we exposed _getlogin as a private symbol on a per-arch basis (except on aarch64 and riscv) for no obvious reason. We now need to expose it for libc's use so remove the special case from makesyscalls.lua and expose it in the generated syscalls.map.
Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D44116
show more ...
|
6d3f4dcd | 29-Feb-2024 |
Brooks Davis <brooks@FreeBSD.org> |
libsys: make PSEUDO take a bare syscall name
Rather than having PSEUDO be a list of object files when all consumers want syscall names or source files, make it a list of bare syscall names like INTE
libsys: make PSEUDO take a bare syscall name
Rather than having PSEUDO be a list of object files when all consumers want syscall names or source files, make it a list of bare syscall names like INTERPOSED (which is built on PSEUDO).
Improve document of variables developers can set.
Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D44108
show more ...
|
7d233b22 | 23-Feb-2024 |
Konstantin Belousov <kib@FreeBSD.org> |
libsys: fix sleep(3)/usleep(3) cancel behavior
Move functions back to libc/gen sources; they are only versioned from libc and not libsys. Access libsys interposing slots using __libsys_interposing_s
libsys: fix sleep(3)/usleep(3) cancel behavior
Move functions back to libc/gen sources; they are only versioned from libc and not libsys. Access libsys interposing slots using __libsys_interposing_slot() instead of direct __libsys_interposing array dereference, which cannot work from libc.
Reported by: glebius Reviewed by: brooks Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D44042
show more ...
|