Commit graph

618 commits

Author SHA1 Message Date
Yuki Okushi d0a7b0f791
Ignore TIOCREMOTE on macOS 2021-11-17 13:01:26 +09: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
bors f6084a70c5 Auto merge of #2465 - asomers:fbsd-consts, r=JohnTitor
Properly expose more constants on FreeBSD

The freebsd12 and freebsd13 modules should only be used for symbols that
_change_ in those versions, not for newly added symbols.  Mostly they
should be used for versioned ELF symbols.  It does no harm to publish
ordinary constants in the base FreeBSD module even if they weren't
defined in the lowest supported version of FreeBSD, but it does make it
much easier for consumers to use them.
2021-10-20 23:38:20 +00:00
Alan Somers 3418986eac Properly expose more constants on FreeBSD
The freebsd12 and freebsd13 modules should only be used for symbols that
_change_ in those versions, not for newly added symbols.  Mostly they
should be used for versioned ELF symbols.  It does no harm to publish
ordinary constants in the base FreeBSD module even if they weren't
defined in the lowest supported version of FreeBSD, but it does make it
much easier for consumers to use them.
2021-10-20 16:09:01 -06:00
bors 6492988886 Auto merge of #2451 - GuillaumeGomez:freebsd-items, r=JohnTitor
Freebsd items
2021-10-20 18:19:53 +00:00
Ryan Zoeller 6f0857da5d DragonFly 6.0 introduced fexecve()
Ignore fexecve signature mismatch, as with other execv variants.
2021-10-20 00:05:10 -05:00
Guillaume Gomez b3934d82a4 Skip checks for kvm_t and a few kinfo_proc struct fields 2021-10-19 15:14:45 +02:00
Guillaume Gomez d02cbd2df0 Add kvm.h into freebsd header list 2021-10-19 13:42:37 +02:00
Ryan Zoeller 0c4b6edf1e DragonFly should use FreeBSD's sigval workaround 2021-10-17 04:23:01 -05:00
Ryan Zoeller 3bf3d670a9 Add missing headers for DragonFly BSD 2021-10-17 04:22:33 -05:00
Yuki Okushi 98e72b04d8
Remove some workarounds for older macOSes 2021-10-16 09:28:17 +09:00
David CARLIER 7c2847927f apple introduces pthread introspection api 2021-10-15 20:18:48 +01:00
David Carlier d63e6be74a openbsd omit few consts check as openbsd supports release N and N-1 for a while 2021-10-14 18:02:43 +01:00
bors c6d702f01c Auto merge of #2441 - tklauser:apple-rtf-consts, r=JohnTitor
Add Apple RTF_DEAD and RTF_GLOBAL

RTF_DEAD was added in macOS 10.13.
RTF_GLOBAL was added in macOS 11.0.
2021-10-13 03:35:39 +00:00
Damian Jarek 7d21f6043c Define constants for CAN RAW socket options
Add setsockopt constants from `linux/can/raw.h`, which allow configuring
CAN_RAW sockets.

Signed-off-by: Damian Jarek <damian.jarek93@gmail.com>
2021-10-13 00:12:46 +02:00
Tobias Klauser 90285fa728 libc-test: remove duplicate headers from test_apple 2021-10-11 15:34:44 +02:00
Tobias Klauser cd759f1153 Add Apple RTF_DEAD and RTF_GLOBAL
RTF_DEAD was added in macOS 10.13.
RTF_GLOBAL was added in macOS 11.0.
2021-10-11 11:14:45 +02:00
bors 3114845df2 Auto merge of #2433 - devnexen:fbsd_htr_self, r=JohnTitor
freebsd native api addition to deal with thread
2021-10-07 03:17:34 +00:00
bors 3b195de972 Auto merge of #2427 - devnexen:pthread_mach_thread_mac, r=JohnTitor
add pthread_create_from_mach_thread for apple
2021-10-06 23:58:48 +00:00
David Carlier 00d3a8a5b4 freebsd native api addition to deal with thread 2021-10-04 18:00:10 +01:00
DC 10a64fb6c0 solarish add thr_self fn 2021-10-03 11:49:21 +01:00
David CARLIER 610c901d02 add pthread_create_from_mach_thread for apple 2021-09-30 18:53:10 +01:00
bors 372a8c6fcb Auto merge of #2403 - skrap:master, r=Amanieu
uclibc: fix semver files, add misc symbols

This commit gets uclibc support working again, and fixes the semver lists to segregate gnu- and musl- specific symbols to those libc variants.

There is a [separate PR](https://github.com/rust-lang/rust/pull/88952) against rust itself to add armv7-unknown-linux-uclibceabihf as a tier 3 platform, and this commit is in support of that effort.  Until that's done, we should not use the CI for that platform, but I'm including the CI file here in anticipation of turning it on in the not-too-distant future.
2021-09-24 22:30:06 +00:00
bors 238162dd6a Auto merge of #2411 - devnexen:fbsd_uuidgen, r=JohnTitor
freebsd add uuidgen fn.
2021-09-24 10:12:28 +00:00
bors d7e8f361c7 Auto merge of #2409 - devnexen:win32_ucontext, r=JohnTitor
windows adding CONTEXT type for x86_64 arch.
2021-09-24 08:54:21 +00:00
Jonah Petri 6a123268f5 remove mistakenly added symbol 2021-09-19 23:32:39 -04:00
David Carlier 64c83b4ba1 freebsd add uuidgen fn. 2021-09-19 20:09:04 +01:00
David Carlier 2cb8a4395d BSD add utrace calls 2021-09-19 14:57:43 +01:00