projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
make dynamic linker relocate the main program image last, after all libs
[oweals/musl.git]
/
src
/
unistd
/
getcwd.c
1
#include <unistd.h>
2
#include <errno.h>
3
#include "syscall.h"
4
5
char *getcwd(char *buf, size_t size)
6
{
7
return syscall(SYS_getcwd, buf, size) < 0 ? NULL : buf;
8
}