5 #ifndef _TIME_T_DEFINED
6 typedef unsigned long time_t;
7 #define _TIME_T_DEFINED
10 #ifndef _FSIZE_T_DEFINED
11 typedef unsigned long _fsize_t
; /* Could be 64 bits for Win32 */
12 #define _FSIZE_T_DEFINED
15 #ifndef _FINDDATA_T_DEFINED
18 time_t time_create
; /* -1 for FAT file systems */
19 time_t time_access
; /* -1 for FAT file systems */
24 #define _FINDDATA_T_DEFINED
32 int _chsize(int handle
, long size
);
33 int _rename (const char *oldname
, const char *newname
);
34 int _unlink(const char *file
);
35 int _umask(int cmask
);
36 int _chmod(const char *path
, int mode
);
37 int dup( int handle
);
38 //int dup2( int handle1, int handle2 );
40 int _pipe(int *phandles
, unsigned int psize
, int textmode
);
41 int _access(const char *filename
, int flags
);
42 int _open_osfhandle ( long osfhandle
, int flags
);
43 long _get_osfhandle( int filehandle
);
44 int _open(const char *file
, int mode
,...);
46 int _read(int fd
, void *buffer
, int length
);
47 int _write(int fd
, const void *buffer
, unsigned count
);
48 long _lseek(int handle
, long offset
, int origin
);
49 long _findfirst( char *filespec
, struct _finddata_t
*fileinfo
);
50 int _findnext( long handle
, struct _finddata_t
*fileinfo
);
51 int _findclose( long handle
);
58 #define chsize _chsize
59 #define rename _rename
60 #define unlink _unlink
62 //#define close _close
67 #define isatty _isatty
68 #define access _access
70 #define setmode _setmode