| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| | |
linux add FICLONE* ioctl.
|
| | |
|
| | |
|
|\ \
| | |
| | |
| | | |
netbsd mcontext x86_64 constants.
|
| | | |
|
|/ / |
|
| | |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Add new Linux system call constants
This adds the latest Linux system call constants based on the Kernel's system call table:
https://github.com/torvalds/linux/blob/master/arch/x86/entry/syscalls/syscall_64.tbl
|
| |/
| |
| |
| |
| |
| |
| | |
This adds the latest Linux system call constants based on the Kernel's
system call table:
https://github.com/torvalds/linux/blob/master/arch/x86/entry/syscalls/syscall_64.tbl
|
|\ \
| | |
| | |
| | | |
Solaris TCP_KEEPINTVL and TCP_KEEPCNT have wrong values
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | | |
fcntl F_DUPFD_CLOEXEC has different values on Solaris and Illumos
|
| |/ / |
|
| |/
|/| |
|
|\ \
| | |
| | |
| | |
| | |
| | | |
Add makedev for the BSDs
Also, make Linux's makedev function safe and const.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Also, make makedev function safe and const on all platforms.
On Android, change the arguments from signed to unsigned integers to
match the other platforms. The C makedev is a macro, so the
signededness is undefined.
Add an integration test for makedev, too, since it's a macro that we
must reimplement.
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | | |
apple: Add the attrlist set of functions
Add the attrlist set of functions for apple platforms.
|
| | | | |
|
|\ \ \ \
| |/ / /
|/| | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Added missing constants from elf.h
I have added a bunch of constants from elf.h, useful for parsing ELF files.
Closes #1876
|
| | |/
| |/| |
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | | |
apple add pthread_jit_write_callback_t api related.
|
| |/ / |
|
|\ \ \
| |/ /
|/| |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
linux: add rtnetlink mcast group definitions
These come in two flavors:
- RTNLGRP_* are bit indexes (arguments to setsockopt(2)) as used
in the kernel with test_bit() but also userspace (see libnl
examples).
- RTMGRP_* are bitmasks not used in the kernel; their use
seems to be deprecated, at least according to comments in
libnl, but documentation still references them.
The rationale for adding these definitions is that they're needed
to subscribe to kernel events via Netlink multicast groups.
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
These come in two flavors:
- RTNLGRP_* are bit indexes (arguments to setsockopt(2)) as used
in the kernel with test_bit() but also userspace (see libnl
examples).
- RTMGRP_* are bitmasks not used in the kernel; their use
seems to be deprecated, at least according to comments in
libnl, but documentation still references them.
The rationale for adding these definitions is that they're needed
to subscribe to kernel events via Netlink multicast groups.
|
| | |
|
|\ \
| |/
|/|
| |
| |
| | |
add missing SOF_TIMESTAMPING flags
These flags are useful for send (tx) timestamping in practice, and used by `@tweedegolf's` work on PTP and NTP
|
| | |
|
| | |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
linux: add missing netfilter definitions
Bring ``libc`` up to parity with Linux v5.18 headers wrt. to Netfilter.
``libc-test`` fails due to unrelated issues on my Fedora box but the
changes should be inocuous enough IMO.
Note there’s a warning in the code indicating potential trouble due to [this
issue](https://github.com/rust-lang/libc/pull/1628). I’ll sort this out if
the CI run fails.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Fill in missing constants available as of Linux v5.18. The
relevant UAPI headers are
- nfnetlink.h
- nfnetlink_log.h
- nfnetlink_queue.h
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | | |
Add CPU_SETSIZE const for FreeBSD
It's in all supported versions of FreeBSD.
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | |
| | | | | |
add freebsd's cpusetid_t api
|
| | | | | |
|
|\ \ \ \ \
| |_|/ / /
|/| | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Add `confstr` and guaranteed `_CS_*` constants on apple
I actually just want `_CS_DARWIN_USER_TEMP_DIR`, and the `confstr` function, but I also have added the other "guaranteed" `_CS_*` values (e.g. present in the [output of `man confstr`](https://gist.github.com/thomcc/12a27c7998019b6da9fa4b539bdbca44)).
This is apparently a [POSIX API](https://pubs.opengroup.org/onlinepubs/9699919799/functions/confstr.html) but I have no idea which other platforms support it, nor what values should be provided. It's somewhat important on Darwin (the only way to access the user temp dir), but I'm not sure what other use it has, so I've only provided it on Darwin.
There are a few other constants in Darwin `unistd.h`, but they're omitted since they're only conditionally present, and they provide values that... don't actually work[^1]. As a result, I've only provided the ones documented by `confstr` documentation.
[^1]: For example, `_CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS` nominally provides values that can be passed to a c compiler, but it gives `-W 64` for me, which does not seem to work with `clang`.
|
| | |_|/
| |/| | |
|
|\ \ \ \
| |_|/ /
|/| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
apple SEEK_{DATA,HOLE} O_{EVTONLY,NOFOLLOW_ANY}
Checked values in MacOSX12.3.sdk and iPhoneOS15.5.sdk
/usr/include/sys/_types/_seek_set.h
/usr/include/sys/fcntl.h
Also updated representation format by following Apple's form and order
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Checked values in MacOSX12.3.sdk and iPhoneOS15.5.sdk
/usr/include/sys/_types/_seek_set.h
/usr/include/sys/fcntl.h
Also updated representation format by following Apple's form and order
|
|\ \ \ \
| | | | |
| | | | |
| | | | | |
IEEE EUI-64 callss for freebsd/dragonflybsd.
|
| | |/ /
| |/| | |
|
| |/ /
|/| | |
|
|/ / |
|
|/ |
|
| |
|
|\
| |
| |
| |
| |
| |
| |
| | |
Add pthread_sigqueue.
This resurrects https://github.com/rust-lang/libc/pull/991.
Should be a pretty straightforward addition of pthread_sigqueue.
|
| |
| |
| |
| |
| | |
pthread_sigqueue is a gnu libc extension, however I have a use case for it,
hence why I'm adding it.
|
|/ |
|
|\
| |
| |
| |
| |
| | |
Add `gnu_get_[version|release]` for glibc
See <https://sourceware.org/git/?p=glibc.git;a=blob;f=csu/version.c;h=8c0ed79c01223e1f12b54d19f90b5e5b7dd78d27;hb=HEAD#l51> and <http://refspecs.linux-foundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/libc-gnu-get-libc-version-1.html>
|
| |
| |
| |
| | |
See <https://sourceware.org/git/?p=glibc.git;a=blob;f=csu/version.c;h=8c0ed79c01223e1f12b54d19f90b5e5b7dd78d27;hb=HEAD#l51> and <http://refspecs.linux-foundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/libc-gnu-get-libc-version-1.html>
|