stat.h

来自「根据给定的程序进行调试」· C头文件 代码 · 共 58 行

H
58
字号
/*	stat.h

	Definitions used for file status functions

        Copyright (c) Borland International 1987,1988,1990
	All Rights Reserved.
*/
#if __STDC__
#define _Cdecl
#else
#define _Cdecl	cdecl
#endif

#ifndef __PAS__
#define _CType _Cdecl
#else
#define _CType pascal
#endif

#ifndef _STAT_H
#define _STAT_H 1

#define S_IFMT	0xF000	/* file type mask */
#define S_IFDIR	0x4000	/* directory */
#define S_IFIFO	0x1000	/* FIFO special */
#define S_IFCHR	0x2000	/* character special */
#define S_IFBLK	0x3000	/* block special */
#define S_IFREG	0x8000	/* or just 0x0000, regular */
#define S_IREAD	0x0100	/* owner may read */
#define S_IWRITE 0x0080	/* owner may write */
#define S_IEXEC	0x0040	/* owner may execute <directory search> */

struct	stat
{
	short st_dev;
	short st_ino;
	short st_mode;
	short st_nlink;
	int   st_uid;
	int   st_gid;
	short st_rdev;
	long  st_size;
	long  st_atime;
	long  st_mtime;
	long  st_ctime;
};

#ifdef __cplusplus
extern "C" {
#endif
int  _Cdecl fstat (int __handle, struct stat *__statbuf);
int  _Cdecl stat  (char *__path, struct stat *__statbuf);
#ifdef __cplusplus
}
#endif

#endif	/* _STAT_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?