blob: bb484049c6cac95c27e623a7851b6e67f8aa7245 [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;
}