# 2.11BSD#431 - /usr/include/unistd.h

##### Macros

    NULL              X
    STDERR_FILENO     X
    STDIN_FILENO      X
    STDOUT_FILENO     X
    _UNISTD_H_        X

       1: /*-
       2:  * Copyright (c) 1991, 1993, 1994
       3:  *	The Regents of the University of California.  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	8.10.4 (2.11BSD) 1999/5/25
      34:  */
      35:
      36: /*
      37:  * Modified for 2.11BSD by removing prototypes.  To save time and space
      38:  * functions not returning 'int' and functions not present in the system
      39:  * are not listed.
      40: */
      41:
      42: #ifndef _UNISTD_H_
      43: #define _UNISTD_H_
      44:
      45: #include <sys/types.h>
      46: /* #include <sys/unistd.h> */
      47:
      48: #define  STDIN_FILENO   0   /* standard input file descriptor */
      49: #define STDOUT_FILENO   1   /* standard output file descriptor */
      50: #define STDERR_FILENO   2   /* standard error file descriptor */
      51:
      52: #ifndef NULL
      53: #define NULL        0   /* null pointer constant */
      54: #endif
      55:
      56: void     _exit();
      57: int  access();
      58: unsigned int     alarm();
      59: pid_t    fork();
      60: gid_t    getegid();
      61: uid_t    geteuid();
      62: gid_t    getgid();
      63: char    *getlogin();
      64: pid_t    getpgrp();
      65: pid_t    getpid();
      66: pid_t    getppid();
      67: uid_t    getuid();
      68: off_t    lseek();
      69: ssize_t  read();
      70: unsigned int     sleep();
      71: char    *ttyname();
      72: ssize_t  write();
      73:
      74: char    *brk();
      75: char    *crypt();
      76: void     endusershell();
      77: long     gethostid();
      78: char    *getpass();
      79: char    *getusershell();
      80: char    *getwd();
      81: char    *mktemp();
      82: void     psignal();
      83: extern  char    *sys_siglist[];
      84: char    *re_comp();
      85: char    *sbrk();
      86: int  sethostid();
      87: void     setusershell();
      88: void     sync();
      89: unsigned int     ualarm();
      90: void     usleep();
      91: pid_t    vfork();
      92:
      93: extern  char    *optarg;        /* getopt(3) external variables */
      94: extern  int opterr, optind, optopt;
      95:
      96: #endif /* !_UNISTD_H_ */

#### Defined macros

NULL defined in line 53; used 377 times

