+Thu Jan 18 10:27:00 2001 Corinna Vinschen <corinna@vinschen.de>
+
+ * resource.cc (setrlimit): Support RLIMIT_NOFILE.
+
Wed Jan 17 23:23:12 2001 Christopher Faylor <cgf@cygnus.com>
* syscalls.cc (setdtablesize): Call with amount to increment not total
#include "winsup.h"
#include <errno.h>
+#include <unistd.h>
#include "cygerrno.h"
#include "sync.h"
#include "sigproc.h"
case RLIMIT_CORE:
rlim_core = rlp->rlim_cur;
break;
+ case RLIMIT_NOFILE:
+ if (rlp->rlim_cur != RLIM_INFINITY)
+ return setdtablesize (rlp->rlim_cur);
+ break;
default:
set_errno (EINVAL);
return -1;