Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Change branch references to HEAD where possible or main otherwise | Josh Triplett | 2023-05-15 | 1 | -1/+1 |
| | | | | | | | 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. | ||||
* | Constify `CMSG_LEN` for all targets. | John Millikin | 2023-05-08 | 1 | -1/+1 |
| | |||||
* | Auto merge of #2999 - SteveLauC:major/minor-on-BSDs, r=JohnTitor | bors | 2023-05-06 | 1 | -0/+11 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/illumos | Steve Lau | 2023-05-06 | 1 | -0/+11 |
| | | |||||
* | | Clean up some `extern`s | Yuki Okushi | 2023-04-23 | 1 | -24/+22 |
| | | | | | | | | Signed-off-by: Yuki Okushi <jtitor@2k36.org> | ||||
* | | Auto merge of #3040 - 0-wiz-0:netbsd, r=JohnTitor | bors | 2023-04-22 | 1 | -1/+9 |
|\ \ | |/ |/| | | | | | | | NetBSD: add two more errno values available in NetBSD-current since 2020 | ||||
| * | netbsd add deprecation warning for ELAST | Thomas Klausner | 2023-04-21 | 1 | -0/+6 |
| | | | | | | | | Requested in #3040 | ||||
| * | netbsd add two more errnos | Thomas Klausner | 2022-12-19 | 1 | -1/+3 |
| | | | | | | | | available in NetBSD-current since 2020 | ||||
* | | netbsd,openbsd: add more waitid related constants | Val Packett | 2023-04-06 | 1 | -0/+5 |
| | | |||||
* | | netbsd add MAP_ALIGNED macro | David Carlier | 2023-04-04 | 1 | -0/+13 |
| | | |||||
* | | Add missing kqueue constants across BSDs | Val Packett | 2023-03-29 | 1 | -0/+7 |
| | | | | | | | | While here, reorder some to match the C headers | ||||
* | | netbsd tcp_info data addition. | David Carlier | 2023-02-10 | 1 | -0/+43 |
| | | |||||
* | | Auto merge of #3083 - devnexen:netbsd10_pollapi_update, r=JohnTitor | bors | 2023-01-25 | 1 | -1/+6 |
|\ \ | | | | | | | | | | netbsd 10 add ppoll api support | ||||
| * | | netbsd 10 add ppoll api support | David Carlier | 2023-01-22 | 1 | -1/+6 |
| | | | |||||
* | | | netbsd 10 event api update. | David Carlier | 2023-01-21 | 1 | -0/+8 |
|/ / | |||||
* | | netbsd 10 adding getentropy/getrandom. | David Carlier | 2023-01-17 | 1 | -0/+6 |
|/ | |||||
* | add extattr_list_xxx() on NetBSD | Steve Lau | 2022-11-03 | 1 | -0/+18 |
| | |||||
* | add extended attributes constants on NetBSD | Steve Lau | 2022-11-02 | 1 | -0/+6 |
| | |||||
* | Style fixes, and filter out duplicate definitions | Alan Somers | 2022-10-22 | 1 | -1/+1 |
| | |||||
* | Add more MNT_ flags on {Dragonfly,Net,Open}BSD | Alan Somers | 2022-10-22 | 1 | -0/+17 |
| | |||||
* | netbsd mcontext x86_64 constants. | David Carlier | 2022-09-17 | 1 | -0/+27 |
| | |||||
* | Add makedev for the BSDs | Alan Somers | 2022-09-07 | 1 | -0/+10 |
| | | | | | | | | | | | Also, make makedev function safe and const on all platforms. On Android, change the arguments from signed to unsigned integers to match the other platforms. The C makedev is a macro, so the signededness is undefined. Add an integration test for makedev, too, since it's a macro that we must reimplement. | ||||
* | Fix the type of file flags on OpenBSD | Alan Somers | 2022-07-10 | 1 | -1/+10 |
| | | | | | In C they're defined as macros, but since they're used with chflags(2) they should have the same type as that function's flags argument. | ||||
* | Remove rumprun-related code | Yuki Okushi | 2022-06-19 | 1 | -4/+1 |
| | | | | Signed-off-by: Yuki Okushi <jtitor@2k36.org> | ||||
* | Add NetBSD ki_sigset_t, kinfo_proc2, and kinfo_lwp structs | Thomas Hurst | 2022-05-17 | 1 | -0/+144 |
| | |||||
* | openbsd: constantify some arguments of openpty() and forkpty() | Sébastien Marie | 2022-04-30 | 1 | -0/+14 |
| | | | | | OpenBSD recently made termp and winp arguments of openpty() and forkpty() const. to match the prototypes in glibc and musl libc. | ||||
* | Add NetBSD's FUTEX_* constants. | Mara Bos | 2022-04-19 | 1 | -0/+23 |
| | |||||
* | Expose more thread bindings for NetBSD-like OSes. | Victor Polevoy | 2022-04-01 | 1 | -7/+3 |
| | |||||
* | bsd sched api update | David CARLIER | 2022-02-05 | 1 | -0/+1 |
| | |||||
* | netbsd add ifconf data | David Carlier | 2022-01-24 | 1 | -0/+51 |
| | |||||
* | netbsd add PROT_MPROTECT macros. | David Carlier | 2022-01-15 | 1 | -0/+8 |
| | |||||
* | NetBSD: add definition for execvpe | Benny Siegert | 2022-01-01 | 1 | -0/+6 |
| | | | | | This is exactly the same as the OpenBSD definition. NetBSD has had execvpe since the beginning, AFAICS. | ||||
* | fcntl updates for DragonFlyBSD and NetBSD | David Carlier | 2021-12-21 | 1 | -0/+1 |
| | |||||
* | netbsd adding few more ptrace queries types. | David Carlier | 2021-12-04 | 1 | -0/+21 |
| | |||||
* | netbsd add sysctldesc query. | David Carlier | 2021-11-17 | 1 | -0/+7 |
| | |||||
* | netbsd add uucred struct | David Carlier | 2021-11-08 | 1 | -0/+10 |
| | |||||
* | Auto merge of #2514 - devnexen:netbsd_xattr_api, r=Amanieu | bors | 2021-11-06 | 1 | -0/+44 |
|\ | | | | | | | netbsd ext attrs api addition | ||||
| * | netbsd ext attrs api addition | David Carlier | 2021-11-05 | 1 | -0/+44 |
| | | |||||
* | | netbsd add MAP_ALIGNED aliases | David Carlier | 2021-11-06 | 1 | -0/+9 |
|/ | |||||
* | netbsd libutil update | David Carlier | 2021-11-04 | 1 | -0/+13 |
| | |||||
* | netbsd/openbsd add AI_* constants | David Carlier | 2021-10-31 | 1 | -0/+7 |
| | |||||
* | Auto merge of #2492 - devnexen:netbsd_lwpinfo, r=JohnTitor | bors | 2021-10-30 | 1 | -0/+14 |
|\ | | | | | | | netbsd ptrace sig/lwpinfo additions | ||||
| * | netbsd ptrace sig/lwpinfo additions | David Carlier | 2021-10-30 | 1 | -0/+14 |
| | | |||||
* | | netbsd add missing posix_spawn constants. | David Carlier | 2021-10-17 | 1 | -0/+8 |
|/ | |||||
* | netbsd add posix_spawn api. | David Carlier | 2021-10-13 | 1 | -0/+159 |
| | |||||
* | netbsd/openbsd add get thread name api. | David Carlier | 2021-09-25 | 1 | -0/+1 |
| | |||||
* | netbsd aff timer api | David Carlier | 2021-09-24 | 1 | -0/+21 |
| | |||||
* | Auto merge of #2412 - devnexen:netbsd_pollts, r=JohnTitor | bors | 2021-09-24 | 1 | -0/+8 |
|\ | | | | | | | netbsd add pollts fn. | ||||
| * | netbsd add pollts fn. | David Carlier | 2021-09-20 | 1 | -0/+8 |
| | | |||||
* | | BSD add utrace calls | David Carlier | 2021-09-19 | 1 | -0/+1 |
|/ |