ish/fs/stat.h
2017-09-16 18:27:06 -07:00

97 lines
1.6 KiB
C

#ifndef FS_STAT_H
#define FS_STAT_H
#include "misc.h"
struct statbuf {
qword_t dev;
dword_t inode;
dword_t mode;
dword_t nlink;
dword_t uid;
dword_t gid;
qword_t rdev;
qword_t size;
dword_t blksize;
qword_t blocks;
dword_t atime;
dword_t atime_nsec;
dword_t mtime;
dword_t mtime_nsec;
dword_t ctime;
dword_t ctime_nsec;
};
struct oldstat {
word_t dev;
word_t ino;
word_t mode;
word_t nlink;
word_t uid;
word_t gid;
word_t rdev;
uint_t size;
uint_t atime;
uint_t mtime;
uint_t ctime;
};
struct newstat {
dword_t dev;
dword_t ino;
word_t mode;
word_t nlink;
word_t uid;
word_t gid;
dword_t rdev;
dword_t size;
dword_t blksize;
dword_t blocks;
dword_t atime;
dword_t atime_nsec;
dword_t mtime;
dword_t mtime_nsec;
dword_t ctime;
dword_t ctime_nsec;
char pad[8];
};
struct newstat64 {
qword_t dev;
dword_t _pad1;
dword_t fucked_ino;
dword_t mode;
dword_t nlink;
dword_t uid;
dword_t gid;
qword_t rdev;
dword_t _pad2;
qword_t size;
dword_t blksize;
qword_t blocks;
dword_t atime;
dword_t atime_nsec;
dword_t mtime;
dword_t mtime_nsec;
dword_t ctime;
dword_t ctime_nsec;
qword_t ino;
} __attribute__((packed));
struct statfsbuf {
dword_t type;
dword_t bsize;
qword_t blocks;
qword_t bfree;
qword_t bavail;
qword_t files;
qword_t ffree;
qword_t fsid;
dword_t namelen;
dword_t frsize;
dword_t flags;
dword_t pad[4];
};
#endif