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/unistd/ttyname_r.c | |
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/unistd/ttyname_r.c')
-rw-r--r-- | src/unistd/ttyname_r.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/unistd/ttyname_r.c b/src/unistd/ttyname_r.c index 33aa4ae1..cb364c29 100644 --- a/src/unistd/ttyname_r.c +++ b/src/unistd/ttyname_r.c @@ -1,8 +1,7 @@ #include <unistd.h> #include <errno.h> #include <sys/stat.h> - -void __procfdname(char *, unsigned); +#include "syscall.h" int ttyname_r(int fd, char *name, size_t size) { |