File:  [RetroPC.NET] / xmil / adv / agb / advlibc / include / io.h
Revision 1.1: download - view: text, annotated - select for diffs
Fri Feb 4 15:42:08 2005 JST (20 years, 9 months ago) by yui
Branches: MAIN
CVS tags: HEAD
RetroPC CVS restarting 2005/02/04 (T.Yui)

#ifndef _ADVLIBC_IO_
#define _ADVLIBC_IO_

#include	"./advtypes.h"

enum {
	_O_RDONLY		= 0x01,
	_O_WRONLY		= 0x02,
	_O_RDWR			= 0x04,
	_O_CREAT		= 0x08,
	_O_TRUNC		= 0x10,
	_O_APPEND		= 0x20,
	_O_BINARY		= 0x40,
	_O_TEXT			= 0x80
};

#ifdef __cplusplus
extern "C" {
#endif

int LIBCCALL _open(const char *filename, int mode, ...);
int LIBCCALL _close(int fileno);
int LIBCCALL _read(int fileno, void *buf, unsigned int count);
int LIBCCALL _write(int fileno, const void *buf, unsigned int count);
long LIBCCALL _lseek(int fileno, long offset, int origin);
long LIBCCALL _tell(int fileno);

#ifdef __cplusplus
}
#endif

#endif

RetroPC.NET-CVS <cvs@retropc.net>