diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-01-29 15:32:48 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-01-29 15:32:48 +0000 |
commit | 28db421a4b232068a10a4703e21af1a51a638847 (patch) | |
tree | a1f388ce1aac3d2f426a96ac36e15c050fc96d89 | |
parent | 46dc42acff5308eb62a2b18df9bc792c8cf8f7ee (diff) |
create local prototypes to shutup warnings
-rw-r--r-- | libc/sysdeps/linux/common/getdents.c | 1 | ||||
-rw-r--r-- | libc/sysdeps/linux/common/getdents64.c | 1 | ||||
-rw-r--r-- | libc/sysdeps/linux/common/ulimit.c | 3 | ||||
-rw-r--r-- | libc/sysdeps/linux/common/vfork.c | 2 |
4 files changed, 6 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/getdents.c b/libc/sysdeps/linux/common/getdents.c index f54344d31..7056c3ebc 100644 --- a/libc/sysdeps/linux/common/getdents.c +++ b/libc/sysdeps/linux/common/getdents.c @@ -34,6 +34,7 @@ struct kernel_dirent #define __NR___syscall_getdents __NR_getdents static inline _syscall3(int, __syscall_getdents, int, fd, unsigned char *, kdirp, size_t, count); +ssize_t attribute_hidden __getdents (int fd, char *buf, size_t nbytes); ssize_t attribute_hidden __getdents (int fd, char *buf, size_t nbytes) { struct dirent *dp; diff --git a/libc/sysdeps/linux/common/getdents64.c b/libc/sysdeps/linux/common/getdents64.c index 9452b94bd..cb107a856 100644 --- a/libc/sysdeps/linux/common/getdents64.c +++ b/libc/sysdeps/linux/common/getdents64.c @@ -39,6 +39,7 @@ struct kernel_dirent64 # define __NR___syscall_getdents64 __NR_getdents64 static inline _syscall3(int, __syscall_getdents64, int, fd, unsigned char *, dirp, size_t, count); +ssize_t attribute_hidden __getdents64 (int fd, char *buf, size_t nbytes); ssize_t attribute_hidden __getdents64 (int fd, char *buf, size_t nbytes) { struct dirent64 *dp; diff --git a/libc/sysdeps/linux/common/ulimit.c b/libc/sysdeps/linux/common/ulimit.c index 75d7a8237..6f0278f60 100644 --- a/libc/sysdeps/linux/common/ulimit.c +++ b/libc/sysdeps/linux/common/ulimit.c @@ -9,7 +9,8 @@ #ifdef __NR_ulimit -_syscall2(long, ulimit, int, cmd, int, arg); +extern long int ulimit(int cmd, long arg); +_syscall2(long, ulimit, int, cmd, long, arg); #else diff --git a/libc/sysdeps/linux/common/vfork.c b/libc/sysdeps/linux/common/vfork.c index f668a020f..1a6210cf0 100644 --- a/libc/sysdeps/linux/common/vfork.c +++ b/libc/sysdeps/linux/common/vfork.c @@ -3,6 +3,7 @@ * * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. */ + /* Trivial implementation for arches that lack vfork */ #include <unistd.h> #include <sys/types.h> @@ -11,6 +12,7 @@ #ifdef __NR_fork libc_hidden_proto(fork) +pid_t attribute_hidden __vfork(void); pid_t attribute_hidden __vfork(void) { return fork(); |