blob: 22ec812a23069dacd2e07dc54d57034f963146c5 [file] [log] [blame]
/*
* getcwd.c
*
* The system call behaves differently than the library function.
*/
#include <unistd.h>
#include <sys/syscall.h>
extern int __getcwd(char *buf, size_t size);
char *getcwd(char *buf, size_t size)
{
return (__getcwd(buf, size) < 0) ? NULL : buf;
}