Commit graph

5376 commits

Author SHA1 Message Date
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
bors dd76900c5a Auto merge of #2556 - GuillaumeGomez:net-if, r=Amanieu
Add missing net/if.h and net/if_mib.h items
2021-11-23 06:08:48 +00:00
Jonah Petri 6e0c3be9d4 incorporate review feedback 2021-11-22 20:49:39 -05:00
Jonah Petri 4b68664c59 enable build for armv7-unknown-linux-uclibceabihf 2021-11-22 16:07:22 -05:00
Jonah Petri b18b8ebe45 memfd_create is a glibc API, which is not present on uclibc 2021-11-22 15:11:33 -05:00
Alexander Batischev 6bf0857e60
Fix doc comment on FreeBSD kinfo_proc
Cf. https://github.com/rust-lang/libc/pull/2552#discussion_r754229773
2021-11-22 16:19:09 +03: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
bors 82b85b70b1 Auto merge of #2558 - devnexen:haiku_unistd_bsd, r=Amanieu
haiku adding few BSD portability fn.
2021-11-21 22:38:00 +00:00
David CARLIER b70bf63b17 haiku adding few BSD portability fn. 2021-11-21 13:04:52 +00:00
David CARLIER 8b400a83c3 haiku add handful BSD fn. 2021-11-20 13:37:40 +00:00
bors 72cf1803b6 Auto merge of #2541 - GuillaumeGomez:upgrade, r=JohnTitor
Upgrade crate version to 0.2.108
2021-11-20 11:14:41 +00:00
bors 73320c5f91 Auto merge of #2549 - GuillaumeGomez:more-freebsd, r=JohnTitor
Add more items for FreeBSD
2021-11-19 23:24:41 +00:00
bors 1a4a999ca4 Auto merge of #2553 - devnexen:obsd_ptrace_state, r=Amanieu
couple of ptrace query for openbsd
2021-11-19 21:56:32 +00:00
David Carlier cd79a4af0a couple of ptrace query for openbsd 2021-11-19 18:12:08 +00:00
Guillaume Gomez 441f19576f Mark consts to be ignored depending on freebsd version 2021-11-19 11:42:40 +01:00
Guillaume Gomez e66a88c674 Integrate freebsd 14 as well 2021-11-19 10:45:45 +01:00
Guillaume Gomez 6499a3e956 Add missing consts from sys/sysctl.h 2021-11-19 10:44:27 +01:00
Guillaume Gomez 652abf1b85 Add sys/proc.h header into libc-test import list 2021-11-19 10:44:27 +01:00
Guillaume Gomez 5cb8ed1d95 Add more items for FreeBSD 2021-11-19 10:44:27 +01:00
bors 53dfd6f2dc Auto merge of #2552 - GuillaumeGomez:kinfo_proc-doc, r=JohnTitor
Add documentation for kinfo_proc fields

It makes it much easier considering the huge number of fields...
2021-11-19 03:21:04 +00:00
bors d429fc4e5d Auto merge of #2551 - devnexen:ctl_describe_query_netbsd, r=JohnTitor
netbsd add sysctldesc query.
2021-11-18 19:55:05 +00:00
Guillaume Gomez 0785135012 Add documentation for kinfo_proc fields 2021-11-18 20:08:29 +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
David Carlier 5f7cbfe769 netbsd add sysctldesc query. 2021-11-17 19:15:00 +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
bors 83ffbee75b Auto merge of #2537 - kanavin:add-riscv, r=Amanieu
Add base definitions for riscv64 + musl

This is picking up the stale MR that was closed for inactivity:
https://github.com/rust-lang/libc/pull/1994
2021-11-17 13:40:28 +00:00
Alexander Kanavin f699c8f000 riscv64/musl: remove unused definitions (fixup)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
2021-11-17 11:46:25 +01:00
Alexander Kanavin cb585ff6f2 ci/build.sh: add riscv64gc-unknown-linux-musl
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
2021-11-17 11:46:25 +01:00
Drew DeVault 9f7ae904a9 FIXUP Correct definitions to match musl 2021-11-17 11:46:25 +01:00
Drew DeVault f361ca4bf4 FIXUP: linux/musl/mod.rs: add riscv64 to b64 set 2021-11-17 11:46:25 +01:00
Drew DeVault d9a8675f6a Add base definitions for riscv64 + musl 2021-11-17 11:46:25 +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 38c0eaf87f
Properly declare a struct 2021-11-17 14:27:11 +09:00
Yuki Okushi 65b16d9424
Detect FreeBSD 14 2021-11-17 14:00:45 +09:00
Yuki Okushi 1f3e2ab7f6
Add FreeBSD 14 CI 2021-11-17 13:16:50 +09:00
bors 9d94fb14e0 Auto merge of #2544 - JohnTitor:tiocremote-missing, r=JohnTitor
Ignore `TIOCREMOTE` on macOS

r? `@ghost`
GHA macOS image updated to 20211114.1 which changed the default version of XCode to 13.1 thus we've encountered #2507.
2021-11-17 04:03:00 +00:00