src/include/unistd.h File Reference

#include <minix/types.h>

Go to the source code of this file.

Defines

#define F_OK   0
#define X_OK   1
#define W_OK   2
#define R_OK   4
#define SEEK_SET   0
#define SEEK_CUR   1
#define SEEK_END   2
#define _POSIX_VERSION   199009L
#define STDIN_FILENO   0
#define STDOUT_FILENO   1
#define STDERR_FILENO   2
#define SI_KINFO   0
#define SI_PROC_ADDR   1
#define SI_PROC_TAB   2
#define SI_DMAP_TAB   3
#define SI_MEM_ALLOC   4
#define SI_DATA_STORE   5
#define SI_SUBSCRIPTION   6
#define SI_LOADINFO   7
#define SI_KPROC_TAB   8
#define SI_CALL_STATS   9
#define SI_PCI_INFO   10
#define SI_PROCPUB_TAB   11
#define NULL   ((void *)0)
#define _SC_ARG_MAX   1
#define _SC_CHILD_MAX   2
#define _SC_CLOCKS_PER_SEC   3
#define _SC_CLK_TCK   3
#define _SC_NGROUPS_MAX   4
#define _SC_OPEN_MAX   5
#define _SC_JOB_CONTROL   6
#define _SC_SAVED_IDS   7
#define _SC_VERSION   8
#define _SC_STREAM_MAX   9
#define _SC_TZNAME_MAX   10
#define _SC_PAGESIZE   11
#define _SC_PAGE_SIZE   _SC_PAGESIZE
#define _PC_LINK_MAX   1
#define _PC_MAX_CANON   2
#define _PC_MAX_INPUT   3
#define _PC_NAME_MAX   4
#define _PC_PATH_MAX   5
#define _PC_PIPE_BUF   6
#define _PC_NO_TRUNC   7
#define _PC_VDISABLE   8
#define _PC_CHOWN_RESTRICTED   9
#define _POSIX_NO_TRUNC   (-1)
#define _POSIX_CHOWN_RESTRICTED   1

Functions

 _PROTOTYPE (void _exit,(int _status))
 _PROTOTYPE (int access,(const char *_path, int _amode))
 _PROTOTYPE (unsigned int alarm,(unsigned int _seconds))
 _PROTOTYPE (int chdir,(const char *_path))
 _PROTOTYPE (int fchdir,(int fd))
 _PROTOTYPE (int chown,(const char *_path, _mnx_Uid_t _owner, _mnx_Gid_t _group))
 _PROTOTYPE (int fchown,(int fd, _mnx_Uid_t _owner, _mnx_Gid_t _group))
 _PROTOTYPE (int close,(int _fd))
 _PROTOTYPE (char *ctermid,(char *_s))
 _PROTOTYPE (int dup2,(int _fd, int _fd2))
 _PROTOTYPE (int execl,(const char *_path, const char *_arg,...))
 _PROTOTYPE (int execlp,(const char *_file, const char *arg,...))
 _PROTOTYPE (int execv,(const char *_path, char *const _argv[]))
 _PROTOTYPE (int execve,(const char *_path, char *const _argv[], char *const _envp[]))
 _PROTOTYPE (int execvp,(const char *_file, char *const _argv[]))
 _PROTOTYPE (pid_t fork,(void))
 _PROTOTYPE (long fpathconf,(int _fd, int _name))
 _PROTOTYPE (char *getcwd,(char *_buf, size_t _size))
 _PROTOTYPE (gid_t getegid,(void))
 _PROTOTYPE (uid_t geteuid,(void))
 _PROTOTYPE (int getgroups,(int _gidsetsize, gid_t _grouplist[]))
 _PROTOTYPE (int setgroups,(int _ngroups, gid_t const *grps))
 _PROTOTYPE (char *getlogin,(void))
 _PROTOTYPE (int link,(const char *_existing, const char *_new))
 _PROTOTYPE (off_t lseek,(int _fd, off_t _offset, int _whence))
 _PROTOTYPE (long pathconf,(const char *_path, int _name))
 _PROTOTYPE (int pause,(void))
 _PROTOTYPE (int pipe,(int _fildes[2]))
 _PROTOTYPE (ssize_t read,(int _fd, void *_buf, size_t _n))
 _PROTOTYPE (int setgid,(_mnx_Gid_t _gid))
 _PROTOTYPE (int setpgid,(pid_t _pid, pid_t _pgid))
 _PROTOTYPE (int setuid,(_mnx_Uid_t _uid))
 _PROTOTYPE (long sysconf,(int _name))
 _PROTOTYPE (pid_t tcgetpgrp,(int _fd))
 _PROTOTYPE (int tcsetpgrp,(int _fd, pid_t _pgrp_id))
 _PROTOTYPE (char *ttyname,(int _fd))
 _PROTOTYPE (ssize_t write,(int _fd, const void *_buf, size_t _n))
 _PROTOTYPE (int truncate,(const char *_path, off_t _length))
 _PROTOTYPE (int ftruncate,(int _fd, off_t _length))
 _PROTOTYPE (int nice,(int _incr))
 _PROTOTYPE (int symlink,(const char *path1, const char *path2))
 _PROTOTYPE (int readlink,(const char *, char *, size_t))
 _PROTOTYPE (int getopt,(int _argc, char *const _argv[], char const *_opts))
 _PROTOTYPE (int usleep,(useconds_t _useconds))

