summaryrefslogtreecommitdiff
path: root/src/unistd/getcwd.c
blob: d6e65228dc898d143d1b8ef507ff2a3e18c3ac56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <sys/types.h>
#include <unistd.h>
#include "_assert.h"
#include "_syscall.h"

char * getcwd(char *buf, size_t size)
{
	ASSERT_NONNULL(buf);
	SYSCALL(getcwd, char *, NULL, buf, size, 0, 0, 0, 0);
}
/*
POSIX(1)
*/