sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
fileio.c File Reference
#include <tamtypes.h>
#include <ps2lib_err.h>
#include <kernel.h>
#include <sifrpc.h>
#include "sifarg.h"
#include <fileio.h>
#include <string.h>
#include <iopcontrol.h>
#include <fileio-common.h>

Go to the source code of this file.

Macros

#define NEWLIB_PORT_AWARE
#define D(fmt, args...)

Functions

void _fio_read_intr (struct _fio_read_data *)
void _fio_intr ()
int _fio_recv_data[512] __attribute__ ((aligned(64)))
int fioInit (void)
int fioSync (int mode, int *retVal)
void fioSetBlockMode (int blocking)
void fioExit (void)
int fioOpen (const char *name, int mode)
int fioClose (int fd)
int fioRead (int fd, void *ptr, int size)
int fioWrite (int fd, const void *ptr, int size)
int fioLseek (int fd, int offset, int whence)
int fioIoctl (int fd, int request, void *data)
int fioRemove (const char *name)
int fioMkdir (const char *path)
int fioRmdir (const char *dirname)
int fioPutc (int fd, int c)
int fioGetc (int fd)
int fioGets (int fd, char *buff, int n)
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, u32 cbit)
int fioFormat (const char *name)

Variables

SifRpcClientData_t _fio_cd
int _fio_block_mode
int _fio_io_sema
int _fio_completion_sema
int _fio_recv_data [512]
int _fio_intr_data [32]

Detailed Description

EE FILE IO handling

Definition in file fileio.c.

Macro Definition Documentation

◆ D

#define D ( fmt,
args... )
Value:
printf("(%s:%s:%i):" #fmt, __FILE__, __FUNCTION__, __LINE__, ##args)

Definition at line 28 of file fileio.c.

◆ NEWLIB_PORT_AWARE

#define NEWLIB_PORT_AWARE

Definition at line 22 of file fileio.c.

Function Documentation

◆ _fio_intr()

void _fio_intr ( void )

Definition at line 92 of file fileio.c.

◆ _fio_read_intr()

void _fio_read_intr ( struct _fio_read_data * data)

Definition at line 214 of file fileio.c.

◆ fioChstat()

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

Definition at line 620 of file fileio.c.

◆ fioClose()

int fioClose ( int fd)

Definition at line 183 of file fileio.c.

◆ fioDclose()

int fioDclose ( int fd)

Definition at line 528 of file fileio.c.

◆ fioDopen()

int fioDopen ( const char * name)

Definition at line 496 of file fileio.c.

◆ fioDread()

int fioDread ( int fd,
io_dirent_t * buf )

Definition at line 559 of file fileio.c.

◆ fioExit()

void fioExit ( void )

Definition at line 140 of file fileio.c.

◆ fioFormat()

int fioFormat ( const char * name)

Definition at line 649 of file fileio.c.

◆ fioGetc()

int fioGetc ( int fd)

Definition at line 463 of file fileio.c.

◆ fioGets()

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

Definition at line 471 of file fileio.c.

◆ fioGetstat()

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

Definition at line 589 of file fileio.c.

◆ fioInit()

int fioInit ( void )

Definition at line 47 of file fileio.c.

◆ fioIoctl()

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

Definition at line 332 of file fileio.c.

◆ fioLseek()

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

Definition at line 304 of file fileio.c.

◆ fioMkdir()

int fioMkdir ( const char * path)

Definition at line 394 of file fileio.c.

◆ fioOpen()

int fioOpen ( const char * name,
int mode )

Definition at line 155 of file fileio.c.

◆ fioPutc()

int fioPutc ( int fd,
int c )

Definition at line 458 of file fileio.c.

◆ fioRead()

int fioRead ( int fd,
void * ptr,
int size )

Definition at line 229 of file fileio.c.

◆ fioRemove()

int fioRemove ( const char * name)

Definition at line 362 of file fileio.c.

◆ fioRmdir()

int fioRmdir ( const char * dirname)

Definition at line 426 of file fileio.c.

◆ fioSetBlockMode()

void fioSetBlockMode ( int blocking)

Definition at line 135 of file fileio.c.

◆ fioSync()

int fioSync ( int mode,
int * retVal )

Definition at line 97 of file fileio.c.

◆ fioWrite()

int fioWrite ( int fd,
const void * ptr,
int size )

Definition at line 261 of file fileio.c.

Variable Documentation

◆ _fio_block_mode

int _fio_block_mode

Definition at line 43 of file fileio.c.

◆ _fio_cd

SifRpcClientData_t _fio_cd

Definition at line 40 of file fileio.c.

◆ _fio_completion_sema

int _fio_completion_sema

Definition at line 45 of file fileio.c.

◆ _fio_io_sema

int _fio_io_sema

Definition at line 44 of file fileio.c.