📄 ntfstypes.h
字号:
/* * types.h * This file defines four things: * - generic platform independent fixed-size types (e.g. ntfs_u32) * - specific fixed-size types (e.g. ntfs_offset_t) * - macros that read and write those types from and to byte arrays * - types derived from OS specific ones * * Copyright (C) 1996,1998 Martin von L鰓is */#ifdef HAVE_CONFIG_H#include "config.h"#endif#if defined(i386) || defined(__i386__)/* FIXME: use platform headers */#define __LITTLE_ENDIAN/* unsigned integral types */#ifndef NTFS_INTEGRAL_TYPES#define NTFS_INTEGRAL_TYPEStypedef unsigned char ntfs_u8;typedef unsigned short ntfs_u16;typedef unsigned int ntfs_u32;typedef unsigned long long ntfs_u64;typedef char ntfs_s8;typedef short ntfs_s16;typedef int ntfs_s32;typedef long long ntfs_s64;#endif/* unicode character type */#ifndef NTFS_WCHAR_T#define NTFS_WCHAR_Ttypedef unsigned short ntfs_wchar_t;#endif/* file offset */#ifndef NTFS_OFFSET_T#define NTFS_OFFSET_Ttypedef unsigned long long ntfs_offset_t;#endif/* UTC */#ifndef NTFS_TIME64_T#define NTFS_TIME64_Ttypedef unsigned long long ntfs_time64_t;#endif/* This is really unsigned long long. So we support only volumes up to 2 TB */#ifndef NTFS_CLUSTER_T#define NTFS_CLUSTER_Ttypedef unsigned int ntfs_cluster_t;#endif#else#error "Put your machine description here"#endif#include "ntfsendian.h"/* architecture independent macros *//* PUTU32 would not clear all bytes */#define NTFS_PUTINUM(p,i) NTFS_PUTU64(p,i->i_number);\ NTFS_PUTU16(((char*)p)+6,i->sequence_number)/* system dependent types */#ifdef HAVE_SYS_CDEFS_H/* hack to get BSD system header files to work */#include <sys/cdefs.h>#endif#include <sys/types.h>#include <sys/time.h>#include <sys/stat.h>typedef mode_t ntmode_t;typedef uid_t ntfs_uid_t;typedef gid_t ntfs_gid_t;typedef size_t ntfs_size_t;typedef time_t ntfs_time_t;/* * Local variables: * c-file-style: "linux" * End: */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -