uOFW
Reverse engineered PSP kernel 6.60.
Loading...
Searching...
No Matches
Functions
StdioForUser/Kernel libraries

Functions

int sceKernelStdin ()
 
int sceKernelStdout ()
 
int sceKernelStderr ()
 
int sceKernelStdoutReopen (const char *file, int flags, SceMode mode)
 
int sceKernelStderrReopen (const char *file, int flags, SceMode mode)
 
int sceKernelStdoutReset ()
 
int sceKernelStderrReset ()
 
int fdprintf (int fd, const char *fmt,...)
 
int printf (const char *fmt,...)
 
int fdputc (int c, int fd)
 
int fdgetc (int fd)
 
char * fdgets (char *s, int fd)
 
int putchar (int c)
 
int fdputs (const char *s, int fd)
 
int puts (const char *s)
 
int getchar (void)
 
char * gets (char *s)
 
int sceKernelStdioRead ()
 
int sceKernelStdioLseek ()
 
void sceKernelStdioSendChar ()
 
int sceKernelStdioWrite ()
 
int sceKernelStdioClose ()
 
int sceKernelStdioOpen ()
 
int sceKernelRegisterStdoutPipe (SceUID id)
 
int sceKernelRegisterStderrPipe (SceUID id)
 

Detailed Description

Author
artart78
Version
6.60

The StdioForUser/Kernel libraries

Function Documentation

◆ sceKernelStdin()

int sceKernelStdin ( )

Get the stdin file descriptor.

Returns
The stdin file descriptor.

◆ sceKernelStdout()

int sceKernelStdout ( )

Get the stdout file descriptor.

Returns
The stdout file descriptor.

◆ sceKernelStderr()

int sceKernelStderr ( )

Get the stderr file descriptor.

Returns
The stderr file descriptor.

◆ sceKernelStdoutReopen()

int sceKernelStdoutReopen ( const char *  file,
int  flags,
SceMode  mode 
)

Reopen stdout as a different file.

Parameters
fileThe file name.
flagsThe flags passed to sceIoReopen.
modeThe mode passed to sceIoReopen.
Returns
0 on success, less than 0 otherwise.

◆ sceKernelStderrReopen()

int sceKernelStderrReopen ( const char *  file,
int  flags,
SceMode  mode 
)

Reopen stderr as a different file.

Parameters
fileThe file name.
flagsThe flags passed to sceIoReopen.
modeThe mode passed to sceIoReopen.
Returns
0 on success, less than 0 otherwise.

◆ sceKernelStdoutReset()

int sceKernelStdoutReset ( )

Reset the stdout fd.

Returns
0 on success, less than 0 otherwise.

◆ sceKernelStderrReset()

int sceKernelStderrReset ( )

Reset the stderr fd.

Returns
0 on success, less than 0 otherwise.

◆ fdprintf()

int fdprintf ( int  fd,
const char *  fmt,
  ... 
)

Print a formatted string into an opened file.

Parameters
fdThe file descriptor.
fmtThe string format.
Returns
The number of characters printed on success, less than 0 otherwise.

◆ printf()

int printf ( const char *  fmt,
  ... 
)

Print a formatted string to stdout.

Parameters
fmtThe string format.
Returns
The number of characters printed on success, less than 0 otherwise.

◆ fdputc()

int fdputc ( int  c,
int  fd 
)

Output a character to an opened file.

Parameters
cThe character to output.
fdThe file descriptor.
Returns
The printed character.

◆ fdgetc()

int fdgetc ( int  fd)

Get the next character (after the file position indicator) from an opened file.

Parameters
fdThe file descriptor.
Returns
The read character on success, -1 otherwise.

◆ fdgets()

char * fdgets ( char *  s,
int  fd 
)

Get the next line from an opened file.

Parameters
sThe string buffer.
fdThe file descriptor.
Returns
The string on success, NULL otherwise.

◆ putchar()

int putchar ( int  c)

Output a character to stdout.

Parameters
cThe character to output.
Returns
The printed character.

◆ fdputs()

int fdputs ( const char *  s,
int  fd 
)

Output a string to an opened file.

Parameters
sThe string to output.
fdThe file descriptor.
Returns
0.

◆ puts()

int puts ( const char *  s)

Output a string to stdout.

Parameters
sThe string to output.
Returns
0.

◆ getchar()

int getchar ( void  )

Get the next character from stdin.

Returns
The read character on success, -1 otherwise.

◆ gets()

char * gets ( char *  s)

Get the next line from stdin.

Parameters
sThe string buffer.
Returns
The string on success, NULL otherwise.

◆ sceKernelStdioRead()

int sceKernelStdioRead ( )

Useless. Do not use.

Returns
Less than zero.

◆ sceKernelStdioLseek()

int sceKernelStdioLseek ( )

Useless. Do not use.

Returns
Less than zero.

◆ sceKernelStdioSendChar()

void sceKernelStdioSendChar ( )

Useless. Do not use.

◆ sceKernelStdioWrite()

int sceKernelStdioWrite ( )

Useless. Do not use.

Returns
Less than zero.

◆ sceKernelStdioClose()

int sceKernelStdioClose ( )

Useless. Do not use.

Returns
Less than zero.

◆ sceKernelStdioOpen()

int sceKernelStdioOpen ( )

Useless. Do not use.

Returns
Less than zero.

◆ sceKernelRegisterStdoutPipe()

int sceKernelRegisterStdoutPipe ( SceUID  id)

Register a stdout pipe.

Parameters
idThe message pipe id.
Returns
0 on success, less than 0 otherwise.

◆ sceKernelRegisterStderrPipe()

int sceKernelRegisterStderrPipe ( SceUID  id)

Register a stderr pipe.

Parameters
idThe message pipe id.
Returns
0 on success, less than 0 otherwise.