The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
stat.h File Reference
#include "common/stdint.h"
#include "kernel/fs/fs.h"
#include "kernel/time/clock.h"

Go to the source code of this file.

Data Structures

struct  kstat

Macros

#define S_IFMT   0170000
 struct stat as user space sees it (stat, fstat).
#define S_IFIFO   0010000
#define S_IFSOCK   0140000
#define S_IFCHR   0020000
#define S_IFDIR   0040000
#define S_IFBLK   0060000
#define S_IFREG   0100000
#define S_IFLNK   0120000

Macro Definition Documentation

◆ S_IFMT

#define S_IFMT   0170000

struct stat as user space sees it (stat, fstat).

the layout and the S_ bits are ABI: the libc's <sys/stat.h> has the same ones.

◆ S_IFIFO

#define S_IFIFO   0010000

◆ S_IFSOCK

#define S_IFSOCK   0140000

◆ S_IFCHR

#define S_IFCHR   0020000

◆ S_IFDIR

#define S_IFDIR   0040000

◆ S_IFBLK

#define S_IFBLK   0060000

◆ S_IFREG

#define S_IFREG   0100000

◆ S_IFLNK

#define S_IFLNK   0120000