Skip to content

Commit 53372b8

Browse files
authored
Auto merge of rust-lang#367 - knight42:lutimes, r=alexcrichton
Add lutimes Add lutimes except for openbsd, solaris, android
2 parents af23c1e + c289365 commit 53372b8

File tree

5 files changed

+8
-0
lines changed

5 files changed

+8
-0
lines changed

src/unix/bsd/apple/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1320,6 +1320,8 @@ f! {
13201320
}
13211321

13221322
extern {
1323+
pub fn lutimes(file: *const ::c_char, times: *const ::timeval) -> ::c_int;
1324+
13231325
pub fn getutxent() -> *mut utmpx;
13241326
pub fn getutxid(ut: *const utmpx) -> *mut utmpx;
13251327
pub fn getutxline(ut: *const utmpx) -> *mut utmpx;

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -723,6 +723,7 @@ f! {
723723
}
724724

725725
extern {
726+
pub fn lutimes(file: *const ::c_char, times: *const ::timeval) -> ::c_int;
726727
pub fn endutxent();
727728
pub fn getutxent() -> *mut utmpx;
728729
pub fn getutxid(ut: *const utmpx) -> *mut utmpx;

src/unix/bsd/openbsdlike/bitrig.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,8 @@ pub const KI_MAXLOGNAME: ::c_int = 32;
398398
pub const KI_EMULNAMELEN: ::c_int = 8;
399399

400400
extern {
401+
pub fn lutimes(file: *const ::c_char, times: *const ::timeval) -> ::c_int;
402+
401403
pub fn getnameinfo(sa: *const ::sockaddr,
402404
salen: ::socklen_t,
403405
host: *mut ::c_char,

src/unix/bsd/openbsdlike/netbsd.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,7 @@ pub const KERN_PROC_GID: ::c_int = 7;
521521
pub const KERN_PROC_RGID: ::c_int = 8;
522522

523523
extern {
524+
pub fn lutimes(file: *const ::c_char, times: *const ::timeval) -> ::c_int;
524525
pub fn getnameinfo(sa: *const ::sockaddr,
525526
salen: ::socklen_t,
526527
host: *mut ::c_char,

src/unix/notbsd/linux/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,8 @@ f! {
510510
}
511511

512512
extern {
513+
pub fn lutimes(file: *const ::c_char, times: *const ::timeval) -> ::c_int;
514+
513515
pub fn setpwent();
514516
pub fn getpwent() -> *mut passwd;
515517
pub fn shm_open(name: *const c_char, oflag: ::c_int,

0 commit comments

Comments
 (0)