Skip to content

Commit a6c7091

Browse files
committed
Fix some s390x constants
1 parent cd2e87d commit a6c7091

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

src/unix/notbsd/linux/s390x.rs

+17-17
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ pub const SFD_CLOEXEC: ::c_int = 0x080000;
323323
pub const NCCS: usize = 32;
324324

325325
pub const O_TRUNC: ::c_int = 512;
326-
pub const O_LARGEFILE: ::c_int = 0o0100000;
326+
pub const O_LARGEFILE: ::c_int = 0;
327327
pub const O_NOATIME: ::c_int = 0o1000000;
328328
pub const O_CLOEXEC: ::c_int = 0x80000;
329329
pub const O_PATH: ::c_int = 0o10000000;
@@ -913,8 +913,8 @@ pub const ECHOPRT: ::tcflag_t = 0o002000;
913913
pub const ECHOKE: ::tcflag_t = 0o004000;
914914
pub const PENDIN: ::tcflag_t = 0o040000;
915915

916-
pub const POLLWRNORM: ::c_short = 0x004;
917-
pub const POLLWRBAND: ::c_short = 0x100;
916+
pub const POLLWRNORM: ::c_short = 0x100;
917+
pub const POLLWRBAND: ::c_short = 0x200;
918918

919919
pub const IXON: ::tcflag_t = 0o002000;
920920
pub const IXOFF: ::tcflag_t = 0o010000;
@@ -1219,20 +1219,20 @@ pub const SYS_mlock2: ::c_long = 374;
12191219
pub const SYS_copy_file_range: ::c_long = 375;
12201220
pub const SYS_preadv2: ::c_long = 376;
12211221
pub const SYS_pwritev2: ::c_long = 377;
1222-
pub const SYS_lchown: ::c_long = 16;
1223-
pub const SYS_setuid: ::c_long = 23;
1224-
pub const SYS_getuid: ::c_long = 24;
1225-
pub const SYS_setgid: ::c_long = 46;
1226-
pub const SYS_getgid: ::c_long = 47;
1227-
pub const SYS_geteuid: ::c_long = 49;
1228-
pub const SYS_setreuid: ::c_long = 70;
1229-
pub const SYS_setregid: ::c_long = 71;
1230-
pub const SYS_getrlimit: ::c_long = 76;
1231-
pub const SYS_getgroups: ::c_long = 80;
1232-
pub const SYS_fchown: ::c_long = 95;
1233-
pub const SYS_setresuid: ::c_long = 164;
1234-
pub const SYS_setresgid: ::c_long = 170;
1235-
pub const SYS_getresgid: ::c_long = 171;
1222+
pub const SYS_lchown: ::c_long = 198;
1223+
pub const SYS_setuid: ::c_long = 213;
1224+
pub const SYS_getuid: ::c_long = 199;
1225+
pub const SYS_setgid: ::c_long = 214;
1226+
pub const SYS_getgid: ::c_long = 200;
1227+
pub const SYS_geteuid: ::c_long = 201;
1228+
pub const SYS_setreuid: ::c_long = 203;
1229+
pub const SYS_setregid: ::c_long = 204;
1230+
pub const SYS_getrlimit: ::c_long = 191;
1231+
pub const SYS_getgroups: ::c_long = 205;
1232+
pub const SYS_fchown: ::c_long = 207;
1233+
pub const SYS_setresuid: ::c_long = 208;
1234+
pub const SYS_setresgid: ::c_long = 210;
1235+
pub const SYS_getresgid: ::c_long = 211;
12361236
pub const SYS_select: ::c_long = 142;
12371237
pub const SYS_getegid: ::c_long = 202;
12381238
pub const SYS_setgroups: ::c_long = 206;

0 commit comments

Comments
 (0)