_NFILE_  	EQU	20

_A_NORMAL	EQU	00h
_A_RDONLY	EQU	01h
_A_HIDDEN	EQU	02h
_A_SYSTEM	EQU	04h
_A_SUBDIR	EQU	10h
_A_ARCH		EQU	20h

_A_TEMPORARY    EQU	0100h
_A_DELETE       EQU	0400h
_A_SEQSCAN      EQU	0800h
_A_RANDOM	EQU	1000h

FH_OPEN		EQU	01h
FH_EOF		EQU	02h
FH_CRLF		EQU	04h
FH_PIPE		EQU	08h
FH_APPEND	EQU	20h
FH_DEVICE	EQU	40h
FH_TEXT		EQU	80h

A_OPEN	 	EQU	0001h
A_TRUNC	 	EQU	0002h
A_CREATE	EQU	0010h

M_RDONLY	EQU	0000h
M_WRONLY	EQU	0001h
M_RDWR		EQU	0002h

SEEK_SET    	EQU	0
SEEK_CUR    	EQU	1
SEEK_END    	EQU	2

DEV_UNKNOWN   	EQU	0000h
DEV_DISK      	EQU	0001h
DEV_CHAR      	EQU	0002h
DEV_PIPE      	EQU	0003h
DEV_REMOTE    	EQU	8000h

close		PROTO PASCAL :WORD
read		PROTO PASCAL :WORD, :DWORD, :WORD
write		PROTO PASCAL :WORD, :DWORD, :WORD
lseek		PROTO PASCAL :WORD, :DWORD, :WORD
access		PROTO PASCAL :DWORD, :WORD
remove		PROTO PASCAL :DWORD
rename		PROTO PASCAL :DWORD, :DWORD
chsize		PROTO PASCAL :WORD, :DWORD
setmode		PROTO PASCAL :WORD, :WORD
filelength	PROTO PASCAL :WORD
tell		PROTO PASCAL :WORD
setfdate	PROTO PASCAL :WORD, :WORD, :WORD
setfattr	PROTO PASCAL :DWORD, :WORD
readword	PROTO PASCAL :DWORD
osftype		PROTO PASCAL :WORD
osfiletype	PROTO PASCAL :WORD
osisatty	PROTO PASCAL :WORD
osopen		PROTO PASCAL :DWORD, :WORD, :WORD, :WORD
osread		PROTO PASCAL :WORD, :DWORD, :WORD
oswrite		PROTO PASCAL :WORD, :DWORD, :WORD
oschsize	PROTO PASCAL :WORD, :DWORD
removefile	PROTO PASCAL :DWORD
isatty		PROTO PASCAL :WORD
_dup		PROTO PASCAL :WORD
dup2		PROTO PASCAL :WORD, :WORD
