Page MenuHomeFreeBSD

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

Authored by brooks on Mar 5 2024, 9:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 5, 3:23 PM
Unknown Object (File)
Sun, Nov 24, 8:19 AM
Unknown Object (File)
Tue, Nov 19, 6:06 PM
Unknown Object (File)
Thu, Nov 14, 6:53 AM
Unknown Object (File)
Sat, Nov 9, 6:12 PM
Unknown Object (File)
Sat, Nov 9, 6:12 PM
Unknown Object (File)
Sat, Nov 9, 6:12 PM
Unknown Object (File)
Sat, Nov 9, 6:12 PM
Subscribers

Details

Summary

These provide standard APIs, but are interposed by the threading library
to support cancelation points or are implemented using another
underlying system call (e.g., pipe implemented in terms of pipe2).

After discussion with kib (see D44111), I've concluded that it is
better to keep the public interfaces in libc with at little
as possible in libsys.

These provide standard APIs, but are not implemented directly on a
syscall of the same name. They are often implemnted on top of newer
syscalls (e.g., pipe implemented in terms of pipe2).

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

brooks requested review of this revision.Mar 5 2024, 9:51 PM

I very much like that and thankful for you doing the move.

This revision is now accepted and ready to land.Mar 6 2024, 8:55 AM

Restore accidentaly removed symbols

  • brk and friends on arm
  • _vfork on amd64
This revision now requires review to proceed.Mar 7 2024, 12:25 AM
This revision was not accepted when it landed; it landed in state Needs Review.Mar 13 2024, 6:37 PM
This revision was automatically updated to reflect the committed changes.