Commit graph

5263 commits

Author SHA1 Message Date
bors c9c88722bb Auto merge of #2585 - asomers:revert-pr2581, r=Amanieu
Revert "Fix invalid freebsd version selection"

This reverts commit 53e79b886b.

PR #2581 unintentionally changed libc's bindings from the FreeBSD 11 ABI
to the native ABI of the build host.  This is causing breakage for many
downstream crates.
2021-12-10 17:29:18 +00:00
Alan Somers 727d37a016 Revert "Fix invalid freebsd version selection"
This reverts commit 53e79b886b.

PR #2581 unintentionally changed libc's bindings from the FreeBSD 11 ABI
to the native ABI of the build host.  This is causing breakage for many
downstream crates.
2021-12-10 09:05:37 -07:00
bors 6b9d5099d1 Auto merge of #2584 - GuillaumeGomez:upgrade, r=Amanieu
Upgrade crate version to 0.2.110
2021-12-09 21:02:24 +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 1725ca0cbb Auto merge of #2580 - devnexen:netbsd_few_more_ptrace_queries, r=Amanieu
netbsd adding few more ptrace queries types.
2021-12-09 17:53:30 +00:00
bors bd967ef69e Auto merge of #2548 - Mek101:master, r=Amanieu
Add linux ioctl constansts: BLKSSZGET and BLKPBSZGET

Fixes #2500
2021-12-09 16:22:28 +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
Guillaume Gomez 9375fc7e46 Upgrade crate version to 0.2.110 2021-12-09 13:05:57 +01:00
bors 6fe1ff9494 Auto merge of #2581 - GuillaumeGomez:freebsd-version, r=Amanieu
Fix invalid freebsd version selection

Just realized when working on sysinfo that my `stafs` struct filled by `getmntinfo` was missing **a lot** of information. After trying to find out from my size what I missed, I simply check the `size_of` the rust struct vs the C struct and found `484 != 2384`. After looking a bit more, I discovered that only the CI was using the right freebsd version, which is quite problematic.

r? `@Amanieu`
2021-12-09 02:11:58 +00:00
bors 6f661a8718 Auto merge of #2570 - t6:freebsd-riscv64, r=Amanieu
Add riscv64gc-unknown-freebsd support

Also see https://github.com/rust-lang/rust/pull/91284
2021-12-09 01:02:37 +00:00
Tobias Kortkamp d565303913
ci/build: add riscv64gc-unknown-freebsd 2021-12-08 11:10:18 +01:00
bors e446f6618e Auto merge of #2582 - devnexen:pidfd_syscall_flag, r=Amanieu
linux add pidfd_open syscall mode
2021-12-07 23:59:17 +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
bors b76911ecbd Auto merge of #2522 - rtzoeller:dfly_handle_deprecations, r=JohnTitor
Fix/remove deprecated DragonFly items

These items were recently deprecated on DragonFly, either because the platform does not define them or because they were out of date.
2021-12-05 21:32:42 +00:00
Guillaume Gomez 53e79b886b Fix invalid freebsd version selection 2021-12-05 17:37:45 +01:00
Mek101 6b0dc21ea9 Removed endianess conditionals on mips ioctl 2021-12-05 14:31:41 +01:00
Mek101 b1a407a993 Fix ioctl constants on mips little-endian 2021-12-05 10:40:28 +01:00
Mek101 73dfee3c58 Fix ioctl constants on mips big-endian 2021-12-04 23:00:15 +01:00
Mek101 61a6b27ff0 Fix ioctl constants on PowerPC 2021-12-04 22:23:41 +01:00
Mek101 62f9f5f8dd Endian dependent ioctl constants on PowerPC 2021-12-04 21:56:49 +01:00
Mek101 984309c76c Endian dependent ioctl constants on mips 2021-12-04 17:53:01 +01:00
bors 7f8d244223 Auto merge of #2578 - GuillaumeGomez:upgrade, r=Amanieu
Upgrade crate version to 0.2.109

r? `@Amanieu`
2021-12-04 14:16:58 +00:00
David Carlier 0e82ece4eb netbsd adding few more ptrace queries types. 2021-12-04 12:43:23 +00:00
David CARLIER 75dad067bf freebsd 14 adding linux sched api compatibility fn. 2021-12-04 08:59:30 +00:00
bors e497f18d63 Auto merge of #2575 - sunfishcode:sunfishcode/wasi-getcwd, r=Amanieu
Update to the latest released wasi-libc and declare `getcwd`/`chdir`

Update to the latest version of wasi-libc which corresponds to the
version in the wasi-sdk 14.0 release.

