sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
fileio.h File Reference
#include <io_common.h>

Go to the source code of this file.

Macros

#define FIO_WAIT   0
#define FIO_NOWAIT   1
#define FIO_COMPLETE   1
#define FIO_INCOMPLETE   0
#define EOF   (-1)

Functions

int fioInit (void)
void fioExit (void)
int fioOpen (const char *fname, int mode)
int fioClose (int fd)
int fioRead (int fd, void *buff, int buff_size)
int fioWrite (int fd, const void *buff, int buff_size)
int fioLseek (int fd, int offset, int whence)
int fioMkdir (const char *dirname)
int fioPutc (int fd, int c)
int fioGetc (int fd)
int fioGets (int fd, char *buff, int n)
void fioSetBlockMode (int blocking)
int fioSync (int mode, int *retVal)
int fioIoctl (int fd, int request, void *data)
int fioDopen (const char *name)
int fioDclose (int fd)
int fioDread (int fd, io_dirent_t *buf)
int fioGetstat (const char *name, io_stat_t *buf)
int fioChstat (const char *name, io_stat_t *buf, unsigned int cbit)
int fioRemove (const char *name)
int fioFormat (const char *name)
int fioRmdir (const char *dirname)

Detailed Description

EE FILE IO handling

Definition in file fileio.h.

Macro Definition Documentation

◆ EOF

#define EOF   (-1)

Definition at line 34 of file fileio.h.

◆ FIO_COMPLETE

#define FIO_COMPLETE   1

Definition at line 31 of file fileio.h.

◆ FIO_INCOMPLETE

#define FIO_INCOMPLETE   0

Definition at line 32 of file fileio.h.

◆ FIO_NOWAIT

#define FIO_NOWAIT   1

Definition at line 29 of file fileio.h.

◆ FIO_WAIT

#define FIO_WAIT   0

Definition at line 28 of file fileio.h.

Function Documentation

◆ fioChstat()

int fioChstat ( const char * name,
io_stat_t * buf,
unsigned int cbit )
extern

Definition at line 620 of file fileio.c.

◆ fioClose()

int fioClose ( int fd)
extern

Definition at line 183 of file fileio.c.

◆ fioDclose()

int fioDclose ( int fd)
extern

Definition at line 528 of file fileio.c.

◆ fioDopen()

int fioDopen ( const char * name)
extern

Definition at line 496 of file fileio.c.

◆ fioDread()

int fioDread ( int fd,
io_dirent_t * buf )
extern

Definition at line 559 of file fileio.c.

◆ fioExit()

void fioExit ( void )
extern

Definition at line 140 of file fileio.c.

◆ fioFormat()

int fioFormat ( const char * name)
extern

Definition at line 649 of file fileio.c.

◆ fioGetc()

int fioGetc ( int fd)
extern

Definition at line 463 of file fileio.c.

◆ fioGets()

int fioGets ( int fd,
char * buff,
int n )
extern

Definition at line 471 of file fileio.c.

◆ fioGetstat()

int fioGetstat ( const char * name,
io_stat_t * buf )
extern

Definition at line 589 of file fileio.c.

◆ fioInit()

int fioInit ( void )
extern

Definition at line 47 of file fileio.c.

◆ fioIoctl()

int fioIoctl ( int fd,
int request,
void * data )
extern

Definition at line 332 of file fileio.c.

◆ fioLseek()

int fioLseek ( int fd,
int offset,
int whence )
extern

Definition at line 304 of file fileio.c.

◆ fioMkdir()

int fioMkdir ( const char * dirname)
extern

Definition at line 394 of file fileio.c.

◆ fioOpen()

int fioOpen ( const char * fname,
int mode )
extern

Definition at line 155 of file fileio.c.

◆ fioPutc()

int fioPutc ( int fd,
int c )
extern

Definition at line 458 of file fileio.c.

◆ fioRead()

int fioRead ( int fd,
void * buff,
int buff_size )
extern

Definition at line 229 of file fileio.c.

◆ fioRemove()

int fioRemove ( const char * name)
extern

Definition at line 362 of file fileio.c.

◆ fioRmdir()

int fioRmdir ( const char * dirname)
extern

Definition at line 426 of file fileio.c.

◆ fioSetBlockMode()

void fioSetBlockMode ( int blocking)
extern

Definition at line 135 of file fileio.c.

◆ fioSync()

int fioSync ( int mode,
int * retVal )
extern

Definition at line 97 of file fileio.c.

◆ fioWrite()

int fioWrite ( int fd,
const void * buff,
int buff_size )
extern

Definition at line 261 of file fileio.c.