Annotation of mstools/posix/h/unistd.h, revision 1.1.1.1

1.1       root        1: /*++
                      2: 
                      3: Copyright (c) 1989  Microsoft Corporation
                      4: 
                      5: Module Name:
                      6: 
                      7:    unistd.h
                      8: 
                      9: Abstract:
                     10: 
                     11:    This module contains the "symbolic constants and structures referenced
                     12:    elsewhere in the standard" IEEE P1003.1/Draft 13.
                     13: 
                     14: Author:
                     15: 
                     16:    Mark Lucovsky     21-Feb-1989
                     17: 
                     18: Revision History:
                     19: 
                     20: --*/
                     21: 
                     22: #ifndef _UNISTD_
                     23: #define _UNISTD_
                     24: 
                     25: #include <sys/types.h>
                     26: 
                     27: #define STDIN_FILENO   0
                     28: #define STDOUT_FILENO  1
                     29: #define STDERR_FILENO  2
                     30: 
                     31: /*
                     32:  * Section 2.9.1
                     33:  */
                     34: 
                     35: #define  F_OK  00
                     36: #define  X_OK  01
                     37: #define  W_OK  02
                     38: #define  R_OK  04
                     39: 
                     40: /*
                     41:  * Section 2.9.2
                     42:  */
                     43: 
                     44: #define  SEEK_SET 0
                     45: #define  SEEK_CUR 1
                     46: #define  SEEK_END 2
                     47: 
                     48: /*
                     49:  * Section 2.9.3
                     50:  */
                     51: 
                     52: #define _POSIX_JOB_CONTROL
                     53: #define _POSIX_VERSION        199009L
                     54: #define _POSIX_SAVED_IDS
                     55: 
                     56: /*
                     57:  * Section 2.9.4
                     58:  */
                     59: 
                     60: #define  _POSIX_CHOWN_RESTRICTED 1
                     61: #define  _POSIX_NO_TRUNC        1
                     62: #define  _POSIX_VDISABLE       (-1)
                     63: 
                     64: /*
                     65:  * Section 4.8.1
                     66:  *    sysconf 'name' values
                     67:  */
                     68: 
                     69: #define _SC_ARG_MAX            1
                     70: #define _SC_CHILD_MAX          2
                     71: #define _SC_CLK_TCK            3
                     72: #define _SC_NGROUPS_MAX                4
                     73: #define _SC_OPEN_MAX           5
                     74: #define _SC_JOB_CONTROL                6
                     75: #define _SC_SAVED_IDS          7
                     76: #define _SC_VERSION            8
                     77: 
                     78: /*
                     79:  * Section 5.7.1
                     80:  *    pathconf and fpathconf 'name' values
                     81:  */
                     82: 
                     83: #define _PC_LINK_MAX           1
                     84: #define _PC_MAX_CANON          2
                     85: #define _PC_MAX_INPUT          3
                     86: #define _PC_NAME_MAX           4
                     87: #define _PC_PATH_MAX           5
                     88: #define _PC_PIPE_BUF           6
                     89: #define _PC_CHOWN_RESTRICTED   7
                     90: #define _PC_NO_TRUNC           8
                     91: #define _PC_VDISABLE           9
                     92: 
                     93: /*
                     94:  * Function Prototypes
                     95:  */
                     96: 
                     97: pid_t _CRTAPI1 fork(void);
                     98: 
                     99: int _CRTAPI2 execl(const char *, const char *, ...);
                    100: int _CRTAPI1 execv(const char *, char * const []);
                    101: int _CRTAPI2 execle(const char *, const char *arg, ...);
                    102: int _CRTAPI1 execve(const char *, char * const [], char * const []);
                    103: int _CRTAPI2 execlp(const char *, const char *, ...);
                    104: int _CRTAPI1 execvp(const char *, char * const []);
                    105: 
                    106: void _CRTAPI1 _exit(int);
                    107: unsigned int _CRTAPI1 alarm(unsigned int);
                    108: int _CRTAPI1 pause(void);
                    109: unsigned int _CRTAPI1 sleep(unsigned int);
                    110: pid_t _CRTAPI1 getpid(void);
                    111: pid_t _CRTAPI1 getppid(void);
                    112: uid_t _CRTAPI1 getuid(void);
                    113: uid_t _CRTAPI1 geteuid(void);
                    114: gid_t _CRTAPI1 getgid(void);
                    115: gid_t _CRTAPI1 getegid(void);
                    116: int _CRTAPI1 setuid(uid_t);
                    117: int _CRTAPI1 setgid(gid_t);
                    118: int _CRTAPI1 getgroups(int gidsetsize, gid_t grouplist[]);
                    119: char *_CRTAPI1 getlogin(void);
                    120: pid_t _CRTAPI1 getpgrp(void);
                    121: pid_t _CRTAPI1 setsid(void);
                    122: int _CRTAPI1 setpgid(pid_t, pid_t);
                    123: 
                    124: struct utsname;
                    125: int _CRTAPI1 uname(struct utsname *);
                    126: 
                    127: time_t _CRTAPI1 time(time_t *);
                    128: char * _CRTAPI1 getenv(const char *);
                    129: char * _CRTAPI1 ctermid(char *s);
                    130: char * _CRTAPI1 ttyname(int);
                    131: int _CRTAPI1 isatty(int);
                    132: 
                    133: long _CRTAPI1 sysconf(int);
                    134: 
                    135: int _CRTAPI1 chdir(const char *);
                    136: char * _CRTAPI1 getcwd(char *, size_t);
                    137: int _CRTAPI1 link(const char *, const char *);
                    138: int _CRTAPI1 unlink(const char *);
                    139: int _CRTAPI1 rmdir(const char *);
                    140: int _CRTAPI1 rename(const char *, const char *);
                    141: int _CRTAPI1 access(const char *, int);
                    142: int _CRTAPI1 chown(const char *, uid_t, gid_t);
                    143: 
                    144: struct utimbuf;
                    145: int _CRTAPI1 utime(const char *, const struct utimbuf *);
                    146: 
                    147: long _CRTAPI1 pathconf(const char *, int);
                    148: long _CRTAPI1 fpathconf(int, int);
                    149: 
                    150: int _CRTAPI1 pipe(int *);
                    151: int _CRTAPI1 dup(int);
                    152: int _CRTAPI1 dup2(int, int);
                    153: int _CRTAPI1 close(int);
                    154: ssize_t _CRTAPI1 read(int, void *, size_t);
                    155: ssize_t _CRTAPI1 write(int, const void *, size_t);
                    156: off_t _CRTAPI1 lseek(int, off_t, int);
                    157: 
                    158: char * _CRTAPI1 cuserid(char *);
                    159: 
                    160: #endif /* _UNISTD_ */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.