Commit graph

5508 commits

Author SHA1 Message Date
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
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
Guillaume Gomez 182de294bd Upgrade crate version to 0.2.108 2021-11-16 10:06:08 +01:00
bors a8d7606a02 Auto merge of #2539 - JohnTitor:suggest-mach2-instead, r=JohnTitor
Suggest the `mach2` crate instead

cc #2286
r? `@ghost`
2021-11-16 03:26:53 +00:00
Yuki Okushi efc0a9eb9c
Suggest the mach2 crate instead 2021-11-16 09:46:34 +09:00
bors 69b86ab012 Auto merge of #2529 - devnexen:fbsd_vmtotal, r=JohnTitor
freebsd add vmtotal sysctl query
2021-11-16 00:08:46 +00:00
bors 3e36a07c8b Auto merge of #2534 - devnexen:haiku_dl_phdr, r=JohnTitor
haiku dl_phdr_iterate addition (supports since beta3).
2021-11-15 22:52:35 +00:00
bors f789339655 Auto merge of #2536 - GuillaumeGomez:freebsd-consts, r=Amanieu
Add more FreeBSD consts
2021-11-15 21:02:45 +00:00
David CARLIER 5bd59f790f haiku dl_phdr_iterate addition (supports since beta3). 2021-11-15 20:09:04 +00:00
bors 9742c75787 Auto merge of #2533 - devnexen:win32_stdio_more, r=JohnTitor
windows add printf/fprintf

close #2241
2021-11-15 17:59:26 +00:00
David Carlier 8bcbec216d freebsd add vmtotal sysctl query 2021-11-15 17:49:39 +00:00
bors 4f74e6eb8f Auto merge of #2530 - de-vri-es:tty-cleanup, r=JohnTitor
Move more ioctl constants and flags to linux::arch::* modules.

This PR moves a few things to `linux::arch::*` modules and out of libc specific modules. Specifically, it:
* Moves the `TIOCM*` ioclt constants and associated flags.
* Moves the `BOTHER` flag.
* Adds the `IBSHIFT` flag.

Without this PR, there are some arch+libc combinations that are missing some of these constants. Since these are all ioctl numbers or arguments to ioctls, they are not specific to any libc flavour. `BOTHER` and `IBSHIFT` don't even appear in glibc or musl headers.
2021-11-15 15:54:45 +00:00
Guillaume Gomez e01c512482 Add more FreeBSD consts 2021-11-15 16:54:32 +01:00
Maarten de Vries 3fa2809e43 Add IBSHIFT constant for Linux and Android. 2021-11-14 00:20:58 +01:00
Maarten de Vries 3643f01db4 Move BOTHER flag to linux::arch::* 2021-11-14 00:19:18 +01:00
bors b5a6e4b919 Auto merge of #2532 - devnexen:linux_ctermid, r=Amanieu
linux/android ctermid addition.

close #1928
2021-11-13 15:02:23 +00:00
David Carlier afc6eb54dd linux ctermid addition.
close #1928
2021-11-13 15:01:35 +00:00
David Carlier 8c531bf6d4 windows add printf/fprintf
close #2241
2021-11-13 11:19:06 +00:00