authorgravatar for koachan@protonmail.comKoakuma <koachan@protonmail.com> 2020-10-24 15:52:10+07:00
committergravatar for koachan@protonmail.comKoakuma <koachan@protonmail.com> 2020-10-24 20:04:18+07:00
log268516d5d90cfb183a4986e7e04b05b41c3dd1e0
tree8597f03c1f445aaef5103d6b70e8a8b031664499
parent238f253de95aef0afe6c245dbbf4ef75dc616cc2

Fix constants


1 files changed, 29 insertions(+), 34 deletions(-)

lib/std/os/bits/linux/sparc64.zig+29-34
...@@ -389,26 +389,26 @@ pub const SYS = extern enum(usize) {...@@ -389,26 +389,26 @@ pub const SYS = extern enum(usize) {
389 _,389 _,
390};390};
391391
392pub const O_CREAT = 0o100;392pub const O_CREAT = 0x200;
393pub const O_EXCL = 0o200;393pub const O_EXCL = 0x800;
394pub const O_NOCTTY = 0o400;394pub const O_NOCTTY = 0x8000;
395pub const O_TRUNC = 0o1000;395pub const O_TRUNC = 0x400;
396pub const O_APPEND = 0o2000;396pub const O_APPEND = 0x8;
397pub const O_NONBLOCK = 0o4000;397pub const O_NONBLOCK = 0x4000;
398pub const O_DSYNC = 0o10000;398pub const O_SYNC = 0x802000;
399pub const O_SYNC = 0o4010000;399pub const O_DSYNC = 0x2000;
400pub const O_RSYNC = 0o4010000;400pub const O_RSYNC = O_SYNC;
401pub const O_DIRECTORY = 0o200000;401pub const O_DIRECTORY = 0x10000;
402pub const O_NOFOLLOW = 0o400000;402pub const O_NOFOLLOW = 0x20000;
403pub const O_CLOEXEC = 0o2000000;403pub const O_CLOEXEC = 0x400000;
404404
405pub const O_ASYNC = 0o20000;405pub const O_ASYNC = 0x40;
406pub const O_DIRECT = 0o40000;406pub const O_DIRECT = 0x100000;
407pub const O_LARGEFILE = 0o100000;407pub const O_LARGEFILE = 0;
408pub const O_NOATIME = 0o1000000;408pub const O_NOATIME = 0x200000;
409pub const O_PATH = 0o10000000;409pub const O_PATH = 0x1000000;
410pub const O_TMPFILE = 0o20200000;410pub const O_TMPFILE = 0x2010000;
411pub const O_NDELAY = O_NONBLOCK;411pub const O_NDELAY = O_NONBLOCK | 0x4;
412412
413pub const F_DUPFD = 0;413pub const F_DUPFD = 0;
414pub const F_GETFD = 1;414pub const F_GETFD = 1;
...@@ -416,18 +416,15 @@ pub const F_SETFD = 2;...@@ -416,18 +416,15 @@ pub const F_SETFD = 2;
416pub const F_GETFL = 3;416pub const F_GETFL = 3;
417pub const F_SETFL = 4;417pub const F_SETFL = 4;
418418
419pub const F_SETOWN = 8;419pub const F_SETOWN = 5;
420pub const F_GETOWN = 9;420pub const F_GETOWN = 6;
421pub const F_SETSIG = 10;421pub const F_GETLK = 7;
422pub const F_GETSIG = 11;422pub const F_SETLK = 8;
423pub const F_SETLKW = 9;
423424
424pub const F_RDLCK = 0;425pub const F_RDLCK = 1;
425pub const F_WRLCK = 1;426pub const F_WRLCK = 2;
426pub const F_UNLCK = 2;427pub const F_UNLCK = 3;
427
428pub const F_GETLK = 5;
429pub const F_SETLK = 6;
430pub const F_SETLKW = 7;
431428
432pub const F_SETOWN_EX = 15;429pub const F_SETOWN_EX = 15;
433pub const F_GETOWN_EX = 16;430pub const F_GETOWN_EX = 16;
...@@ -436,8 +433,8 @@ pub const F_GETOWNER_UIDS = 17;...@@ -436,8 +433,8 @@ pub const F_GETOWNER_UIDS = 17;
436433
437pub const LOCK_SH = 1;434pub const LOCK_SH = 1;
438pub const LOCK_EX = 2;435pub const LOCK_EX = 2;
439pub const LOCK_UN = 8;
440pub const LOCK_NB = 4;436pub const LOCK_NB = 4;
437pub const LOCK_UN = 8;
441438
442/// stack-like segment439/// stack-like segment
443pub const MAP_GROWSDOWN = 0x0200;440pub const MAP_GROWSDOWN = 0x0200;
...@@ -457,8 +454,6 @@ pub const MAP_NORESERVE = 0x0040;...@@ -457,8 +454,6 @@ pub const MAP_NORESERVE = 0x0040;
457pub const VDSO_CGT_SYM = "__vdso_clock_gettime";454pub const VDSO_CGT_SYM = "__vdso_clock_gettime";
458pub const VDSO_CGT_VER = "LINUX_2.6";455pub const VDSO_CGT_VER = "LINUX_2.6";
459456
460// TODO do this
461
462pub const Flock = extern struct {457pub const Flock = extern struct {
463 l_type: i16,458 l_type: i16,
464 l_whence: i16,459 l_whence: i16,