标题:关于stat.h
取消只看楼主
liuxin9023
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2005-4-30
 问题点数:0 回复次数:0 
关于stat.h

/* stat.h

Definitions used for file status functions

Copyright (c) Borland International 1987,1988 All Rights Reserved. */ #if __STDC__ #define _Cdecl #else #define _Cdecl cdecl #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; };

int _Cdecl fstat (int handle, struct stat *statbuf); int _Cdecl stat (char *path, struct stat *statbuf);

#endif /* _STAT_H */ 这个头文件干嘛用的啊 还有前面的0xF000 0x0040这样的东西是做什么的啊

搜索更多相关主题的帖子: stat 
2005-04-30 14:01



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-17095-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.766579 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved