summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Auto merge of #3137 - nekopsykose:s390x-statfs, r=AmanieuHEADmainauto-libcbors2023-05-181-12/+12
|\ | | | | | | | | | | | | | | | | | | | | linux/musl/s390x: change f_* constants to uint from ulong musl defines these as `unsigned`, not `unsigned long` https://github.com/bminor/musl/blob/7d756e1c04de6eb3f2b3d3e1141a218bb329fcfb/arch/s390x/bits/statfs.h#L2 mostly relevant to also fixing https://github.com/nix-rust/nix/pull/1835 that said, i don't know if this is a huge breaking change or not, only that the current one isn't correct afaict
| * linux/musl/s390x: change f_* types to uint from ulongpsykose2023-05-141-12/+12
| | | | | | | | | | musl defines these as `unsigned`, not `unsigned long` https://github.com/bminor/musl/blob/7d756e1c04de6eb3f2b3d3e1141a218bb329fcfb/arch/s390x/bits/statfs.h#L2
* | Auto merge of #3249 - joshtriplett:switch-to-main, r=Amanieubors2023-05-1516-40/+38
|\ \ | |/ |/| | | | | | | | | | | | | | | | | Change branch references to HEAD where possible or main otherwise 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. I verified that all modified links still work.
| * Change branch references to HEAD where possible or main otherwiseJosh Triplett2023-05-1516-40/+38
|/ | | | | | | 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.
* Merge pull request #3247 from marcelbuesing/canxlmasterJosh Triplett2023-05-144-1/+63
|\ | | | | Add linux canxl constants and canxl frame struct
| * Skip canxl_frame structmarcelbuesing2023-05-141-0/+2
| |
| * Skip canxl constantsmarcelbuesing2023-05-141-1/+16
| |
| * Add CAN_RAW_XL_FRAMES socket optionmarcelbuesing2023-05-122-0/+2
| |
| * Add linux canxl constants and canxl frame structmarcelbuesing2023-05-123-0/+43
| |
* | Auto merge of #3246 - loongarch-rs:fix-loongarch, r=JohnTitorbors2023-05-134-5/+168
|\ \ | | | | | | | | | | | | | | | | | | | | | Fix loongarch64 bindings This PR aims to fix the LoongArch64 bindings and incorporate tests for LoongArch. - libc-test: PASSED
| * | Add tests for loongarch64WANG Rui2023-05-122-0/+142
| | |
| * | Fix loongarch64 bindingsWANG Rui2023-05-122-5/+26
| |/
* | Auto merge of #3245 - emilengler:musl-sysemu, r=JohnTitorbors2023-05-125-0/+15
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Support for `PTRACE_SYSEMU` and `PTRACE_SYSEMU_SINGLESTEP` on musl This adds support for the `PTRACE_SYSEMU` and `PTRACE_SYSEMU_SINGLESTEP` on certain musl architectures. I grabbed these constants by doing a `git grep -rnI PTRACE_SYSEMU` in the musl repository and got a list of certain architecture directories. See #1774 By the way: I am not sure if I should have added support for that many architectures, just because musl supports them. After all, the corresponding glibc only supports `x86(_64)` anyway.
| * | s930x-musl: support the PTRACE_SYSEMU familyEmil Engler2023-05-111-0/+3
| | |
| * | powerpc64-musl: support the PTRACE_SYSEMU familyEmil Engler2023-05-111-0/+3
| | |
| * | powerpc-musl: support the PTRACE_SYSEMU familyEmil Engler2023-05-111-0/+3
| | |
| * | x86-musl: support the PTRACE_SYSEMU familyEmil Engler2023-05-111-0/+3
| | |
| * | x86_64-musl: support the PTRACE_SYSEMU familyEmil Engler2023-05-111-0/+3
| |/
* | Auto merge of #3244 - devnexen:redox__sigtimedwait, r=JohnTitorbors2023-05-122-0/+8
|\ \ | |/ |/| | | redox add sig(timed)wait calls
| * redox add sig(timed)wait callsDavid Carlier2023-05-102-0/+8
|/
* Auto merge of #3239 - GuillaumeGomez:update, r=JohnTitor0.2.144bors2023-05-082-3/+3
|\ | | | | | | | | | | | | | | Update crate version to 0.2.144 Please make a new release so I can use the new constants I added for macOS. :) r? `@Amanieu`
| * Update crate version to 0.2.144Guillaume Gomez2023-05-082-3/+3
| |
* | Auto merge of #3241 - jmillikin:cmsg-macros-const-usize, r=JohnTitorbors2023-05-0812-12/+12
|\ \ | | | | | | | | | Constify `CMSG_LEN` for all targets.
| * | Constify `CMSG_LEN` for all targets.John Millikin2023-05-0812-12/+12
|/ /
* | Auto merge of #3238 - valpackett:bsd, r=JohnTitorbors2023-05-079-1/+119
|\ \ | |/ |/| | | more bsd things: kenv, setlogin, reboot, SCM_ constants
| * freebsd: add missing SCM_ constantsVal Packett2023-05-072-1/+10
| |
| * freebsdlike: add rebootVal Packett2023-05-076-0/+71
| |
| * bsd: add setloginVal Packett2023-05-075-0/+5
| |
| * freebsdlike: add kenvVal Packett2023-05-075-0/+33
|/
* Auto merge of #3233 - GuillaumeGomez:proc-darwin, r=Amanieubors2023-05-061-0/+12
|\ | | | | | | | | | | Add missing <proc.h> constants for darwin I need these values for the `sysinfo` crate.
| * Add missing <proc.h> constants for darwinGuillaume Gomez2023-05-051-0/+12
| |
* | Auto merge of #3236 - JohnTitor:release-0.2.143, r=JohnTitor0.2.143bors2023-05-062-3/+3
|\ \ | | | | | | | | | | | | | | | Release 0.2.143 Fixes #3234
| * | Release 0.2.143Yuki Okushi2023-05-062-3/+3
| |/ | | | | | | Signed-off-by: Yuki Okushi <jtitor@2k36.org>
* | Auto merge of #2999 - SteveLauC:major/minor-on-BSDs, r=JohnTitorbors2023-05-069-0/+91
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 major/minor on BSDs/illumosSteve Lau2023-05-069-0/+91
| | |
* | | Auto merge of #3051 - tones111:rtnl_if_enum, r=JohnTitorbors2023-05-063-0/+26
|\ \ \ | | | | | | | | | | | | linux: add rtnetlink ifinfomsg attribute enumerals
| * | | linux: add rtnetlink ifinfomsg attribute enumeralsPaul Sbarra2023-04-213-0/+26
| | | |
* | | | Auto merge of #3237 - loongarch-rs:loongarch64, r=JohnTitorbors2023-05-061-2/+4
|\ \ \ \ | | | | | | | | | | | | | | | linux_like: Add missing constants for loongarch64
| * | | | linux_like: Add missing constants for loongarch64WANG Rui2023-05-061-2/+4
| | |_|/ | |/| |
* | | | Auto merge of #3206 - roblabla:rtmsghdr-apple, r=JohnTitorbors2023-05-061-0/+74
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | | | Add PF_ROUTE structures on Apple systemsroblabla2023-04-251-0/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | Auto merge of #3224 - stevenengler:wait-for-one, r=JohnTitorbors2023-05-064-0/+5
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | | | Removed `MSG_WAITFORONE` from illumosSteven Engler2023-04-251-2/+0
| | | | | |
| * | | | | Added `MSG_WAITFORONE` to freebsd, openbsd, and illumosSteven Engler2023-04-255-0/+7
| | | | | |
* | | | | | Auto merge of #3231 - devnexen:fbsd_procctl_x8664, r=JohnTitorbors2023-05-061-0/+7
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | | | | | | | | freebsd add few more procctl x86_64 constants.
| * | | | | freebsd add few more procctl x86_64 constants.David CARLIER2023-04-281-0/+7
| | | | | |
* | | | | | Auto merge of #3232 - devnexen:redox_poll_consts, r=JohnTitorbors2023-05-031-0/+4
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | redox add few more poll constants
| * | | | | | redox add few more poll constantsDavid Carlier2023-05-031-0/+4
|/ / / / / /
* | | | | | Auto merge of #3228 - redox-os:redox-pw, r=JohnTitorbors2023-05-012-2/+41
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | redox: add grp.h and pwd.h functions for the users crate
| * | | | | | redox: add grp.h and pwd.h functions for the users crateJeremy Soller2023-04-262-2/+41
| |/ / / / /