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

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