bind9/lib/isccfg
Ondřej Surý e2262c2112
Remove isc_resource API and set limits directly in named_os unit
The only function left in the isc_resource API was setting the file
limit.  Replace the whole unit with a simple getrlimit to check the
maximum value of RLIMIT_NOFILE and set the maximum back to rlimit_cur.

This is more compatible than trying to set RLIMIT_UNLIMITED on the
RLIMIT_NOFILE as it doesn't work on Linux (see man 5 proc on
/proc/sys/fs/nr_open), neither it does on Darwin kernel (see man 2
getrlimit).

The only place where the maximum value could be raised under privileged
user would be BSDs, but the `named_os_adjustnofile()` were not called
there before.  We would apply the increased limits only on Linux and Sun
platforms.
2022-12-07 19:40:00 +01:00
..
include Handle large numbers when parsing/printing a duration 2022-10-17 08:45:45 +00:00
aclconf.c Update sources to Clang 15 formatting 2022-11-29 08:54:34 +01:00
dnsconf.c Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
duration.c Handle large numbers when parsing/printing a duration 2022-10-17 08:45:45 +00:00
kaspconf.c Update sources to Clang 15 formatting 2022-11-29 08:54:34 +01:00
log.c Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
Makefile.am Move duration structure to libisccfg/duration 2022-06-28 11:56:31 +02:00
namedconf.c Remove isc_resource API and set limits directly in named_os unit 2022-12-07 19:40:00 +01:00
parser.c Update sources to Clang 15 formatting 2022-11-29 08:54:34 +01:00
tests Move all the unit tests to /tests/<libname>/ 2022-05-28 14:53:02 -07:00