1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#if 0 #include <sys/types.h> #include <unistd.h> #include "_assert.h" #include "_syscall.h" char * getcwd(char *buf, size_t size) { ASSERT_NONNULL(buf); SYSCALL(getcwd, char *, NULL, buf, size, 0, 0, 0, 0); } /* POSIX(1) */ #endif