chiark / gitweb /
[PATCH] klibc: update to version 0.196
[elogind.git] / klibc / klibc / getcwd.c
1 /*
2  * getcwd.c
3  *
4  * The system call behaves differently than the library function.
5  */
6
7 #include <unistd.h>
8 #include <sys/syscall.h>
9
10 extern int __getcwd(char * buf, size_t size);
11
12 char *getcwd(char *buf, size_t size)
13 {
14   return ( __getcwd(buf, size) < 0 ) ? NULL : buf;
15 }
16