sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
fileXio_ps2sdk.c File Reference
#include <ps2sdkapi.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <fileio.h>
#include <fileXio_rpc.h>
#include "iox_stat.h"

Go to the source code of this file.

Classes

struct  _fxio_file_info_

Macros

#define NEWLIB_PORT_AWARE
#define IOP_O_RDONLY   0x0001
#define IOP_O_WRONLY   0x0002
#define IOP_O_RDWR   0x0003
#define IOP_O_DIROPEN   0x0008
#define IOP_O_NBLOCK   0x0010
#define IOP_O_APPEND   0x0100
#define IOP_O_CREAT   0x0200
#define IOP_O_TRUNC   0x0400
#define IOP_O_EXCL   0x0800
#define IOP_O_NOWAIT   0x8000
#define __MAXNAMLEN   256

Typedefs

typedef struct _fxio_file_info_ _fxio_file_info_t

Functions

void __fileXioOpsInitializeImpl (void)
 __attribute__ ((constructor))
int __fileXioOpenHelper (_libcglue_fdman_fd_info_t *info, const char *buf, int flags, mode_t mode)
int __fileXioGetFdHelper (void *userdata)
char * __fileXioGetFilenameHelper (void *userdata)
int __fileXioGetstatHelper (const char *path, struct stat *buf)
int __fileXioCloseHelper (void *userdata)
int __fileXioDcloseHelper (void *userdata)
int __fileXioReadHelper (void *userdata, void *buf, int nbytes)
int __fileXioLseekHelper (void *userdata, int offset, int whence)
int64_t __fileXioLseek64Helper (void *userdata, int64_t offset, int whence)
int __fileXioWriteHelper (void *userdata, const void *buf, int nbytes)
int __fileXioIoctlHelper (void *userdata, int request, void *data)
int __fileXioIoctl2Helper (void *userdata, int request, void *arg, unsigned int arglen, void *buf, unsigned int buflen)
int __fileXioDreadHelper (void *userdata, struct dirent *dir)
int __fileXioLseekDirHelper (void *userdata, int offset, int whence)
int __attribute__ ((weak))
void _ps2sdk_fileXio_init ()
void _ps2sdk_fileXio_deinit ()

Variables

_libcglue_fdman_path_ops_t __fileXio_fdman_path_ops
_libcglue_fdman_fd_ops_t __fileXio_fdman_ops_file
_libcglue_fdman_fd_ops_t __fileXio_fdman_ops_dir

Detailed Description

fileXio_ps2sdk.c - Define set methods for _ps2sdk functions

Definition in file fileXio_ps2sdk.c.

Macro Definition Documentation

◆ IOP_O_APPEND

#define IOP_O_APPEND   0x0100

Definition at line 54 of file fileXio_ps2sdk.c.

◆ IOP_O_CREAT

#define IOP_O_CREAT   0x0200

Definition at line 55 of file fileXio_ps2sdk.c.

◆ IOP_O_DIROPEN

#define IOP_O_DIROPEN   0x0008

Definition at line 52 of file fileXio_ps2sdk.c.

◆ IOP_O_EXCL

#define IOP_O_EXCL   0x0800

Definition at line 57 of file fileXio_ps2sdk.c.

◆ IOP_O_NBLOCK

#define IOP_O_NBLOCK   0x0010

Definition at line 53 of file fileXio_ps2sdk.c.

◆ IOP_O_NOWAIT

#define IOP_O_NOWAIT   0x8000

Definition at line 58 of file fileXio_ps2sdk.c.

◆ IOP_O_RDONLY

#define IOP_O_RDONLY   0x0001

Definition at line 49 of file fileXio_ps2sdk.c.

◆ IOP_O_RDWR

#define IOP_O_RDWR   0x0003

Definition at line 51 of file fileXio_ps2sdk.c.

◆ IOP_O_TRUNC

#define IOP_O_TRUNC   0x0400

