sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
iomanX.c File Reference
#include <string.h>
#include <types.h>
#include <intrman.h>
#include <stdio.h>
#include <iomanX.h>
#include <errno.h>
#include <stdarg.h>

Go to the source code of this file.

Macros

#define index   strchr
#define Kprintf   printf
#define MAX_DEVICES   16
#define MAX_FILES   32
#define isnum(c)
#define EUNSUP   48
#define HANDLE_RESULT_CLEAR_INFO   1
#define HANDLE_RESULT_CLEAR_INFO_ON_ERROR   2
#define HANDLE_RESULT_RETURN_ZERO   4
#define HANDLE_RESULT_RETURN_FD   8
#define IOMANX_ENTRYPOINT   iomanX_start
#define IOMANX_CLEANUP   shutdown

Functions

void iomanX_StdioInit (int mode)
 IOMANX_RETURN_VALUE_IMPL (0)
int IOMANX_ENTRYPOINT (int ac, char **av)
int IOMANX_CLEANUP (int arg)
int iomanX_open (const char *name, int flags,...)
int iomanX_lseek (int fd, int offset, int mode)
s64 iomanX_lseek64 (int fd, s64 offset, int whence)
int iomanX_read (int fd, void *ptr, int size)
int iomanX_write (int fd, void *ptr, int size)
int iomanX_close (int fd)
int iomanX_ioctl (int fd, int cmd, void *param)
int iomanX_ioctl2 (int fd, int cmd, void *arg, unsigned int arglen, void *buf, unsigned int buflen)
int iomanX_dopen (const char *path)
int iomanX_dread (int fd, iox_dirent_t *buf)
int iomanX_remove (const char *name)
int iomanX_mkdir (const char *path, int mode)
int iomanX_rmdir (const char *path)
int iomanX_getstat (const char *name, iox_stat_t *stat)
int iomanX_chstat (const char *name, iox_stat_t *stat, unsigned int statmask)
int iomanX_format (const char *dev, const char *blockdev, void *arg, int arglen)
int iomanX_rename (const char *oldname, const char *newname)
int iomanX_symlink (const char *oldname, const char *newname)
int iomanX_chdir (const char *name)
int iomanX_sync (const char *dev, int flag)
int iomanX_mount (const char *fsname, const char *devname, int flag, void *arg, int arglen)
int iomanX_umount (const char *fsname)
int iomanX_devctl (const char *name, int cmd, void *arg, unsigned int arglen, void *buf, unsigned int buflen)
int iomanX_readlink (const char *path, char *buf, unsigned int buflen)
int iomanX_AddDrv (iomanX_iop_device_t *device)
int iomanX_DelDrv (const char *name)
unsigned int iomanX_GetDevType (int fd)

Detailed Description

Advanced I/O library.

Definition in file iomanX.c.

Macro Definition Documentation

◆ EUNSUP

#define EUNSUP   48

Definition at line 153 of file iomanX.c.

◆ HANDLE_RESULT_CLEAR_INFO

#define HANDLE_RESULT_CLEAR_INFO   1

Definition at line 157 of file iomanX.c.

◆ HANDLE_RESULT_CLEAR_INFO_ON_ERROR

#define HANDLE_RESULT_CLEAR_INFO_ON_ERROR   2

Definition at line 158 of file iomanX.c.

◆ HANDLE_RESULT_RETURN_FD

#define HANDLE_RESULT_RETURN_FD   8

Definition at line 160 of file iomanX.c.

◆ HANDLE_RESULT_RETURN_ZERO

#define HANDLE_RESULT_RETURN_ZERO   4

Definition at line 159 of file iomanX.c.

◆ index

#define index   strchr

Definition at line 21 of file iomanX.c.

◆ IOMANX_CLEANUP

#define IOMANX_CLEANUP   shutdown

Definition at line 232 of file iomanX.c.

◆ IOMANX_ENTRYPOINT

#define IOMANX_ENTRYPOINT   iomanX_start

Definition at line 227 of file iomanX.c.

◆ isnum

#define isnum ( c)
Value:
((c) >= '0' && (c) <= '9')

Definition at line 146 of file iomanX.c.

◆ Kprintf

#define Kprintf   printf

Definition at line 24 of file iomanX.c.

◆ MAX_DEVICES

