XFusion API v1.3.0
载入中...
搜索中...
未找到
xf_hal_posix.h
浏览该文件的文档.
1
12#ifndef __XF_HAL_POSIX_H__
13#define __XF_HAL_POSIX_H__
14
15/* ==================== [Includes] ========================================== */
16
18
28#if XF_HAL_POSIX_IS_ENABLE
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
34/* ==================== [Defines] =========================================== */
35
36#define O_RDONLY 0x00
37#define O_WRONLY 0x01
38#define O_RDWR 0x02
39
40/* ==================== [Typedefs] ========================================== */
41
42/* ==================== [Global Prototypes] ================================= */
43
44int open(const char *pathname, int flags);
45int ioctl(int fd, unsigned long request, ...);
46size_t write(int fd, const void *buf, size_t count);
47size_t read(int fd, void *buf, size_t count);
48int close(int fd);
49
50/* ==================== [Macros] ============================================ */
51
52#ifdef __cplusplus
53} /* extern "C" */
54#endif
55
56#endif /* XF_HAL_POSIX_IS_ENABLE */
57
63#endif // __XF_HAL_POSIX_H__
xf_hal 内核配置(仅 xf_hal kernel 内部使用)。
int ioctl(int fd, unsigned long request,...)
size_t read(int fd, void *buf, size_t count)
int close(int fd)
size_t write(int fd, const void *buf, size_t count)
int open(const char *pathname, int flags)