summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Auto merge of #2899 - devnexen:linux_fileclone, r=JohnTitorbors2022-09-1911-0/+23
|\ | | | | | | linux add FICLONE* ioctl.
| * linux add FICLONE* ioctl.David Carlier2022-09-1911-0/+23
| |
* | Compatibility with ESP-IDF V5ivmarkov2022-09-171-1/+1
| |
* | Auto merge of #2911 - devnexen:netbsd_reg_constants, r=JohnTitorbors2022-09-171-0/+27
|\ \ | | | | | | | | | netbsd mcontext x86_64 constants.
| * | netbsd mcontext x86_64 constants.David Carlier2022-09-171-0/+27
| | |
* | | expose setgrent/getgrent/endgrent on fuchsiaSteve Lau2022-09-161-0/+5
|/ /
* | openbsd: add getmntinfo(3) and getfsstat(2) supportSébastien Marie2022-09-131-0/+6
| |
* | Auto merge of #2904 - cd-work:linux_syscalls, r=JohnTitorbors2022-09-1223-0/+184
|\ \ | | | | | | | | | | | | | | | | | | | | | 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
| * | Add new Linux system call constantsChristian Duerr2022-09-0923-0/+184
| |/ | | | | | | | | | | | | 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
* | Auto merge of #2901 - gco:tcp_keepcnt, r=JohnTitorbors2022-09-111-2/+2
|\ \ | | | | | | | | | Solaris TCP_KEEPINTVL and TCP_KEEPCNT have wrong values
| * | Solaris TCP_KEEPINTVL and TCP_KEEPCNT have wrong valuesgco2022-09-051-2/+2
| | |
* | | Auto merge of #2900 - gco:master, r=JohnTitorbors2022-09-103-2/+8
|\ \ \ | | | | | | | | | | | | fcntl F_DUPFD_CLOEXEC has different values on Solaris and Illumos
| * | | fcntl F_DUPFD_CLOEXEC has different values on Solaris and Illumosgco2022-09-053-2/+8
| |/ /
* | | solarish SHM* flagsDavid Carlier2022-09-101-0/+8
| |/ |/|
* | Auto merge of #2891 - asomers:makedev, r=JohnTitorbors2022-09-0911-29/+112
|\ \ | | | | | | | | | | | | | | | Add makedev for the BSDs Also, make Linux's makedev function safe and const.
| * | Add makedev for the BSDsAlan Somers2022-09-0711-29/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Auto merge of #2902 - beetrees:apple-attrlist, r=JohnTitorbors2022-09-091-0/+227
|\ \ \ | | | | | | | | | | | | | | | | | | | | apple: Add the attrlist set of functions Add the attrlist set of functions for apple platforms.
| * | | apple: Add the attrlist set of functionsbeetrees2022-09-061-0/+227
| | | |
* | | | Auto merge of #2897 - paandahl:add-elf-constants, r=JohnTitorbors2022-09-062-20/+177
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | Added missing constants from elf.h I have added a bunch of constants from elf.h, useful for parsing ELF files. Closes #1876
| * | | Added missing constants from elf.hPreben Aandahl2022-09-062-20/+177
| | |/ | |/|
* | | Fix the tests on the latest FreeBSD 14.0-CURRENTAlan Somers2022-09-031-1/+48
| | |
* | | Auto merge of #2896 - devnexen:pthread_jit_mac_upd, r=JohnTitorbors2022-09-021-0/+12
|\ \ \ | | | | | | | | | | | | apple add pthread_jit_write_callback_t api related.
| * | | apple add pthread_jit_write_callback_t api related.David CARLIER2022-09-011-0/+12
| |/ /
* | | Auto merge of #2889 - phi-gamma:rtnetlink-mcast-groups, r=JohnTitorbors2022-09-021-0/+56
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | linux: add rtnetlink mcast group definitionsPhilipp Gesang2022-08-311-0/+56
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | freebsd add shm_largepage_conf data and its ioctl request.David CARLIER2022-08-291-0/+7
| |
* | Auto merge of #2881 - folkertdev:sof-timestamping-add-missing, r=JohnTitorbors2022-08-271-0/+8
|\ \ | |/ |/| | | | | | | 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
| * remove SOF_TIMESTAMPING_BIND_PHC for nowFolkert2022-08-251-1/+0
| |
| * add missing SOF_TIMESTAMPING flagsFolkert2022-08-181-0/+9
| |
* | Auto merge of #2876 - phi-gamma:netfilter, r=JohnTitorbors2022-08-241-8/+16
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | linux: add missing netfilter definitionsPhilipp Gesang2022-08-211-8/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | Fill in missing constants available as of Linux v5.18. The relevant UAPI headers are - nfnetlink.h - nfnetlink_log.h - nfnetlink_queue.h
* | | Auto merge of #2888 - lwhsu:freebsd-CPU_SETSIZE, r=JohnTitorbors2022-08-241-0/+3
|\ \ \ | | | | | | | | | | | | | | | | | | | | Add CPU_SETSIZE const for FreeBSD It's in all supported versions of FreeBSD.
| * | | Add CPU_SETSIZE const for FreeBSDLi-Wen Hsu2022-08-231-0/+3
| | | |
* | | | Auto merge of #2887 - devnexen:fbsd_cpusetid_t, r=JohnTitorbors2022-08-231-0/+10
|\ \ \ \ | | | | | | | | | | | | | | | add freebsd's cpusetid_t api
| * | | | add freebsd's cpusetid_t apiDavid CARLIER2022-08-221-0/+10
| | | | |
* | | | | Auto merge of #2883 - thomcc:confstr, r=JohnTitorbors2022-08-231-0/+10
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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`.
| * | | | Add `confstr` and guaranteed `_CS_*` constants on appleThom Chiovoloni2022-08-181-0/+10
| | |_|/ | |/| |
* | | | Auto merge of #2886 - youknowone:apple-constant, r=JohnTitorbors2022-08-221-5/+9
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | | apple SEEK_{DATA,HOLE} O_{EVTONLY,NOFOLLOW_ANY}Jeong YunWon2022-08-211-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Auto merge of #2882 - devnexen:eui64_fbsd, r=JohnTitorbors2022-08-211-0/+11
|\ \ \ \ | | | | | | | | | | | | | | | IEEE EUI-64 callss for freebsd/dragonflybsd.
| * | | | IEEE EUI-64 callss for freebsd/dragonflybsd.David CARLIER2022-08-181-0/+11
| | |/ / | |/| |
* | | | freebsd cpuset affinity flags.David CARLIER2022-08-211-0/+10
| |/ / |/| |
* | | Add ENOTSUP constant for riscv32/muslKhem Raj2022-08-191-0/+1
|/ /
* | freebsd adding ptsname_rDavid CARLIER2022-08-161-0/+1
|/
* Fix incorrect constant for O_LARGEFILE on mips64-linux-musljam1garner2022-08-151-1/+1
|
* Auto merge of #2873 - pirocks:master, r=JohnTitorbors2022-08-151-0/+1
|\ | | | | | | | | | | | | | | Add pthread_sigqueue. This resurrects https://github.com/rust-lang/libc/pull/991. Should be a pretty straightforward addition of pthread_sigqueue.
| * Add pthread_sigqueue.Francis Nixon2022-08-131-0/+1
| | | | | | | | | | pthread_sigqueue is a gnu libc extension, however I have a use case for it, hence why I'm adding it.
* | Add FUTEX_LOCK_PI2 on LinuxRyan Zoeller2022-08-131-0/+1
|/
* Auto merge of #2862 - LegNeato:master, r=Amanieubors2022-08-111-0/+5
|\ | | | | | | | | | | 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>
| * Add `gnu_get_[version|release]` for glibcChristian Legnitto2022-08-031-0/+5
| | | | | | | | 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>