chiark / gitweb /
[PATCH] update klibc to version 0.181
[elogind.git] / klibc / klibc / getcwd.c
index 350ec69a6356edbcd7c7f2ac53766dbb43597962..613ca0529c503f0a8e26144350f872477a5c7fa1 100644 (file)
@@ -1,12 +1,13 @@
 /*
  * getcwd.c
+ *
+ * The system call behaves differently than the library function.
  */
 
 #include <unistd.h>
 #include <sys/syscall.h>
 
-#define __NR___getcwd __NR_getcwd
-static inline _syscall2(int,__getcwd,char *,buf,size_t,size);
+extern int __getcwd(char * buf, size_t size);
 
 char *getcwd(char *buf, size_t size)
 {