mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 20:58:22 +00:00
kernel: stat syscall family
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user