History log of /freebsd/lib/libsys/Makefile.sys (Results 1 – 25 of 35)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# cdb24fbb 19-Feb-2025 Brooks Davis <brooks@FreeBSD.org>

libsys: Don't create or expose __realpathat

Previously, __realpathat was in libc and libsys (as is currently
standard), but not exported from libc which meant the stub in libc was
not filtered and t

libsys: Don't create or expose __realpathat

Previously, __realpathat was in libc and libsys (as is currently
standard), but not exported from libc which meant the stub in libc was
not filtered and thus libc's copy of the syscall was used. This broke
an upcoming change to CheriBSD limiting syscalls to libsys.

The realpath(3) implementation now uses __sys___realpathat so there are no
consumers of __realpathat. Switch it to PSEUDO (only _foo and __sys_foo
symbols) and remove __realpathat from Symbol.map.

This is a corrected version of 58d43a3cd72a4a85ab8489313672c7eab367495e.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D49049

show more ...


# 58d43a3c 19-Feb-2025 Brooks Davis <brooks@FreeBSD.org>

Revert "libsys: Don't create or expose __realpathat"

This change broke RTLD. Revert while I test a fix.

This reverts commit fdccf0336197afe59be6f8859177fe2ff8f87fa6.


# fdccf033 19-Feb-2025 Brooks Davis <brooks@FreeBSD.org>

libsys: Don't create or expose __realpathat

Previously, __realpathat was in libc and libsys (as is currently
standard), but not exported from libc which meant the stub in libc was
not filtered and t

libsys: Don't create or expose __realpathat

Previously, __realpathat was in libc and libsys (as is currently
standard), but not exported from libc which meant the stub in libc was
not filtered and thus libc's copy of the syscall was used. This broke
an upcoming change to CheriBSD limiting syscalls to libsys.

The realpath(3) implementation now uses __sys___realpathat so there are no
consumers of __realpathat. Switch it to PSEUDO (only _foo and __sys_foo
symbols) and remove __realpathat from Symbol.map.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D49049

show more ...


Revision tags: release/14.1.0-p7, release/14.2.0-p1, release/13.4.0-p3
# 9b158538 30-Dec-2024 John Baldwin <jhb@FreeBSD.org>

kqueue.2: Editorial pass

- Use consistent language to describe user values unchanged by the
kernel.

- Replace passive language with active in a few places.

- Add a history note for kqueuex() and

kqueue.2: Editorial pass

- Use consistent language to describe user values unchanged by the
kernel.

- Replace passive language with active in a few places.

- Add a history note for kqueuex() and kqueue1().

- Add an MLINK and synopsis for kqueue1().

- Various wording and markup tweaks.

Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D48203

show more ...


# b6f4027a 12-Dec-2024 Olivier Certner <olce@FreeBSD.org>

setcred(2): Add manual page

Reviewed by: Alexander Ziaee <concussious@runbox.com>
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D48063


# b165e9e3 29-Nov-2024 Edward Tomasz Napierala <trasz@FreeBSD.org>

Add fchroot(2)

This is similar to chroot(2), but takes a file descriptor instead
of path. Same syscall exists in NetBSD and Solaris. It is part of a larger
patch to make absolute pathnames usable

Add fchroot(2)

This is similar to chroot(2), but takes a file descriptor instead
of path. Same syscall exists in NetBSD and Solaris. It is part of a larger
patch to make absolute pathnames usable in Capsicum mode, but should
be useful in other contexts too.

Reviewed By: brooks
Sponsored by: Innovate UK
Differential Revision: https://reviews.freebsd.org/D41564

show more ...


Revision tags: release/14.2.0
# 36887e04 13-Nov-2024 Ed Maste <emaste@FreeBSD.org>

sched_getcpu: Add man page

Reviewed by: kib
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D47556


# 59a8b439 30-Oct-2024 Brooks Davis <brooks@FreeBSD.org>

libsys: remove yield special case

Reviewed by: emaste
Pull Request: https://github.com/freebsd/freebsd-src/pull/1503


# 8b41e693 07-Oct-2024 Ed Maste <emaste@FreeBSD.org>

libsys: connect membarrier.2

Sponsored by: The FreeBSD Foundation


# 3670421e 27-Sep-2024 Konstantin Belousov <kib@FreeBSD.org>

getrlimitusage.2: add the man page

Reviewed by: olce
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D46823


# 74f6ec6f 04-Oct-2024 Brooks Davis <brooks@FreeBSD.org>

lib{c,sys}: .note.GNU-stack in syscall stubs

Explicitly disable executable stacks in the syscall stubs on all
architectures. Previously, aarch64 and riscv64 didn't include the
.note.GNU-stack note

lib{c,sys}: .note.GNU-stack in syscall stubs

Explicitly disable executable stacks in the syscall stubs on all
architectures. Previously, aarch64 and riscv64 didn't include the
.note.GNU-stack note due it being disabled by default in those ABIs.

This appears to have been harmless in practice, but better to be clear
in case a different compiler/linker has different defaults. This also
reduces special cases in the Makefile.

Reported by: jrtc27
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D44883

show more ...


Revision tags: release/13.4.0
# 8da89a17 03-Aug-2024 John Baldwin <jhb@FreeBSD.org>

