summaryrefslogtreecommitdiff
path: root/src/sys/stat/stat.c
blob: 08446b2420c20407fae45eb21004005409bb3bb4 (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)
*/