Added all of the MH sources, including RCS files, in
[mmh] / docs / historical / mh-6.8.5 / sbr / RCS / closefds.c,v
1 head    1.3;
2 access;
3 symbols;
4 locks; strict;
5 comment @ * @;
6
7
8 1.3
9 date    92.12.15.00.20.22;      author jromine; state Exp;
10 branches;
11 next    1.2;
12
13 1.2
14 date    92.12.14.17.47.34;      author jromine; state Exp;
15 branches;
16 next    1.1;
17
18 1.1
19 date    92.12.14.17.44.38;      author jromine; state Exp;
20 branches;
21 next    ;
22
23
24 desc
25 @@
26
27
28 1.3
29 log
30 @endif sugar
31 @
32 text
33 @/* closefds.c - close-up fd:s */
34 #ifndef lint
35 static char ident[] = "@@(#)$Id: closefds.c,v 1.2 1992/12/14 17:47:34 jromine Exp jromine $";
36 #endif  /* lint */
37
38 #include "../h/mh.h"
39 #ifndef BSD42
40 #include <stdio.h>
41 #endif  /* not BSD42 */
42
43
44 void    closefds (i)
45 register int    i;
46 {
47 #ifndef BSD42
48     int     nbits = _NFILE;
49 #else   /* BSD42 */
50     int     nbits = getdtablesize ();
51 #endif  /* BSD42 */
52
53     for (; i < nbits; i++)
54 #ifdef  OVERHEAD
55         if (i != fd_def && i != fd_ctx)
56 #endif  /* OVERHEAD */
57             (void) close (i);
58 }
59 @
60
61
62 1.2
63 log
64 @add id
65 @
66 text
67 @d3 1
68 a3 1
69 static char ident[] = "@@(#)$Id: pidwait.c,v 1.9 1992/12/14 17:10:58 jromine Exp $";
70 d9 1
71 a9 1
72 #endif  not BSD42
73 d17 1
74 a17 1
75 #else   BSD42
76 d19 1
77 a19 1
78 #endif  BSD42
79 d24 1
80 a24 1
81 #endif  OVERHEAD
82 @
83
84
85 1.1
86 log
87 @Initial revision
88 @
89 text
90 @d2 3
91 @