blob: 20ea03bce750c54db94f4d0e4e7cbfd095d6c3a8 (
plain) (
tree)
|
|
#ifndef DEF_TCE_VFS_H
#define DEF_TCE_VFS_H
#include <types.h>
typedef size_t FILE;
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_APPEND 0x00000004
#define FM_TRUNC 0x00000008
#define FM_CREATE 0x00000010
#define FM_DELETE 0x00000020
// 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 0x00000001
#define FT_DIR 0x00000002
#define FT_SYMLINK 0x00000004
#define FT_DEV 0x00000008
#define FT_TERMINAL 0x00000010
// device types
#define DT_BLOCK 1
#define DT_KEYBOARD 2
#define DT_DISPLAY 3
#endif
|