campo-sirio/zip/unzip/mac/macstat.h
alex f0d81ffd1c This commit was generated by cvs2svn to compensate for changes in r5402,
which included commits to RCS files with non-trunk default branches.

git-svn-id: svn://10.65.10.50/trunk@5403 c028cbd2-c16b-5b4b-a496-9718f37d4682
1997-10-20 15:51:36 +00:00

41 lines
974 B
C
Executable File

/*****************************************************************
*
* stat.h
*
*****************************************************************/
#include <time.h>
extern int macstat(char *path, struct stat *buf, short nVRefNum, long lDirID );
typedef long dev_t;
typedef long ino_t;
typedef long off_t;
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;
off_t st_size;
time_t st_atime, st_mtime, st_ctime;
long st_blksize;
long st_blocks;
};
#define S_IFMT 0xF000
#define S_IFIFO 0x1000
#define S_IFCHR 0x2000
#define S_IFDIR 0x4000
#define S_IFBLK 0x6000
#define S_IFREG 0x8000
#define S_IFLNK 0xA000
#define S_IFSOCK 0xC000
#define S_ISUID 0x800
#define S_ISGID 0x400
#define S_ISVTX 0x200
#define S_IREAD 0x100
#define S_IWRITE 0x80
#define S_IEXEC 0x40