# 2.11BSD#431 - /usr/src/lib/libc/gen/wait.c

##### Functions

    wait              X

       1: /*
       2:  * Copyright (c) 1988 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:
      34: #if defined(LIBC_SCCS) && !defined(lint)
      35: static char sccsid[] = "@(#)wait.c	5.4 (Berkeley) 2/23/91";
      36: #endif /* LIBC_SCCS and not lint */
      37:
      38: #include <sys/types.h>
      39: #include <sys/time.h>
      40: #include <sys/wait.h>
      41: #include <sys/resource.h>
      42:
      43: int
      44: wait(istat)
      45:     int *istat;
      46: {
      47:     return (wait4(WAIT_ANY, istat, 0, (struct rusage *)0));
      48: }

#### Defined functions

wait defined in line 43; used 174 times

- in /usr/ingres/source/equel/runtime/IIexit.c line 37
- in /usr/ingres/source/gutil/fullwait.c line 32
- in /usr/ingres/source/monitor/quit.c line 72
- in /usr/ingres/source/monitor/xwait.c line 35
- in /usr/ingres/source/support/creatdb.c line 433, 448
- in /usr/ingres/source/support/restore.c line 176
- in /usr/src/bin/adb/format.c line 241
- in /usr/src/bin/adb/runpcs.c line 237
- in /usr/src/bin/cc.c line 368
- in /usr/src/bin/chpass/chpass.c line 394, 418
- in /usr/src/bin/diff/diffdir.c line 373-375(2)
- in /usr/src/bin/disklabel/disklabel.c line 698
- in /usr/src/bin/du.c line 59
- in /usr/src/bin/ed.c line 758
- in /usr/src/bin/mail.c line 544-545(2)
- in /usr/src/bin/make/dosys.c line 68
- in /usr/src/bin/passwd/passwd.c line 263
- in /usr/src/bin/rcp.c line 405
- in /usr/src/bin/sh/service.c line 244
- in /usr/src/bin/tcsh/sh.proc.c line 264
- in /usr/src/bin/tcsh/tc.os.h line 374
- in /usr/src/bin/tcsh/tc.sig.c line 145, 172
- in /usr/src/bin/wall.c line 142
- in /usr/src/bin/write.c line 231
- in /usr/src/games/adventure/init.c line 39
- in /usr/src/games/atc/input.c line 306
- in /usr/src/games/boggle/boggle.c line 128, 630
- in /usr/src/games/btlgammon/btlgammon.c line 148
- in /usr/src/games/hack/hack.pager.c line 390
- in /usr/src/games/hack/play.c line 20
- in /usr/src/games/monop/misc.c line 276
- in /usr/src/games/rogue/machdep.c line 545
- in /usr/src/games/snake/snake.c line 257
- in /usr/src/games/trek/shell.c line 30
- in /usr/src/games/warp/intrp.c line 658
- in /usr/src/games/warp/sig.c line 85
- in /usr/src/libexec/ftpd/popen.c line 152
- in /usr/src/libexec/popper/pop_xmit.c line 86
- in /usr/src/libexec/talkd/announce.c line 44
- in /usr/src/libexec/tcpd/safe_finger.c line 131
- in /usr/src/libexec/tcpd/shell_cmd.c line 55
- in /usr/src/local/afio/afio.c line 2739
- in /usr/src/local/cxref/cxref.c line 322, 439, 537
- in /usr/src/local/ddd/ddd.c line 158-161(2)
- in /usr/src/local/mtools/mcopy.c line 121, 156
- in /usr/src/local/zmodem/rz.c line 925
- in /usr/src/new/OLD/apl/src/ai.c line 43, 630
- in /usr/src/new/OLD/apl/src/aj.c line 254
- in /usr/src/new/OLD/apl/src/al.c line 260
- in /usr/src/new/OLD/apl/src/az.c line 49
- in /usr/src/new/OLD/apl/src/xed.c line 5664
- in /usr/src/new/PORT/B/src/bed/comm.c line 370
- in /usr/src/new/PORT/apl/src/ai.c line 43, 630
- in /usr/src/new/PORT/apl/src/aj.c line 254
- in /usr/src/new/PORT/apl/src/al.c line 260
- in /usr/src/new/PORT/apl/src/az.c line 49
- in /usr/src/new/PORT/perl.1.0.0/arg.c line 1973
- in /usr/src/new/PORT/perl.1.0.10/arg.c line 2001
- in /usr/src/new/PORT/perl.1.0.16/arg.c line 2025
- in /usr/src/new/jove/proc.c line 491
- in /usr/src/new/jove/recover.c line 662
- in /usr/src/new/kermit5.188/ckucon.c line 873
- in /usr/src/new/kermit5.188/ckufio.c line 1470, 2843, 2934
- in /usr/src/new/kermit5.188/ckutio.c line 4150
- in /usr/src/new/nntp/server/main.c line 118
- in /usr/src/new/nntp/server/spawn.c line 202
- in /usr/src/new/notes/src/misc.c line 112
- in /usr/src/new/notes/src/nfabort.c line 53
- in /usr/src/new/notes/src/savtxt.c line 91
- in /usr/src/new/rn/util.c line 71
- in /usr/src/old/cu/cu.c line 215, 307, 386
- in /usr/src/old/dump/dumpoptr.c line 132
- in /usr/src/old/dump/dumptape.c line 176
- in /usr/src/sbin/dump/dumpoptr.c line 136
- in /usr/src/sbin/dump/dumptape.c line 158, 231
- in /usr/src/sbin/fsck/main.c line 152
- in /usr/src/sbin/init/init.c line 166, 305, 343, 389, 633, 763
- in /usr/src/sbin/quotacheck/preen.c line 119
- in /usr/src/ucb/PORT/pascal/pdx/library.c line 232
- in /usr/src/ucb/PORT/pascal/src/main.c line 110
- in /usr/src/ucb/PORT/pascal/utilities/pc.c line 509
- in /usr/src/ucb/PORT/pascal/utilities/pix.c line 87
- in /usr/src/ucb/apply.c line 135
- in /usr/src/ucb/ex/ex_unix.c line 335
- in /usr/src/ucb/ftp/cmds.c line 1256
- in /usr/src/ucb/more/more.c line 1357
- in /usr/src/ucb/pascal/pi/main.c line 95
- in /usr/src/ucb/pascal/pi/pix.c line 65
- in /usr/src/ucb/pascal/px/int.c line 105
- in /usr/src/ucb/rdist/server.c line 1346
- in /usr/src/ucb/rlogin.c line 225
- in /usr/src/ucb/sccs.c line 688, 1301
- in /usr/src/usr.bin/at/at.c line 329
- in /usr/src/usr.bin/at/atrun.c line 261
- in /usr/src/usr.bin/crypt.c line 44
- in /usr/src/usr.bin/dc/dc.c line 1579
- in /usr/src/usr.bin/f77/driver.c line 714
- in /usr/src/usr.bin/find/find.c line 582
- in /usr/src/usr.bin/learn/copy.c line 181, 357
- in /usr/src/usr.bin/learn/dounit.c line 43
- in /usr/src/usr.bin/learn/maktee.c line 52
- in /usr/src/usr.bin/learn/mysys.c line 130, 158
- in /usr/src/usr.bin/learn/wrapup.c line 45
- in /usr/src/usr.bin/ptx.c line 244
- in /usr/src/usr.bin/refer/addbib.c line 220
- in /usr/src/usr.bin/refer/glue3.c line 38
- in /usr/src/usr.bin/refer/inv1.c line 131
- in /usr/src/usr.bin/refer/refer3.c line 33
- in /usr/src/usr.bin/roff/nroff/n10.c line 81
- in /usr/src/usr.bin/tc.c line 314
- in /usr/src/usr.bin/tip/aculib/dn11.c line 72
- in /usr/src/usr.bin/tip/aculib/v831.c line 82
- in /usr/src/usr.bin/tip/cmds.c line 184, 446, 499, 537, 819
- in /usr/src/usr.bin/tk.c line 205
- in /usr/src/usr.bin/uucp/aculib/df2.c line 109
- in /usr/src/usr.bin/uucp/aculib/dn.c line 107
- in /usr/src/usr.bin/uucp/aculib/rvmacs.c line 150
- in /usr/src/usr.bin/uucp/aculib/va820.c line 155
- in /usr/src/usr.bin/uucp/cntrl.c line 454
- in /usr/src/usr.bin/uucp/condevs.c line 559
- in /usr/src/usr.bin/uucp/mailst.c line 96
- in /usr/src/usr.bin/uucp/uucpd.c line 242
- in /usr/src/usr.bin/uucp/uusend.c line 352
- in /usr/src/usr.bin/uucp/uuxqt.c line 392, 713
- in /usr/src/usr.bin/uucp/xqt.c line 57
- in /usr/src/usr.bin/xinstall/xinstall.c line 298
- in /usr/src/usr.lib/libU77/chmod_.c line 41
- in /usr/src/usr.lib/libU77/system_.c line 72
- in /usr/src/usr.lib/libU77/wait_.c line 28
- in /usr/src/usr.sbin/cron/crontab.c line 401
- in /usr/src/usr.sbin/cron/do_command.c line 421
- in /usr/src/usr.sbin/lpr/printjob.c line 176, 586, 958, 1004
- in /usr/src/usr.sbin/named/named/ns_main.c line 939
- in /usr/src/usr.sbin/sendmail.MX/aux/mail-dm.c line 406
- in /usr/src/usr.sbin/sendmail.MX/src/conf.c line 450
- in /usr/src/usr.sbin/sendmail.MX/src/util.c line 806
- in /usr/src/usr.sbin/sendmail/aux/mail-dm.c line 406
- in /usr/src/usr.sbin/sendmail/src/conf.c line 450
- in /usr/src/usr.sbin/sendmail/src/util.c line 806
- in /usr/src/usr.sbin/vipw/vipw.c line 228, 251

#### Defined variables

sccsid defined in line 35; never used

Last modified: 1993-03-11 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 651 |