Variables

char * optarg
int optind
int opterr
int optopt


Define Documentation

#define _PC_CHOWN_RESTRICTED   9

Definition at line 82 of file unistd.h.

#define _PC_LINK_MAX   1

Definition at line 74 of file unistd.h.

#define _PC_MAX_CANON   2

Definition at line 75 of file unistd.h.

#define _PC_MAX_INPUT   3

Definition at line 76 of file unistd.h.

#define _PC_NAME_MAX   4

Definition at line 77 of file unistd.h.

#define _PC_NO_TRUNC   7

Definition at line 80 of file unistd.h.

#define _PC_PATH_MAX   5

Definition at line 78 of file unistd.h.

#define _PC_PIPE_BUF   6

Definition at line 79 of file unistd.h.

#define _PC_VDISABLE   8

Definition at line 81 of file unistd.h.

#define _POSIX_CHOWN_RESTRICTED   1

Definition at line 94 of file unistd.h.

#define _POSIX_NO_TRUNC   (-1)

Definition at line 93 of file unistd.h.

#define _POSIX_VERSION   199009L

Definition at line 22 of file unistd.h.

#define _SC_ARG_MAX   1

Definition at line 59 of file unistd.h.

#define _SC_CHILD_MAX   2

Definition at line 60 of file unistd.h.

#define _SC_CLK_TCK   3

Definition at line 62 of file unistd.h.

#define _SC_CLOCKS_PER_SEC   3

Definition at line 61 of file unistd.h.

#define _SC_JOB_CONTROL   6

Definition at line 65 of file unistd.h.

#define _SC_NGROUPS_MAX   4

Definition at line 63 of file unistd.h.

#define _SC_OPEN_MAX   5

Definition at line 64 of file unistd.h.

#define _SC_PAGE_SIZE   _SC_PAGESIZE

Definition at line 71 of file unistd.h.

#define _SC_PAGESIZE   11

Definition at line 70 of file unistd.h.

#define _SC_SAVED_IDS   7

Definition at line 66 of file unistd.h.

#define _SC_STREAM_MAX   9

Definition at line 68 of file unistd.h.

#define _SC_TZNAME_MAX   10

Definition at line 69 of file unistd.h.

#define _SC_VERSION   8

Definition at line 67 of file unistd.h.

#define F_OK   0

Definition at line 11 of file unistd.h.

#define NULL   ((void *)0)

Definition at line 56 of file unistd.h.

#define R_OK   4

Definition at line 14 of file unistd.h.

#define SEEK_CUR   1

Definition at line 18 of file unistd.h.

#define SEEK_END   2

Definition at line 19 of file unistd.h.

#define SEEK_SET   0

Definition at line 17 of file unistd.h.

#define SI_CALL_STATS   9

Definition at line 51 of file unistd.h.

#define SI_DATA_STORE   5

Definition at line 47 of file unistd.h.

#define SI_DMAP_TAB   3

Definition at line 45 of file unistd.h.

#define SI_KINFO   0

Definition at line 42 of file unistd.h.

#define SI_KPROC_TAB   8

Definition at line 50 of file unistd.h.

#define SI_LOADINFO   7

Definition at line 49 of file unistd.h.

#define SI_MEM_ALLOC   4

Definition at line 46 of file unistd.h.

#define SI_PCI_INFO   10

Definition at line 52 of file unistd.h.

#define SI_PROC_ADDR   1

Definition at line 43 of file unistd.h.

#define SI_PROC_TAB   2

Definition at line 44 of file unistd.h.

#define SI_PROCPUB_TAB   11

Definition at line 53 of file unistd.h.

#define SI_SUBSCRIPTION   6

Definition at line 48 of file unistd.h.

#define STDERR_FILENO   2

