Commit Graph

15 Commits

Author SHA1 Message Date
Todd C. Miller
3bb69ffe81 Remove CVS $Sudo$ tags. 2010-01-17 19:51:28 -05:00
Todd C. Miller
840acbd3ac Update copyright years. 2008-11-09 14:13:13 +00:00
Todd C. Miller
2a8cda261e include fcntl.h 2007-06-20 11:06:48 +00:00
Todd C. Miller
8ae409b8f2 Use /proc/self/fd instead of /proc/$$/fd
Move old-style fd closing into closefrom_fallback() and call
that if /proc/self/fd doesn't exist or the F_CLOSEM fcntl() fails
2007-06-09 11:26:43 +00:00
Todd C. Miller
cad6de7d73 Add fcntl F_CLOSEM support to closefrom(); adapted from a diff by
Darren Tucker.
2006-08-17 15:26:54 +00:00
Todd C. Miller
ab076942e8 Silence gcc -Wsign-compare; djm@openbsd.org 2005-11-18 14:55:24 +00:00
Todd C. Miller
778d587063 Update copyright years. 2005-02-12 22:56:07 +00:00
Todd C. Miller
3b8b88407f Add __unused to rcsids 2005-01-27 15:42:30 +00:00
Todd C. Miller
2c2daa8eca Use: #include <config.h>
Not: #include "config.h"
That way we get the correct config.h when build dir != src dir
2004-11-19 18:39:14 +00:00
Todd C. Miller
cebfa4c030 Only check /proc/$$/fd if we have the dirfd function/macro. 2004-06-01 20:51:56 +00:00
Todd C. Miller
a79bb72689 dirfd() is now defined in compat.h as needed. 2004-06-01 18:59:28 +00:00
Todd C. Miller
e2a573d6cc If there is a /proc/$$/fd directory, behave like the Solaris closefrom()
and only close the descriptors listed therein.
2004-06-01 16:44:14 +00:00
Todd C. Miller
2f323ada7f o sysconf returns a long, not an int.
o check for negative return value from sysconf/getdtablesize and use
  OPEN_MAX in this case.
o define OPEN_MAX to 256 for those without it (a fair guess...)
2004-05-31 18:16:34 +00:00
Todd C. Miller
5b217d36a3 More to a less restrictive, ISC-style license. 2004-02-13 21:36:43 +00:00
Todd C. Miller
a34078ac33 closefrom(3) for systems w/o it 2004-01-12 18:55:30 +00:00