libsys: Add MLINKs for recvmmsg.2 and sendmmsg.2

These were accidentally lost when moving recvmmsg and sendmmsg back
from libc to libsys.

Reported by: Mark Millard <marklmi@yahoo.com>
Reviewed by:

libsys: Add MLINKs for recvmmsg.2 and sendmmsg.2

These were accidentally lost when moving recvmmsg and sendmmsg back
from libc to libsys.

Reported by: Mark Millard <marklmi@yahoo.com>
Reviewed by: brooks, imp
Fixes: 29d079c96491 libsys: move __libsys_interposer consumers
Differential Revision: https://reviews.freebsd.org/D46200

show more ...


Revision tags: release/14.1.0
# 74484086 22-Apr-2024 Brooks Davis <brooks@FreeBSD.org>

Make __libsys_interposing_slot libsys only

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D44881


# d7847a8d 13-Mar-2024 Brooks Davis <brooks@FreeBSD.org>

lib{c,sys}: return wrapped syscall APIs to libc

These provide standard APIs, but are implemented using another system
call (e.g., pipe implemented in terms of pipe2) or are interposed by the
threadi

lib{c,sys}: return wrapped syscall APIs to libc

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

show more ...


# f7dbbbd1 13-Mar-2024 Brooks Davis <brooks@FreeBSD.org>

libsys: don't expose sigwait wrapper

Long ago (e129c18a83ef) __sys_sigwait was wrapped to prevent sigwait()
from returning with EINTR. Through a series of changes this wrapper
become __libc_sigwait

libsys: don't expose sigwait wrapper

Long ago (e129c18a83ef) __sys_sigwait was wrapped to prevent sigwait()
from returning with EINTR. Through a series of changes this wrapper
become __libc_sigwait which was internal to libc and used solely in the
interposing table. To support a move of sigwait back to libc, move this
wrapper into libsys and rename it with an __libsys_ prefix.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D44238

show more ...


# 269593dc 07-Mar-2024 Brooks Davis <brooks@FreeBSD.org>

libsys/aarch64: end syscall stubs with newlines

Technically speaking, POSIX text files must end with a newline.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D44231


Revision tags: release/13.3.0
# 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 ...


# f102db50 29-Feb-2024 Brooks Davis <brooks@FreeBSD.org>

libsys: consolidate PSEUDO definitions

Consolidate in preparation for further cleanup.

Also relocate the sole NOASM entry.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D44107


# e52a9177 29-Feb-2024 Brooks Davis <brooks@FreeBSD.org>

libsys: reduce makefile declaration duplication

Every PSEUDO entry (_foo.o) has a corresponding NOASM entry (foo.o) to
suppress its addition to ASM. Check PSEUDO instead when adding entries
to ASM.

libsys: reduce makefile declaration duplication

Every PSEUDO entry (_foo.o) has a corresponding NOASM entry (foo.o) to
suppress its addition to ASM. Check PSEUDO instead when adding entries
to ASM. No functional change.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D44106

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 ...


# 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 ...


# 99ea6757 19-Feb-2024 Brooks Davis <brooks@FreeBSD.org>

lib{c,sys}: move auxargs more firmly into libsys

Continue to filter the public interface (elf_aux_info()), but entierly
relocate the private interfaces (_elf_aux_info(),
__init_elf_aux_vector(), and

lib{c,sys}: move auxargs more firmly into libsys

Continue to filter the public interface (elf_aux_info()), but entierly
relocate the private interfaces (_elf_aux_info(),
__init_elf_aux_vector(), and __elf_aux_vector) to libsys.

This ensures that rtld updates the correct (only) copy of
__elf_aux_vector. After 968a18975adc9c2a619bb52aa2f009de99fc9e24
updates were confused and __getosreldate was failing, causing
the system to fall back to compat compat12 syscalls in some cases.

Return to explicitly linking libc to libsys and link libthr with libc
and libsys (in that order).

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D43910

show more ...


# a52cb4c4 03-Feb-2024 Konstantin Belousov <kib@FreeBSD.org>

Document aio_read2/aio_write2

Reviewed by: jhb
Discussed with: asomers
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D43448


# e9d96105 16-Nov-2023 Brooks Davis <brooks@FreeBSD.org>

libsys: plumb in to build

libsys provides the FreeBSD kernel interface (auxargs, system calls,
vdso). It can be linked directly for programs using a non-standard
libc and will later be linked as a

libsys: plumb in to build

libsys provides the FreeBSD kernel interface (auxargs, system calls,
vdso). It can be linked directly for programs using a non-standard
libc and will later be linked as a filter library to libc providing
the actual system call implementation.

Reviewed by: kib, emaste, imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/908

show more ...


# 86deddfa 21-Nov-2023 Brooks Davis <brooks@FreeBSD.org>

libsys: generate private symbol map

We now export all _ and __sys_ prefixed syscalls stubs from libc and
libsys so that libsys can replace them.

Reviewed by: kib, emaste, imp
Pull Request: https://

libsys: generate private symbol map

We now export all _ and __sys_ prefixed syscalls stubs from libc and
libsys so that libsys can replace them.

Reviewed by: kib, emaste, imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/908

show more ...


12