Netcruzer Library API
V2.03
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Macros
Groups
Pages
simio.h
1
#if !defined(NZSYS_DISABLE_STDIO_WRITE)
2
3
#ifndef _FD_INVALID
4
#define _FD_INVALID (-1)
5
#endif
6
7
#if !defined(__SIMIO__)
8
typedef
enum
9
{
10
SIM_OPEN,
11
SIM_CLOSE,
12
SIM_READ,
13
SIM_WRITE,
14
SIM_LSEEK,
15
SIM_UNLINK,
16
SIM_RENAME
17
}
18
SIMMETHOD;
19
typedef
struct
tagSIMOPEN
20
{
21
const
char
* name;
22
int
access;
23
int
mode;
24
int
handle;
25
}
26
SIMOPEN
;
27
typedef
struct
tagSIMCLOSE
28
{
29
int
handle;
30
}
31
SIMCLOSE
;
32
typedef
struct
tagSIMREAD
33
{
34
int
handle;
35
const
void
* buffer;
36
unsigned
int
len;
37
}
38
SIMREAD
;
39
typedef
struct
tagSIMWRITE
40
{
41
int
handle;
42
const
void
* buffer;
43
unsigned
int
len;
44
}
45
SIMWRITE
;
46
typedef
struct
tagSIMLSEEK
47
{
48
int
handle;
49
long
offset;
50
int
origin;
51
}
52
SIMLSEEK
;
53
typedef
struct
tagSIMUNLINK
54
{
55
const
char
* filename;
56
int
rc;
57
}
58
SIMUNLINK
;
59
typedef
struct
tagSIMRENAME
60
{
61
const
char
* oldname;
62
const
char
* newname;
63
int
rc;
64
}
65
SIMRENAME
;
66
typedef
struct
tagSIMIO
67
{
68
SIMMETHOD method;
69
union
70
{
71
SIMOPEN
open;
72
SIMCLOSE
close;
73
SIMREAD
read;
74
SIMWRITE
write;
75
SIMLSEEK
lseek;
76
SIMUNLINK
unlink;
77
SIMRENAME
rename;
78
}
79
u;
80
}
81
SIMIO
, *
PSIMIO
;
82
#endif
83
84
#endif //#if !defined(NZSYS_DISABLE_STDIO_WRITE)
netcruzer
lib
simio.h
Generated on Tue Dec 9 2014 15:08:19 for Netcruzer Library API by
1.8.4