From 6fcd60ddd903df13402704fe6026cb1f8e780fd7 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 6 Sep 2018 13:39:08 -0400 Subject: 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. --- src/unistd/ttyname_r.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/unistd/ttyname_r.c') 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 #include #include - -void __procfdname(char *, unsigned); +#include "syscall.h" int ttyname_r(int fd, char *name, size_t size) { -- cgit v1.2.1