chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[PATCH] klibc: version 1.0.7
[elogind.git]
/
klibc
/
klibc
/
getcwd.c
1
/*
2
* getcwd.c
3
*
4
* The system call behaves differently than the library function.
5
*/
6
7
#include <unistd.h>
8
#include <sys/syscall.h>
9
10
extern int __getcwd(char * buf, size_t size);
11
12
char *getcwd(char *buf, size_t size)
13
{
14
return ( __getcwd(buf, size) < 0 ) ? NULL : buf;
15
}
16