#define MAX_DEVICES   16

Definition at line 50 of file iomanX.c.

◆ MAX_FILES

#define MAX_FILES   32

Definition at line 51 of file iomanX.c.

Function Documentation

◆ iomanX_AddDrv()

int iomanX_AddDrv ( iomanX_iop_device_t * device)

Definition at line 1081 of file iomanX.c.

◆ iomanX_chdir()

int iomanX_chdir ( const char * name)

Definition at line 797 of file iomanX.c.

◆ iomanX_chstat()

int iomanX_chstat ( const char * name,
iox_stat_t * stat,
unsigned int statmask )

Definition at line 705 of file iomanX.c.

◆ IOMANX_CLEANUP()

int IOMANX_CLEANUP ( int arg)

Definition at line 287 of file iomanX.c.

◆ iomanX_close()

int iomanX_close ( int fd)

Definition at line 514 of file iomanX.c.

◆ iomanX_DelDrv()

int iomanX_DelDrv ( const char * name)

Definition at line 1152 of file iomanX.c.

◆ iomanX_devctl()

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

Definition at line 903 of file iomanX.c.

◆ iomanX_dopen()

int iomanX_dopen ( const char * path)

Definition at line 550 of file iomanX.c.

◆ iomanX_dread()

int iomanX_dread ( int fd,
iox_dirent_t * buf )

Definition at line 566 of file iomanX.c.

◆ IOMANX_ENTRYPOINT()

int IOMANX_ENTRYPOINT ( int ac,
char ** av )

Definition at line 235 of file iomanX.c.

◆ iomanX_format()

int iomanX_format ( const char * dev,
const char * blockdev,
void * arg,
int arglen )

This can take take more than one form.

Definition at line 710 of file iomanX.c.

◆ iomanX_GetDevType()

unsigned int iomanX_GetDevType ( int fd)

Definition at line 1209 of file iomanX.c.

◆ iomanX_getstat()

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

Definition at line 700 of file iomanX.c.

◆ iomanX_ioctl()

int iomanX_ioctl ( int fd,
int cmd,
void * param )

Definition at line 527 of file iomanX.c.

◆ iomanX_ioctl2()

int iomanX_ioctl2 ( int fd,
int cmd,
void * arg,
unsigned int arglen,
void * buf,
unsigned int buflen )

Definition at line 537 of file iomanX.c.

◆ iomanX_lseek()

int iomanX_lseek ( int fd,
int offset,
int mode )

Definition at line 454 of file iomanX.c.

◆ iomanX_lseek64()

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

Definition at line 473 of file iomanX.c.

◆ iomanX_mkdir()

int iomanX_mkdir ( const char * path,
int mode )

Definition at line 624 of file iomanX.c.

◆ iomanX_mount()

int iomanX_mount ( const char * fsname,
const char * devname,
int flag,
void * arg,
int arglen )

Definition at line 851 of file iomanX.c.

◆ iomanX_open()

int iomanX_open ( const char * name,
int flags,
... )

Definition at line 431 of file iomanX.c.

◆ iomanX_read()

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

Definition at line 494 of file iomanX.c.

◆ iomanX_readlink()

int iomanX_readlink ( const char * path,
char * buf,
unsigned int buflen )

Definition at line 928 of file iomanX.c.

◆ iomanX_remove()

int iomanX_remove ( const char * name)

Definition at line 602 of file iomanX.c.

◆ iomanX_rename()

int iomanX_rename ( const char * oldname,
const char * newname )

Definition at line 786 of file iomanX.c.

◆ iomanX_rmdir()

int iomanX_rmdir ( const char * path)

Definition at line 629 of file iomanX.c.

◆ iomanX_StdioInit()

void iomanX_StdioInit ( int mode)

Definition at line 377 of file iomanX.c.

◆ iomanX_symlink()

int iomanX_symlink ( const char * oldname,
const char * newname )

Definition at line 792 of file iomanX.c.

◆ iomanX_sync()

int iomanX_sync ( const char * dev,
int flag )

Definition at line 846 of file iomanX.c.

◆ iomanX_umount()

int iomanX_umount ( const char * fsname)

Definition at line 878 of file iomanX.c.

◆ iomanX_write()

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

Definition at line 504 of file iomanX.c.