From c55dfcf68c28b4d61e5032aca66d349a9dc81c3b Mon Sep 17 00:00:00 2001 From: Trevor Gross Date: Sat, 16 Nov 2024 22:18:17 -0600 Subject: [PATCH] Add diff indicators for POSIX_SPAWN_* type change These were changed in f62eb023ab ("Set type of POSIX_SPAWN_* flags to c_short"). PR: --- src/unix/aix/mod.rs | 1 + src/unix/bsd/apple/mod.rs | 1 + src/unix/bsd/freebsdlike/freebsd/mod.rs | 1 + src/unix/bsd/netbsdlike/mod.rs | 1 + src/unix/haiku/mod.rs | 2 ++ src/unix/linux_like/linux/mod.rs | 1 + src/unix/nto/mod.rs | 1 + 7 files changed, 8 insertions(+) diff --git a/src/unix/aix/mod.rs b/src/unix/aix/mod.rs index 2104403a1d453..58d606f6b45f9 100644 --- a/src/unix/aix/mod.rs +++ b/src/unix/aix/mod.rs @@ -1253,6 +1253,7 @@ pub const ENTER: ::c_int = 1; pub const SEM_FAILED: *mut sem_t = -1isize as *mut ::sem_t; // spawn.h +// DIFF(main): changed to `c_short` in f62eb023ab pub const POSIX_SPAWN_SETPGROUP: ::c_int = 0x1; pub const POSIX_SPAWN_SETSIGMASK: ::c_int = 0x2; pub const POSIX_SPAWN_SETSIGDEF: ::c_int = 0x4; diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs index d05691dd2dd68..aec1b03b53a94 100644 --- a/src/unix/bsd/apple/mod.rs +++ b/src/unix/bsd/apple/mod.rs @@ -5116,6 +5116,7 @@ pub const MNT_SNAPSHOT: ::c_int = 0x40000000; pub const MNT_NOBLOCK: ::c_int = 0x00020000; // sys/spawn.h: +// DIFF(main): changed to `c_short` in f62eb023ab pub const POSIX_SPAWN_RESETIDS: ::c_int = 0x0001; pub const POSIX_SPAWN_SETPGROUP: ::c_int = 0x0002; pub const POSIX_SPAWN_SETSIGDEF: ::c_int = 0x0004; diff --git a/src/unix/bsd/freebsdlike/freebsd/mod.rs b/src/unix/bsd/freebsdlike/freebsd/mod.rs index 5660fd154778c..4a02828c9a047 100644 --- a/src/unix/bsd/freebsdlike/freebsd/mod.rs +++ b/src/unix/bsd/freebsdlike/freebsd/mod.rs @@ -3988,6 +3988,7 @@ pub const RTP_PRIO_REALTIME: ::c_ushort = 2; pub const RTP_PRIO_NORMAL: ::c_ushort = 3; pub const RTP_PRIO_IDLE: ::c_ushort = 4; +// DIFF(main): changed to `c_short` in f62eb023ab pub const POSIX_SPAWN_RESETIDS: ::c_int = 0x01; pub const POSIX_SPAWN_SETPGROUP: ::c_int = 0x02; pub const POSIX_SPAWN_SETSCHEDPARAM: ::c_int = 0x04; diff --git a/src/unix/bsd/netbsdlike/mod.rs b/src/unix/bsd/netbsdlike/mod.rs index 2c0c8d540fed5..6bdaae48dcbfe 100644 --- a/src/unix/bsd/netbsdlike/mod.rs +++ b/src/unix/bsd/netbsdlike/mod.rs @@ -369,6 +369,7 @@ pub const POSIX_MADV_SEQUENTIAL: ::c_int = 2; pub const POSIX_MADV_WILLNEED: ::c_int = 3; pub const POSIX_MADV_DONTNEED: ::c_int = 4; +// DIFF(main): changed to `c_short` in f62eb023ab pub const POSIX_SPAWN_RESETIDS: ::c_int = 0x01; pub const POSIX_SPAWN_SETPGROUP: ::c_int = 0x02; pub const POSIX_SPAWN_SETSCHEDPARAM: ::c_int = 0x04; diff --git a/src/unix/haiku/mod.rs b/src/unix/haiku/mod.rs index 6f76ab26befd6..748196fe3ff8a 100644 --- a/src/unix/haiku/mod.rs +++ b/src/unix/haiku/mod.rs @@ -1100,6 +1100,7 @@ pub const SA_ONESHOT: ::c_int = SA_RESETHAND; pub const SS_ONSTACK: ::c_int = 0x1; pub const SS_DISABLE: ::c_int = 0x2; +// DIFF(main): changed to `c_int` in 500365e1 pub const FD_SETSIZE: usize = 1024; pub const RTLD_LOCAL: ::c_int = 0x0; @@ -1550,6 +1551,7 @@ pub const LOG_PERROR: ::c_int = 32 << 12; pub const LOG_NOWAIT: ::c_int = 64 << 12; // spawn.h +// DIFF(main): changed to `c_short` in f62eb023ab pub const POSIX_SPAWN_RESETIDS: ::c_int = 0x01; pub const POSIX_SPAWN_SETPGROUP: ::c_int = 0x02; pub const POSIX_SPAWN_SETSIGDEF: ::c_int = 0x10; diff --git a/src/unix/linux_like/linux/mod.rs b/src/unix/linux_like/linux/mod.rs index 5629fe0d0a608..aa7213f77ee70 100644 --- a/src/unix/linux_like/linux/mod.rs +++ b/src/unix/linux_like/linux/mod.rs @@ -3036,6 +3036,7 @@ pub const ETH_P_PHONET: ::c_int = 0x00F5; pub const ETH_P_IEEE802154: ::c_int = 0x00F6; pub const ETH_P_CAIF: ::c_int = 0x00F7; +// DIFF(main): changed to `c_short` in f62eb023ab pub const POSIX_SPAWN_RESETIDS: ::c_int = 0x01; pub const POSIX_SPAWN_SETPGROUP: ::c_int = 0x02; pub const POSIX_SPAWN_SETSIGDEF: ::c_int = 0x04; diff --git a/src/unix/nto/mod.rs b/src/unix/nto/mod.rs index eff3f8003bb45..1f87c7390cc0d 100644 --- a/src/unix/nto/mod.rs +++ b/src/unix/nto/mod.rs @@ -1609,6 +1609,7 @@ pub const ITIMER_REAL: ::c_int = 0; pub const ITIMER_VIRTUAL: ::c_int = 1; pub const ITIMER_PROF: ::c_int = 2; +// DIFF(main): changed to `c_short` in f62eb023ab pub const POSIX_SPAWN_RESETIDS: ::c_int = 0x00000010; pub const POSIX_SPAWN_SETPGROUP: ::c_int = 0x00000001; pub const POSIX_SPAWN_SETSIGDEF: ::c_int = 0x00000004;