Skip to content

Commit 5ab6269

Browse files
committed
Additional solaris fcntl values
1 parent 83d8c39 commit 5ab6269

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

src/unix/solarish/illumos.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ pub const TCP_KEEPCNT: ::c_int = 35;
2727
pub const TCP_KEEPINTVL: ::c_int = 36;
2828
pub const TCP_CONGESTION: ::c_int = 37;
2929

30+
pub const F_OFD_GETLK: ::c_int = 50;
31+
pub const F_OFD_SETLKL: ::c_int = 51;
32+
pub const F_OFD_SETLKW: ::c_int = 52;
33+
pub const F_FLOCK: ::c_int = 55;
34+
pub const F_FLOCKW: ::c_int = 56;
35+
3036
extern "C" {
3137
pub fn eventfd(init: ::c_uint, flags: ::c_int) -> ::c_int;
3238

src/unix/solarish/mod.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -999,6 +999,7 @@ pub const O_SEARCH: ::c_int = 0x200000;
999999
pub const O_EXEC: ::c_int = 0x400000;
10001000
pub const O_CLOEXEC: ::c_int = 0x800000;
10011001
pub const O_ACCMODE: ::c_int = 0x600003;
1002+
pub const O_XATTR: ::c_int = 0x4000;
10021003
pub const S_IFIFO: mode_t = 4096;
10031004
pub const S_IFCHR: mode_t = 8192;
10041005
pub const S_IFBLK: mode_t = 24576;
@@ -1037,6 +1038,12 @@ pub const F_DUPFD_CLOEXEC: ::c_int = 37;
10371038
pub const F_SETLK: ::c_int = 6;
10381039
pub const F_SETLKW: ::c_int = 7;
10391040
pub const F_GETLK: ::c_int = 14;
1041+
pub const F_ALLOCSP: ::c_int = 10;
1042+
pub const F_FREESP: ::c_int = 11;
1043+
pub const F_BLOCKS: ::c_int = 18;
1044+
pub const F_BLKSIZE: ::c_int = 19;
1045+
pub const F_SHARE: ::c_int = 40;
1046+
pub const F_UNSHARE: ::c_int = 41;
10401047
pub const SIGHUP: ::c_int = 1;
10411048
pub const SIGINT: ::c_int = 2;
10421049
pub const SIGQUIT: ::c_int = 3;
@@ -1265,10 +1272,13 @@ pub const EAI_SYSTEM: ::c_int = 11;
12651272
pub const EAI_OVERFLOW: ::c_int = 12;
12661273

12671274
pub const F_DUPFD: ::c_int = 0;
1275+
pub const F_DUP2FD: ::c_int = 9;
1276+
pub const F_DUP2FD_CLOEXEC: ::c_int = 36;
12681277
pub const F_GETFD: ::c_int = 1;
12691278
pub const F_SETFD: ::c_int = 2;
12701279
pub const F_GETFL: ::c_int = 3;
12711280
pub const F_SETFL: ::c_int = 4;
1281+
pub const F_GETXFL: ::c_int = 45;
12721282

12731283
pub const SIGTRAP: ::c_int = 5;
12741284

0 commit comments

Comments
 (0)