Skip to content

Commit c7a7f4e

Browse files
committed
Merge pull request rust-lang#83 from bossmc/add-umask
Add umask (POSIX.1-2001)
2 parents 2a5f445 + dd54f29 commit c7a7f4e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/unix/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ extern {
292292
link_name = "pwrite$UNIX2003")]
293293
pub fn pwrite(fd: ::c_int, buf: *const ::c_void, count: ::size_t,
294294
offset: off_t) -> ::ssize_t;
295+
pub fn umask(mask: mode_t) -> mode_t;
295296
pub fn utime(file: *const c_char, buf: *const utimbuf) -> ::c_int;
296297

297298
#[cfg_attr(all(target_os = "macos", target_arch = "x86"),

0 commit comments

Comments
 (0)