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

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. #include <sys/cdefs.h>
  36. __BEGIN_DECLS
  37. void _exit __P_((int));
  38. int   access __P_((const char *, int));
  39. int   chdir __P_((const char *));
  40. int   chown __P_((const char *, uid_t, gid_t));
  41. int   close __P_((int));
  42. int   dup __P_((int));
  43. int dup2 __P_((int, int));
  44. int   execve __P_((const char *, char * const *, char * const *));
  45. pid_t fork __P_((void));
  46. int   isatty __P_((int));
  47. int   link __P_((const char *, const char *));
  48. off_t lseek __P_((int, off_t, int));
  49. int   pipe __P_((int *));
  50. ssize_t read __P_((int, void *, size_t));
  51. u_int sleep __P_((u_int));
  52. char *ttyname __P_((int));
  53. int   unlink __P_((const char *));
  54. ssize_t write __P_((int, const void *, size_t));
  55. /* Not implemented for threads yet */
  56. u_int alarm __P_((u_int));
  57. char *cuserid __P_((char *));
  58. int   execl __P_((const char *, const char *, ...));
  59. int   execle __P_((const char *, const char *, ...));
  60. int   execlp __P_((const char *, const char *, ...));
  61. int   execv __P_((const char *, char * const *));
  62. int   execvp __P_((const char *, char * const *));
  63. long fpathconf __P_((int, int)); /* not yet */
  64. char *getcwd __P_((char *, size_t));
  65. gid_t  getegid __P_((void));
  66. uid_t  geteuid __P_((void));
  67. gid_t  getgid __P_((void));
  68. int  getgroups __P_((int, int *)); /* XXX (gid_t *) */
  69. char *getlogin __P_((void));
  70. pid_t  getpgrp __P_((void));
  71. pid_t  getpid __P_((void));
  72. pid_t  getppid __P_((void));
  73. uid_t  getuid __P_((void));
  74. long  pathconf __P_((const char *, int)); /* not yet */
  75. int  pause __P_((void));
  76. int  rmdir __P_((const char *));
  77. int  setgid __P_((gid_t));
  78. int  setpgid __P_((pid_t, pid_t));
  79. pid_t  setsid __P_((void));
  80. int  setuid __P_((uid_t));
  81. long sysconf __P_((int)); /* not yet */
  82. pid_t  tcgetpgrp __P_((int));
  83. int  tcsetpgrp __P_((int, pid_t));
  84. #ifndef _POSIX_SOURCE
  85. int  acct __P_((const char *));
  86. int  async_daemon __P_((void));
  87. char *brk __P_((const char *));
  88. int  chflags __P_((const char *, long));
  89. int  chroot __P_((const char *));
  90. char *crypt __P_((const char *, const char *));
  91. int  des_cipher __P_((const char *, char *, long, int));
  92. int  des_setkey __P_((const char *key));
  93. int  encrypt __P_((char *, int));
  94. void  endusershell __P_((void));
  95. int  exect __P_((const char *, char * const *, char * const *));
  96. int  fchdir __P_((int));
  97. int  fchflags __P_((int, long));
  98. int  fchown __P_((int, uid_t, gid_t));
  99. int  fsync __P_((int));
  100. int  ftruncate __P_((int, off_t));
  101. int  getdtablesize __P_((void));
  102. long  gethostid __P_((void));
  103. int  gethostname __P_((char *, int));
  104. mode_t  getmode __P_((const void *, mode_t));
  105. int  getpagesize __P_((void));
  106. char *getpass __P_((const char *));
  107. char *getusershell __P_((void));
  108. char *getwd __P_((char *)); /* obsoleted by getcwd() */
  109. int  initgroups __P_((const char *, int));
  110. int  mknod __P_((const char *, mode_t, dev_t));
  111. int  mkstemp __P_((char *));
  112. char *mktemp __P_((char *));
  113. int  nfssvc __P_((int));
  114. int  nice __P_((int));
  115. void  psignal __P_((u_int, const char *));
  116. extern char *sys_siglist[];
  117. int  profil __P_((char *, int, int, int));
  118. int  rcmd __P_((char **, int, const char *,
  119. const char *, const char *, int *));
  120. char *re_comp __P_((const char *));
  121. int  re_exec __P_((const char *));
  122. int  readlink __P_((const char *, char *, int));
  123. int  reboot __P_((int));
  124. int  revoke __P_((const char *));
  125. int  rresvport __P_((int *));
  126. int  ruserok __P_((const char *, int, const char *, const char *));
  127. char *sbrk __P_((int));
  128. int  setegid __P_((gid_t));
  129. int  seteuid __P_((uid_t));
  130. int  setgroups __P_((int, const int *));
  131. void  sethostid __P_((long));
  132. int  sethostname __P_((const char *, int));
  133. int  setkey __P_((const char *));
  134. int  setlogin __P_((const char *));
  135. void *setmode __P_((const char *));
  136. int  setpgrp __P_((pid_t pid, pid_t pgrp)); /* obsoleted by setpgid() */
  137. int  setregid __P_((int, int));
  138. int  setreuid __P_((int, int));
  139. int  setrgid __P_((gid_t));
  140. int  setruid __P_((uid_t));
  141. void  setusershell __P_((void));
  142. int  swapon __P_((const char *));
  143. int  symlink __P_((const char *, const char *));
  144. void  sync __P_((void));
  145. int  syscall __P_((int, ...));
  146. int  truncate __P_((const char *, off_t));
  147. int  ttyslot __P_((void));
  148. u_int  ualarm __P_((u_int, u_int));
  149. void  usleep __P_((u_int));
  150. int  vfork __P_((void));
  151. #endif /* !_POSIX_SOURCE */
  152. __END_DECLS