easy-to-use function types for typecasting
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4118 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
cf2c577d3d
commit
e15ac75ea0
1 changed files with 7 additions and 0 deletions
|
@ -68,6 +68,13 @@ typedef unsigned int mode_t;
|
||||||
typedef unsigned int size_t;
|
typedef unsigned int size_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
typedef int (*open_func)(const char* pathname, int flags);
|
||||||
|
typedef ssize_t (*read_func)(int fd, void *buf, size_t count);
|
||||||
|
typedef int (*creat_func)(const char *pathname, mode_t mode);
|
||||||
|
typedef ssize_t (*write_func)(int fd, const void *buf, size_t count);
|
||||||
|
typedef void (*qsort_func)(void *base, size_t nmemb, size_t size,
|
||||||
|
int(*_compar)(const void *, const void *));
|
||||||
|
|
||||||
|
|
||||||
#if defined(__MINGW32__) && defined(SIMULATOR)
|
#if defined(__MINGW32__) && defined(SIMULATOR)
|
||||||
extern int open(const char*, int flags, ...);
|
extern int open(const char*, int flags, ...);
|
||||||
|
|
Loading…
Reference in a new issue