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)
Tue, Nov 26, 9:16 PM
Unknown Object (File)
Sun, Nov 24, 9:17 PM
Unknown Object (File)
Tue, Nov 19, 7:15 AM
Unknown Object (File)
Sat, Nov 16, 10:56 AM
Unknown Object (File)
Fri, Nov 15, 11:47 PM
Unknown Object (File)
Tue, Nov 12, 6:07 PM
Unknown Object (File)
Tue, Nov 12, 5:24 AM
Unknown Object (File)
Mon, Nov 11, 12:35 AM
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.