summaryrefslogtreecommitdiff
path: root/src/sys/stat/stat.c
blob: 233a05870b88daac777e7ba7fdd8f77bf5ac4aea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "sys/types.h"
#include <sys/stat.h>
#include "stdlib.h"
#include "../../_assert.h"
#include "../../_syscall.h"

int stat(const char * restrict path, struct stat * restrict buf)
{
	ASSERT_NONNULL(path);
	ASSERT_NONNULL(buf);

	SYSCALL(stat, int, -1, path, buf, 0, 0, 0, 0);
}
/*
POSIX(1)
*/