Data Structures | |
struct | PspIoDrvArg |
Structure passed to the init and exit functions of the io driver system. More... | |
struct | PspIoDrvFileArg |
Structure passed to the file functions of the io driver system. More... | |
struct | PspIoDrvFuncs |
Structure to maintain the file driver pointers. More... | |
struct | PspIoDrv |
Functions | |
int | sceIoAddDrv (PspIoDrv *drv) |
Adds a new IO driver to the system. | |
int | sceIoDelDrv (const char *drv_name) |
Deletes a IO driver from the system. | |
int | sceIoReopen (const char *file, int flags, SceMode mode, SceUID fd) |
Reopens an existing file descriptor. | |
int | sceIoGetThreadCwd (SceUID uid, char *dir, int len) |
Get the current working directory for a thread. | |
int | sceIoChangeThreadCwd (SceUID uid, char *dir) |
Set the current working directory for a thread. |
int sceIoAddDrv | ( | PspIoDrv * | drv | ) |
Adds a new IO driver to the system.
drv | - Pointer to a filled out driver structure |
PspIoDrvFuncs host_funcs = { ... }; PspIoDrv host_driver = { "host", 0x10, 0x800, "HOST", &host_funcs }; sceIoDelDrv("host"); sceIoAddDrv(&host_driver);
int sceIoChangeThreadCwd | ( | SceUID | uid, | |
char * | dir | |||
) |
Set the current working directory for a thread.
uid | - The UID of the thread | |
dir | - The directory to set |
int sceIoDelDrv | ( | const char * | drv_name | ) |
Deletes a IO driver from the system.
drv_name | - Name of the driver to delete. |
int sceIoGetThreadCwd | ( | SceUID | uid, | |
char * | dir, | |||
int | len | |||
) |
Get the current working directory for a thread.
uid | - The UID of the thread | |
dir | - A character buffer in which to store the cwd | |
len | - The length of the buffer |
Reopens an existing file descriptor.
file | - The new file to open. | |
flags | - The open flags. | |
mode | - The open mode. | |
fd | - The old filedescriptor to reopen |