sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
fileXio_rpc.c File Reference
#include <tamtypes.h>
#include <kernel.h>
#include <sifrpc.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
#include <sys/fcntl.h>
#include <sys/stat.h>
#include <ps2sdkapi.h>
#include <iopcontrol.h>
#include <fileXio_rpc.h>
#include <errno.h>

Go to the source code of this file.

Functions

void _ps2sdk_fileXio_init ()
void _ps2sdk_fileXio_deinit ()
unsigned int __sbuff[0x1300] __attribute__ ((aligned(64)))
int fileXioInit (void)
void fileXioExit (void)
void fileXioStop (void)
int fileXioGetDeviceList (struct fileXioDevice deviceEntry[], unsigned int req_entries)
int fileXioGetdir (const char *pathname, struct fileXioDirEntry dirEntry[], unsigned int req_entries)
int fileXioMount (const char *mountpoint, const char *mountstring, int flag)
int fileXioUmount (const char *mountpoint)
int fileXioCopyfile (const char *source, const char *dest, int mode)
int fileXioMkdir (const char *pathname, int mode)
int fileXioRmdir (const char *pathname)
int fileXioRemove (const char *pathname)
int fileXioRename (const char *source, const char *dest)
int fileXioSymlink (const char *source, const char *dest)
int fileXioReadlink (const char *source, char *buf, unsigned int buflen)
int fileXioChdir (const char *pathname)
int fileXioOpen (const char *source, int flags,...)
int fileXioClose (int fd)
int fileXioRead (int fd, void *buf, int size)
int fileXioWrite (int fd, const void *buf, int size)
int fileXioLseek (int fd, int offset, int whence)
s64 fileXioLseek64 (int fd, s64 offset, int whence)
int fileXioChStat (const char *name, iox_stat_t *stat, int mask)
int fileXioGetStat (const char *name, iox_stat_t *stat)
int fileXioFormat (const char *dev, const char *blockdev, const void *args, int arglen)
int fileXioSync (const char *devname, int flag)
int fileXioDopen (const char *name)
int fileXioDclose (int fd)
int fileXioDread (int fd, iox_dirent_t *dirent)
int fileXioDevctl (const char *name, int cmd, void *arg, unsigned int arglen, void *buf, unsigned int buflen)
int fileXioIoctl (int fd, int cmd, void *arg)
int fileXioIoctl2 (int fd, int command, void *arg, unsigned int arglen, void *buf, unsigned int buflen)
int fileXioWaitAsync (int mode, int *retVal)
void fileXioSetBlockMode (int blocking)
int fileXioSetRWBufferSize (int size)

Variables

SifRpcClientData_t __cd0
int __fileXioBlockMode
int __fileXioCompletionSema
int __lock_sema_id

Detailed Description

fileXio RPC client

Definition in file fileXio_rpc.c.

Macro Definition Documentation

◆ NEWLIB_PORT_AWARE

#define NEWLIB_PORT_AWARE

Definition at line 28 of file fileXio_rpc.c.

Function Documentation

◆ _ps2sdk_fileXio_deinit()

void _ps2sdk_fileXio_deinit ( )

Definition at line 465 of file fileXio_ps2sdk.c.

◆ _ps2sdk_fileXio_init()

void _ps2sdk_fileXio_init ( )

Definition at line 459 of file fileXio_ps2sdk.c.

◆ fileXioChdir()

int fileXioChdir ( const char * pathname)

Definition at line 435 of file fileXio_rpc.c.

◆ fileXioChStat()

int fileXioChStat ( const char * name,
iox_stat_t * stat,
int mask )

Definition at line 663 of file fileXio_rpc.c.

◆ fileXioClose()

int fileXioClose ( int fd)

Definition at line 491 of file fileXio_rpc.c.

◆ fileXioCopyfile()

int fileXioCopyfile ( const char * source,
const char * dest,
int mode )

Definition at line 250 of file fileXio_rpc.c.

◆ fileXioDclose()

int fileXioDclose ( int fd)

Definition at line 802 of file fileXio_rpc.c.

◆ fileXioDevctl()

int fileXioDevctl ( const char * name,
int cmd,
void * arg,
unsigned int arglen,
void * buf,
unsigned int buflen )

Definition at line 864 of file fileXio_rpc.c.

◆ fileXioDopen()

int fileXioDopen ( const char * name)

Definition at line 778 of file fileXio_rpc.c.

◆ fileXioDread()

int fileXioDread ( int fd,
iox_dirent_t * dirent )

