home *** CD-ROM | disk | FTP | other *** search
- #ifndef __stat_h
- #define __stat_h
-
- #pragma info( none )
- #ifndef __CHKHDR__
- #pragma info( none )
- #endif
- #pragma info( restore )
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- /********************************************************************/
- /* <sys\stat.h> header file */
- /* */
- /* Licensed Materials - Property of IBM */
- /* */
- /* IBM C Set/2 Beta Version */
- /* Copyright (C) International Business Machines Corp., 1991,1992 */
- /* All rights reserved */
- /* */
- /* US Government Users Restricted Rights - */
- /* Use, duplication, or disclosure restricted */
- /* by GSA ADP Schedule Contract with IBM Corp. */
- /* */
- /********************************************************************/
-
- #if ( defined(__SPC__) || defined(__EXTENDED__))
-
- #ifndef __ino_t
- typedef unsigned short ino_t;
- #define __ino_t
- #endif
-
- #ifndef __time_t
- #define __time_t
- typedef long time_t;
- #endif
-
- #ifndef __dev_t
- typedef short dev_t;
- #define __dev_t
- #endif
-
- #ifndef __off_t
- typedef long off_t;
- #define __off_t
- #endif
-
- #pragma pack( 2 )
- struct stat
- {
- dev_t st_dev;
- ino_t st_ino;
- unsigned short st_mode;
- short st_nlink;
- short st_uid;
- short st_gid;
- dev_t st_rdev;
- unsigned short __filler;
- off_t st_size;
- time_t st_atime;
- time_t st_mtime;
- time_t st_ctime;
- };
- #pragma pack( )
-
- #define S_IFDIR 0x4000 /* directory */
- #define S_IFCHR 0x2000 /* character device */
- #define S_IFREG 0x8000 /* regular file */
- #define S_IREAD 0x0100 /* read permission */
- #define S_IWRITE 0x0080 /* write permission */
- #define S_IEXEC 0x0040 /* execute/search permission */
-
- int _Optlink _fstat( int, struct stat * );
- #ifdef __cplusplus
- int _Optlink _stat( const char *, struct stat * );
- #else
- int _Optlink _stat( char *, struct stat * );
- #endif
-
- #define stat(a,b) _stat((a),(b))
- #define fstat(a,b) _fstat((a),(b))
-
- #endif
-
- #ifdef __cplusplus
- }
- #endif
-
- #pragma info( none )
- #ifndef __CHKHDR__
- #pragma info( restore )
- #endif
- #pragma info( restore )
-
- #endif
-