And, add declarations for `getcwd` and `chdir`, which are now provided
by wasi-libc.
2021-12-04 02:36:48 +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 9db545f59d Upgrade crate version to 0.2.109 2021-12-03 20:07:36 +01:00
bors 92b4680442 Auto merge of #2565 - GuillaumeGomez:procstat, r=Amanieu
Add devstat items
2021-12-03 17:55:13 +00:00
Guillaume Gomez ac6e16b90f Add devstat items 2021-12-03 18:02:08 +01:00
bors 8bcd37dcba Auto merge of #2577 - sunfishcode:sunfishcode/wasi-max-align-t, r=Amanieu
Define max_align_t for wasi.

WASI has a normal max_align_t.
2021-12-03 16:43:55 +00:00
Dan Gohman 21f56751b2 Add #[allow(missing_debug_implementations)] to WASI's max_align_t. 2021-12-03 08:42:55 -08:00
Dan Gohman 76f88e91cf Define max_align_t for wasi.
WASI has a normal max_align_t.
2021-12-03 06:52:30 -08:00
Mek101 733b5a80e1 Add more linux ioctl constansts: BLKSSZGET and BLKPBSZGET 2021-12-03 12:14:59 +01:00
Dan Gohman 5e5cf2c181 Update to the latest released wasi-libc and declare getcwd/chdir
Update to the latest version of wasi-libc which corresponds to the
version in the wasi-sdk 14.0 release.

And, add declarations for `getcwd` and `chdir`, which are now provided
by wasi-libc.
2021-12-02 08:03:10 -08:00
Guillaume Gomez ddc070ccf6 Update ctest2 dependency 2021-12-01 22:54:51 +01:00
bors bc30b21e82 Auto merge of #2574 - devnexen:fbsd_14_pt_coredump, r=Amanieu
ptrace_coredump ptrace query addition for FreeBSD 14.
2021-12-01 20:38:39 +00:00
David CARLIER d2e88fd0e3 ptrace_coredump ptrace query addition for FreeBSD 14. 2021-12-01 20:32:29 +00:00
bors 22ebc1f352 Auto merge of #2572 - GuillaumeGomez:mount-items, r=Amanieu
Add missing FreeBSD mount items
2021-12-01 00:48:50 +00:00
Guillaume Gomez 343db850c8 Add missing FreeBSD mount items 2021-11-30 15:00:48 +01:00
bors bb5b8efb42 Auto merge of #2571 - devnexen:bsd_syms, r=Amanieu
haiku adding couple more BSD extensions.
2021-11-28 10:27:45 +00:00
David CARLIER e44a1f09a8 haiku adding couple more BSD extensions. 2021-11-27 14:03:28 +00:00
Tobias Kortkamp 20f976ee4e
Add riscv64-unknown-freebsd support 2021-11-27 07:31:00 +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
bors 89ead986ac Auto merge of #2561 - GuillaumeGomez:procstat-items, r=JohnTitor
Add missing procstat items for FreeBSD
2021-11-24 08:47:31 +00:00
bors c632da12bb Auto merge of #2554 - devnexen:haiku_explicit_bzero, r=JohnTitor
haiku add handful BSD fn.
2021-11-24 06:44:45 +00:00
bors 6856cf8686 Auto merge of #2563 - Minoru:bugfix/fix-doc-comment, r=Amanieu
Fix doc comment on FreeBSD `kinfo_proc`

Cf. https://github.com/rust-lang/libc/pull/2552#discussion_r754229773
2021-11-24 00:03:29 +00:00
Guillaume Gomez 4297ec1832 Add missing procstat items for FreeBSD 2021-11-23 10:00:39 +01:00
bors 57b1d921a0 Auto merge of #2566 - skrap:master, r=Amanieu
memfd_create is a glibc API, which is not present on uclibc

I think the title says it all!  The `armv7-unknown-linux-uclibceabihf` tier-3 target does not build without this change, and I suspect all other uclibc builds are broken as well.

It's a good reminder to try to add some CI validation of the uclibc build, which I will try to do in a followup PR.

To test this, get and unpack https://toolchains.bootlin.com/downloads/releases/toolchains/armv7-eabihf/tarballs/armv7-eabihf--uclibc--bleeding-edge-2020.08-1.tar.bz2

Note instances of `PATH_HERE` below which you'll have to customize for your system.

config.toml:
```
[target.armv7-unknown-linux-uclibceabihf]
linker = "/PATH_HERE/buildroot-armv7/output/host/usr/bin/arm-buildroot-linux-uclibcgnueabihf-gcc"
runner = "qemu-arm -L /PATH_HERE/armv7-eabihf--uclibc--bleeding-edge-2020.08-1/arm-buildroot-linux-uclibcgnueabihf/sysroot/"
```

Then run:
```
cd libc-test
CC_armv7_unknown_linux_uclibceabihf=/PATH_HERE/armv7-eabihf--uclibc--bleeding-edge-2020.08-1/bin/arm-buildroot-linux-uclibcgnueabihf-gcc cargo +nightly test -Zbuild-std --target armv7-unknown-linux-uclibceabihf
```

(if there's a way to include that `CC_armv7_etc` cross CC in the config.toml, I'm all ears!)
2021-11-23 07:19:52 +00:00