Commit graph

6027 commits

Author SHA1 Message Date
bors 9667d5f962 Auto merge of #2905 - devnexen:illumos_shm_upd, r=JohnTitor
solarish SHM* flags
2022-09-10 22:48:01 +00:00
David Carlier 403f63e497 solarish SHM* flags 2022-09-10 21:25:18 +01:00
Christian Duerr 5f5d0deae3
Add test exceptions 2022-09-09 22:25:10 +02:00
Christian Duerr ce3a66a2ee
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
2022-09-09 22:11:47 +02:00
bors 6eee580b51 Auto merge of #2891 - asomers:makedev, r=JohnTitor
Add makedev for the BSDs

Also, make Linux's makedev function safe and const.
2022-09-09 13:47:17 +00:00
bors fb16d18481 Auto merge of #2902 - beetrees:apple-attrlist, r=JohnTitor
apple: Add the attrlist set of functions

Add the attrlist set of functions for apple platforms.
2022-09-09 12:46:50 +00:00
Alan Somers 5e6d9c4a92 Add makedev for the BSDs
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.
2022-09-07 06:50:04 -06:00
bors 6b36b18241 Auto merge of #2897 - paandahl:add-elf-constants, r=JohnTitor
Added missing constants from elf.h

I have added a bunch of constants from elf.h, useful for parsing ELF files.

Closes #1876
2022-09-06 13:02:50 +00:00
Preben Aandahl 1d11c020ab Added missing constants from elf.h 2022-09-06 09:56:31 +02:00
beetrees c77ee006fc
apple: Add the attrlist set of functions 2022-09-06 07:14:19 +01:00
gco feb971adca Solaris TCP_KEEPINTVL and TCP_KEEPCNT have wrong values 2022-09-05 16:10:12 -07:00
gco 89aacef2ec fcntl F_DUPFD_CLOEXEC has different values on Solaris and Illumos 2022-09-05 14:07:47 -07:00
bors aec8514342 Auto merge of #2898 - asomers:fbsd14-sep-2022, r=JohnTitor
Fix the tests on the latest FreeBSD 14.0-CURRENT
2022-09-04 18:24:10 +00:00
Alan Somers ab577960b8 Fix the tests on the latest FreeBSD 14.0-CURRENT 2022-09-03 10:37:59 -06:00
bors b6e47043f9 Auto merge of #2896 - devnexen:pthread_jit_mac_upd, r=JohnTitor
apple add pthread_jit_write_callback_t api related.
2022-09-02 13:05:25 +00:00
bors 795adbede4 Auto merge of #2889 - phi-gamma:rtnetlink-mcast-groups, r=JohnTitor
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.
2022-09-02 11:35:13 +00:00
David CARLIER 52b45a79c9 apple add pthread_jit_write_callback_t api related. 2022-09-01 22:30:08 +01:00
Philipp Gesang d2e04b99db
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.
2022-08-31 18:05:43 +02:00
bors f1c3cfea63 Auto merge of #2893 - wesleywiser:fix_ci_testing, r=JohnTitor
Add musl's lib folder to library search path

Prior to this change, `libc.a` was being found in rustc's self-contained
musl target folder instead of the `libc.a` that we've built or
downloaded. This doesn't seem to have caused any noticeable issues as the
versions of musl we built/installed and the version shipped in rustc's
target matched exactly.

To resolve this, we pass the path to our version of musl's lib folder
directly as a `RUSTFLAG` which causes it to be found first.
2022-08-31 13:50:50 +00:00
bors f63ecfc004 Auto merge of #2892 - devnexen:fbsd_shmlargepage_conf, r=JohnTitor
freebsd add shm_largepage_conf data and its ioctl request.
2022-08-31 12:40:30 +00:00
David CARLIER f7dc112aa4 freebsd add shm_largepage_conf data and its ioctl request. 2022-08-29 18:27:50 +01:00
Wesley Wiser ea73035eb8 Add musl's lib folder to library search path
Prior to this change, `libc.a` was being found in rustc's self-contained
musl target folder instead of the `libc.a` that we've built or
downloaded. This doesn't seem to have caused any noticeable issues as the
versions of musl we built/installed and the version shipped in rustc's
target matched exactly.

To resolve this, we pass the path to our version of musl's lib folder
directly as a `RUSTFLAG` which causes it to be found first.
2022-08-29 12:08:21 -04:00
bors a5553c26ca Auto merge of #2881 - folkertdev:sof-timestamping-add-missing, r=JohnTitor
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
2022-08-27 04:33:50 +00:00
Folkert 075ca1103f remove SOF_TIMESTAMPING_BIND_PHC for now 2022-08-25 11:49:27 +02:00
bors 75dd59edac Auto merge of #2890 - JohnTitor:gha-ubuntu-22.04, r=JohnTitor
Upgrade Ubuntu image on GHA to 22.04

