aboutsummaryrefslogtreecommitdiff
path: root/lib/libsys/i386
Commit message (Collapse)AuthorAgeFilesLines
* libsys, libc: provide rfork_thread() and pdrfork_thread() on all archesKonstantin Belousov2026-01-281-5/+0
| | | | | | | Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D54898
* libsys: add pdrfork_thread() on x86Konstantin Belousov2026-01-263-1/+106
| | | | | | | Reviewed by: asomers Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D54879
* libsys/i386/Symbol.sys.map: sort symbol namesBrooks Davis2024-12-111-2/+2
| | | | | | No functional change. Sponsored by: DARPA, AFRL
* man filesystems: fix xrefs after move to section 4Alexander Ziaee2024-05-161-1/+1
| | | | | Reviewed by: des, imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1077
* lib{c,sys}: return wrapped syscall APIs to libcBrooks Davis2024-03-131-3/+0
| | | | | | | | | | | | | These provide standard APIs, but are implemented using another system call (e.g., pipe implemented in terms of pipe2) or are interposed by the threading library to support cancelation. After discussion with kib (see D44111), I've concluded that it is better to keep most public interfaces in libc with as little as possible in libsys. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D44241
* syscall(2): make i386 less of an outlierBrooks Davis2024-03-071-0/+2
| | | | | | | | | | | | | | 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
* lib{c,sys}: expose _getlogin consistentlyBrooks Davis2024-02-291-1/+0
| | | | | | | | | | 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
* libsys: add guards to MD manpagesBrooks Davis2024-02-091-0/+2
| | | | | | This avoids duplicate installations which fail packaging tests. Reported by: emaste
* SYS.h: make _SYSCALL_BODY overridableBrooks Davis2024-02-051-0/+2
| | | | | Reviewed by: kib, emaste, imp Pull Request: https://github.com/freebsd/freebsd-src/pull/908
* libthr: move _umtx_op_err() to libsysBrooks Davis2024-02-052-0/+40
| | | | | | | | | | | Declare in sys/umtx.h and implement in libsys. Explicitly link libthr with libsys. When building libthr static include _umtx_op_err so we don't break static linkage with -lpthread. Reviewed by: kib, emaste, imp Pull Request: https://github.com/freebsd/freebsd-src/pull/908
* libc: move MD sys related symbols to libsysBrooks Davis2024-02-051-0/+29
| | | | | | | This is a mix genuine MD interfaces and compat symbols like _getlogin. Reviewed by: kib, emaste, imp Pull Request: https://github.com/freebsd/freebsd-src/pull/908
* libc: move rfork_thread(3) to libsysBrooks Davis2024-02-052-1/+113
| | | | | | | | rfork_thread(3) is assembly that makes syscalls directly and uses cerror so it belongs in libsys. Reviewed by: kib, emaste, imp Pull Request: https://github.com/freebsd/freebsd-src/pull/908
* libc: Move per-arch sys/Makefile.inc to libsysBrooks Davis2024-02-051-0/+12
| | | | | | | | | | | | | | | libc/<arch>/sys/Makefile.inc -> libsys/<arch>/Makefile.sys. Require that libsys/<arch>/Makefile.sys exist. At least for current archtiectures, it's not possible for an architecture to not have and MD syscall bits. powerpcspe/Makefile.sys's structure means it had to be modified when moved so rename detection won't work, but it has trivial contents so the history is unimportant. Reviewed by: kib, emaste, imp Pull Request: https://github.com/freebsd/freebsd-src/pull/908
* libc: remove remaining x86 sys bits to libsysBrooks Davis2024-02-0515-0/+966
| | | | | Reviewed by: kib, emaste, imp Pull Request: https://github.com/freebsd/freebsd-src/pull/908
* libsys: relocate implementations and manpagesBrooks Davis2024-02-055-0/+259
Remove core system call implementations and documentation to lib/libsys and lib/libsys/<arch> from lib/libc/sys and lib/libc/<arch>/<sys>. Update paths to allow libc to find them in their new home. Reviewed by: kib, emaste, imp Pull Request: https://github.com/freebsd/freebsd-src/pull/908