- in line 52
- in /usr/src/bin/date.c line 89, 174
- in /usr/src/bin/mail.c line 78, 152, 179, 232-234(2), 263, 305, 311, 330, 341, 484-487(2), 509, 555, 611, 621, 661, 698
- in /usr/src/bin/su.c line 64-69(2), 80-81(2)
- in /usr/src/bin/tcsh/alloc11.c line 121, 128-132(2), 187
- in /usr/src/bin/who.c line 55
- in /usr/src/games/boggle/boggle.c line 391-392(2), 407, 414, 513, 529
- in /usr/src/games/hunt/answer.c line 313-318(2), 324
- in /usr/src/games/warp/intrp.c line 661
- in /usr/src/lib/libc/gen/abort.c line 53, 61
- in /usr/src/lib/libc/gen/fstab.c line 97-111(9), 138, 151, 163, 174, 194
- in /usr/src/lib/libc/gen/getlogin.c line 54-57(2)
- in /usr/src/lib/libc/gen/malloc.c line 104, 130, 142-145(2), 199
- in /usr/src/sbin/mount/mount.c line 84, 99-100(2), 124, 155, 187-203(6), 222-225(3), 244, 253-254(2), 282, 308, 374, 383-385(2), 414-415(2), 423-434(5), 448-449(2), 470
- in /usr/src/sbin/mount/mount_ufs.c line 60
- in /usr/src/sbin/umount/umount.c line 110, 123, 149-150(2), 167-173(3), 179, 215, 229, 239, 254, 269-277(5)
- in /usr/src/ucb/error/errorfilter.c line 43-50(3), 61, 71-75(2), 83
- in /usr/src/ucb/from.c line 43, 50-52(2), 59-68(3)
- in /usr/src/ucb/ftp/cmds.c line 119, 199, 386, 400, 453, 461, 477, 552, 673, 687, 726, 733-750(7), 758, 766-775(6), 1066, 1132, 1186, 1232-1235(2), 1547, 1590
- in /usr/src/ucb/ftp/ftp.c line 109-111(2), 162(2), 210-216(3), 232, 245, 299, 476-478(3), 501, 511, 532, 544, 551, 563, 572-577(2), 652, 679(2), 724-726(3), 752-755(2), 771, 777, 847, 854, 861, 873, 888, 941, 986, 1082(2), 1172
- in /usr/src/ucb/ftp/main.c line 54, 120-125(3), 159-162(2), 173-176(2)
- in /usr/src/ucb/logger.c line 60, 79, 114, 138, 156
- in /usr/src/ucb/more/more.c line 161-163(3), 221, 341-350(4), 365, 454, 669, 1084, 1097, 1494-1498(5), 1513, 1519-1523(2)
- in /usr/src/ucb/sccs.c line 188-201(6), 252, 259, 291-295(3), 309, 315, 387, 399, 416-417(2), 426, 436-441(3), 448-452(2), 508-513(2), 522, 528-532(2), 542, 549, 563, 569, 576, 621-626(2), 662-667(2), 763, 776, 816, 878, 925-926(2), 934, 948, 957, 971, 980, 1010-1017(3), 1048, 1131-1134(2), 1146, 1155, 1168, 1213-1223(3), 1369-1370(2), 1387-1388(2), 1394, 1419, 1477, 1502, 1512
- in /usr/src/ucb/talk/get_names.c line 43
- in /usr/src/ucb/tset/tset.c line 454, 467-471(2), 482-486(2), 497-501(2), 521, 533, 553, 559-564(2), 570-575(2), 596, 619, 675, 683, 695-697(2), 1004, 1078, 1084-1085(2), 1095, 1143, 1163, 1259-1260(2), 1271
- in /usr/src/usr.bin/id/id.c line 111, 161-165(2), 183, 240
- in /usr/src/usr.bin/learn/learn.c line 16
- in /usr/src/usr.bin/xinstall/xinstall.c line 95, 295
- in /usr/src/usr.lib/libident/id_parse.c line 123, 150, 168, 185, 204, 214
- in /usr/src/usr.lib/libident/ident-tester.c line 75, 127, 232
- in /usr/src/usr.sbin/edquota/edquota.c line 194, 251, 363, 399, 407-413(4), 426, 518
- in /usr/src/usr.sbin/inetd/inetd.c line 223, 347, 424, 509, 697, 705-710(2), 718, 734, 742, 811, 817, 852, 895, 1234, 1252, 1267

STDERR_FILENO defined in line 50; used 1 times

- in /usr/src/lib/libc/gen/perror.c line 66

STDIN_FILENO defined in line 48; never used
STDOUT_FILENO defined in line 49; used 2 times

- in /usr/src/bin/tcsh/alloc11.c line 35
- in /usr/src/lib/libc/gen/malloc.c line 33

_UNISTD_H_ defined in line 43; used 1 times

- in line 42

#### Usage of this include

unistd.h used 69 times

