uc-sdk
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
fio.h
Go to the documentation of this file.
1
#ifndef __FIO_H__
2
#define __FIO_H__
3
4
#include <
stdio.h
>
5
6
#define MAX_FDS 32
7
8
typedef
ssize_t
(*
fdread_t
)(
void
* opaque,
void
* buf,
size_t
count);
9
typedef
ssize_t
(*
fdwrite_t
)(
void
* opaque,
const
void
* buf,
size_t
count);
10
typedef
off_t
(*
fdseek_t
)(
void
* opaque,
off_t
offset,
int
whence);
11
typedef
int (*
fdclose_t
)(
void
* opaque);
12
13
struct
fddef_t
{
14
fdread_t
fdread
;
15
fdwrite_t
fdwrite
;
16
fdseek_t
fdseek
;
17
fdclose_t
fdclose
;
18
void
*
opaque
;
19
};
20
21
int
fio_is_open
(
int
fd);
22
int
fio_open
(
fdread_t
,
fdwrite_t
,
fdseek_t
,
fdclose_t
,
void
* opaque);
23
ssize_t
fio_read
(
int
fd,
void
* buf,
size_t
count);
24
ssize_t
fio_write
(
int
fd,
const
void
* buf,
size_t
count);
25
off_t
fio_seek
(
int
fd,
off_t
offset,
int
whence);
26
int
fio_close
(
int
fd);
27
void
fio_set_opaque
(
int
fd,
void
* opaque);
28
29
void
register_devfs
();
30
31
#endif
os
include
fio.h
Generated on Fri Nov 15 2013 05:00:23 for uc-sdk by
1.8.4