projects
/
mmh
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Changed test-mhparam to allow # sbackup.
[mmh]
/
sbr
/
closefds.c
1
2
/*
3
* closefds.c -- close-up fd's
4
*
5
* This code is Copyright (c) 2002, by the authors of nmh. See the
6
* COPYRIGHT file in the root directory of the nmh distribution for
7
* complete copyright information.
8
*/
9
10
#include <h/mh.h>
11
12
13
void
14
closefds(int i)
15
{
16
int nbits = OPEN_MAX;
17
18
for (; i < nbits; i++)
19
close (i);
20
}