PSXSDK
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Enumerations | Functions | Variables
libc.c File Reference
#include <psx.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <strings.h>
#include <fcntl.h>
#include <errno.h>

Macros

#define __IN_LIBC
 

Enumerations

enum  { FDEV_UNKNOWN, FDEV_CDROM, FDEV_MEMCARD }
 

Functions

int libc_get_transtbl_fname (char *tofind, char *outstr, int outl)
 
unsigned int fmode_to_desmode (const char *fmode)
 
FILEfdopen (int fildes, const char *mode)
 
FILEfopen (char *path, const char *mode)
 
int fclose (FILE *stream)
 
int fread (void *ptr, int size, int nmemb, FILE *f)
 
int fgetc (FILE *f)
 
int ftell (FILE *f)
 
int fseek (FILE *f, int offset, int whence)
 
int toupper (int c)
 
int tolower (int c)
 
int isupper (int c)
 
int islower (int c)
 
int isdigit (int c)
 
int isxdigit (int c)
 
int isalpha (int c)
 
int isalnum (int c)
 
int isspace (int c)
 
int isprint (int c)
 
int isgraph (int c)
 
int iscntrl (int c)
 
int isblank (int c)
 
void redirect_stdio_to_sio (void)
 Redirects STDIO to SIO (serial port)
 
void sio_stdio_mapcr (unsigned int setting)
 Sets whether a carriage return must be written before a line feed.
 
int sio_putchar (int c)
 STDIO for SIO.
 
int sio_puts (const char *str)
 
int bios_putchar (int c)
 
int bios_puts (const char *str)
 
int putchar (int c)
 
int puts (const char *str)
 

Variables

char onesec_buf [2048]
 
int errno
 
int __stdio_direction = STDIO_DIRECTION_BIOS
 
FILE file_structs [256]
 
unsigned char file_state [256]
 

Macro Definition Documentation

#define __IN_LIBC

Enumeration Type Documentation

anonymous enum
Enumerator:
FDEV_UNKNOWN 
FDEV_CDROM 
FDEV_MEMCARD 

Function Documentation

int bios_putchar ( int  c)
int bios_puts ( const char *  str)
int fclose ( FILE stream)
FILE* fdopen ( int  fildes,
const char *  mode 
)
int fgetc ( FILE f)
unsigned int fmode_to_desmode ( const char *  fmode)
FILE* fopen ( char *  path,
const char *  mode 
)
int fread ( void *  ptr,
int  size,
int  nmemb,
FILE f 
)
int fseek ( FILE f,
int  offset,
int  whence 
)
int ftell ( FILE f)
int isalnum ( int  c)
int isalpha ( int  c)
int isblank ( int  c)
int iscntrl ( int  c)
int isdigit ( int  c)
int isgraph ( int  c)
int islower ( int  c)
int isprint ( int  c)
int isspace ( int  c)
int isupper ( int  c)
int isxdigit ( int  c)
int libc_get_transtbl_fname ( char *  tofind,
char *  outstr,
int  outl 
)
int putchar ( int  c)
int puts ( const char *  str)
void redirect_stdio_to_sio ( void  )

Redirects STDIO to SIO (serial port)

int sio_putchar ( int  c)

STDIO for SIO.

int sio_puts ( const char *  str)
void sio_stdio_mapcr ( unsigned int  setting)

Sets whether a carriage return must be written before a line feed.

In simpler words, whether '
' must be translated to a '
' sequence. If you come from the Unix world, you most likely want to set this.

Parameters
settingNew status of the setting (0 = disabled, 1 = enabled)
int tolower ( int  c)
int toupper ( int  c)

Variable Documentation

int __stdio_direction = STDIO_DIRECTION_BIOS
int errno
unsigned char file_state[256]
FILE file_structs[256]
char onesec_buf[2048]