Definition at line 826 of file fileXio_rpc.c.

◆ fileXioExit()

void fileXioExit ( void )

Definition at line 108 of file fileXio_rpc.c.

◆ fileXioFormat()

int fileXioFormat ( const char * dev,
const char * blockdev,
const void * args,
int arglen )

Definition at line 722 of file fileXio_rpc.c.

◆ fileXioGetDeviceList()

int fileXioGetDeviceList ( struct fileXioDevice deviceEntry[],
unsigned int req_entries )

Definition at line 139 of file fileXio_rpc.c.

◆ fileXioGetdir()

int fileXioGetdir ( const char * pathname,
struct fileXioDirEntry dirEntry[],
unsigned int req_entries )

Definition at line 166 of file fileXio_rpc.c.

◆ fileXioGetStat()

int fileXioGetStat ( const char * name,
iox_stat_t * stat )

Definition at line 693 of file fileXio_rpc.c.

◆ fileXioInit()

int fileXioInit ( void )

Definition at line 62 of file fileXio_rpc.c.

◆ fileXioIoctl()

int fileXioIoctl ( int fd,
int cmd,
void * arg )

Definition at line 905 of file fileXio_rpc.c.

◆ fileXioIoctl2()

int fileXioIoctl2 ( int fd,
int command,
void * arg,
unsigned int arglen,
void * buf,
unsigned int buflen )

Definition at line 932 of file fileXio_rpc.c.

◆ fileXioLseek()

int fileXioLseek ( int fd,
int offset,
int whence )

Definition at line 599 of file fileXio_rpc.c.

◆ fileXioLseek64()

s64 fileXioLseek64 ( int fd,
s64 offset,
int whence )

Definition at line 629 of file fileXio_rpc.c.

◆ fileXioMkdir()

int fileXioMkdir ( const char * pathname,
int mode )

Definition at line 277 of file fileXio_rpc.c.

◆ fileXioMount()

int fileXioMount ( const char * mountpoint,
const char * mountstring,
int flag )

Definition at line 198 of file fileXio_rpc.c.

◆ fileXioOpen()

int fileXioOpen ( const char * source,
int flags,
... )

Definition at line 460 of file fileXio_rpc.c.

◆ fileXioRead()

int fileXioRead ( int fd,
void * buf,
int size )

Definition at line 526 of file fileXio_rpc.c.

◆ fileXioReadlink()

int fileXioReadlink ( const char * source,
char * buf,
unsigned int buflen )

Definition at line 405 of file fileXio_rpc.c.

◆ fileXioRemove()

int fileXioRemove ( const char * pathname)

Definition at line 328 of file fileXio_rpc.c.

◆ fileXioRename()

int fileXioRename ( const char * source,
const char * dest )

Definition at line 353 of file fileXio_rpc.c.

◆ fileXioRmdir()

int fileXioRmdir ( const char * pathname)

Definition at line 303 of file fileXio_rpc.c.

◆ fileXioSetBlockMode()

void fileXioSetBlockMode ( int blocking)

Definition at line 1009 of file fileXio_rpc.c.

◆ fileXioSetRWBufferSize()

int fileXioSetRWBufferSize ( int size)

Definition at line 1014 of file fileXio_rpc.c.

◆ fileXioStop()

void fileXioStop ( void )

Definition at line 129 of file fileXio_rpc.c.

◆ fileXioSymlink()

int fileXioSymlink ( const char * source,
const char * dest )

Definition at line 379 of file fileXio_rpc.c.

◆ fileXioSync()

int fileXioSync ( const char * devname,
int flag )

Definition at line 752 of file fileXio_rpc.c.

◆ fileXioUmount()

int fileXioUmount ( const char * mountpoint)

Definition at line 225 of file fileXio_rpc.c.

◆ fileXioWaitAsync()

int fileXioWaitAsync ( int mode,
int * retVal )

Definition at line 973 of file fileXio_rpc.c.

◆ fileXioWrite()

int fileXioWrite ( int fd,
const void * buf,
int size )

Definition at line 557 of file fileXio_rpc.c.

Variable Documentation

◆ __cd0

SifRpcClientData_t __cd0

Definition at line 35 of file fileXio_rpc.c.

◆ __fileXioBlockMode

int __fileXioBlockMode

Definition at line 41 of file fileXio_rpc.c.

◆ __fileXioCompletionSema

int __fileXioCompletionSema

Definition at line 43 of file fileXio_rpc.c.

◆ __lock_sema_id

int __lock_sema_id

Definition at line 45 of file fileXio_rpc.c.