Commit graph

1048 commits

Author SHA1 Message Date
bors c55c52d35f Auto merge of #2673 - devnexen:linux_mempolicies_flags, r=Amanieu
linux glibc/android memory policies flags
2022-02-08 15:21:39 +00:00
David Carlier 510c45896a linux glibc/android memory policies flags 2022-02-08 15:18:56 +00:00
bors 8b05ed7ebb Auto merge of #2670 - devnexen:fbsd_dfbsd_sched_upd, r=Amanieu
bsd sched api update
2022-02-06 18:08:59 +00:00
bors d5f6f7aa66 Auto merge of #2668 - CoelacanthusHex:feat/riscv64/const/PTRACE, r=Amanieu
feat(riscv64,gnu): add some const PTRACE_*

* PTRACE_GETFPREGS
* PTRACE_SETFPREGS
* PTRACE_GETFPXREGS
* PTRACE_SETFPXREGS
* PTRACE_GETREGS
* PTRACE_SETREGS

get from sys/ptrace.h of riscv64 glibc

Signed-off-by: Coelacanthus <coelacanthus@outlook.com>
2022-02-06 17:02:15 +00:00
bors ebc145f06f Auto merge of #2667 - devnexen:fcopyfile_mac, r=Amanieu
(f)copyfile fn for apple
2022-02-06 15:58:42 +00:00
Coelacanthus a08edb469f
feat(riscv64,gnu): add some const PTRACE_*
* PTRACE_GETFPREGS
* PTRACE_SETFPREGS
* PTRACE_GETFPXREGS
* PTRACE_SETFPXREGS
* PTRACE_GETREGS
* PTRACE_SETREGS

get from sys/ptrace.h of riscv64 glibc

Signed-off-by: Coelacanthus <coelacanthus@outlook.com>
2022-02-06 21:42:45 +08:00
David CARLIER b1b4745c19 bsd sched api update 2022-02-05 06:17:51 +00:00
David CARLIER 4bebc22a1c freebsd 14 add new PT_GETREGSET/PT_SETREGSET flag 2022-02-03 16:12:15 +00:00
David CARLIER 4dfb4de87d (f)copyfile fn for apple 2022-02-03 08:52:40 +00:00
Ross Schulman e01f46c57b Bump version number to prep for publish 2022-02-01 16:26:31 -05:00
Tyler Mandry e5f0e5fcfe Bump version to 0.2.116 2022-01-28 17:30:10 +00:00
Adam Perry fffd9cf610 Release 0.2.115 to crates.io.
Needed by https://github.com/rust-lang/rust/pull/93351.
2022-01-27 00:18:48 +00:00
David CARLIER d00987d3a6 freebsd audit api introduction. 2022-01-26 16:12:41 +00:00
David CARLIER 619119e0e2 freebsd add ifconf data. 2022-01-25 14:42:45 +00:00
David CARLIER e491433eee getpagesizes for freebsd addition 2022-01-25 06:37:17 +00:00
bors a76930062c Auto merge of #2639 - sunfishcode:sunfishcode/linux-super-magic, r=Amanieu
Consolodate the Linux `*_SUPER_MAGIC` constants.

Move the Linux `*_SUPER_MAGIC` constants out of
android/uclibc/gnu-specific directories and into the common `linux_like` directory
so that they're available on all Linux-family platforms, and so that that all
Linux-family platforms have all the constants.
2022-01-25 01:10:30 +00:00
Dan Gohman 338ac98a84 Give android the same special case for FUSE_SUPER_MAGIC that linux has. 2022-01-24 15:54:02 -08:00
bors 80f4ca240c Auto merge of #2649 - devnexen:netbsd_ifconf, r=Amanieu
netbsd add ifconf data
2022-01-24 20:09:11 +00:00
David Carlier 0ef1e7130d netbsd add ifconf data 2022-01-24 18:33:45 +00:00
Charlie Root 2cfa3e949f Define ip_mreqn on OpenBSD 2022-01-24 10:22:33 -07:00
Jakob Naucke b566c54f04
Update crate version to 0.2.114 2022-01-24 14:54:07 +01:00
Tamir Duberstein da84eefd71
Define ip_mreqn on all Linux platforms
Updates #1558.
2022-01-23 15:52:27 -05:00
bors 7600416f1c Auto merge of #2543 - asomers:fspacectl, r=Amanieu
Add fspacectl, new in FreeBSD 14
2022-01-21 20:47:54 +00:00
Alan Somers be392861b6 Add fspacectl, new in FreeBSD 14 2022-01-20 18:49:54 -07:00
bors 72e41512de Auto merge of #2638 - devnexen:shm_create_largepage_fbsd, r=Amanieu
freebsd 13 non thp userspace fn.
2022-01-21 00:46:52 +00:00
bors 599fa5c8bf Auto merge of #2637 - asomers:no-kern-stacktop, r=Amanieu
Fix the build on the latest FreeBSD 14 snapshot

* KERN_STACKTOP was recently removed upstream, and has never been included in a stable FreeBSD release
* The MNTK_ flags are for kernel use only and aren't visible to userland

cc `@GuillaumeGomez`
2022-01-20 23:43:24 +00:00
David CARLIER 0ee0aee6a7 freebsd 13 non thp userspace fn. 2022-01-20 14:00:05 +00:00
bors cf597c2d6f Auto merge of #2636 - skrap:master, r=Amanieu
uclibc: fix O_TMPFILE value, hide some unused fields to fix libc-test

This was a bit of a yak-shave.

