![]() |
vitasdk
Documentation of the vitasdk
|
Exports for Kernel. More...
Functions | |
| SceUID | ksceIoOpen (const char *file, int flags, SceMode mode) |
| Open or create a file for reading or writing. | |
| int | ksceIoClose (SceUID fd) |
| Delete a descriptor. | |
| int | ksceIoRead (SceUID fd, void *data, SceSize size) |
| Read input. | |
| int | ksceIoPread (SceUID fd, void *data, SceSize size, SceOff offset) |
| Read input at offset. | |
| int | ksceIoWrite (SceUID fd, const void *data, SceSize size) |
| Write output. | |
| int | ksceIoPwrite (SceUID fd, const void *data, SceSize size, SceOff offset) |
| Write output at offset. | |
| SceOff | ksceIoLseek (SceUID fd, SceOff offset, int whence) |
| Reposition read/write file descriptor offset. | |
| int | ksceIoRemove (const char *file) |
| Remove directory entry. | |
| int | ksceIoRename (const char *oldname, const char *newname) |
| Change the name of a file. | |
| int | ksceIoSync (const char *device, unsigned int unk) |
| Synchronize the file data on the device. | |
| int | ksceIoSyncByFd (SceUID fd) |
| Synchronize the file data for one file. | |
Exports for Kernel.
Include the header file in your project:
Link the library to the executable:
Open or create a file for reading or writing.
| file | - Pointer to a string holding the name of the file to open |
| flags | - Libc styled flags that are or'ed together |
| mode | - File access mode (One or more SceIoMode). |
| int ksceIoClose | ( | SceUID | fd | ) |
Read input.
| fd | - Opened file descriptor to read from |
| data | - Pointer to the buffer where the read data will be placed |
| size | - Size of the read in bytes |
Read input at offset.
| fd | - Opened file descriptor to read from |
| data | - Pointer to the buffer where the read data will be placed |
| size | - Size of the read in bytes |
| offset | - Offset to read |
Write output.
| fd | - Opened file descriptor to write to |
| data | - Pointer to the data to write |
| size | - Size of data to write |
Write output at offset.
| fd | - Opened file descriptor to write to |
| data | - Pointer to the data to write |
| size | - Size of data to write |
| offset | - Offset to write |
Reposition read/write file descriptor offset.
| fd | - Opened file descriptor with which to seek |
| offset | - Relative offset from the start position given by whence |
| whence | - One of SceIoSeekMode. |
| int ksceIoRemove | ( | const char * | file | ) |
Remove directory entry.
| file | - Path to the file to remove |
| int ksceIoRename | ( | const char * | oldname, |
| const char * | newname | ||
| ) |
Change the name of a file.
| oldname | - The old filename |
| newname | - The new filename |
| int ksceIoSync | ( | const char * | device, |
| unsigned int | unk | ||
| ) |
Synchronize the file data on the device.
| device | - The device to synchronize (e.g. msfat0:) |
| unk | - Unknown |
| int ksceIoSyncByFd | ( | SceUID | fd | ) |
Synchronize the file data for one file.
| fd | - Opened file descriptor to sync |