File tree 2 files changed +5
-11
lines changed
2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,11 @@ pub const TCP_KEEPCNT: ::c_int = 35;
33
33
pub const TCP_KEEPINTVL : :: c_int = 36 ;
34
34
pub const TCP_CONGESTION : :: c_int = 37 ;
35
35
36
+ pub const LOCK_SH : :: c_int = 1 ;
37
+ pub const LOCK_EX : :: c_int = 2 ;
38
+ pub const LOCK_NB : :: c_int = 4 ;
39
+ pub const LOCK_UN : :: c_int = 8 ;
40
+
36
41
// These constants are correct for 64-bit programs or 32-bit programs that are
37
42
// not using large-file mode. If Rust ever supports anything other than 64-bit
38
43
// compilation on illumos, this may require adjustment:
Original file line number Diff line number Diff line change @@ -1915,17 +1915,6 @@ pub const SHUT_RD: ::c_int = 0;
1915
1915
pub const SHUT_WR : :: c_int = 1 ;
1916
1916
pub const SHUT_RDWR : :: c_int = 2 ;
1917
1917
1918
- // These don't exist on Solaris, but do on OpenSolaris derivatives
1919
- // e.g. https://illumos.org/man/3C/flock
1920
- cfg_if ! {
1921
- if #[ cfg( not( target_os = "solaris" ) ) ] {
1922
- pub const LOCK_SH : :: c_int = 1 ;
1923
- pub const LOCK_EX : :: c_int = 2 ;
1924
- pub const LOCK_NB : :: c_int = 4 ;
1925
- pub const LOCK_UN : :: c_int = 8 ;
1926
- }
1927
- }
1928
-
1929
1918
pub const F_RDLCK : :: c_short = 1 ;
1930
1919
pub const F_WRLCK : :: c_short = 2 ;
1931
1920
pub const F_UNLCK : :: c_short = 3 ;
You can’t perform that action at this time.
0 commit comments