Skip to content

Commit d9b8cd1

Browse files
committed
Auto merge of #780 - bgermann:master, r=alexcrichton
Add utimensat for Solaris
2 parents 4729bc1 + 4a58331 commit d9b8cd1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/unix/solaris/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,9 @@ pub const WSTOPPED: ::c_int = WUNTRACED;
591591
pub const WCONTINUED: ::c_int = 0x08;
592592
pub const WNOWAIT: ::c_int = 0x80;
593593

594+
pub const AT_FDCWD: ::c_int = 0xffd19553;
595+
pub const AT_SYMLINK_NOFOLLOW: ::c_int = 0x1000;
596+
594597
// Solaris defines a great many more of these; we only expose the
595598
// standardized ones.
596599
pub const P_PID: idtype_t = 0;
@@ -1256,6 +1259,8 @@ extern {
12561259
addrlen: *mut ::socklen_t) -> ::ssize_t;
12571260
pub fn mkstemps(template: *mut ::c_char, suffixlen: ::c_int) -> ::c_int;
12581261
pub fn futimes(fd: ::c_int, times: *const ::timeval) -> ::c_int;
1262+
pub fn utimensat(dirfd: ::c_int, path: *const ::c_char,
1263+
times: *const ::timespec, flag: ::c_int) -> ::c_int;
12591264
pub fn nl_langinfo(item: ::nl_item) -> *mut ::c_char;
12601265

12611266
pub fn bind(socket: ::c_int, address: *const ::sockaddr,

0 commit comments

Comments
 (0)