uc-sdk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
unistd.h
Go to the documentation of this file.
1 #ifndef __UNISTD_H__
2 #define __UNISTD_H__
3 
4 #include <reent.h>
5 #include <stddef.h>
6 #include <stdint.h>
7 
8 typedef int32_t ssize_t;
9 typedef int32_t off_t;
10 
12  O_RDONLY = 0,
13  O_WRONLY = 1,
14  O_RDWR = 2,
15  O_CREAT = 4,
16  O_TRUNC = 8,
17  O_APPEND = 16,
18 };
19 
21  SEEK_SET = 0,
22  SEEK_CUR = 1,
23  SEEK_END = 2,
24 };
25 
26 int open(const char *pathname, int flags);
27 int close(int fd);
28 ssize_t read(int fd, void *buf, size_t count);
29 ssize_t write(int fd, const void *buf, size_t count);
30 off_t lseek(int fd, off_t seek, int wheel);
31 
32 #endif