blob: 58e67f57ac5265ee802eb2569dedb4a4e1027c54 (
plain) (
tree)
|
|
#ifndef DEF_TCE_VFS_H
#define DEF_TCE_VFS_H
#include <types.h>
typedef struct _file_info {
uint32_t type;
uint32_t dev_type;
uint32_t mode;
uint32_t uid, gid;
size_t size;
} file_info;
// file open flags
#define FM_READ 0x00000001
#define FM_WRITE 0x00000002
#define FM_DELETE 0x00000004
#define FM_TRUNC 0x00000008
#define FM_CREATE 0x00000010
// link modes
#define LM_SYMLINK 1
#define LM_HARDLINK 2
#define LM_MOUNT 3
#define LM_OUTPUT_TO 4
// file type flags
#define FT_FILE 0x00000100
#define FT_DIR 0x00000200
#define FT_SYMLINK 0x00000400
#define FT_DEV 0x00000800
#define FT_TERMINAL 0x00001000
// device types
#define DT_BLOCK 1
#define DT_PCKBD 2
#define DT_VGATXT 3
#define DT_VESAFB 4
#define DEV_CONTROL 0xB0057ED1 // hack, see doc/vfs.txt
#endif
|