XFusion API v1.3.0
载入中...
搜索中...
未找到
xf_vfs_sys_stat.h
浏览该文件的文档.
1
12#ifndef __XF_VFS_SYS_STAT_H__
13#define __XF_VFS_SYS_STAT_H__
14
15/* ==================== [Includes] ========================================== */
16
18#include "xf_vfs_sys_types.h"
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24/* ==================== [Defines] =========================================== */
25
26#define XF_VFS__IFMT 0170000
27#define XF_VFS__IFDIR 0040000
28#define XF_VFS__IFCHR 0020000
29#define XF_VFS__IFBLK 0060000
30#define XF_VFS__IFREG 0100000
31#define XF_VFS__IFLNK 0120000
32#define XF_VFS__IFSOCK 0140000
33#define XF_VFS__IFIFO 0010000
35#define XF_VFS_S_BLKSIZE 1024
37#define XF_VFS_S_ISUID 0004000
38#define XF_VFS_S_ISGID 0002000
39#define XF_VFS_S_ISVTX 0001000
41#define XF_VFS_S_IFMT XF_VFS__IFMT
42#define XF_VFS_S_IFDIR XF_VFS__IFDIR
43#define XF_VFS_S_IFCHR XF_VFS__IFCHR
44#define XF_VFS_S_IFBLK XF_VFS__IFBLK
45#define XF_VFS_S_IFREG XF_VFS__IFREG
46#define XF_VFS_S_IFLNK XF_VFS__IFLNK
47#define XF_VFS_S_IFSOCK XF_VFS__IFSOCK
48#define XF_VFS_S_IFIFO XF_VFS__IFIFO
49
50#define XF_VFS_S_IRWXU (XF_VFS_S_IRUSR | XF_VFS_S_IWUSR | XF_VFS_S_IXUSR)
51#define XF_VFS_S_IRUSR 0000400
52#define XF_VFS_S_IWUSR 0000200
53#define XF_VFS_S_IXUSR 0000100
54#define XF_VFS_S_IRWXG (XF_VFS_S_IRGRP | XF_VFS_S_IWGRP | XF_VFS_S_IXGRP)
55#define XF_VFS_S_IRGRP 0000040
56#define XF_VFS_S_IWGRP 0000020
57#define XF_VFS_S_IXGRP 0000010
58#define XF_VFS_S_IRWXO (XF_VFS_S_IROTH | XF_VFS_S_IWOTH | XF_VFS_S_IXOTH)
59#define XF_VFS_S_IROTH 0000004
60#define XF_VFS_S_IWOTH 0000002
61#define XF_VFS_S_IXOTH 0000001
63/* ==================== [Typedefs] ========================================== */
64
65typedef struct xf_vfs_stat {
69 /*
70 以下几个时间修改了命名,防止与标准库头文件同时存在时被错误覆盖
71 #define st_atime st_actime
72 #define st_mtime st_modtime
73 #define st_ctime st_chtime
74 */
81
82/* ==================== [Global Prototypes] ================================= */
83
84/* ==================== [Macros] ============================================ */
85
86#ifdef __cplusplus
87} /* extern "C" */
88#endif
89
90#endif // __XF_VFS_SYS_STAT_H__
xf_vfs_time_t st_chtime
xf_vfs_time_t st_modtime
xf_vfs_off_t st_size
xf_vfs_mode_t st_mode
xf_vfs_blksize_t st_blksize
xf_vfs_time_t st_actime
xf_vfs_dev_t st_dev
xf_vfs_blkcnt_t st_blocks
xf_vfs 模块内部配置总头文件。 确保 xf_vfs_config.h 的所有定义都有默认值。
struct xf_vfs_stat xf_vfs_stat_t
unsigned long xf_vfs_mode_t
long xf_vfs_blksize_t
unsigned long xf_vfs_time_t
long xf_vfs_blkcnt_t
long xf_vfs_off_t
short xf_vfs_dev_t