Tizen RT Libs&Environment  v1.1 D4
unistd.h File Reference

POSIX operating system APIs. More...

#include <sys/types.h>
#include <tinyara/compiler.h>
Include dependency graph for unistd.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ATEXIT_MAX   1
 
#define SEEK_SET   0 /* From the start of the file */
 
#define SEEK_CUR   1 /* From the current file offset */
 
#define SEEK_END   2 /* From the end of the file */
 
#define F_OK   0 /* Test existence */
 
#define R_OK   1 /* Test read permission */
 
#define W_OK   2 /* Test write permission */
 
#define X_OK   4 /* Test execute permission */
 
#define POSIX_VERSION
 
#define _POSIX_REALTIME_SIGNALS   1
 
#define _POSIX_MESSAGE_PASSING   1
 
#define _POSIX_PRIORITY_SCHEDULING   1
 
#define _POSIX_TIMERS   1
 
#define _POSIX_SYNCHRONIZED_IO   1
 
#define _POSIX_SYNC_IO   1
 
#define fdatasync(f)   fsync(f)
 
#define EXTERN   extern
 

Functions

pid_t vfork (void)
 The vfork() function has the same effect as fork(), except that the behavior is undefined if the process created by vfork() either modifies any data other than a variable of type pid_t used to store the return value from vfork(), or returns from the function in which vfork() was called, or calls any other function before successfully calling _exit() or one of the exec family of functions. More...
 
pid_t getpid (void)
 get the process ID More...
 
unsigned int sleep (unsigned int seconds)
 suspend execution for an interval of time More...
 
int usleep (useconds_t usec)
 suspend execution for microsecond intervals More...
 
int pause (void)
 suspend the thread until a signal is received More...
 
int close (int fd)
 close a file descriptor More...
 
int dup (int fd)
 duplicate an open file descriptor More...
 
int dup2 (int fd1, int fd2)
 duplicate an open file descriptor More...
 
int fsync (int fd)
 synchronize changes to a file More...
 
off_t lseek (int fd, off_t offset, int whence)
 move the read/write file offset More...
 
ssize_t read (int fd, FAR void *buf, size_t nbytes)
 read from a file More...
 
ssize_t write (int fd, FAR const void *buf, size_t nbytes)
 write to another user More...
 
ssize_t pread (int fd, FAR void *buf, size_t nbytes, off_t offset)
 read from a file More...
 
ssize_t pwrite (int fd, FAR const void *buf, size_t nbytes, off_t offset)
 write on a file More...
 
int pipe (int fd[2])
 create an interprocess channel More...
 
int chdir (FAR const char *path)
 change working directory More...
 
FAR char * getcwd (FAR char *buf, size_t size)
 get the pathname of the current working directory More...
 
int access (FAR const char *path, int amode)
 determine accessibility of a file descriptor More...
 
int rmdir (FAR const char *pathname)
 remove a directory More...
 
int unlink (FAR const char *pathname)
 call the unlink function More...
 
int getopt (int argc, FAR char *const argv[], FAR const char *optstring)
 command option parsing More...
 

Variables

EXTERN FAR char * optarg
 
EXTERN int optind
 
EXTERN int optopt
 

Detailed Description

POSIX operating system APIs.

Definition in file unistd.h.