vitasdk
Documentation of the vitasdk

Exports for Kernel. More...

Functions

SceUID ksceIoDopen (const char *dirname)
 Open a directory.
 
int ksceIoDread (SceUID fd, SceIoDirent *dir)
 Reads an entry from an opened file descriptor.
 
int ksceIoDclose (SceUID fd)
 Close an opened directory file descriptor.
 

Detailed Description

Exports for Kernel.


Using this library in your project

Include the header file in your project:


Link the library to the executable:

SceIofilemgrForDriver_stub



Function Documentation

◆ ksceIoDopen()

SceUID ksceIoDopen ( const char *  dirname)

Open a directory.

Example:
int dfd;
dfd = ksceIoDopen("device:/");
if(dfd >= 0)
{ Do something with the file descriptor }
SceUID ksceIoDopen(const char *dirname)
Open a directory.
Parameters
dirname- The directory to open for reading.
Returns
If >= 0 then a valid file descriptor, otherwise a Sony error code.

◆ ksceIoDread()

int ksceIoDread ( SceUID  fd,
SceIoDirent dir 
)

Reads an entry from an opened file descriptor.

Parameters
fd- Already opened file descriptor (using ksceIoDopen)
dir- Pointer to an SceIoDirent structure to hold the file information
Returns
Read status
  • 0 - No more directory entries left
  • > 0 - More directory entries to go
  • < 0 - Error

◆ ksceIoDclose()

int ksceIoDclose ( SceUID  fd)

Close an opened directory file descriptor.

Parameters
fd- Already opened file descriptor (using ksceIoDopen)
Returns
< 0 on error