Commit graph

644 commits

Author SHA1 Message Date
bors 55c44a250d Auto merge of #2590 - GuillaumeGomez:private-fields, r=Amanieu
Make some freebsd private struct fields public and upgrade crate version to 0.2.112

Otherwise we can't use the structs at all...
2021-12-13 17:39:49 +00:00
Guillaume Gomez 4b0433d295 Make some private struct fields public 2021-12-12 23:33:25 +01:00
David CARLIER da089ce64f freebsd proposal to move sockcred2 usage in the root mod while ignoring it for FreeBSD 12. 2021-12-12 10:36:07 +00:00
bors ba77f2627f Auto merge of #2579 - devnexen:sd14_linux_sched_compat, r=Amanieu
freebsd 14 adding linux sched api compatibility fn.
2021-12-09 19:01:14 +00:00
bors fb3dec2881 Auto merge of #2525 - qwandor:mlock2, r=Amanieu
Add mlock2 on Android and Linux.

Unfortunately the type of the flags parameter is different between Bionic and glibc for some reason.
2021-12-09 15:14:01 +00:00
Andrew Walbran ab1013b027 Skip mlock2 for Android test.
It was added in API level 30 but tests use level 28 still.
2021-12-07 12:43:40 +00:00
David Carlier d982ea6eee linux add pidfd_open syscall mode 2021-12-06 07:55:21 +00:00
David CARLIER 75dad067bf freebsd 14 adding linux sched api compatibility fn. 2021-12-04 08:59:30 +00:00
bors 1c07f7c321 Auto merge of #2568 - devnexen:dfbsd_ioctl_new_queries, r=Amanieu
dragonflybsd adding few new ioctl queries
2021-12-04 01:08:04 +00:00
Guillaume Gomez ac6e16b90f Add devstat items 2021-12-03 18:02:08 +01:00
David CARLIER d2e88fd0e3 ptrace_coredump ptrace query addition for FreeBSD 14. 2021-12-01 20:32:29 +00:00
Guillaume Gomez 343db850c8 Add missing FreeBSD mount items 2021-11-30 15:00:48 +01:00
David Carlier bbcd8c84ca dragonflybsd adding few new ioctl queries 2021-11-25 06:48:02 +00:00
bors 3684bd3c55 Auto merge of #2562 - devnexen:dfbsd_kinfo, r=JohnTitor
kinfo_cputime/kinfo_file addition for dragonfly
2021-11-25 05:24:51 +00:00
Guillaume Gomez 4297ec1832 Add missing procstat items for FreeBSD 2021-11-23 10:00:39 +01:00
DC 9f818b878d kinfo_cputime/kinfo_file addition for dragonfly 2021-11-22 12:40:29 +00:00
Guillaume Gomez bab20a83e3 Add missing net/if.h and net/if_mib.h items 2021-11-22 10:39:44 +01:00
Guillaume Gomez 441f19576f Mark consts to be ignored depending on freebsd version 2021-11-19 11:42:40 +01:00
Guillaume Gomez 652abf1b85 Add sys/proc.h header into libc-test import list 2021-11-19 10:44:27 +01:00
bors 88027032c7 Auto merge of #2550 - de-vri-es:restore-ioctl-types, r=JohnTitor
Use libc specific type for architecture specific ioctl defines on Linux.

This PR should fix the type change of some ioctl constants on Linux introduced by #2530.

It does this by adding a `#[doc(hidden)]` type called `Ioctl`, which is defined in libc specific modules and used in arch specific modules.

However, when doing this I noticed that when I added `TCGETS2`, `TCSETS2`, ... in #2508, I unconditionally used `c_ulong`. This is inconsistent with the other ioctl constants for `musl` and `uclibc`. This PR also changes those to use the libc specific types. However, PR #2508 has already been released in 0.2.107, so technically that is also a semver incompatible change. The impact is limited to new constants introduced in the last release, and only on `musl` and `uclibc` targets.

So what is more important here? Consistency in the type of ioctl constants, or being very strict with backwards compatibility? If it is the latter, I'll revert `TCGETS2` etc to `c_ulong`  for this PR.
2021-11-18 18:36:19 +00:00
bors fd4fe30463 Auto merge of #2545 - JohnTitor:freebsd-14-ci, r=JohnTitor
Add FreeBSD 14 CI

