]> diplodocus.org Git - nmh/blob - sbr/closefds.c
sendsbr.c: Move interface to own file.
[nmh] / sbr / closefds.c
1 /* closefds.c -- close-up fd's
2 *
3 * This code is Copyright (c) 2002, by the authors of nmh. See the
4 * COPYRIGHT file in the root directory of the nmh distribution for
5 * complete copyright information.
6 */
7
8 #include "h/mh.h"
9 #include "closefds.h"
10
11
12 void
13 closefds(int i)
14 {
15 int nbits = OPEN_MAX;
16
17 for (; i < nbits; i++)
18 close (i);
19 }