2002-12-02 02:57:17 -05:00
|
|
|
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
#ifndef _IO_WINCE_H_
|
|
|
|
#define _IO_WINCE_H_
|
|
|
|
|
|
|
|
#ifndef _TIME_T_DEFINED
|
|
|
|
typedef unsigned long time_t;
|
|
|
|
#define _TIME_T_DEFINED
|
|
|
|
#endif
|
2002-12-02 02:57:17 -05:00
|
|
|
|
|
|
|
#ifndef _FSIZE_T_DEFINED
|
|
|
|
typedef unsigned long _fsize_t; /* Could be 64 bits for Win32 */
|
|
|
|
#define _FSIZE_T_DEFINED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _FINDDATA_T_DEFINED
|
|
|
|
struct _finddata_t {
|
|
|
|
unsigned attrib;
|
|
|
|
time_t time_create; /* -1 for FAT file systems */
|
|
|
|
time_t time_access; /* -1 for FAT file systems */
|
|
|
|
time_t time_write;
|
|
|
|
_fsize_t size;
|
|
|
|
char name[260];
|
|
|
|
};
|
|
|
|
#define _FINDDATA_T_DEFINED
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
int _chsize(int handle, long size);
|
|
|
|
int _rename (const char *oldname, const char *newname);
|
|
|
|
int _unlink(const char *file);
|
|
|
|
int _umask(int cmask);
|
|
|
|
int _chmod(const char *path, int mode);
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
int dup( int handle );
|
|
|
|
//int dup2( int handle1, int handle2 );
|
2002-12-02 02:57:17 -05:00
|
|
|
int _isatty(int fd);
|
|
|
|
int _pipe(int *phandles, unsigned int psize, int textmode);
|
|
|
|
int _access(const char *filename, int flags);
|
|
|
|
int _open_osfhandle ( long osfhandle, int flags);
|
|
|
|
long _get_osfhandle( int filehandle );
|
|
|
|
int _open(const char *file, int mode,...);
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
int close(int fd);
|
2002-12-02 02:57:17 -05:00
|
|
|
int _read(int fd, void *buffer, int length);
|
|
|
|
int _write(int fd, const void *buffer, unsigned count);
|
|
|
|
long _lseek(int handle, long offset, int origin);
|
|
|
|
long _findfirst( char *filespec, struct _finddata_t *fileinfo );
|
|
|
|
int _findnext( long handle, struct _finddata_t *fileinfo );
|
|
|
|
int _findclose( long handle );
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
2003-01-04 13:17:30 -05:00
|
|
|
#define chmod _chmod
|
2002-12-02 02:57:17 -05:00
|
|
|
#define chsize _chsize
|
|
|
|
#define rename _rename
|
|
|
|
#define unlink _unlink
|
|
|
|
#define open _open
|
|
|
|
//#define close _close
|
|
|
|
#define read _read
|
|
|
|
#define write _write
|
|
|
|
#define umask _umask
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
//#define dup _dup
|
2002-12-02 02:57:17 -05:00
|
|
|
#define isatty _isatty
|
|
|
|
#define access _access
|
|
|
|
#define pipe _pipe
|
2003-01-04 13:17:30 -05:00
|
|
|
#define setmode _setmode
|
|
|
|
#define lseek _lseek
|
2002-12-02 02:57:17 -05:00
|
|
|
|
* wince/ : files removed.
(config, dll.mak, exe.mak, mswince-ruby17.def,
io.c, process.c, signal.c, string.c, time.c)
* wince/ : files added.
(assert.c, Makefile.sub, mkexports.rb, io_wce.c,
process_wce.c, signal_wce.c, string_wce.c,
time_wce.c)
* wince/configure.bat : like mswin32 style.
* wince/direct.c : remove "static" at _currentdir.
* wince/io.h : change definition.
* wince/stdio.c : _fdopen -> fdopen.
* wince/process.h : add_P_OVERLAY.
* wince/time.h : change definition.
* wince/wincemain.c : add wce_SetCurrentDir.
* wince/wince.c : add wce_SetCurrentDir and wce_fopen.
fix GetModuleFileNameA to return correct "lpFileName".
* wince/wince.h : remove #ifdef.
* wince/sys/utime.h, utime.c : rename _utime to utime.
* wince/sys/stat.c : expand relative directory in stat.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-04-26 01:25:30 -04:00
|
|
|
#define _close close
|
|
|
|
|
2002-12-02 02:57:17 -05:00
|
|
|
#endif
|
|
|
|
|