blob: d97ba445e74f1dc9789f700e601171f2a8d7bdd0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#include <machine/syscall.h>
#include "kernel_stat.h"
#include "internal_syscall.h"
/* Status of an open file. The sys/stat.h header file required is
distributed in the include subdirectory for this C library. */
int
_fstat(int file, struct stat *st)
{
struct kernel_stat kst;
int rv = syscall_errno (SYS_fstat, 2, file, &kst, 0, 0, 0, 0);
_conv_stat (st, &kst);
return rv;
}
|