home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / lib / gcc-lib / i486-unknown-sco3.2v5.0.0elf / 2.6-95q2 / include / unistd.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-12  |  5.2 KB  |  175 lines

  1. /* Copyright 1994-1995 The Santa Cruz Operation, Inc. All Rights Reserved. */
  2.  
  3.  
  4. #if defined(_NO_PROTOTYPE)    /* Old, crufty environment */
  5. #include <oldstyle/unistd.h>
  6. #elif defined(_XOPEN_SOURCE) || defined(_XPG4_VERS)    /* Xpg4 environment */
  7. #include <xpg4/unistd.h>
  8. #elif defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) /* Posix environment */
  9. #include <posix/unistd.h>
  10. #elif defined(_SCO_ODS_30) /* Old, Tbird compatible environment */
  11. #include <ods_30_compat/unistd.h>
  12. #else     /* Normal, default environment */
  13. /*
  14.  *   Copyright (C) The Santa Cruz Operation, Inc., 1988-1995
  15.  *        All Rights Reserved.
  16.  *
  17.  *    The information in this file is provided for the exclusive use of
  18.  *    the licensees of The Santa Cruz Operation, Inc.  Such users have the
  19.  *    right to use, modify, and incorporate this code into other products
  20.  *    for purposes authorized by the license agreement provided they include
  21.  *    this notice and the associated copyright notice with any such product.
  22.  *    The information in this file is provided "AS IS" without warranty.
  23.  */
  24.  
  25. /*    Portions Copyright (c) 1990, 1991, 1992, 1993 UNIX System Laboratories, Inc. */
  26. /*    Portions Copyright (c) 1979 - 1990 AT&T   */
  27. /*      All Rights Reserved   */
  28.  
  29. /*    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF          */
  30. /*    UNIX System Laboratories, Inc.                          */
  31. /*    The copyright notice above does not evidence any        */
  32. /*    actual or intended publication of such source code.     */
  33.  
  34. #ifndef _UNISTD_H
  35. #define _UNISTD_H
  36.  
  37. #pragma comment(exestr, "xpg4plus @(#) unistd.h 20.1 94/12/04 ")
  38.  
  39. #ifdef __cplusplus
  40. extern "C" {
  41. #endif
  42.  
  43. #include <sys/types.h>
  44. #include <sys/unistd.h>
  45.  
  46.  
  47. #ifdef _EFF_SUPPORT
  48. #define EFF_ONLY_OK     010    /* Test using effective ids  */
  49. #endif
  50.  
  51. #ifdef _VERY_STRANGE
  52. #define EX_OK        020    /* Test for Regular, executable file  */
  53. #endif
  54.  
  55.  
  56. #ifndef NULL
  57. #define NULL    0
  58. #endif /* NULL */
  59.  
  60.  
  61. extern int    access(const char *, int);
  62. extern unsigned    alarm(unsigned);
  63. extern int    chdir(const char *);
  64. extern int    chown(const char *, uid_t, gid_t);
  65. extern int    close(int);
  66. extern char    *cuserid(char *);
  67. extern int    dup(int);
  68. extern int    dup2(int, int);
  69. extern int    execl(const char *, const char *, ...);
  70. extern int    execle(const char *, const char *, ...);
  71. extern int    execlp(const char *, const char *, ...);
  72. extern int    execv(const char *, char *const *);
  73. extern int    execve(const char *, char *const *, char *const *);
  74. extern int    execvp(const char *, char *const *);
  75. extern void    _exit(int);
  76. extern pid_t    fork(void);
  77. extern long    fpathconf(int, int);
  78. extern char    *getcwd(char *, size_t);
  79. extern gid_t    getegid(void);
  80. extern uid_t    geteuid(void);
  81. extern gid_t    getgid(void);
  82. extern int    getgroups(int, gid_t *);
  83. extern char    *getlogin(void);
  84. extern pid_t    getpgrp(void);
  85. extern pid_t    getpid(void);
  86. extern pid_t    getppid(void);
  87. extern uid_t    getuid(void);
  88. extern int    isatty(int);
  89. extern int    link(const char *, const char *);
  90. extern off_t    lseek(int, off_t, int);
  91. extern long    pathconf(const char *, int);
  92. extern int    pause(void);
  93. extern int    pipe(int *);
  94. extern ssize_t    read(int, void *, size_t);
  95. extern int    rmdir(const char *);
  96. extern int    setgid(gid_t);
  97. extern int    setpgid(pid_t, pid_t);
  98. extern pid_t    setsid(void);
  99. extern int    setuid(uid_t);
  100. extern unsigned    sleep(unsigned);
  101. extern long    sysconf(int);
  102. extern pid_t    tcgetpgrp(int);
  103. extern int    tcsetpgrp(int, pid_t);
  104. extern char    *ttyname(int);
  105. extern int    unlink(const char *);
  106. extern ssize_t    write(int, const void *, size_t);
  107.  
  108.  
  109. extern size_t    confstr(int, char *, size_t);
  110. extern int    getopt(int, char *const*, const char *);
  111. extern char    *optarg;
  112. extern int    optind, opterr, optopt;
  113.  
  114.  
  115.  
  116. extern int    chroot(const char *);
  117. extern char    *crypt(const char *, const char *);
  118. extern char    *ctermid(char *);    /* REALLY OKAY HERE?  */
  119. extern void    encrypt(char *, int);
  120. extern int    fsync(int);
  121. extern char    *getpass(const char *);
  122. extern int    nice(int);
  123. extern void    swab(const void *, void *, ssize_t);
  124.  
  125.  
  126.  
  127. extern int    acct(const char *);
  128. extern int    brk(void *);
  129. extern void    exit(int);
  130. extern int    eaccess(const char *, int );
  131. extern int    fattach(int, const char *);
  132. extern int    fchdir(int);
  133. extern int    fchown(int, uid_t, gid_t);
  134. extern int    fdetach(const char *);
  135. extern int    ftruncate(int, off_t);
  136. extern int    getdtablesize(void);
  137. extern long    gethostid(void);
  138. extern int    gethostname(char *, int);
  139. extern char    *getlogin_r(char *, size_t);
  140. extern int    getpagesize(void);
  141. extern char    *getpass_r(const char *, char *, size_t);
  142. extern pid_t    getpgid(pid_t);
  143. extern char    *gettxt(const char *, const char *);
  144. extern pid_t    getsid(pid_t);
  145. extern char    *getwd(char *);
  146. extern int    ioctl(int, int, ...);
  147. extern int    lchown(const char *, uid_t, gid_t);
  148. extern int    lockf(int, int, long);
  149. extern void    profil(unsigned short *, size_t, int, unsigned);
  150. extern int    ptrace(int, pid_t, int, int);
  151. extern int    readlink(const char *, void *, int);
  152. extern int    rename(const char *, const char *);
  153. extern void    *sbrk(int);
  154. extern int    setgroups(int, const gid_t *);
  155. extern pid_t    setpgrp(void);
  156. extern int    setregid(gid_t, gid_t);
  157. extern int    setreuid(uid_t, uid_t);
  158. extern int    stime(const time_t *);
  159. extern int    symlink(const char *, const char *);
  160. extern void    sync(void);
  161. extern int    truncate(const char *, off_t);
  162. extern char    *ttyname_r(int, char *, size_t);
  163. extern unsigned int    ualarm(unsigned int, unsigned int);
  164. extern int    usleep(unsigned int);
  165. extern pid_t    vfork(void);
  166.  
  167.  
  168.  
  169. #ifdef __cplusplus
  170. }
  171. #endif
  172.  
  173. #endif /* _UNISTD_H */
  174. #endif
  175.