Browse Source

create local prototypes to shutup warnings

Mike Frysinger 18 years ago
parent
commit
28db421a4b

+ 1 - 0
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;

+ 1 - 0
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;

+ 2 - 1
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
 

+ 2 - 0
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();