- in /usr/src/bin/adb/defs.h line 18
- in /usr/src/bin/date.c line 30
- in /usr/src/bin/hostid.c line 19
- in /usr/src/bin/ld/ld.c line 67
- in /usr/src/bin/mail.c line 20
- in /usr/src/bin/su.c line 20
- in /usr/src/bin/tcsh/alloc11.c line 6
- in /usr/src/bin/tcsh/sh.h line 152
- in /usr/src/bin/who.c line 22
- in /usr/src/bin/write.c line 16
- in /usr/src/games/atc/include.h line 25
- in /usr/src/games/boggle/boggle.c line 22
- in /usr/src/games/hack/hack.main.c line 7
- in /usr/src/games/hunt/answer.c line 15
- in /usr/src/games/warp/intrp.c line 28
- in /usr/src/lib/libc/compat-43/setrgid.c line 38
- in /usr/src/lib/libc/compat-43/setruid.c line 38
- in /usr/src/lib/libc/gen/abort.c line 40
- in /usr/src/lib/libc/gen/fstab.c line 43
- in /usr/src/lib/libc/gen/getlogin.c line 43
- in /usr/src/lib/libc/gen/malloc.c line 3
- in /usr/src/lib/libc/gen/perror.c line 40
- in /usr/src/lib/libc/net/ruserpass.c line 18
- in /usr/src/libexec/comsat/comsat.c line 21
- in /usr/src/libexec/identd/src/identd.c line 70
- in /usr/src/libexec/identd/src/kernel/2.11bsd.c line 15
- in /usr/src/new/PORT/hexdump/display.c line 26
- in /usr/src/new/kermit5.188/ckcdeb.h line 1270, 1283
- in /usr/src/new/rcs/src/rcsutil.c line 85
- in /usr/src/sbin/gt307/gt307.c line 29
- in /usr/src/sbin/mount/mount.c line 52
- in /usr/src/sbin/mount/mount_ufs.c line 49
- in /usr/src/sbin/quotacheck/quotacheck.c line 60
- in /usr/src/sbin/reboot/reboot.c line 23
- in /usr/src/sbin/shutdown/shutdown.c line 24
- in /usr/src/sbin/umount/umount.c line 49
- in /usr/src/ucb/error/errorfilter.c line 14
- in /usr/src/ucb/from.c line 18
- in /usr/src/ucb/ftp/cmds.c line 40
- in /usr/src/ucb/ftp/ftp.c line 40
- in /usr/src/ucb/ftp/main.c line 43
- in /usr/src/ucb/ftp/ruserpass.c line 29
- in /usr/src/ucb/leave.c line 19
- in /usr/src/ucb/logger.c line 17
- in /usr/src/ucb/more/more.c line 35
- in /usr/src/ucb/sccs.c line 22
- in /usr/src/ucb/talk/get_names.c line 16
- in /usr/src/ucb/tset/tset.c line 234
- in /usr/src/usr.bin/id/id.c line 51
- in /usr/src/usr.bin/learn/learn.c line 8
- in /usr/src/usr.bin/uucp/uucp.h line 8
- in /usr/src/usr.bin/xinstall/xinstall.c line 55
- in /usr/src/usr.lib/libU77/getlog_.c line 22
- in /usr/src/usr.lib/libident/id_close.c line 13
- in /usr/src/usr.lib/libident/id_open.c line 19
- in /usr/src/usr.lib/libident/id_parse.c line 20
- in /usr/src/usr.lib/libident/id_query.c line 18
- in /usr/src/usr.lib/libident/ident-tester.c line 19
- in /usr/src/usr.lib/libident/lookup-tester.c line 15
- in /usr/src/usr.sbin/cron/externs.h line 19
- in /usr/src/usr.sbin/edquota/edquota.c line 59
- in /usr/src/usr.sbin/inetd/inetd.c line 111
- in /usr/src/usr.sbin/named/named/ns_maint.c line 21
- in /usr/src/usr.sbin/rmt/rmt.c line 25
- in /usr/src/usr.sbin/rwhod/rwhod.c line 28
- in /usr/src/usr.sbin/sendmail.MX/src/sendmail.h line 37
- in /usr/src/usr.sbin/sendmail/src/sendmail.h line 37
- in /usr/src/usr.sbin/sysgen/sysgen.c line 8

Last modified: 1999-05-26 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 820 |