⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stat.h

📁 在纯DOS下运行的TurboC3_ucos2_ucgui bug改进版本
💻 H
字号:
/*  stat.h

    Definitions used for file status functions

    Copyright (c) 1987, 1991 by Borland International
    All Rights Reserved.
*/

#ifndef __STAT_H
#define __STAT_H

#if !defined( __DEFS_H )
#include <_defs.h>
#endif

#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -