Break ioctl() up into smaller syscalls
This commit is contained in:
24
share/sysdefs/fs.h
Normal file
24
share/sysdefs/fs.h
Normal file
@ -0,0 +1,24 @@
|
||||
#ifndef SHARE_SYSDEFS_FS_H_
|
||||
#define SHARE_SYSDEFS_FS_H_
|
||||
|
||||
#define FS_OF_READ (1<<0)
|
||||
#define FS_OF_WRITE (1<<1)
|
||||
#define FS_OF_MAKE (1<<2)
|
||||
|
||||
#define FSSTAT_DIR 0
|
||||
#define FSSTAT_FILE 1
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
|
||||
typedef struct {
|
||||
size_t size;
|
||||
int32_t type;
|
||||
} FsStat;
|
||||
|
||||
typedef struct {
|
||||
FsStat stat;
|
||||
char name[0x100];
|
||||
} FsDirent;
|
||||
|
||||
#endif // SHARE_SYSDEFS_FS_H_
|
||||
Reference in New Issue
Block a user