File tree 2 files changed +11
-11
lines changed
2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -1209,11 +1209,6 @@ pub const SO_EE_ORIGIN_ICMP6: u8 = 3;
1209
1209
pub const SO_EE_ORIGIN_TXSTATUS : u8 = 4 ;
1210
1210
pub const SO_EE_ORIGIN_TIMESTAMPING : u8 = SO_EE_ORIGIN_TXSTATUS ;
1211
1211
1212
- pub const F_ULOCK : :: c_int = 0 ;
1213
- pub const F_LOCK : :: c_int = 1 ;
1214
- pub const F_TLOCK : :: c_int = 2 ;
1215
- pub const F_TEST : :: c_int = 3 ;
1216
-
1217
1212
const_fn ! {
1218
1213
{ const } fn CMSG_ALIGN ( len: usize ) -> usize {
1219
1214
len + :: mem:: size_of:: <usize >( ) - 1 & !( :: mem:: size_of:: <usize >( ) - 1 )
@@ -1580,12 +1575,6 @@ extern "C" {
1580
1575
flags : :: c_int ,
1581
1576
) -> :: ssize_t ;
1582
1577
pub fn uname ( buf : * mut :: utsname ) -> :: c_int ;
1583
-
1584
- pub fn lockf (
1585
- fd : :: c_int ,
1586
- cmd : :: c_int ,
1587
- len : :: off_t ,
1588
- ) -> :: c_int ;
1589
1578
}
1590
1579
1591
1580
cfg_if ! {
Original file line number Diff line number Diff line change @@ -292,6 +292,11 @@ pub const ATF_PERM: ::c_int = 0x04;
292
292
pub const ATF_PUBL : :: c_int = 0x08 ;
293
293
pub const ATF_USETRAILERS : :: c_int = 0x10 ;
294
294
295
+ pub const F_ULOCK : :: c_int = 0 ;
296
+ pub const F_LOCK : :: c_int = 1 ;
297
+ pub const F_TLOCK : :: c_int = 2 ;
298
+ pub const F_TEST : :: c_int = 3 ;
299
+
295
300
cfg_if ! {
296
301
if #[ cfg( target_os = "l4re" ) ] {
297
302
// required libraries for L4Re are linked externally, ATM
@@ -1447,6 +1452,12 @@ extern "C" {
1447
1452
n : * mut size_t ,
1448
1453
stream : * mut FILE ,
1449
1454
) -> ssize_t ;
1455
+
1456
+ pub fn lockf (
1457
+ fd : :: c_int ,
1458
+ cmd : :: c_int ,
1459
+ len : :: off_t ,
1460
+ ) -> :: c_int ;
1450
1461
}
1451
1462
1452
1463
cfg_if ! {
You can’t perform that action at this time.
0 commit comments