kernel: stat syscall family

This commit is contained in:
Matheus
2023-05-13 23:14:26 -03:00
parent c6f9f295ee
commit cabd9d7e4b
4 changed files with 164 additions and 5 deletions
+24
View File
@@ -1,6 +1,8 @@
#ifndef _ABI_H
#define _ABI_H
#include <time.h>
typedef int pid_t;
typedef int tid_t;
typedef int gid_t;
@@ -8,6 +10,10 @@ typedef int uid_t;
typedef unsigned int mode_t;
typedef uint64_t ino_t;
typedef long off_t;
typedef uint64_t dev_t;
typedef unsigned long nlink_t;
typedef long blksize_t;
typedef uint64_t blkcnt_t;
#define POLLIN 0x1
#define POLLPRI 0x2
@@ -20,4 +26,22 @@ typedef long off_t;
#define POLLWRNORM 0x100
#define POLLRDHUP 0x2000
typedef struct {
dev_t dev;
ino_t ino;
nlink_t nlink;
mode_t mode;
uid_t uid;
gid_t gid;
unsigned int __pad0;
dev_t rdev;
off_t size;
blksize_t blksize;
blkcnt_t blocks;
timespec_t atim;
timespec_t mtim;
timespec_t ctim;
long __unused[3];
} stat_t;
#endif