1998-04-02 Ulrich Drepper <drepper@cygnus.com>
+ * sysdeps/unix/sysv/linux/syscalls.list: Add s_getcwd entry.
+
* stdlib/isomac.c: Use -isystem instead of -I for system include
dir.
directory: a syscall. We've got to be careful that even when
compiling under 2.1.92+ the libc still runs under older kernels. */
extern int __syscall_getcwd (char *buf, unsigned long size);
-static no_syscall_getcwd;
+static int no_syscall_getcwd;
static int no_new_dcache = 1;
#else
static int no_new_dcache;
char *result;
size_t alloc_size = size;
- if (no_new_dcache)
+ if (no_syscall_getcwd && no_new_dcache)
return generic_getcwd (buf, size);
if (size == 0)
{
int retval;
- do
retval = __syscall_getcwd (path, alloc_size);
if (retval >= 0)
{
rt_sigqueueinfo - rt_sigqueueinfo 3 __syscall_rt_sigqueueinfo
rt_sigsuspend - rt_sigsuspend 2 __syscall_rt_sigsuspend
rt_sigtimedwait - rt_sigtimedwait 4 __syscall_rt_sigtimedwait
+s_getcwd EXTRA getcwd 2 __syscall_getcwd
s_getdents EXTRA getdents 3 __getdents
s_getpriority getpriority getpriority 2 __syscall_getpriority
s_getresgid getresgid getresgid 3 __syscall_getresgid