| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
This updates CI, documentation, and similar to work with a `main`
branch. It also renames references to *other* repositories to work, as
well, which additionally makes it easier to search for remaining
references.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| |
| |
| |
| | |
Add missing <proc.h> constants for darwin
I need these values for the `sysinfo` crate.
|
| | |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
add major/minor on BSDs/illumos
This PR adds `major/minor` on BSDs and `major/minor/makedev` on illumos.
Ref:
* [FreeBSD 11](https://github.com/freebsd/freebsd-src/blob/3e9337c6b211e778829ed3af783cd41447a8721b/sys/sys/types.h#L372-L374)
```c
#define major(x) ((int)(((u_int)(x) >> 8)&0xff)) /* major number */
#define minor(x) ((int)((x)&0xffff00ff)) /* minor number */
```
* [FreeBSD 12/13/14](https://github.com/freebsd/freebsd-src/blob/3d98e253febf816e6e2aea7d3b1c013c421895de/sys/sys/types.h#L332-L341)
```c
static __inline int
__major(dev_t _d)
{
return (((_d >> 32) & 0xffffff00) | ((_d >> 8) & 0xff));
}
static __inline int
__minor(dev_t _d)
{
return (((_d >> 24) & 0xff00) | (_d & 0xffff00ff));
}
```
* [DragonFly](https://github.com/DragonFlyBSD/DragonFlyBSD/blob/d7a10f947f5344fc95e874ca3b83e9e8d0986b25/sys/sys/types.h#L170-L171)
```c
#define major(x) ((int)(((u_int)(x) >> 8)&0xff)) /* major number */
#define minor(x) ((int)((x)&0xffff00ff)) /* minor number */
```
* [NetBSD](https://github.com/NetBSD/src/blob/a25a6fec1b0a676fc5b36fa01b2990e775775d90/sys/sys/types.h#L264-L266)
```c
#define major(x) ((devmajor_t)(((uint32_t)(x) & 0x000fff00) >> 8))
#define minor(x) ((devminor_t)((((uint32_t)(x) & 0xfff00000) >> 12) | \
(((uint32_t)(x) & 0x000000ff) >> 0)))
```
* [OpenBSD](https://github.com/openbsd/src/blob/05cbc9aa8d8372e83274c75e35add6b8073c26f5/sys/sys/types.h#L211-L212)
```c
#define major(x) (((unsigned)(x) >> 8) & 0xff)
#define minor(x) ((unsigned)((x) & 0xff) | (((x) & 0xffff0000) >> 8))
```
* illumos:
1. [mkdev.c](https://github.com/illumos/illumos-gate/blob/8b26092d555bd1deaacf79ea64da374602aefb65/usr/src/lib/libc/port/gen/mkdev.c#L40-L146)
2. [mkdev.h](https://github.com/illumos/illumos-gate/blob/8b26092d555bd1deaacf79ea64da374602aefb65/usr/src/uts/common/sys/mkdev.h#L97-L99)
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Add PF_ROUTE-related structures on Apple systems
This commit adds the following structures from [net/route.h](https://github.com/roblabla/MacOSX-SDKs/blob/master/MacOSX13.3.sdk/usr/include/net/route.h):
- rt_msghdr
- rt_msghdr2
- rt_metrics
and the following structures from [net/if.h](https://github.com/roblabla/MacOSX-SDKs/blob/master/MacOSX13.3.sdk/usr/include/net/if.h):
- ifa_msghdr
- ifma_msghdr
- ifma_msghdr2
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This commit adds the following structures from net/route.h:
- rt_msghdr
- rt_msghdr2
- rt_metrics
and the following structures from net/if.h:
- ifa_msghdr
- ifma_msghdr
- ifma_msghdr2
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Add `MSG_WAITFORONE` to freebsd and openbsd
Adds `MSG_WAITFORONE` to freebsd, openbsd, and ~illumos~, as requested in https://github.com/nix-rust/nix/pull/2014.
I got the values from:
- freebsd: http://fxr.watson.org/fxr/source/sys/socket.h#L473
- openbsd: https://github.com/openbsd/src/blob/2852e11abfc574a216ce741308fb0c6968d9617a/sys/sys/socket.h#L512
- illumos: https://github.com/illumos/illumos-gate/blob/717646f7112314de3f464bc0b75f034f009c861e/usr/src/boot/sys/sys/socket.h#L434
This flag is also supposedly supported on [solaris](https://docs.oracle.com/cd/E88353_01/html/E37843/recvmmsg-3c.html), but I don't know how to find the value. If anyone knows what it is, I'll add it to the PR.
|
| | |_|/
| |/| | |
|
|/ / / |
|
|\ \ \
| | | |
| | | |
| | | | |
freebsd add elf_aux_info constants
|
| | |/
| |/| |
|
| | |
| | |
| | |
| | | |
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
|
|\ \ \
| |/ /
|/| |
| | |
| | |
| | | |
NetBSD: add two more errno values
available in NetBSD-current since 2020
|
| | |
| | |
| | |
| | | |
Requested in #3040
|
| | |
| | |
| | |
| | | |
available in NetBSD-current since 2020
|
| |/
|/|
| |
| | |
close #3196.
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
netbsd,openbsd: add more waitid related constants
`P_ALL`/`P_PID`/`WEXITED`/`WNOWAIT`/`WSTOPPED` in particular are what's required for rustix to support waitid and they were missing on OpenBSD; while here add NetBSD's custom ones.
ping `@semarie`
|
| | | |
|
|\ \ \
| |/ /
|/| |
| | | |
freebsd add MAP_ALIGNED macro
|
| | | |
|
|/ / |
|
| |
| |
| |
| | |
While here, reorder some to match the C headers
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
- src/unix/bsd/netbsdlike/openbsd/mod.rs: add CLOCK_* constants from
/usr/include/sys/_time.h
- libc-test/semver/openbsd.txt: update file for new constants CLOCK_*
Signed-off-by: Laurent Cheylus <foxy@free.fr>
|
| |
| |
| |
| | |
https://opensource.apple.com/source/libpthread/libpthread-137.1.1/pthread/spawn.h
|
| |
| |
| |
| |
| |
| |
| | |
pthread_get_name_np() and pthread_set_name_np() are now using a kernel storage
and could be viewed from outside the process.
Reference: https://github.com/openbsd/src/commit/cef5a146e600a27064f0ea2aa25fc5f8663cb9b7
|
| |
| |
| |
| |
| | |
They were added in https://reviews.freebsd.org/D30988 which landed for 13,
but as they're just aliases, they will work on any version.
|
| | |
|
|\ \
| | |
| | |
| | | |
freebsd further sctp support.
|
| | | |
|
| | | |
|
|/ / |
|
| | |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
FreeBSD: move all new ABI to base module, add more O_ flags
So according to #3023 all of that stuff didn't need to be hidden away in these conditionally built modules and we could've been exposing `eventfd`, `getrandom`, `getentropy`, `setproctitle_fast` etc. to crates.io consumers all this time…
While in the test file, clean up the mess in `skip_fn` :)
Other thing we need to expose is `O_PATH`, `O_RESOLVE_BENEATH` for crates like cap-std/openat. While here, add other open flags.
|
| | |
| | |
| | |
| | |
| | | |
According to #3023, new ABI did not need to be hidden away
under cfg(freebsdXX) flags, only changed ABI!
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | | |
netbsd tcp_info data addition.
|
| |/ / |
|
|/ / |
|
|\ \
| | |
| | |
| | | |
apple add pthread_stack_frame_decode_np
|
| | | |
|
|/ / |
|
| | |
|
|\ \
| | |
| | |
| | | |
pidfile util api for freebsd addition.
|