sdk-core
v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Toggle main menu visibility
Loading...
Searching...
No Matches
fileXio_rpc.h
Go to the documentation of this file.
1
/*
2
# _____ ___ ____ ___ ____
3
# ____| | ____| | | |____|
4
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5
#-----------------------------------------------------------------------
6
# Copyright 2001-2004, ps2dev - http://www.ps2dev.org
7
# Licenced under Academic Free License version 2.0
8
# Review ps2sdk README & LICENSE files for further details.
9
*/
10
16
17
#ifndef __FILEXIO_RPC_H__
18
#define __FILEXIO_RPC_H__
19
20
#include <
fileXio.h
>
21
#include <sys/stat.h>
22
23
#ifndef NEWLIB_PORT_AWARE
24
#error "Using fio/fileXio functions directly in the newlib port will lead to problems."
25
#error "Use posix function calls instead."
26
#endif
27
28
#define FXIO_WAIT 0
29
#define FXIO_NOWAIT 1
30
31
#define FXIO_COMPLETE 1
32
#define FXIO_INCOMPLETE 0
33
34
#ifdef __cplusplus
35
extern
"C"
{
36
#endif
37
38
extern
int
fileXioInit(
void
);
39
extern
void
fileXioExit(
void
);
40
extern
void
fileXioSetBlockMode(
int
blocking);
41
extern
int
fileXioWaitAsync(
int
mode,
int
*retVal);
42
43
extern
void
fileXioStop();
44
extern
int
fileXioGetDeviceList(
struct
fileXioDevice
deviceEntry[],
unsigned
int
req_entries);
45
extern
int
fileXioGetdir(
const
char
* pathname,
struct
fileXioDirEntry
DirEntry[],
unsigned
int
req_entries);
46
extern
int
fileXioMount(
const
char
* mountpoint,
const
char
* blockdev,
int
flag);
47
extern
int
fileXioUmount(
const
char
* mountpoint);
48
extern
int
fileXioCopyfile(
const
char
* source,
const
char
* dest,
int
mode);
49
extern
int
fileXioMkdir(
const
char
* pathname,
int
mode);
50
extern
int
fileXioRmdir(
const
char
* pathname);
51
extern
int
fileXioRemove(
const
char
* pathname);
52
extern
int
fileXioRename(
const
char
* source,
const
char
* dest);
53
extern
int
fileXioSymlink(
const
char
* source,
const
char
* dest);
54
extern
int
fileXioReadlink(
const
char
* source,
char
* buf,
unsigned
int
buflen);
55
extern
int
fileXioChdir(
const
char
* pathname);
56
extern
int
fileXioOpen(
const
char
* source,
int
flags, ...);
57
extern
int
fileXioClose(
int
fd);
58
extern
int
fileXioRead(
int
fd,
void
*buf,
int
size);
59
extern
int
fileXioWrite(
int
fd,
const
void
*buf,
int
size);
60
extern
int
fileXioLseek(
int
fd,
int
offset,
int
whence);
61
extern
s64 fileXioLseek64(
int
fd, s64 offset,
int
whence);
62
extern
int
fileXioChStat(
const
char
*name,
iox_stat_t
*stat,
int
mask);
63
extern
int
fileXioGetStat(
const
char
*name,
iox_stat_t
*stat);
64
extern
int
fileXioFormat(
const
char
*dev,
const
char
*blockdev,
const
void
*args,
int
arglen);
65
extern
int
fileXioSync(
const
char
*devname,
int
flag);
66
extern
int
fileXioDopen(
const
char
*name);
67
extern
int
fileXioDclose(
int
fd);
68
extern
int
fileXioDread(
int
fd,
iox_dirent_t
*dirent);
69
extern
int
fileXioDevctl(
const
char
*name,
int
cmd,
void
*arg,
unsigned
int
arglen,
void
*buf,
unsigned
int
buflen);
70
extern
int
fileXioIoctl(
int
fd,
int
cmd,
void
*arg);
71
extern
int
fileXioIoctl2(
int
fd,
int
command,
void
*arg,
unsigned
int
arglen,
void
*buf,
unsigned
int
buflen);
72
extern
int
fileXioSetRWBufferSize(
int
size);
73
74
#ifdef __cplusplus
75
}
76
#endif
77
78
#endif
/* __FILEXIO_RPC_H__ */
fileXio.h
fileXioDevice
Definition
fileXio.h:108
fileXioDirEntry
Definition
fileXio.h:101
iox_dirent_t
Definition
iox_stat.h:113
iox_stat_t
Definition
iox_stat.h:94
core
filexio
include
fileXio_rpc.h
Generated by
1.18.0