blob: 0b4f341fe4bcaf94e15b0910174ca5b97fcf36da (
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 "_safety.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)
*/
|