28 static __inline__
int open(
const char *fname,
int flags, ...) {
return sceIoOpen(fname, flags, 0777); }
29 static __inline__
int close(
int handle) {
return sceIoClose(handle); }
30 static __inline__ ssize_t read(
int handle,
void *
buffer,
size_t size) {
return sceIoRead(handle, buffer, size); }
31 static __inline__ ssize_t write(
int handle,
const void *
buffer,
size_t size) {
return sceIoWrite(handle, buffer, size); }
32 static __inline__ off_t lseek(
int handle, off_t position,
int wheel) {
return sceIoLseek(handle, position, wheel); }
33 static __inline__ off_t tell(
int handle) {
return sceIoLseek(handle, 0, 1); }
42 #define _O_APPEND O_APPEND
43 #define _O_BINARY O_BINARY
44 #define _O_CREAT O_CREAT
45 #define _O_RDONKY O_RDONKY
46 #define _O_RDWR O_RDWR
47 #define _O_TEXT O_TEXT
48 #define _O_TRUNC O_TRUNC
49 #define _O_WRONLY O_WRONLY
71 #define _IOREAD 0x0001
74 #define _IOMYBUF 0x0010
83 #define FOPEN_MAX _NFILE
84 #define FILENAME_MAX 1024
93 #ifndef __FPOS_T_DEFINED
94 #define __FPOS_T_DEFINED
96 #endif // __FPOS_T_DEFINED
100 #ifndef __FILE_DEFINED
101 #define __FILE_DEFINED
110 #endif // __FILE_DEFINED
116 #define stdin (&__iob[0])
117 #define stdout (&__iob[1])
118 #define stderr (&__iob[2])
137 size_t fread(
void *,
size_t,
size_t,
FILE *);
145 size_t fwrite(
const void *,
size_t,
size_t,
FILE *);
149 void perror(
const char *);
151 int puts(
const char *);
152 int remove(
const char *);
153 int rename(
const char *,
const char *);
155 int scanf(
const char *, ...);
158 int sscanf(
const char *,
const char *, ...);
162 int vscanf(
const char *, va_list);
163 int vsscanf(
const char *,
const char *, va_list);
164 int vxscanf(
int (*xgetc)(
void **),
void (*xungetc)(
int,
void **),
void *stream,
const char *, va_list);
165 int xscanf(
int (*xgetc)(
void **),
void (*xungetc)(
int,
void **),
void *stream,
const char *, ...);
172 int chdir(
const char *path);
176 int vxprintf(
void (*func)(
char*,
int,
void *),
void * arg,
const char * format, va_list ap);
177 int vsnprintf(
char *buf,
size_t n,
const char *fmt, va_list ap);
178 int vsprintf(
char *buf,
const char *fmt, va_list ap);
179 char *
vmprintf(
const char *zFormat, va_list ap);
180 int vfprintf(
FILE *pOut,
const char *zFormat, va_list ap);
181 int vprintf(
const char *format, va_list ap);
182 int vasprintf(
char **strp,
const char *format, va_list ap);
184 int xprintf(
void (*func)(
char*,
int,
void *),
void * arg,
const char * format, ...)
186 int snprintf(
char *str,
size_t sz, const
char *format, ...)
188 int sprintf(
char *buf, const
char *fmt, ...)
190 char *
mprintf(const
char *zFormat, ...)
194 int printf(const
char *format, ...)
196 int asprintf(
char **strp, const
char *format, ...)
202 int nprintf(const
char *format, ...);
203 int vnprintf(const
char *format, va_list args);
211 #endif // __STDIO_H__