#ifndef __FCNTL__
#define __FCNTL__
#ifndef __TYPES__
#include <Types.h>
#endif
#ifndef __STDIO__
#define SEEK_CUR 1
#define SEEK_END 2
#define SEEK_SET 0
#endif
#define F_DELETE (('d'<<8)|0x01)
#define F_RENAME (('d'<<8)|0x02)
#define F_OPEN (('d'<<8)|0x00)
#define F_GTABINFO (('e'<<8)|0x00)
#define F_STABINFO (('e'<<8)|0x01)
#define F_GFONTINFO (('e'<<8)|0x02)
#define F_SFONTINFO (('e'<<8)|0x03)
#define F_GPRINTREC (('e'<<8)|0x04)
#define F_SPRINTREC (('e'<<8)|0x05)
#define F_GSELINFO (('e'<<8)|0x06)
#define F_SSELINFO (('e'<<8)|0x07)
#define F_GWININFO (('e'<<8)|0x08)
#define F_SWININFO (('e'<<8)|0x09)
#define F_GSCROLLINFO (('e'<<8)|0x0A)
#define F_SSCROLLINFO (('e'<<8)|0x0B)
#define F_GMARKER (('e'<<8)|0x0D)
#define F_SMARKER (('e'<<8)|0x0C)
#define F_GSAVEONCLOSE (('e'<<8)|0x0F)
#define F_SSAVEONCLOSE (('e'<<8)|0x0E)
struct MarkElement {
int start;
int end;
unsigned char charCount;
char name[64];
} ;
#ifndef __cplusplus
typedef struct MarkElement MarkElement;
#endif
struct SelectionRecord {
long startingPos;
long endingPos;
long displayTop;
};
#ifndef __cplusplus
typedef struct SelectionRecord SelectionRecord;
#endif
#define O_RDONLY 0
#define O_WRONLY 1
#define O_RDWR 2
#define O_APPEND (1<< 3)
#define O_RSRC (1<< 4)
#define O_ALIAS (1<< 5)
#define O_CREAT (1<< 8)
#define O_TRUNC (1<< 9)
#define O_EXCL (1<<10)
#define O_BINARY (1<<11)
#define O_NRESOLVE (1<<14)
#ifdef __cplusplus
extern "C" {
#endif
int close(int);
int creat(const char*);
int dup(int filedes);
int faccess(char*, unsigned int, long*);
int fcntl(int, unsigned int, int);
long lseek(int, long, int);
int open(const char*, int, ...);
int read(int, char*, unsigned);
int unlink(char*);
int write(int, const char*, unsigned);
#ifdef __cplusplus
}
#endif
#define F_DUPFD 0
#endif __FCNTL__