First, O_TMPFILE was wrong because 020000000 is decimal, not octal.  🤦   This was, of course, causing all sorts of things to be horrible.

That led me to switch to a newer toolchain which actually defined O_TMPFILE, so that the libc tests pass on `armv7-unknown-linux-uclibceabihf`.

That revealed that certain field names had changed since the last time I ran the libc tests on this architecture, which revealed that some struct fields (e.g. `__unused`) were being marked as `pub` where all other architectures left them as private.

So, this patch might seem somewhat sprawling, but without all of these changes it's not possible to run libc-test!

To test:
* get https://toolchains.bootlin.com/downloads/releases/toolchains/armv7-eabihf/tarballs/armv7-eabihf--uclibc--bleeding-edge-2021.11-1.tar.bz2
* unpack somewhere, and call that `$TOOLCHAIN`
```
cd libc-test

PATH=$TOOLCHAIN/bin:$PATH \
  CC_armv7_unknown_linux_uclibc=armv7-buildroot-linux-uclibc-gcc \
  CARGO_TARGET_ARMV7_UNKNOWN_LINUX_UCLIBCEABIHF_LINKER=armv7-buildroot-linux-uclibc-gcc \
  CARGO_TARGET_ARMV7_UNKNOWN_LINUX_UCLIBCEABIHF_RUNNER="qemu-arm -L $TOOLCHAIN/arm-buildroot-linux-uclibcgnueabihf/sysroot/" \
  cargo +nightly test --target armv7-unknown-linux-uclibceabihf -Zbuild-std=core,std
```
2022-01-20 02:26:41 +00:00
Alan Somers c53bec491e Delete FreeBSD's MNTK_ constants
These are only for the kernel's internal use and aren't exposed to
userland.  They also aren't stable across versions, and may be changed
or deleted at any time.  For example, by
4dcdf3987c
2022-01-19 17:53:45 -07:00
Alan Somers ec4f56f9af Remove KERN_STACKTOP
It got removed by upstream.  This should not be considered a breaking
change, because KERN_STACKTOP has never been included in a released
version of FreeBSD.

1544f5add8
2022-01-19 17:29:30 -07:00
Jonah Petri 0fcf5b32c5 uclibc: fix O_TMPFILE value, un-pub some unused fields to fix libc-test 2022-01-19 15:26:14 -05:00
Thomas de Zeeuw 178147edf9 Release v0.2.113 2022-01-19 19:35:23 +01:00
Tamir Duberstein 037d7415a7
Add ip_mreqn on Android
This was added to Android's libc (bionic) in 2013. See
655a7c081f.
2022-01-17 15:39:52 +00:00
Tamir Duberstein 3bbc552727
Add ip_mreqn on FreeBSD
This was added in FreeBSD 13.0.0. See
https://github.com/freebsd/freebsd-src/commit/0dfc145a.
2022-01-17 15:37:50 +00:00
Tamir Duberstein 6fbe3b78f1
Add ip_mreqn on Apple platforms
Available since macOS 10.7. See
https://developer.apple.com/documentation/kernel/ip_mreqn.
2022-01-17 14:05:15 +00:00
bors df679e8075 Auto merge of #2631 - devnexen:fbsd13_upd_shm, r=Amanieu
shm api update from FreeBSD 13
2022-01-17 03:06:28 +00:00
bors 5617b46596 Auto merge of #2629 - devnexen:apple_execinfo_upd, r=Amanieu
macOs update backtrace api.
2022-01-17 00:58:07 +00:00
bors e469fc25f7 Auto merge of #2628 - devnexen:netbsd_prot_mprotect, r=Amanieu
netbsd add PROT_MPROTECT macros.
2022-01-16 23:33:36 +00:00
David CARLIER 0a57541a71 shm api update from FreeBSD 13 2022-01-16 09:00:40 +00:00
David CARLIER 6cce830b96 macOs update backtrace api. 2022-01-15 11:59:06 +00:00
David Carlier 5d9ec7b499 netbsd add PROT_MPROTECT macros. 2022-01-15 06:41:37 +00:00
Mek101 9c55170044 Add android ioctl constansts: BLKSSZGET and BLKPBSZGET 2022-01-13 21:17:32 +01:00
bors 26b68f834c Auto merge of #2622 - devnexen:fuse_super_magic, r=Amanieu
linux GLIBC add FUSE_SUPER_MAGIC

close #2621
2022-01-12 17:07:42 +00:00
David Carlier fc9854f0d3 linux GLIBC add FUSE_SUPER_MAGIC
close #2621
2022-01-12 15:19:59 +00:00
Ryan Zoeller e6bd49cf31 Android defines _POSIX_VDISABLE 2022-01-10 22:43:43 -06:00
bors c1b386055f Auto merge of #2617 - devnexen:fbsd14_cpuset_upd, r=Amanieu
freebsd add CPU_COUNT macro
2022-01-09 00:39:21 +00:00
David Carlier 95e74dd173 linux GLIBC add malloc_trim fn. 2022-01-08 15:54:31 +00:00
David CARLIER 21aadd4142 freebsd add CPU_COUNT macro 2022-01-06 20:45:14 +00:00
bors 484570d766 Auto merge of #2611 - devnexen:dfbsd_so_acceptfilter, r=Amanieu
dragonflybsd accept_filter_arg support for SO_ACCEPTFILTER.
2022-01-04 03:25:19 +00:00
bors 3c1eef02f0 Auto merge of #2608 - devnexen:obsd_splice, r=Amanieu
openbsd adding splice struct for SO_SPLICE sock opt
2022-01-04 00:10:11 +00:00