blob: 22ec812a23069dacd2e07dc54d57034f963146c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
/*
* 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;
}
|