unistd.h File Reference

#include <sys/types.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.

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_LOADINFO   6
#define SI_KPROC_TAB   7
#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 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 (char *getlogin,(void))
 _PROTOTYPE (pid_t getnpid,(int proc_nr))
 _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 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 (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 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 78 of file unistd.h.

Referenced by fpathconf(), and test36a().

#define _PC_LINK_MAX   1
 

Definition at line 70 of file unistd.h.

Referenced by fpathconf().

#define _PC_MAX_CANON   2
 

Definition at line 71 of file unistd.h.

Referenced by fpathconf().

#define _PC_MAX_INPUT   3
 

Definition at line 72 of file unistd.h.

Referenced by fpathconf().

#define _PC_NAME_MAX   4
 

Definition at line 73 of file unistd.h.

Referenced by fpathconf(), provided_option(), and variating_option().

#define _PC_NO_TRUNC   7
 

Definition at line 76 of file unistd.h.

Referenced by fpathconf(), provided_option(), test36a(), and variating_option().

#define _PC_PATH_MAX   5
 

Definition at line 74 of file unistd.h.

Referenced by fpathconf(), provided_option(), and variating_option().

#define _PC_PIPE_BUF   6
 

Definition at line 75 of file unistd.h.

Referenced by fpathconf().

#define _PC_VDISABLE   8
 

Definition at line 77 of file unistd.h.

Referenced by fpathconf(), and test36a().

#define _POSIX_CHOWN_RESTRICTED   1
 

Definition at line 90 of file unistd.h.

Referenced by fpathconf().

#define _POSIX_NO_TRUNC   (-1)
 

Definition at line 89 of file unistd.h.

Referenced by fpathconf().

#define _POSIX_VERSION   199009L
 

Definition at line 22 of file unistd.h.

Referenced by sysconf().

#define _SC_ARG_MAX   1
 

Definition at line 55 of file unistd.h.

Referenced by sysconf(), and test3e().

#define _SC_CHILD_MAX   2
 

Definition at line 56 of file unistd.h.

Referenced by sysconf(), and test3e().

#define _SC_CLK_TCK   3
 

Definition at line 58 of file unistd.h.

Referenced by Proc0(), and sysconf().

#define _SC_CLOCKS_PER_SEC   3
 

Definition at line 57 of file unistd.h.

#define _SC_JOB_CONTROL   6
 

Definition at line 61 of file unistd.h.

Referenced by sysconf(), and test3e().

#define _SC_NGROUPS_MAX   4
 

Definition at line 59 of file unistd.h.

Referenced by sysconf(), and test3e().

#define _SC_OPEN_MAX   5
 

Definition at line 60 of file unistd.h.

Referenced by sysconf(), and test3e().

#define _SC_PAGE_SIZE   _SC_PAGESIZE
 

Definition at line 67 of file unistd.h.

#define _SC_PAGESIZE   11
 

Definition at line 66 of file unistd.h.

Referenced by sysconf().

#define _SC_SAVED_IDS   7
 

Definition at line 62 of file unistd.h.

Referenced by sysconf().

#define _SC_STREAM_MAX   9
 

Definition at line 64 of file unistd.h.

Referenced by sysconf().

#define _SC_TZNAME_MAX   10
 

Definition at line 65 of file unistd.h.

Referenced by sysconf().

#define _SC_VERSION   8
 

Definition at line 63 of file unistd.h.

Referenced by sysconf().

#define F_OK   0
 

Definition at line 11 of file unistd.h.

Referenced by do_access(), Find_Deleted_Entry(), main(), test33b(), test33c(), test33d(), test_access(), TGZfname(), and unix_target_lookup().

#define NULL   ((void *)0)
 

Definition at line 52 of file unistd.h.

#define R_OK   4
 

Definition at line 14 of file unistd.h.

Referenced by calendar(), do_access(), File_Device(), Find_Deleted_Entry(), opentab(), test16a(), test33b(), test33c(), test33d(), test39h(), and test_access().

#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_DATA_STORE   5
 

Definition at line 47 of file unistd.h.

Referenced by data_store_dmp(), and do_getsysinfo().

#define SI_DMAP_TAB   3
 

Definition at line 45 of file unistd.h.

Referenced by do_getsysinfo(), dtab_dmp(), and init_server().

#define SI_KINFO   0
 

Definition at line 42 of file unistd.h.

Referenced by do_getsysinfo(), and uname().

#define SI_KPROC_TAB   7
 

Definition at line 49 of file unistd.h.

Referenced by do_getsysinfo(), and showtop().

#define SI_LOADINFO   6
 

Definition at line 48 of file unistd.h.

Referenced by do_getsysinfo(), and getloadavg().

#define SI_MEM_ALLOC   4
 

Definition at line 46 of file unistd.h.

Referenced by do_getsysinfo(), holes_dmp(), and showtop().

#define SI_PROC_ADDR   1
 

Definition at line 43 of file unistd.h.

Referenced by do_getsysinfo().

#define SI_PROC_TAB   2
 

Definition at line 44 of file unistd.h.

Referenced by do_getsysinfo(), fproc_dmp(), mproc_dmp(), rproc_dmp(), showtop(), and sigaction_dmp().

#define STDERR_FILENO   2
 

Definition at line 27 of file unistd.h.

Referenced by daemonize(), main(), syslog(), and usage().

#define STDIN_FILENO   0
 

Definition at line 25 of file unistd.h.

Referenced by ar_open(), ar_start_gzip(), main(), showtop(), and writer().

#define STDOUT_FILENO   1
 

Definition at line 26 of file unistd.h.

Referenced by ar_open(), ar_start_gzip(), echo(), list_dir(), main(), and reader().

#define W_OK   2
 

Definition at line 13 of file unistd.h.

Referenced by do_access(), opentab(), test16a(), test33b(), test33c(), test33d(), test39h(), and test_access().

#define X_OK   1
 

Definition at line 12 of file unistd.h.

Referenced by do_access(), main(), test33b(), test33c(), test33d(), test39h(), and test_access().


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  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 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 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 pid_t  getnpid,
(int proc_nr
 

_PROTOTYPE char *  getlogin,
(void) 
 

_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  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 59 of file options.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 Fri Apr 14 23:13:56 2006 for minix by  doxygen 1.4.6