Files
RomWBW/Source/Images/d_hitechc/u1/STAT.H
Wayne Warthen 0d0360b277 Enhanced Hi-Tech C Compiler Files, Issue #521
Added the enhanced Hi-Tech C Compiler components from @Laci1953 to user area 1 of the Hi-Tech Compiler disk images.

Co-Authored-By: ladislau szilagyi <87603175+Laci1953@users.noreply.github.com>
2025-05-31 15:11:38 -07:00

28 lines
768 B
C
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#ifndef _HTC_STAT_H
#define _HTC_STAT_H
struct stat
{
short st_mode; /* flags */
long st_atime; /* access time */
long st_mtime; /* modification time */
long st_size; /* file size in bytes */
};
/* Flag bits in st_mode */
#define S_IFMT 0x600 /* type bits */
#define S_IFDIR 0x400 /* is a directory */
#define S_IFREG 0x200 /* is a regular file */
#define S_IREAD 0400 /* file can be read */
#define S_IWRITE 0200 /* file can be written */
#define S_IEXEC 0100 /* file can be executed */
#define S_HIDDEN 0x1000 /* file is hidden */
#define S_SYSTEM 0x2000 /* file is marked system */
#define S_ARCHIVE 0x4000 /* file has been written to */
extern int stat(char *, struct stat *);
#endif