diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-12-02 07:57:17 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-12-02 07:57:17 +0000 |
commit | 4d6d2ae1b417133546c56b3150ef51fa7647e2dc (patch) | |
tree | 4198e3ccd0a5bab17db2a0f82ee7b6c643115c69 /wince/io.h | |
parent | 1668ec3e5ce555161454e9b2657c89dc27fa1364 (diff) | |
download | ruby-4d6d2ae1b417133546c56b3150ef51fa7647e2dc.tar.gz ruby-4d6d2ae1b417133546c56b3150ef51fa7647e2dc.tar.xz ruby-4d6d2ae1b417133546c56b3150ef51fa7647e2dc.zip |
WinCE patch merged
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'wince/io.h')
-rw-r--r-- | wince/io.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/wince/io.h b/wince/io.h new file mode 100644 index 000000000..a3033183b --- /dev/null +++ b/wince/io.h @@ -0,0 +1,65 @@ + +#ifndef _IO_H_ +#define _IO_H_ + +#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); +int _dup( int handle ); +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,...); +int _close(int fd); +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 + +#define chsize _chsize +#define rename _rename +#define unlink _unlink +#define open _open +//#define close _close +#define read _read +#define write _write +#define umask _umask +#define dup _dup +#define isatty _isatty +#define access _access +#define pipe _pipe + +#endif + |