00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef __FCNTL__
00010 #define __FCNTL__
00011
00012 #ifndef __TYPES__
00013 #include <Types.h>
00014 #endif
00015
00016
00017
00018
00019
00020 #ifndef __STDIO__
00021 #define SEEK_CUR 1
00022 #define SEEK_END 2
00023 #define SEEK_SET 0
00024 #endif
00025
00026
00027
00028
00029
00030 #define F_DELETE (('d'<<8)|0x01)
00031 #define F_RENAME (('d'<<8)|0x02)
00032
00033
00034
00035
00036
00037 #define F_OPEN (('d'<<8)|0x00)
00038
00039 #define F_GTABINFO (('e'<<8)|0x00)
00040 #define F_STABINFO (('e'<<8)|0x01)
00041 #define F_GFONTINFO (('e'<<8)|0x02)
00042 #define F_SFONTINFO (('e'<<8)|0x03)
00043 #define F_GPRINTREC (('e'<<8)|0x04)
00044 #define F_SPRINTREC (('e'<<8)|0x05)
00045 #define F_GSELINFO (('e'<<8)|0x06)
00046 #define F_SSELINFO (('e'<<8)|0x07)
00047 #define F_GWININFO (('e'<<8)|0x08)
00048 #define F_SWININFO (('e'<<8)|0x09)
00049 #define F_GSCROLLINFO (('e'<<8)|0x0A)
00050 #define F_SSCROLLINFO (('e'<<8)|0x0B)
00051 #define F_GMARKER (('e'<<8)|0x0D)
00052 #define F_SMARKER (('e'<<8)|0x0C)
00053 #define F_GSAVEONCLOSE (('e'<<8)|0x0F)
00054 #define F_SSAVEONCLOSE (('e'<<8)|0x0E)
00055
00056
00057
00058
00059
00060 struct MarkElement {
00061 int start;
00062 int end;
00063 unsigned char charCount;
00064 char name[64];
00065 } ;
00066
00067 #ifndef __cplusplus
00068 typedef struct MarkElement MarkElement;
00069 #endif
00070
00071 struct SelectionRecord {
00072 long startingPos;
00073 long endingPos;
00074 long displayTop;
00075 };
00076
00077 #ifndef __cplusplus
00078 typedef struct SelectionRecord SelectionRecord;
00079 #endif
00080
00081
00082
00083
00084
00085 #define O_RDONLY 0
00086 #define O_WRONLY 1
00087 #define O_RDWR 2
00088 #define O_APPEND (1<< 3)
00089 #define O_RSRC (1<< 4)
00090 #define O_ALIAS (1<< 5)
00091 #define O_CREAT (1<< 8)
00092 #define O_TRUNC (1<< 9)
00093 #define O_EXCL (1<<10)
00094 #define O_BINARY (1<<11)
00095 #define O_NRESOLVE (1<<14)
00096
00097 #ifdef __cplusplus
00098 extern "C" {
00099 #endif
00100
00101
00102
00103
00104 int close(int);
00105 int creat(const char*);
00106 int dup(int filedes);
00107 int faccess(char*, unsigned int, long*);
00108 int fcntl(int, unsigned int, int);
00109 long lseek(int, long, int);
00110 int open(const char*, int, ...);
00111 int read(int, char*, unsigned);
00112 int unlink(char*);
00113 int write(int, const char*, unsigned);
00114
00115 #ifdef __cplusplus
00116 }
00117 #endif
00118
00119
00120
00121
00122 #define F_DUPFD 0
00123
00124 #endif __FCNTL__