unistd.h
上传用户:tsgydb
上传日期:2007-04-14
资源大小:10674k
文件大小:7k
源码类别:

MySQL数据库

开发平台:

Visual C++

  1. /*-
  2.  * Copyright (c) 1991 The Regents of the University of California.
  3.  * All rights reserved.
  4.  *
  5.  * Redistribution and use in source and binary forms, with or without
  6.  * modification, are permitted provided that the following conditions
  7.  * are met:
  8.  * 1. Redistributions of source code must retain the above copyright
  9.  *    notice, this list of conditions and the following disclaimer.
  10.  * 2. Redistributions in binary form must reproduce the above copyright
  11.  *    notice, this list of conditions and the following disclaimer in the
  12.  *    documentation and/or other materials provided with the distribution.
  13.  * 3. All advertising materials mentioning features or use of this software
  14.  *    must display the following acknowledgement:
  15.  * This product includes software developed by the University of
  16.  * California, Berkeley and its contributors.
  17.  * 4. Neither the name of the University nor the names of its contributors
  18.  *    may be used to endorse or promote products derived from this software
  19.  *    without specific prior written permission.
  20.  *
  21.  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  22.  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  23.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  24.  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  25.  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  26.  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  27.  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  28.  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  29.  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  30.  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  31.  * SUCH DAMAGE.
  32.  *
  33.  * @(#)unistd.h 5.13 (Berkeley) 6/17/91
  34.  */
  35. #ifndef _UNISTD_H_
  36. #define _UNISTD_H_
  37. #include <sys/cdefs.h>
  38. #include <sys/__unistd.h>
  39. #define R_OK 4
  40. #define W_OK 2
  41. #define X_OK 1
  42. #define F_OK 0
  43. #ifndef SEEK_SET
  44. #define SEEK_SET 0 /* set file offset to offset */
  45. #endif
  46. #ifndef SEEK_CUR
  47. #define SEEK_CUR 1 /* set file offset to current plus offset */
  48. #endif
  49. #ifndef SEEK_END
  50. #define SEEK_END 2 /* set file offset to EOF plus offset */
  51. #endif
  52. #define  STDIN_FILENO 0 /* standard input file descriptor */
  53. #define STDOUT_FILENO 1 /* standard output file descriptor */
  54. #define STDERR_FILENO 2 /* standard error file descriptor */
  55. __BEGIN_DECLS
  56. void _exit __P_((int));
  57. int   access __P_((const char *, int));
  58. int   chdir __P_((const char *));
  59. int   chown __P_((const char *, uid_t, gid_t));
  60. int   close __P_((int));
  61. int   dup __P_((int));
  62. int dup2 __P_((int, int));
  63. int   execve __P_((const char *, char * const *, char * const *));
  64. pid_t fork __P_((void));
  65. int   isatty __P_((int));
  66. int   link __P_((const char *, const char *));
  67. off_t lseek __P_((int, off_t, int));
  68. int   pipe __P_((int *));
  69. ssize_t read __P_((int, void *, size_t));
  70. unsigned sleep __P_((unsigned));
  71. char *ttyname __P_((int));
  72. int   unlink __P_((const char *));
  73. ssize_t write __P_((int, const void *, size_t));
  74. /* Not implemented for threads yet */
  75. unsigned alarm __P_((unsigned));
  76. char *cuserid __P_((char *));
  77. int   execl __P_((const char *, const char *, ...));
  78. int   execle __P_((const char *, const char *, ...));
  79. int   execlp __P_((const char *, const char *, ...));
  80. int   execv __P_((const char *, char * const *));
  81. int   execvp __P_((const char *, char * const *));
  82. long fpathconf __P_((int, int)); /* not yet */
  83. char *getcwd __P_((char *, size_t));
  84. gid_t  getegid __P_((void));
  85. uid_t  geteuid __P_((void));
  86. gid_t  getgid __P_((void));
  87. int  getgroups __P_((int, gid_t *)); /* XXX (gid_t *) */
  88. char *getlogin __P_((void));
  89. pid_t  getpgrp __P_((void));
  90. pid_t  getpid __P_((void));
  91. pid_t  getppid __P_((void));
  92. uid_t  getuid __P_((void));
  93. long  pathconf __P_((const char *, int)); /* not yet */
  94. int  pause __P_((void));
  95. int  rmdir __P_((const char *));
  96. int  setgid __P_((gid_t));
  97. int  setpgid __P_((pid_t, pid_t));
  98. pid_t  setsid __P_((void));
  99. int  setuid __P_((uid_t));
  100. long sysconf __P_((int)); /* not yet */
  101. pid_t  tcgetpgrp __P_((int));
  102. int  tcsetpgrp __P_((int, pid_t));
  103. #ifndef _POSIX_SOURCE
  104. int  acct __P_((const char *));
  105. int  async_daemon __P_((void));
  106. char *brk __P_((const char *));
  107. /* int  chflags __P_((const char *, long)); */
  108. int  chroot __P_((const char *));
  109. char *crypt __P_((const char *, const char *));
  110. int  des_cipher __P_((const char *, char *, long, int));
  111. void  des_setkey __P_((const char *key));
  112. void  encrypt __P_((char *, int));
  113. void  endusershell __P_((void));
  114. int  exect __P_((const char *, char * const *, char * const *));
  115. int  fchdir __P_((int));
  116. /* int  fchflags __P_((int, long)); */
  117. int  fchown __P_((int, uid_t, gid_t));
  118. int  fsync __P_((int));
  119. int  ftruncate __P_((int, off_t));
  120. int  getdtablesize __P_((void));
  121. long  gethostid __P_((void));
  122. int  gethostname __P_((char *, int));
  123. mode_t  getmode __P_((const void *, mode_t));
  124. int  getpagesize __P_((void));
  125. char *getpass __P_((const char *));
  126. char *getusershell __P_((void));
  127. char *getwd __P_((char *)); /* obsoleted by getcwd() */
  128. int  initgroups __P_((const char *, gid_t));
  129. int  mknod __P_((const char *, mode_t, dev_t));
  130. int  mkstemp __P_((char *));
  131. char *mktemp __P_((char *));
  132. int  nfssvc __P_((int));
  133. int  nice __P_((int));
  134. void  psignal __P_((unsigned, const char *));
  135. /* extern char *sys_siglist[];  */
  136. int  profil __P_((char *, int, int, int));
  137. int  rcmd __P_((char **, int, const char *,
  138. const char *, const char *, int *));
  139. char *re_comp __P_((const char *));
  140. int  re_exec __P_((const char *));
  141. int  readlink __P_((const char *, char *, int));
  142. int  reboot __P_((int));
  143. int  revoke __P_((const char *));
  144. int  rresvport __P_((int *));
  145. int  ruserok __P_((const char *, int, const char *, const char *));
  146. char *sbrk __P_((int));
  147. int  setegid __P_((gid_t));
  148. int  seteuid __P_((uid_t));
  149. int  setgroups __P_((int, const gid_t *));
  150. void  sethostid __P_((long));
  151. int  sethostname __P_((const char *, int));
  152. void  setkey __P_((const char *));
  153. int  setlogin __P_((const char *));
  154. void *setmode __P_((const char *));
  155. int  setpgrp __P_((pid_t pid, pid_t pgrp)); /* obsoleted by setpgid() */
  156. int  setregid __P_((int, int));
  157. int  setreuid __P_((int, int));
  158. int  setrgid __P_((gid_t));
  159. int  setruid __P_((uid_t));
  160. void  setusershell __P_((void));
  161. int  swapon __P_((const char *));
  162. int  symlink __P_((const char *, const char *));
  163. void  sync __P_((void));
  164. int  syscall __P_((int, ...));
  165. int  truncate __P_((const char *, off_t));
  166. int  ttyslot __P_((void));
  167. unsigned  ualarm __P_((unsigned, unsigned));
  168. void  usleep __P_((unsigned));
  169. int  vfork __P_((void));
  170. #endif /* !_POSIX_SOURCE */
  171. __END_DECLS
  172. #endif