This updates Ubuntu image on GHA to 22.04.
Note that this doesn't update images on Docker so I expect the effect is relatively small.

r? `@ghost`
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2022-08-24 14:49:31 +00:00
Yuki Okushi 5da72a4dc1
Suppress shellcheck warnings
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2022-08-24 21:45:32 +09:00
Yuki Okushi b21b1dc24b
Upgrade Ubuntu image on GHA to 22.04
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
2022-08-24 21:28:04 +09:00
bors af5de50159 Auto merge of #2876 - phi-gamma:netfilter, r=JohnTitor
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.
2022-08-24 10:34:07 +00:00
bors fc683708e1 Auto merge of #2888 - lwhsu:freebsd-CPU_SETSIZE, r=JohnTitor
Add CPU_SETSIZE const for FreeBSD

It's in all supported versions of FreeBSD.
2022-08-24 00:38:38 +00:00
bors 81b696289b Auto merge of #2887 - devnexen:fbsd_cpusetid_t, r=JohnTitor
add freebsd's cpusetid_t api
2022-08-23 23:40:48 +00:00
bors f6eb4966ec Auto merge of #2883 - thomcc:confstr, r=JohnTitor
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`.
2022-08-23 22:43:22 +00:00
Li-Wen Hsu 6c9ab47040
Add CPU_SETSIZE const for FreeBSD 2022-08-23 18:51:45 +08:00
bors b252b2f313 Auto merge of #2886 - youknowone:apple-constant, r=JohnTitor
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
2022-08-22 22:50:21 +00:00
David CARLIER effb039eb1 add freebsd's cpusetid_t api 2022-08-22 18:49:59 +01:00
bors 7c04c75794 Auto merge of #2882 - devnexen:eui64_fbsd, r=JohnTitor
IEEE EUI-64 callss for freebsd/dragonflybsd.
2022-08-21 23:49:09 +00:00
bors 9358dbf672 Auto merge of #2885 - devnexen:cpuset_flags_fbsd, r=JohnTitor
freebsd cpuset affinity flags.
2022-08-21 22:43:20 +00:00
Jeong YunWon 097f864e79 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
2022-08-21 23:51:06 +09:00
Philipp Gesang 12f3b38b10
linux: add missing netfilter definitions
Fill in missing constants available as of Linux v5.18. The
relevant UAPI headers are

- nfnetlink.h
- nfnetlink_log.h
- nfnetlink_queue.h
2022-08-21 09:12:04 +02:00
David CARLIER 88b3636ac3 freebsd cpuset affinity flags. 2022-08-21 07:44:19 +01:00
bors 59a6070df6 Auto merge of #2884 - kraj:master, r=JohnTitor
Add ENOTSUP constant for riscv32/musl
2022-08-19 22:10:41 +00:00
Khem Raj e9fb036eef Add ENOTSUP constant for riscv32/musl 2022-08-19 10:26:43 -07:00
Thom Chiovoloni 52199a640a
Add confstr and guaranteed _CS_* constants on apple 2022-08-18 17:04:28 -07:00
David CARLIER 5d42e0a19f IEEE EUI-64 callss for freebsd/dragonflybsd. 2022-08-18 21:56:49 +01:00
Folkert 2ad2903dc0
add new consts to linux semver file 2022-08-18 16:16:16 +02:00
Folkert 10b438a1ca
add missing SOF_TIMESTAMPING flags 2022-08-18 16:04:05 +02:00
bors 2c7f384d91 Auto merge of #2879 - semarie:openbsd-KERN_NSELCOLL, r=JohnTitor
openbsd: ignore ci error about unexistent KERN_NSELCOLL constant

This sysctl(2) constant has been removed.

9bf42e341a
2022-08-18 11:00:45 +00:00
bors d03554b929 Auto merge of #2878 - devnexen:ptsname_r_fbsd, r=JohnTitor
freebsd adding ptsname_r
2022-08-18 09:30:39 +00:00
Sébastien Marie 5872135f9d openbsd: ignore ci error about unexistent KERN_NSELCOLL constant
This sysctl(2) constant has been removed.

9bf42e341a
2022-08-17 06:37:58 +00:00
David CARLIER c0c0f917d5 freebsd adding ptsname_r 2022-08-16 21:03:28 +01:00
bors 2a1d1033c6 Auto merge of #2877 - pirocks:master, r=Amanieu
Bump version to 0.2.132

I want to make changes to nix and other crates, but those changes depend on f967994052 being released.
2022-08-16 14:49:53 +00:00