📄 mount.h
字号:
/* *---------------------------------------------------------------------- * T-Kernel / Standard Extension * * Copyright (C) 2006 by Ken Sakamura. All rights reserved. * T-Kernel / Standard Extension is distributed * under the T-License for T-Kernel / Standard Extension. *---------------------------------------------------------------------- * * Version: 1.00.00 * Released by T-Engine Forum(http://www.t-engine.org) at 2006/8/11. * *---------------------------------------------------------------------- *//* * mount.h * */#ifndef __SEIO_SYS_MOUNT_H__#define __SEIO_SYS_MOUNT_H__#include "types.h"#ifdef __cplusplusextern "C" {#endiftypedef struct fsid { long val[2]; /* File system ID */} fsid_t;#define MNAMELEN 90 /* Connection name/Maximum length of device name *//* * File system information * Value may not be defined to the item with * mark, according to the file system. * In this case, -1 is set. */struct statfs { long f_spare2; /* (Free) */ long f_bsize; /* Logical block size (B: byte count) */ long f_iosize; /* Optimum transfer block size (B) */ long f_blocks; /* File system capacity (LB:logical block count) */ long f_bfree; /* File system free space (LB) */ long f_bavail; /* Free space available to general user(LB) */ long f_files; /* *Maximum file count */ long f_ffree; /* *Free file count */ fsid_t f_fsid; /* File system ID (constantly 0) */ uid_t f_owner; /* Connected user (constantly 0) */ int f_type; /* File system type */ int f_flags; /* Connection flag */ long f_spare[6]; /* (free) */ char f_mntonname[MNAMELEN]; /* Connection name */ char f_mntfromname[MNAMELEN]; /* Device name */};/* * File system type "f_type" */#define MOUNT_STDFS 20 /* Standard file system *//* * Connection flag "f_flags" */#define MNT_RDONLY 0x00000001 /* Read-only *//* * "flags" parameter of "getfsstat()" */#define MNT_WAIT 1#define MNT_NOWAIT 2/* * System call */extern int getfsstat( struct statfs *buf, long bufsize, int flags );#ifdef __cplusplus}#endif#endif /* __SEIO_SYS_MOUNT_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -