diff options
author | Rich Felker <dalias@aerifal.cx> | 2018-09-06 13:39:08 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2018-09-12 14:34:27 -0400 |
commit | 6fcd60ddd903df13402704fe6026cb1f8e780fd7 (patch) | |
tree | 5475b677c1514068925bf7215cb344c966a619bd /src/stat | |
parent | c221d3e5862e249b03aa7569d5fec6389294fb22 (diff) | |
download | musl-6fcd60ddd903df13402704fe6026cb1f8e780fd7.tar.gz musl-6fcd60ddd903df13402704fe6026cb1f8e780fd7.tar.bz2 musl-6fcd60ddd903df13402704fe6026cb1f8e780fd7.tar.xz musl-6fcd60ddd903df13402704fe6026cb1f8e780fd7.zip |
move and deduplicate declarations of __procfdname to make it checkable
syscall.h was chosen as the header to declare it, since its intended
usage is alongside syscalls as a fallback for operations the direct
syscall does not support.
Diffstat (limited to 'src/stat')
-rw-r--r-- | src/stat/fchmod.c | 2 | ||||
-rw-r--r-- | src/stat/fchmodat.c | 2 | ||||
-rw-r--r-- | src/stat/fstat.c | 2 |
3 files changed, 0 insertions, 6 deletions
diff --git a/src/stat/fchmod.c b/src/stat/fchmod.c index 93e1b64c..7a503eef 100644 --- a/src/stat/fchmod.c +++ b/src/stat/fchmod.c @@ -3,8 +3,6 @@ #include <fcntl.h> #include "syscall.h" -void __procfdname(char *, unsigned); - int fchmod(int fd, mode_t mode) { int ret = __syscall(SYS_fchmod, fd, mode); diff --git a/src/stat/fchmodat.c b/src/stat/fchmodat.c index d94667ae..be61bdf3 100644 --- a/src/stat/fchmodat.c +++ b/src/stat/fchmodat.c @@ -3,8 +3,6 @@ #include <errno.h> #include "syscall.h" -void __procfdname(char *, unsigned); - int fchmodat(int fd, const char *path, mode_t mode, int flag) { if (!flag) return syscall(SYS_fchmodat, fd, path, mode, flag); diff --git a/src/stat/fstat.c b/src/stat/fstat.c index ab4afc0f..f6d16522 100644 --- a/src/stat/fstat.c +++ b/src/stat/fstat.c @@ -4,8 +4,6 @@ #include "syscall.h" #include "libc.h" -void __procfdname(char *, unsigned); - int fstat(int fd, struct stat *st) { int ret = __syscall(SYS_fstat, fd, st); |