PS2SDK
PS2 Homebrew Libraries
|
Functions | |
char * | fd_name (char *buffer, const char *name) |
int | fd_save (int fd, iop_io_file_t *f) |
int | realfd (iop_io_file_t *f) |
int | dummy () |
int | fd_initialize (iop_io_device_t *driver) |
int | fd_open (iop_io_file_t *f, const char *name, int mode) |
int | fd_close (iop_io_file_t *f) |
int | fd_read (iop_io_file_t *f, void *buffer, int size) |
int | fd_write (iop_io_file_t *fd, void *buffer, int size) |
int | fd_lseek (iop_io_file_t *fd, int offset, int whence) |
int | _start (int argc, char *argv[]) |
static void * | naplinkRpcHandler (int cmd, void *buffer, int size) |
static void | napThread (void *arg) |
int | naplinkRpcInit (void) |
char * fd_name | ( | char * | buffer, |
const char * | name | ||
) |
#include <iop/fs/fakehost/src/fakehost.c>
Make a full pathname string, adding base on.
buffer | buffer to hold result. |
name | name to add base to. |
This function takes the name param and adds it to the basename for replacement, returning the destination full pathname.
Definition at line 75 of file fakehost.c.
Referenced by fd_open().
int fd_save | ( | int | fd, |
iop_io_file_t * | f | ||
) |
#include <iop/fs/fakehost/src/fakehost.c>
Store filedescriptor and get client filedescriptor.
fd | filedescriptor to store. |
f | io_file pointer to store fd in . |
Definition at line 89 of file fakehost.c.
References _iop_io_file::privdata, and _iop_io_file::unit.
Referenced by fd_open().
int realfd | ( | iop_io_file_t * | f | ) |
#include <iop/fs/fakehost/src/fakehost.c>
Get real filedescriptor.
f | io_file pointer to get fd from. |
Definition at line 102 of file fakehost.c.
References _iop_io_file::privdata.
Referenced by fd_close(), fd_lseek(), fd_read(), and fd_write().
int dummy | ( | ) |
#include <iop/fs/fakehost/src/fakehost.c>
Dummy function, for where needed.
Definition at line 110 of file fakehost.c.
References EIO.
int fd_initialize | ( | iop_io_device_t * | driver | ) |
#include <iop/fs/fakehost/src/fakehost.c>
Initialise fs driver.
driver | io_device pointer to device |
Definition at line 122 of file fakehost.c.
int fd_open | ( | iop_io_file_t * | f, |
const char * | name, | ||
int | mode | ||
) |
#include <iop/fs/fakehost/src/fakehost.c>
Handle open request.
f | Pointer to io_device structure. |
name | pathname. |
mode | open mode. |
Definition at line 136 of file fakehost.c.
References fd_name(), fd_save(), and _iop_io_file::unit.
int fd_close | ( | iop_io_file_t * | f | ) |
#include <iop/fs/fakehost/src/fakehost.c>
Handle close request.
f | Pointer to io_device structure. |
Definition at line 154 of file fakehost.c.
References realfd().
int fd_read | ( | iop_io_file_t * | f, |
void * | buffer, | ||
int | size | ||
) |
#include <iop/fs/fakehost/src/fakehost.c>
Handle read request.
f | Pointer to io_device structure. |
buffer | Pointer to read buffer. |
size | Size of buffer. |
Definition at line 167 of file fakehost.c.
References realfd().
int fd_write | ( | iop_io_file_t * | fd, |
void * | buffer, | ||
int | size | ||
) |
#include <iop/fs/fakehost/src/fakehost.c>
Handle write request.
f | Pointer to io_device structure. |
buffer | Pointer to read buffer. |
size | Size of buffer. |
Definition at line 180 of file fakehost.c.
References realfd().
int fd_lseek | ( | iop_io_file_t * | fd, |
int | offset, | ||
int | whence | ||
) |
#include <iop/fs/fakehost/src/fakehost.c>
Handle lseek request.
f | Pointer to io_device structure. |
offset | Offset for seek. |
whence | Base for seek. |
Definition at line 193 of file fakehost.c.
References realfd().
int _start | ( | int | argc, |
char * | argv[] | ||
) |
#include <iop/fs/fakehost/src/fakehost.c>
Entry point for IRX.
if argc != 2 , quit, as it needs parameter if argc == 2 , use arv[1] as basename.
argc | Number of arguments. |
argv | Pointer to array of arguments. |
This initialises the fakehost driver, setting up the 'host:' fs driver basename redirection, and naplink compatible rpc hander.
return values: MODULE_RESIDENT_END if loaded and registered as library. MODULE_NO_RESIDENT_END if just exiting normally.
Definition at line 245 of file fakehost.c.
References naplinkRpcInit().
|
static |
#include <iop/fs/fakehost/src/nprintf.c>
RPC handler function.
cmd | Command. |
buffer | Pointer to buffer. |
size | Size of buffer. |
Definition at line 38 of file nprintf.c.
Referenced by napThread().
|
static |
#include <iop/fs/fakehost/src/nprintf.c>
naplink compatbile RPC handler thread.
arg | Startup parameters. |
Definition at line 56 of file nprintf.c.
References naplinkRpcHandler().
Referenced by naplinkRpcInit().
int naplinkRpcInit | ( | void | ) |
#include <iop/fs/fakehost/src/nprintf.c>
Setup naplink compatible RPC handler.
return values: 0 on success. -1 on error.
Definition at line 80 of file nprintf.c.
References napThread().
Referenced by _start().