@@ -2528,6 +2528,8 @@ pub const _SC = if (builtin.abi.isAndroid()) enum(c_int) {
25282528 .solaris , .illumos = > enum (c_int ) {
25292529 PAGESIZE = 11 ,
25302530 NPROCESSORS_ONLN = 15 ,
2531+ SIGRT_MIN = 40 ,
2532+ SIGRT_MAX = 41 ,
25312533 },
25322534 // https://github.com/SerenityOS/serenity/blob/1dfc9e2df39dd23f1de92530677c845aae4345f2/Kernel/API/POSIX/unistd.h#L36-L52
25332535 .serenity = > enum (c_int ) {
@@ -5776,6 +5778,20 @@ pub const MSG = switch (native_os) {
57765778 pub const FBLOCKING = 0x10000 ;
57775779 pub const FNONBLOCKING = 0x20000 ;
57785780 },
5781+ .solaris , .illumos = > struct {
5782+ pub const OOB = 0x0001 ;
5783+ pub const PEEK = 0x0002 ;
5784+ pub const DONTROUTE = 0x0004 ;
5785+ pub const EOR = 0x0008 ;
5786+ pub const CTRUNC = 0x0010 ;
5787+ pub const TRUNC = 0x0020 ;
5788+ pub const WAITALL = 0x0040 ;
5789+ pub const DONTWAIT = 0x0080 ;
5790+ pub const NOTIFICATION = 0x0100 ;
5791+ pub const NOSIGNAL = 0x0200 ;
5792+ pub const CMSG_CLOEXEC = 0x1000 ;
5793+ pub const CMSG_CLOFORK = 0x2000 ;
5794+ },
57795795 else = > void ,
57805796};
57815797pub const SOCK = switch (native_os ) {
@@ -10298,7 +10314,7 @@ pub extern "c" fn setrlimit64(resource: rlimit_resource, rlim: *const rlimit) c_
1029810314
1029910315pub const arc4random_buf = switch (native_os ) {
1030010316 .linux = > if (builtin .abi .isAndroid ()) private .arc4random_buf else {},
10301- .dragonfly , .netbsd , .freebsd , .solaris , .openbsd , .serenity , .macos , .ios , .tvos , .watchos , .visionos = > private .arc4random_buf ,
10317+ .dragonfly , .netbsd , .freebsd , .solaris , .illumos , . openbsd , .serenity , .macos , .ios , .tvos , .watchos , .visionos = > private .arc4random_buf ,
1030210318 else = > {},
1030310319};
1030410320pub const getentropy = switch (native_os ) {
@@ -10475,6 +10491,7 @@ pub fn sigrtmin() u8 {
1047510491 return switch (native_os ) {
1047610492 .freebsd = > 65 ,
1047710493 .netbsd = > 33 ,
10494+ .solaris , .illumos = > @truncate (sysconf (@intFromEnum (_SC .SIGRT_MIN ))),
1047810495 else = > @truncate (@as (c_uint , @bitCast (private .__libc_current_sigrtmin ()))),
1047910496 };
1048010497}
@@ -10484,6 +10501,7 @@ pub fn sigrtmax() u8 {
1048410501 return switch (native_os ) {
1048510502 .freebsd = > 126 ,
1048610503 .netbsd = > 63 ,
10504+ .solaris , .illumos = > @truncate (sysconf (@intFromEnum (_SC .SIGRT_MAX ))),
1048710505 else = > @truncate (@as (c_uint , @bitCast (private .__libc_current_sigrtmax ()))),
1048810506 };
1048910507}
0 commit comments