Skip to content

Commit 66d78f4

Browse files
committed
move openat to unix module
1 parent c2d2d47 commit 66d78f4

File tree

6 files changed

+3
-10
lines changed

6 files changed

+3
-10
lines changed

src/unix/bsd/apple/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1659,8 +1659,6 @@ extern {
16591659
pub fn getpriority(which: ::c_int, who: ::id_t) -> ::c_int;
16601660
pub fn setpriority(which: ::c_int, who: ::id_t, prio: ::c_int) -> ::c_int;
16611661

1662-
pub fn openat(dirfd: ::c_int, pathname: *const ::c_char,
1663-
flags: ::c_int, ...) -> ::c_int;
16641662
pub fn faccessat(dirfd: ::c_int, pathname: *const ::c_char,
16651663
mode: ::c_int, flags: ::c_int) -> ::c_int;
16661664
pub fn fchmodat(dirfd: ::c_int, pathname: *const ::c_char,

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,8 +1001,6 @@ extern {
10011001
pub fn getpriority(which: ::c_int, who: ::c_int) -> ::c_int;
10021002
pub fn setpriority(which: ::c_int, who: ::c_int, prio: ::c_int) -> ::c_int;
10031003

1004-
pub fn openat(dirfd: ::c_int, pathname: *const ::c_char,
1005-
flags: ::c_int, ...) -> ::c_int;
10061004
pub fn faccessat(dirfd: ::c_int, pathname: *const ::c_char,
10071005
mode: ::c_int, flags: ::c_int) -> ::c_int;
10081006
pub fn fchmodat(dirfd: ::c_int, pathname: *const ::c_char,

src/unix/bsd/netbsdlike/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -597,8 +597,6 @@ extern {
597597
pub fn getpriority(which: ::c_int, who: ::id_t) -> ::c_int;
598598
pub fn setpriority(which: ::c_int, who: ::id_t, prio: ::c_int) -> ::c_int;
599599

600-
pub fn openat(dirfd: ::c_int, pathname: *const ::c_char,
601-
flags: ::c_int, ...) -> ::c_int;
602600
pub fn faccessat(dirfd: ::c_int, pathname: *const ::c_char,
603601
mode: ::c_int, flags: ::c_int) -> ::c_int;
604602
pub fn fchmodat(dirfd: ::c_int, pathname: *const ::c_char,

src/unix/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,9 @@ extern {
734734
buf: *mut c_char,
735735
bufsz: ::size_t)
736736
-> ::ssize_t;
737+
738+
pub fn openat(dirfd: ::c_int, pathname: *const ::c_char,
739+
flags: ::c_int, ...) -> ::c_int;
737740
pub fn readlinkat(dirfd: ::c_int, pathname: *const ::c_char,
738741
buf: *mut ::c_char, bufsiz: ::size_t) -> ::ssize_t;
739742

src/unix/notbsd/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -928,8 +928,6 @@ extern {
928928
pub fn eventfd(init: ::c_uint, flags: ::c_int) -> ::c_int;
929929
pub fn sysinfo (info: *mut ::sysinfo) -> ::c_int;
930930

931-
pub fn openat(dirfd: ::c_int, pathname: *const ::c_char,
932-
flags: ::c_int, ...) -> ::c_int;
933931
pub fn faccessat(dirfd: ::c_int, pathname: *const ::c_char,
934932
mode: ::c_int, flags: ::c_int) -> ::c_int;
935933
pub fn fchmodat(dirfd: ::c_int, pathname: *const ::c_char,

src/unix/solaris/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,8 +1052,6 @@ extern {
10521052
pub fn getpriority(which: ::c_int, who: ::c_int) -> ::c_int;
10531053
pub fn setpriority(which: ::c_int, who: ::c_int, prio: ::c_int) -> ::c_int;
10541054

1055-
pub fn openat(dirfd: ::c_int, pathname: *const ::c_char,
1056-
flags: ::c_int, ...) -> ::c_int;
10571055
pub fn faccessat(dirfd: ::c_int, pathname: *const ::c_char,
10581056
mode: ::c_int, flags: ::c_int) -> ::c_int;
10591057
pub fn fchmodat(dirfd: ::c_int, pathname: *const ::c_char,

0 commit comments

Comments
 (0)