| #
e7e964cb
|
| 08-Aug-2025 |
Brooks Davis <brooks@FreeBSD.org> |
syscalls: normalize _exit(2) declerations
exit(3) is implemented by the runtime and performs a number of shutdown actions before ultimately calling _exit(2) to terminate the program. We historicall
syscalls: normalize _exit(2) declerations
exit(3) is implemented by the runtime and performs a number of shutdown actions before ultimately calling _exit(2) to terminate the program. We historically named the syscall table entry `exit` rather than `_exit`, but this requires special handling in libc/libsys to cause the `_exit` symbol to exist while implementing `exit` in libc.
Declare the syscall as `_exit` and flow that through the system.
Because syscall(SYS_exit, code) is fairly widely used, allow a configured extra line in syscall.h to define SYS_exit to SYS__exit.
I've found no external uses of __sys_exit() so I've not bothered to create a compatability version of this private symbol.
Reviewed by: imp, kib, emaste Differential Revision: https://reviews.freebsd.org/D51672
show more ...
|
| #
9355ad0b
|
| 18-Feb-2025 |
Brooks Davis <brooks@FreeBSD.org> |
makesyscalls: emit cpp in syscalls.map
If there are per-platform differences in which syscalls are supported, we should only try to export implemented ones in libc. Fortunately, syscall maps are ru
makesyscalls: emit cpp in syscalls.map
If there are per-platform differences in which syscalls are supported, we should only try to export implemented ones in libc. Fortunately, syscall maps are run though cpp. This is arguably incomplete as syscall.mk isn't (and can't practically be) supported.
Reviewed by: kevans Sponsored by: DARPA, AFRL Pull Request: https://github.com/freebsd/freebsd-src/pull/1575
show more ...
|
| #
bbc0f33b
|
| 30-Oct-2024 |
Brooks Davis <brooks@FreeBSD.org> |
sysent: add a NOLIB modifer to prevent stub generation
The yield system call has long existed, but never had a stub. Replace the hardcoded checks for it in libsys_h.lua and syscalls_map.lua and sto
sysent: add a NOLIB modifer to prevent stub generation
The yield system call has long existed, but never had a stub. Replace the hardcoded checks for it in libsys_h.lua and syscalls_map.lua and stop inserting it into MIASM (requiring libsys/Makefile.sys to disable the stub).
(This seems like overkill, but I've got another case in CheriBSD so this reduces my diff appreciably.)
Reviewed by: emaste Pull Request: https://github.com/freebsd/freebsd-src/pull/1503
show more ...
|
| #
ec86d763
|
| 22-Oct-2024 |
Brooks Davis <brooks@FreeBSD.org> |
sys/tools/syscalls: desupport capabilities.conf
We haven't used this since commit be67ea40c5a0 in 2021 so stop carrying it forward.
Also remove support for setting the list in syscalls.conf via the
sys/tools/syscalls: desupport capabilities.conf
We haven't used this since commit be67ea40c5a0 in 2021 so stop carrying it forward.
Also remove support for setting the list in syscalls.conf via the capenabled variable. This was last used by cloudabi (removed in 2021 by commit cf0ee8738e31).
show more ...
|
| #
9ded074e
|
| 21-Oct-2024 |
agge3 <sterspark@gmail.com> |
Refactor makesyscalls.lua into a library
* main.lua replicates the functionality of makesyscalls.lua * Individual files are generated by their associated module * Modules can be called as standalo
Refactor makesyscalls.lua into a library
* main.lua replicates the functionality of makesyscalls.lua * Individual files are generated by their associated module * Modules can be called as standalone scripts to generate a specific file * Data and procedures are performed by objects instead of procedual code * Bitmasks are replaced by declarative types * Temporary files are no longer produced, writing is stored in memory * Comments provide explanation to functions and semantics
Google Summer of Code 2024 Final Work Product
Co-authored-by: Warner Losh <imp@freebsd.org> Co-authored-by: Kyle Evans <kevans@freebsd.org> Co-authored-by: Brooks Davis <brooks@freebsd.org> Sponsored by: Google (GSoC 24) Pull Request: https://github.com/freebsd/freebsd-src/pull/1362 Signed-off-by: agge3 <sterspark@gmail.com>
show more ...
|
| #
e7e964cb
|
| 08-Aug-2025 |
Brooks Davis <brooks@FreeBSD.org> |
syscalls: normalize _exit(2) declerations
exit(3) is implemented by the runtime and performs a number of shutdown actions before ultimately calling _exit(2) to terminate the program. We historicall
syscalls: normalize _exit(2) declerations
exit(3) is implemented by the runtime and performs a number of shutdown actions before ultimately calling _exit(2) to terminate the program. We historically named the syscall table entry `exit` rather than `_exit`, but this requires special handling in libc/libsys to cause the `_exit` symbol to exist while implementing `exit` in libc.
Declare the syscall as `_exit` and flow that through the system.
Because syscall(SYS_exit, code) is fairly widely used, allow a configured extra line in syscall.h to define SYS_exit to SYS__exit.
I've found no external uses of __sys_exit() so I've not bothered to create a compatability version of this private symbol.
Reviewed by: imp, kib, emaste Differential Revision: https://reviews.freebsd.org/D51672
show more ...
|
| #
9355ad0b
|
| 18-Feb-2025 |
Brooks Davis <brooks@FreeBSD.org> |
makesyscalls: emit cpp in syscalls.map
If there are per-platform differences in which syscalls are supported, we should only try to export implemented ones in libc. Fortunately, syscall maps are ru
makesyscalls: emit cpp in syscalls.map
If there are per-platform differences in which syscalls are supported, we should only try to export implemented ones in libc. Fortunately, syscall maps are run though cpp. This is arguably incomplete as syscall.mk isn't (and can't practically be) supported.
Reviewed by: kevans Sponsored by: DARPA, AFRL Pull Request: https://github.com/freebsd/freebsd-src/pull/1575
show more ...
|
| #
bbc0f33b
|
| 30-Oct-2024 |
Brooks Davis <brooks@FreeBSD.org> |
sysent: add a NOLIB modifer to prevent stub generation
The yield system call has long existed, but never had a stub. Replace the hardcoded checks for it in libsys_h.lua and syscalls_map.lua and sto
sysent: add a NOLIB modifer to prevent stub generation
The yield system call has long existed, but never had a stub. Replace the hardcoded checks for it in libsys_h.lua and syscalls_map.lua and stop inserting it into MIASM (requiring libsys/Makefile.sys to disable the stub).
(This seems like overkill, but I've got another case in CheriBSD so this reduces my diff appreciably.)
Reviewed by: emaste Pull Request: https://github.com/freebsd/freebsd-src/pull/1503
show more ...
|
| #
ec86d763
|
| 22-Oct-2024 |
Brooks Davis <brooks@FreeBSD.org> |
sys/tools/syscalls: desupport capabilities.conf
We haven't used this since commit be67ea40c5a0 in 2021 so stop carrying it forward.
Also remove support for setting the list in syscalls.conf via the
sys/tools/syscalls: desupport capabilities.conf
We haven't used this since commit be67ea40c5a0 in 2021 so stop carrying it forward.
Also remove support for setting the list in syscalls.conf via the capenabled variable. This was last used by cloudabi (removed in 2021 by commit cf0ee8738e31).
show more ...
|
| #
9ded074e
|
| 21-Oct-2024 |
agge3 <sterspark@gmail.com> |
Refactor makesyscalls.lua into a library
* main.lua replicates the functionality of makesyscalls.lua * Individual files are generated by their associated module * Modules can be called as standalo
Refactor makesyscalls.lua into a library
* main.lua replicates the functionality of makesyscalls.lua * Individual files are generated by their associated module * Modules can be called as standalone scripts to generate a specific file * Data and procedures are performed by objects instead of procedual code * Bitmasks are replaced by declarative types * Temporary files are no longer produced, writing is stored in memory * Comments provide explanation to functions and semantics
Google Summer of Code 2024 Final Work Product
Co-authored-by: Warner Losh <imp@freebsd.org> Co-authored-by: Kyle Evans <kevans@freebsd.org> Co-authored-by: Brooks Davis <brooks@freebsd.org> Sponsored by: Google (GSoC 24) Pull Request: https://github.com/freebsd/freebsd-src/pull/1362 Signed-off-by: agge3 <sterspark@gmail.com>
show more ...
|
| #
e7e964cb
|
| 08-Aug-2025 |
Brooks Davis <brooks@FreeBSD.org> |
syscalls: normalize _exit(2) declerations
exit(3) is implemented by the runtime and performs a number of shutdown actions before ultimately calling _exit(2) to terminate the program. We historicall
syscalls: normalize _exit(2) declerations
exit(3) is implemented by the runtime and performs a number of shutdown actions before ultimately calling _exit(2) to terminate the program. We historically named the syscall table entry `exit` rather than `_exit`, but this requires special handling in libc/libsys to cause the `_exit` symbol to exist while implementing `exit` in libc.
Declare the syscall as `_exit` and flow that through the system.
Because syscall(SYS_exit, code) is fairly widely used, allow a configured extra line in syscall.h to define SYS_exit to SYS__exit.
I've found no external uses of __sys_exit() so I've not bothered to create a compatability version of this private symbol.
Reviewed by: imp, kib, emaste Differential Revision: https://reviews.freebsd.org/D51672
show more ...
|
| #
9355ad0b
|
| 18-Feb-2025 |
Brooks Davis <brooks@FreeBSD.org> |
makesyscalls: emit cpp in syscalls.map
If there are per-platform differences in which syscalls are supported, we should only try to export implemented ones in libc. Fortunately, syscall maps are ru
makesyscalls: emit cpp in syscalls.map
If there are per-platform differences in which syscalls are supported, we should only try to export implemented ones in libc. Fortunately, syscall maps are run though cpp. This is arguably incomplete as syscall.mk isn't (and can't practically be) supported.
Reviewed by: kevans Sponsored by: DARPA, AFRL Pull Request: https://github.com/freebsd/freebsd-src/pull/1575
show more ...
|
| #
bbc0f33b
|
| 30-Oct-2024 |
Brooks Davis <brooks@FreeBSD.org> |
sysent: add a NOLIB modifer to prevent stub generation
The yield system call has long existed, but never had a stub. Replace the hardcoded checks for it in libsys_h.lua and syscalls_map.lua and sto
sysent: add a NOLIB modifer to prevent stub generation
The yield system call has long existed, but never had a stub. Replace the hardcoded checks for it in libsys_h.lua and syscalls_map.lua and stop inserting it into MIASM (requiring libsys/Makefile.sys to disable the stub).
(This seems like overkill, but I've got another case in CheriBSD so this reduces my diff appreciably.)
Reviewed by: emaste Pull Request: https://github.com/freebsd/freebsd-src/pull/1503
show more ...
|
| #
ec86d763
|
| 22-Oct-2024 |
Brooks Davis <brooks@FreeBSD.org> |
sys/tools/syscalls: desupport capabilities.conf
We haven't used this since commit be67ea40c5a0 in 2021 so stop carrying it forward.
Also remove support for setting the list in syscalls.conf via the
sys/tools/syscalls: desupport capabilities.conf
We haven't used this since commit be67ea40c5a0 in 2021 so stop carrying it forward.
Also remove support for setting the list in syscalls.conf via the capenabled variable. This was last used by cloudabi (removed in 2021 by commit cf0ee8738e31).
show more ...
|
| #
9ded074e
|
| 21-Oct-2024 |
agge3 <sterspark@gmail.com> |
Refactor makesyscalls.lua into a library
* main.lua replicates the functionality of makesyscalls.lua * Individual files are generated by their associated module * Modules can be called as standalo
Refactor makesyscalls.lua into a library
* main.lua replicates the functionality of makesyscalls.lua * Individual files are generated by their associated module * Modules can be called as standalone scripts to generate a specific file * Data and procedures are performed by objects instead of procedual code * Bitmasks are replaced by declarative types * Temporary files are no longer produced, writing is stored in memory * Comments provide explanation to functions and semantics
Google Summer of Code 2024 Final Work Product
Co-authored-by: Warner Losh <imp@freebsd.org> Co-authored-by: Kyle Evans <kevans@freebsd.org> Co-authored-by: Brooks Davis <brooks@freebsd.org> Sponsored by: Google (GSoC 24) Pull Request: https://github.com/freebsd/freebsd-src/pull/1362 Signed-off-by: agge3 <sterspark@gmail.com>
show more ...
|