r? `@ghost`
2021-11-18 17:23:45 +00:00
Maarten de Vries 7c95819cb6 Use libc specific type for architecture specific ioctl defines on Linux. 2021-11-17 19:42:43 +01:00
Yuki Okushi 9f350fc117
Add FreeBSD 14 module 2021-11-17 14:53:50 +09:00
bors 49e6255f56 Auto merge of #2542 - devnexen:ftok_nbsd_obsd, r=JohnTitor
netbsd/openbsd ftok addition.
2021-11-17 05:39:36 +00:00
Yuki Okushi 65b16d9424
Detect FreeBSD 14 2021-11-17 14:00:45 +09:00
Yuki Okushi d0a7b0f791
Ignore TIOCREMOTE on macOS 2021-11-17 13:01:26 +09:00
David Carlier c42379d669 netbsd/openbsd ftok addition. 2021-11-16 17:49:34 +00:00
David Carlier 8bcbec216d freebsd add vmtotal sysctl query 2021-11-15 17:49:39 +00:00
Maarten de Vries 3fa2809e43 Add IBSHIFT constant for Linux and Android. 2021-11-14 00:20:58 +01:00
bors 67bf22c2dd Auto merge of #2526 - devnexen:sem_fbsd, r=Amanieu
freebsd sem api addition
2021-11-11 01:46:10 +00:00
David Carlier 2676fd3ea8 openbsd backtrace api addition 2021-11-10 17:54:01 +00:00
David Carlier 96fa9a67d6 freebsd sem api addition 2021-11-09 22:03:30 +00:00
bors c781f0b25b Auto merge of #2523 - devnexen:netbsd_uucred, r=JohnTitor
netbsd add uucred struct
2021-11-09 00:58:53 +00:00
bors 84b3a7b3ab Auto merge of #2477 - Fanael:linux-openat2, r=JohnTitor
linux: Add open_how and related flags

This makes `openat2` usable.
2021-11-08 23:56:56 +00:00
David Carlier 69405c59af netbsd add uucred struct 2021-11-08 21:48:49 +00:00
Greg V 57492ef993 FreeBSD: add eventfd (since 13) 2021-11-07 03:16:22 +03:00
David Carlier c199251fbd freebsd ptrace request update 2021-11-06 21:39:13 +00:00
bors 312447584c Auto merge of #2508 - de-vri-es:tcgets2-and-friends, r=Amanieu
Add TCGETS2 and TCSETS2 (and variants) ioctl constants for Linux.

I noticed that the `termios2` struct is already exposed, but the ioctl constants to use it are not. This PR adds the `TCGETS2`, `TCSETS2`, `TCSETSW2` and `TCSETSF2` on Linux so that you can actually do something with the `termios2` struct.

The `powerpc` architecture is notably missing, because it does not seem to support the `TCGETS2`/`TCSETS2` ioctls.

I *think* the constants are correct for all platforms, but I'm also not 100% sure. Do the unit tests verify the values for all supported platforms, by any chance?
2021-11-06 15:19:43 +00:00
Maarten de Vries 58a015cd25 Add TCGETS2 and TCSETS2 (and variants) ioctl constants for Linux. 2021-11-06 16:18:47 +01:00
niluxv e4bc20128b Ignore missing constants on old FreeBSDs 2021-11-04 19:09:12 +01:00
Fanael Linithien 93e85a35c8 linux: Add open_how and related flags 2021-11-04 16:29:19 +01:00
bors ac2538fd3f Auto merge of #2481 - devnexen:solarish_setpflags, r=Amanieu
solarish add process pflags api.
2021-10-26 02:48:20 +00:00
DC f4dd93b970 solarish add process pflags api. 2021-10-25 08:54:47 +01:00
David Carlier a6c3d6b28f dragonflybsd add checkpoint api 2021-10-24 10:42:05 +01:00
bors 4f0b037619 Auto merge of #2475 - devnexen:fbsd_numa_domain, r=JohnTitor
freebsd add numa domain api
2021-10-23 11:03:14 +00:00
Matthias Schiffer e2638e3bcf
libc-test: include linux/sched.h test_linux()
The UAPI version of sched.h contains the newest flags that may not have
been added to the libc's sched.h yet (for example CLONE_PIDFD). It was
alreaded included by test_android(), but was missing from test_linux().
2021-10-23 10:41:14 +02:00
David Carlier 91810ce1d2 freebsd add numa domain api 2021-10-23 08:12:01 +01:00
Tobias Klauser 2c65744eae Add NETLINK_EXT_ACK and NETLINK_GET_STRICT_CHK on Linux 2021-10-22 00:42:30 +02:00
Matthias Schiffer 157ca896b6
linux: Add CLOSE_RANGE_* flags
Flags for the SYS_close_range syscall from <linux/close_range.h>.
2021-10-21 15:55:47 +02:00
bors 1045d0190e Auto merge of #2467 - rtzoeller:dfly_fexecve, r=JohnTitor
Add fexecve() to DragonFly

DragonFly 6.0 added support for `fexecve(2)`.

Implementing it with a mismatched signature from what C exposes, as outlined in #1272, for consistency with other platforms.

Tested with https://github.com/nix-rust/nix/pull/1577
2021-10-21 00:37:19 +00:00