This declares an API for libsys which currently consists of
sys_<foo>() declarations for system call stubs and function pointer
typedefs of the form sys_<foo>_t. The vast majority of the
implementation resides in a generated _libsys.h which ensures that all
system call stub declarations match syscalls.master.
Details
Details
- Reviewers
kib - Commits
- rG1fd880742ace: libsys: add a libsys.h
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 56640 Build 53528: arc lint + arc unit
Event Timeline
lib/libsys/_libsys.h | ||
---|---|---|
67 | Does __BEGIN_DECLS provide enough force to make compiler attach the right call ABI to the typedef'ed function types? |
lib/libsys/_libsys.h | ||
---|---|---|
67 | My thought was that it prevents them from being name mangled in C++, but even there I'm not sure it matters on any architecture we care about? Maybe there would otherwise be an edge case where type promotion differences were an issue. It might be we don't need this around the typedefs. |
lib/libsys/_libsys.h | ||
---|---|---|
67 | We didn't need that before, when typedefs were used only internally by libc. Now since they are exposed, it is more subtle. |