@@ -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;
@@ -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;
@@ -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
@@ -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();