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