hr_storage.h
来自「开发snmp的开发包有两个开放的SNMP开发库」· C头文件 代码 · 共 44 行
H
44 行
/* * Host Resources MIB - storage group interface - hr_system.h * */#ifndef _MIBGROUP_HRSTORAGE_H#define _MIBGROUP_HRSTORAGE_Hconfig_require(hardware/memory)config_require(host/hr_filesys)extern void init_hr_storage(void);extern FindVarMethod var_hrstore;#define HRS_TYPE_MBUF 1#define HRS_TYPE_MEM 2#define HRS_TYPE_SWAP 3#define HRS_TYPE_FIXED_MAX 3 /* the largest fixed type */#ifdef WIN32/* linux-compatible values for fs type */#define MSDOS_SUPER_MAGIC 0x4d44#define NTFS_SUPER_MAGIC 0x5346544E/* Define the statfs structure for Windows. */struct win_statfs { long f_type; /* type of filesystem */ long f_bsize; /* optimal transfer block size */ long f_blocks; /* total data blocks in file system */ long f_bfree; /* free blocks in fs */ long f_bavail; /* free blocks avail to non-superuser */ long f_files; /* total file nodes in file system */ long f_ffree; /* free file nodes in fs */ long f_fsid; /* file system id */ long f_namelen; /* maximum length of filenames */ long f_spare[6]; /* spare for later */ char f_driveletter[6];};static int win_statfs (const char *path, struct win_statfs *buf);#endif /* WIN32*/#endif /* _MIBGROUP_HRSTORAGE_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?