From 07d6480b684d3745e645f35a8b95dae9bda982a3 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Tue, 23 Jan 2001 03:14:28 +0000 Subject: [PATCH] 704. [port] RLIMIT_NOFILE in to available on all platforms. [RT #695] --- CHANGES | 3 +++ lib/isc/unix/resource.c | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 93e1556268..7f0a5471e3 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ + 704. [port] RLIMIT_NOFILE in to available on all platforms. + [RT #695] + 703. [port] sys/select.h is needed on older platforms. [RT #695] 702. [func] If the address 0.0.0.0 is seen in resolv.conf, diff --git a/lib/isc/unix/resource.c b/lib/isc/unix/resource.c index 84ac98eb0b..1ca2de42d5 100644 --- a/lib/isc/unix/resource.c +++ b/lib/isc/unix/resource.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: resource.c,v 1.7 2001/01/09 21:58:27 bwelling Exp $ */ +/* $Id: resource.c,v 1.8 2001/01/23 03:14:28 marka Exp $ */ #include @@ -62,7 +62,11 @@ resource2rlim(isc_resource_t resource, int *rlim_resource) { #endif break; case isc_resource_openfiles: +#ifdef RLIMIT_NOFILE *rlim_resource = RLIMIT_NOFILE; +#else + result = ISC_R_NOTIMPLEMENTED; +#endif break; case isc_resource_processes: #ifdef RLIMIT_NPROC