Definition at line 56 of file fileXio_ps2sdk.c.

◆ IOP_O_WRONLY

#define IOP_O_WRONLY   0x0002

Definition at line 50 of file fileXio_ps2sdk.c.

◆ NEWLIB_PORT_AWARE

#define NEWLIB_PORT_AWARE

Definition at line 23 of file fileXio_ps2sdk.c.

Function Documentation

◆ __attribute__() [1/2]

__attribute__ ( (constructor) )

Definition at line 42 of file fileXio_ps2sdk.c.

◆ __attribute__() [2/2]

int __attribute__ ( (weak) )

Definition at line 390 of file fileXio_ps2sdk.c.

◆ __fileXioCloseHelper()

int __fileXioCloseHelper ( void * userdata)

Definition at line 193 of file fileXio_ps2sdk.c.

◆ __fileXioDcloseHelper()

int __fileXioDcloseHelper ( void * userdata)

Definition at line 209 of file fileXio_ps2sdk.c.

◆ __fileXioDreadHelper()

int __fileXioDreadHelper ( void * userdata,
struct dirent * dir )

Definition at line 313 of file fileXio_ps2sdk.c.

◆ __fileXioGetFdHelper()

int __fileXioGetFdHelper ( void * userdata)

Definition at line 102 of file fileXio_ps2sdk.c.

◆ __fileXioGetFilenameHelper()

char * __fileXioGetFilenameHelper ( void * userdata)

Definition at line 115 of file fileXio_ps2sdk.c.

◆ __fileXioGetstatHelper()

int __fileXioGetstatHelper ( const char * path,
struct stat * buf )

Definition at line 174 of file fileXio_ps2sdk.c.

◆ __fileXioIoctl2Helper()

int __fileXioIoctl2Helper ( void * userdata,
int request,
void * arg,
unsigned int arglen,
void * buf,
unsigned int buflen )

Definition at line 298 of file fileXio_ps2sdk.c.

◆ __fileXioIoctlHelper()

int __fileXioIoctlHelper ( void * userdata,
int request,
void * data )

Definition at line 283 of file fileXio_ps2sdk.c.

◆ __fileXioLseek64Helper()

int64_t __fileXioLseek64Helper ( void * userdata,
int64_t offset,
int whence )

Definition at line 255 of file fileXio_ps2sdk.c.

◆ __fileXioLseekDirHelper()

int __fileXioLseekDirHelper ( void * userdata,
int offset,
int whence )

Definition at line 346 of file fileXio_ps2sdk.c.

◆ __fileXioLseekHelper()

int __fileXioLseekHelper ( void * userdata,
int offset,
int whence )

Definition at line 240 of file fileXio_ps2sdk.c.

◆ __fileXioOpenHelper()

int __fileXioOpenHelper ( _libcglue_fdman_fd_info_t * info,
const char * buf,
int flags,
mode_t mode )

Definition at line 60 of file fileXio_ps2sdk.c.

◆ __fileXioReadHelper()

int __fileXioReadHelper ( void * userdata,
void * buf,
int nbytes )

Definition at line 225 of file fileXio_ps2sdk.c.

◆ __fileXioWriteHelper()

int __fileXioWriteHelper ( void * userdata,
const void * buf,
int nbytes )

Definition at line 268 of file fileXio_ps2sdk.c.

◆ _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.

Variable Documentation

◆ __fileXio_fdman_ops_dir

_libcglue_fdman_fd_ops_t __fileXio_fdman_ops_dir

Definition at line 38 of file fileXio_ps2sdk.c.

◆ __fileXio_fdman_ops_file

_libcglue_fdman_fd_ops_t __fileXio_fdman_ops_file

Definition at line 37 of file fileXio_ps2sdk.c.

◆ __fileXio_fdman_path_ops

_libcglue_fdman_path_ops_t __fileXio_fdman_path_ops

Definition at line 36 of file fileXio_ps2sdk.c.