summaryrefslogtreecommitdiff
path: root/src/unistd
diff options
context:
space:
mode:
Diffstat (limited to 'src/unistd')
-rw-r--r--src/unistd/fchdir.c2
-rw-r--r--src/unistd/fchown.c2
-rw-r--r--src/unistd/ttyname_r.c3
3 files changed, 1 insertions, 6 deletions
diff --git a/src/unistd/fchdir.c b/src/unistd/fchdir.c
index 72c3915e..dee45ba6 100644
--- a/src/unistd/fchdir.c
+++ b/src/unistd/fchdir.c
@@ -3,8 +3,6 @@
#include <fcntl.h>
#include "syscall.h"
-void __procfdname(char *, unsigned);
-
int fchdir(int fd)
{
int ret = __syscall(SYS_fchdir, fd);
diff --git a/src/unistd/fchown.c b/src/unistd/fchown.c
index 75075eec..737b3672 100644
--- a/src/unistd/fchown.c
+++ b/src/unistd/fchown.c
@@ -3,8 +3,6 @@
#include <fcntl.h>
#include "syscall.h"
-void __procfdname(char *, unsigned);
-
int fchown(int fd, uid_t uid, gid_t gid)
{
int ret = __syscall(SYS_fchown, fd, uid, gid);
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)
{