summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/syscalls.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-06-18 20:43:49 +0000
committerEric Andersen <andersen@codepoet.org>2002-06-18 20:43:49 +0000
commitb8d09d7cfc7a5aec2d510335313c0e5470df37c1 (patch)
treefbaa1970c2c6b02ed099f0b7f760a2e4b5a6226c /libc/sysdeps/linux/common/syscalls.c
parenta27edd5fc9ef34a3d8c61397d2253817336d2a9c (diff)
Cleanup the getcwd implementation (again) since I broke it
last night. Restore malloc-ing when buf=NULL for the syscall version... Move getcwd to libc/sysdeps/linux/common and out of syscalls.c so there is just one getcwd.o object present. -Erik
Diffstat (limited to 'libc/sysdeps/linux/common/syscalls.c')
-rw-r--r--libc/sysdeps/linux/common/syscalls.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/libc/sysdeps/linux/common/syscalls.c b/libc/sysdeps/linux/common/syscalls.c
index 542ec1b96..db17d045d 100644
--- a/libc/sysdeps/linux/common/syscalls.c
+++ b/libc/sysdeps/linux/common/syscalls.c
@@ -1613,13 +1613,7 @@ _syscall3(int, chown, const char *, path, uid_t, owner, gid_t, group);
#endif
//#define __NR_getcwd 183
-#ifdef L_getcwd
-# ifdef __NR_getcwd
- _syscall2(int, getcwd, char *, buf, unsigned long, size);
-# else
-// See unistd/getcwd.c if this syscall is not available...
-# endif
-#endif
+// See getcwd.c in this directory
//#define __NR_capget 184
#ifdef L_capget