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