projects
/
mmh
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Code cosmetics
[mmh]
/
sbr
/
closefds.c
1
/*
2
** closefds.c -- close-up fd's
3
**
4
** This code is Copyright (c) 2002, by the authors of nmh. See the
5
** COPYRIGHT file in the root directory of the nmh distribution for
6
** complete copyright information.
7
*/
8
9
#include <h/mh.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
}