Nugget
Loading...
Searching...
No Matches
Functions | Variables
fileio.h File Reference
#include "common/psxlibc/device.h"
#include "common/psxlibc/stdio.h"
Include dependency graph for fileio.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int psxopen (const char *fname, int mode)
 
int psxlseek (int fd, int offset, int whence)
 
int psxread (int fd, void *buffer, int size)
 
int psxwrite (int fd, void *buffer, int size)
 
int psxclose (int fd)
 
int psxioctl (int fd, int cmd, int arg)
 
void psxexit (int code)
 
int isFileConsole (int fd)
 
int psxgetc (int fd)
 
void psxputc (int c, int fd)
 
void psxputchar (int c)
 
int psxgetchar ()
 
char * psxgets (char *storage)
 
void psxputs (const char *str)
 
int psxprintf (const char *msg,...)
 
void ioabortraw (int code)
 
void setupFileIO (int installTTY)
 
void installStdIo (int installTTY)
 
void reopenStdio ()
 
struct DevicefindDevice (const char *name)
 
int addDevice (struct Device *)
 
int removeDevice (const char *name)
 
struct FilegetFileFromHandle (int fd)
 
struct FilefindEmptyFile ()
 
const char * splitFilepathAndFindDevice (const char *name, struct Device **device, int *deviceId)
 
void cdevscan ()
 
struct DirEntryfirstFile (const char *filepath, struct DirEntry *entry)
 
struct DirEntrynextFile (struct DirEntry *entry)
 
int format (const char *deviceName)
 
int psxrename (const char *oldName, const char *newName)
 
int psxerase (const char *path)
 
int getDeviceStatus ()
 
void setDeviceStatus (int deviceStatus)
 
void printInstalledDevices ()
 
void ioAbortWithMsg (const char *msg1, const char *msg2)
 

Variables

uint32_t psxerrno
 
struct Fileg_firstFile
 

Function Documentation

◆ addDevice()

int addDevice ( struct Device device)

◆ cdevscan()

void cdevscan ( )

◆ findDevice()

struct Device * findDevice ( const char *  name)

◆ findEmptyFile()

struct File * findEmptyFile ( )

◆ firstFile()

struct DirEntry * firstFile ( const char *  filepath,
struct DirEntry entry 
)

◆ format()

int format ( const char *  deviceName)

◆ getDeviceStatus()

int getDeviceStatus ( )

◆ getFileFromHandle()

struct File * getFileFromHandle ( int  fd)

◆ installStdIo()

void installStdIo ( int  installTTY)

◆ ioabortraw()

void ioabortraw ( int  code)

◆ ioAbortWithMsg()

void ioAbortWithMsg ( const char *  msg1,
const char *  msg2 
)

◆ isFileConsole()

int isFileConsole ( int  fd)

◆ nextFile()

struct DirEntry * nextFile ( struct DirEntry entry)

◆ printInstalledDevices()

void printInstalledDevices ( )

◆ psxclose()

int psxclose ( int  fd)

◆ psxerase()

int psxerase ( const char *  path)

◆ psxexit()

void psxexit ( int  code)

◆ psxgetc()

int psxgetc ( int  fd)

◆ psxgetchar()

int psxgetchar ( )

◆ psxgets()

char * psxgets ( char *  storage)

◆ psxioctl()

int psxioctl ( int  fd,
int  cmd,
int  arg 
)

◆ psxlseek()

int psxlseek ( int  fd,
int  offset,
int  whence 
)

◆ psxopen()

int psxopen ( const char *  fname,
int  mode 
)

◆ psxprintf()

int psxprintf ( const char *  msg,
  ... 
)

◆ psxputc()

void psxputc ( int  c,
int  fd 
)

◆ psxputchar()

void psxputchar ( int  c)

◆ psxputs()

void psxputs ( const char *  str)

◆ psxread()

int psxread ( int  fd,
void buffer,
int  size 
)

◆ psxrename()

int psxrename ( const char *  oldName,
const char *  newName 
)

◆ psxwrite()

int psxwrite ( int  fd,
void buffer,
int  size 
)

◆ removeDevice()

int removeDevice ( const char *  name)

◆ reopenStdio()

void reopenStdio ( )

◆ setDeviceStatus()

void setDeviceStatus ( int  deviceStatus)

◆ setupFileIO()

void setupFileIO ( int  installTTY)

◆ splitFilepathAndFindDevice()

const char * splitFilepathAndFindDevice ( const char *  name,
struct Device **  device,
int deviceId 
)

Variable Documentation

◆ g_firstFile

struct File* g_firstFile
extern

◆ psxerrno

uint32_t psxerrno
extern