Definition at line 27 of file unistd.h.

#define STDIN_FILENO   0

Definition at line 25 of file unistd.h.

#define STDOUT_FILENO   1

Definition at line 26 of file unistd.h.

#define W_OK   2

Definition at line 13 of file unistd.h.

#define X_OK   1

Definition at line 12 of file unistd.h.


Function Documentation

_PROTOTYPE ( int  usleep,
(useconds_t _useconds)   
)

_PROTOTYPE ( int  getopt,
(int _argc, char *const _argv[], char const *_opts)   
)

_PROTOTYPE ( int  readlink,
(const char *, char *, size_t  
)

_PROTOTYPE ( int  symlink,
(const char *path1, const char *path2)   
)

_PROTOTYPE ( int  nice,
(int _incr)   
)

_PROTOTYPE ( int  ftruncate,
(int _fd, off_t _length)   
)

_PROTOTYPE ( int  truncate,
(const char *_path, off_t _length)   
)

_PROTOTYPE ( ssize_t  write,
(int _fd, const void *_buf, size_t _n)   
)

_PROTOTYPE ( char *  ttyname,
(int _fd)   
)

_PROTOTYPE ( int  tcsetpgrp,
(int _fd, pid_t _pgrp_id)   
)

_PROTOTYPE ( pid_t  tcgetpgrp,
(int _fd)   
)

_PROTOTYPE ( long  sysconf,
(int _name)   
)

_PROTOTYPE ( int  setuid,
(_mnx_Uid_t _uid)   
)

_PROTOTYPE ( int  setpgid,
(pid_t _pid, pid_t _pgid)   
)

_PROTOTYPE ( int  setgid,
(_mnx_Gid_t _gid)   
)

_PROTOTYPE ( ssize_t  read,
(int _fd, void *_buf, size_t _n)   
)

_PROTOTYPE ( int  pipe,
(int _fildes[2])   
)

_PROTOTYPE ( int  pause,
(void)   
)

_PROTOTYPE ( long  pathconf,
(const char *_path, int _name)   
)

_PROTOTYPE ( off_t  lseek,
(int _fd, off_t _offset, int _whence)   
)

_PROTOTYPE ( int  link,
(const char *_existing, const char *_new)   
)

_PROTOTYPE ( char *  getlogin,
(void)   
)

_PROTOTYPE ( int  setgroups,
(int _ngroups, gid_t const *grps)   
)

_PROTOTYPE ( int  getgroups,
(int _gidsetsize, gid_t _grouplist[])   
)

_PROTOTYPE ( uid_t  geteuid,
(void)   
)

_PROTOTYPE ( gid_t  getegid,
(void)   
)

_PROTOTYPE ( char *  getcwd,
(char *_buf, size_t _size)   
)

_PROTOTYPE ( long  fpathconf,
(int _fd, int _name)   
)

_PROTOTYPE ( pid_t  fork,
(void)   
)

_PROTOTYPE ( int  execvp,
(const char *_file, char *const _argv[])   
)

_PROTOTYPE ( int  execve,
(const char *_path, char *const _argv[], char *const _envp[])   
)

_PROTOTYPE ( int  execv,
(const char *_path, char *const _argv[])   
)

_PROTOTYPE ( int  execlp,
(const char *_file, const char *arg,...)   
)

_PROTOTYPE ( int  execl,
(const char *_path, const char *_arg,...)   
)

_PROTOTYPE ( int  dup2,
(int _fd, int _fd2)   
)

_PROTOTYPE ( char *  ctermid,
(char *_s)   
)

_PROTOTYPE ( int  close,
(int _fd)   
)

_PROTOTYPE ( int  fchown,
(int fd, _mnx_Uid_t _owner, _mnx_Gid_t _group)   
)

_PROTOTYPE ( int  chown,
(const char *_path, _mnx_Uid_t _owner, _mnx_Gid_t _group)   
)

_PROTOTYPE ( int  fchdir,
(int fd  
)

_PROTOTYPE ( int  chdir,
(const char *_path)   
)

_PROTOTYPE ( unsigned int  alarm,
(unsigned int _seconds)   
)

_PROTOTYPE ( int  access,
(const char *_path, int _amode)   
)

_PROTOTYPE ( void  _exit,
(int _status)   
)


Variable Documentation

char* optarg

Definition at line 31 of file getopt.c.

int opterr

Definition at line 28 of file getopt.c.

int optind

Definition at line 29 of file getopt.c.

int optopt

Definition at line 30 of file getopt.c.


Generated on Tue Mar 9 04:36:56 2010 for Minix by  doxygen 1.5.8