63 #ifndef __INCLUDE_UNISTD_H 64 #define __INCLUDE_UNISTD_H 70 #include <sys/types.h> 71 #include <tinyara/compiler.h> 99 #undef _POSIX_SAVED_IDS 100 #undef _POSIX_JOB_CONTROL 101 #define _POSIX_REALTIME_SIGNALS 1 102 #define _POSIX_MESSAGE_PASSING 1 103 #undef _POSIX_MAPPED_FILES 104 #undef _POSIX_SHARED_MEMORY_OBJECTS 105 #define _POSIX_PRIORITY_SCHEDULING 1 106 #define _POSIX_TIMERS 1 107 #undef _POSIX_MEMLOCK 108 #undef _POSIX_MEMLOCK_RANGE 110 #define _POSIX_SYNCHRONIZED_IO 1 111 #undef _POSIX_ASYNCHRONOUS_IO 112 #undef _POSIX_PRIORITIZED_IO 116 #undef _POSIX_CHOWN_RESTRICTED 117 #undef _POSIX_NO_TRUNC 118 #undef _POSIX_VDISABLE 120 #define _POSIX_SYNC_IO 1 121 #undef _POSIX_ASYNC_IO 122 #undef _POSIX_PRIO_IO 124 #define fdatasync(f) fsync(f) 131 #if defined(__cplusplus) 132 #define EXTERN extern "C" 135 #define EXTERN extern 148 #define optarg (*(getoptargp())) 149 #define optind (*(getoptindp())) 150 #define optopt (*(getoptoptp())) 204 void _exit(
int status) noreturn_function;
213 unsigned int sleep(
unsigned int seconds);
219 int usleep(useconds_t usec);
250 int dup2(
int fd1,
int fd2);
262 off_t
lseek(
int fd, off_t offset,
int whence);
268 ssize_t
read(
int fd, FAR
void *buf,
size_t nbytes);
274 ssize_t
write(
int fd, FAR
const void *buf,
size_t nbytes);
280 ssize_t
pread(
int fd, FAR
void *buf,
size_t nbytes, off_t offset);
286 ssize_t
pwrite(
int fd, FAR
const void *buf,
size_t nbytes, off_t offset);
292 #if defined(CONFIG_ARCH_ADDRENV) && defined(CONFIG_MM_PGALLOC) && \ 293 defined(CONFIG_ARCH_USE_MMU) 298 FAR
void *sbrk(intptr_t incr);
321 int chdir(FAR
const char *path);
327 FAR
char *
getcwd(FAR
char *buf,
size_t size);
335 int access(FAR
const char *path,
int amode);
345 int rmdir(FAR
const char *pathname);
352 int unlink(FAR
const char *pathname);
356 #ifdef CONFIG_LIBC_EXECFUNCS 362 int execl(FAR
const char *path, ...);
363 int execv(FAR
const char *path, FAR
char *
const argv[]);
375 int getopt(
int argc, FAR
char *
const argv[], FAR
const char *optstring);
386 FAR
char **getoptargp(
void);
387 int *getoptindp(
void);
388 int *getoptoptp(
void);
393 #if defined(__cplusplus) unsigned int sleep(unsigned int seconds)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int dup(int fd)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int pipe(int fd[2])
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
ssize_t pread(int fd, FAR void *buf, size_t nbytes, off_t offset)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
pid_t getpid(void)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int usleep(useconds_t usec)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
ssize_t write(int fd, FAR const void *buf, size_t nbytes)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int unlink(FAR const char *pathname)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
ssize_t pwrite(int fd, FAR const void *buf, size_t nbytes, off_t offset)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int rmdir(FAR const char *pathname)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int close(int fd)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
off_t lseek(int fd, off_t offset, int whence)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
FAR char * getcwd(FAR char *buf, size_t size)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int chdir(FAR const char *path)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
ssize_t read(int fd, FAR void *buf, size_t nbytes)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int getopt(int argc, FAR char *const argv[], FAR const char *optstring)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int fsync(int fd)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
int dup2(int fd1, int fd2)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
pid_t vfork(void)
The vfork() function has the same effect as fork(), except that the behavior is undefined if the proc...
int pause(void)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)