summaryrefslogtreecommitdiff
path: root/lib/libc/unistd/getcwd.c
blob: 54fa5ca903204bbddb515dcaa14c8da76d24a568 (plain)
1
2
3
4
5
6
7
8
9
#include "asm/unistd_64.h" // for __NR_getcwd

#include <syscall.h> // for __syscall_2, syscall
#include <unistd.h>  // for getcwd, size_t

char *getcwd(char *buf, size_t size)
{
	return (char *)syscall(getcwd, buf, size);
}