Atlas - STAT.H

Home / ext / JunkDrawer / DOS / BuildTools / v4.0 / BLD / INC / SYS Lines: 1 | Size: 1441 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)]
[FILE BEGIN]
1/*** 2*sys\stat.h - defines structure used by stat() and fstat() 3* 4* Copyright (c) 1985-1988, Microsoft Corporation. All rights reserved. 5* 6*Purpose: 7* This file defines the structure used by the stat() and fstat() 8* routines. 9* [System V] 10* 11*******************************************************************************/ 12 13 14#ifndef NO_EXT_KEYS /* extensions enabled */ 15 #define CDECL cdecl 16#else /* extensions not enabled */ 17 #define CDECL 18#endif /* NO_EXT_KEYS */ 19 20#ifndef _TIME_T_DEFINED 21typedef long time_t; 22#define _TIME_T_DEFINED 23#endif 24 25/* define structure for returning status information */ 26 27#ifndef _STAT_DEFINED 28struct stat { 29 dev_t st_dev; 30 ino_t st_ino; 31 unsigned short st_mode; 32 short st_nlink; 33 short st_uid; 34 short st_gid; 35 dev_t st_rdev; 36 off_t st_size; 37 time_t st_atime; 38 time_t st_mtime; 39 time_t st_ctime; 40 }; 41#define _STAT_DEFINED 42#endif 43 44#define S_IFMT 0170000 /* file type mask */ 45#define S_IFDIR 0040000 /* directory */ 46#define S_IFCHR 0020000 /* character special */ 47#define S_IFREG 0100000 /* regular */ 48#define S_IREAD 0000400 /* read permission, owner */ 49#define S_IWRITE 0000200 /* write permission, owner */ 50#define S_IEXEC 0000100 /* execute/search permission, owner */ 51 52 53/* function prototypes */ 54 55int CDECL fstat(int, struct stat *); 56int CDECL stat(char *, struct stat *); 57
[FILE END]
(C) 2025 0x4248 (C) 2025 4248 Media and 4248 Systems, All part of 0x4248 See LICENCE files for more information. Not all files are by 0x4248 always check Licencing.