@@ -3600,6 +3600,11 @@ pub mod consts {
3600
3600
pub const SHUT_RD : c_int = 0 ;
3601
3601
pub const SHUT_WR : c_int = 1 ;
3602
3602
pub const SHUT_RDWR : c_int = 2 ;
3603
+
3604
+ pub const LOCK_SH : c_int = 1 ;
3605
+ pub const LOCK_EX : c_int = 2 ;
3606
+ pub const LOCK_NB : c_int = 4 ;
3607
+ pub const LOCK_UN : c_int = 8 ;
3603
3608
}
3604
3609
#[ cfg( any( target_arch = "mips" ,
3605
3610
target_arch = "mipsel" ) ) ]
@@ -3684,6 +3689,11 @@ pub mod consts {
3684
3689
pub const SHUT_RD : c_int = 0 ;
3685
3690
pub const SHUT_WR : c_int = 1 ;
3686
3691
pub const SHUT_RDWR : c_int = 2 ;
3692
+
3693
+ pub const LOCK_SH : c_int = 1 ;
3694
+ pub const LOCK_EX : c_int = 2 ;
3695
+ pub const LOCK_NB : c_int = 4 ;
3696
+ pub const LOCK_UN : c_int = 8 ;
3687
3697
}
3688
3698
#[ cfg( any( target_arch = "x86" ,
3689
3699
target_arch = "x86_64" ,
@@ -4227,6 +4237,11 @@ pub mod consts {
4227
4237
pub const SHUT_RD : c_int = 0 ;
4228
4238
pub const SHUT_WR : c_int = 1 ;
4229
4239
pub const SHUT_RDWR : c_int = 2 ;
4240
+
4241
+ pub const LOCK_SH : c_int = 1 ;
4242
+ pub const LOCK_EX : c_int = 2 ;
4243
+ pub const LOCK_NB : c_int = 4 ;
4244
+ pub const LOCK_UN : c_int = 8 ;
4230
4245
}
4231
4246
pub mod extra {
4232
4247
use types:: os:: arch:: c95:: c_int;
@@ -4651,6 +4666,11 @@ pub mod consts {
4651
4666
pub const SHUT_RD : c_int = 0 ;
4652
4667
pub const SHUT_WR : c_int = 1 ;
4653
4668
pub const SHUT_RDWR : c_int = 2 ;
4669
+
4670
+ pub const LOCK_SH : c_int = 1 ;
4671
+ pub const LOCK_EX : c_int = 2 ;
4672
+ pub const LOCK_NB : c_int = 4 ;
4673
+ pub const LOCK_UN : c_int = 8 ;
4654
4674
}
4655
4675
pub mod extra {
4656
4676
use types:: os:: arch:: c95:: c_int;
@@ -5092,6 +5112,11 @@ pub mod consts {
5092
5112
pub const SHUT_RD : c_int = 0 ;
5093
5113
pub const SHUT_WR : c_int = 1 ;
5094
5114
pub const SHUT_RDWR : c_int = 2 ;
5115
+
5116
+ pub const LOCK_SH : c_int = 1 ;
5117
+ pub const LOCK_EX : c_int = 2 ;
5118
+ pub const LOCK_NB : c_int = 4 ;
5119
+ pub const LOCK_UN : c_int = 8 ;
5095
5120
}
5096
5121
pub mod extra {
5097
5122
use types:: os:: arch:: c95:: c_int;
@@ -6121,6 +6146,7 @@ pub mod funcs {
6121
6146
-> c_int ;
6122
6147
pub fn realpath ( pathname : * const c_char , resolved : * mut c_char )
6123
6148
-> * mut c_char ;
6149
+ pub fn flock ( fd : c_int , operation : c_int ) -> c_int ;
6124
6150
}
6125
6151
}
6126
6152
@@ -6137,6 +6163,7 @@ pub mod funcs {
6137
6163
-> c_int ;
6138
6164
pub fn mincore ( addr : * mut c_void , len : size_t , vec : * mut c_uchar )
6139
6165
-> c_int ;
6166
+ pub fn flock ( fd : c_int , operation : c_int ) -> c_int ;
6140
6167
}
6141
6168
}
6142
6169
0 commit comments