bind9/bin/named/include/named
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
..
.clang-format Add missing .clang-format in the named headers directory 2021-10-13 12:43:58 +02:00
builtin.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
config.h Export built-in default configuration for named binary 2022-04-29 09:52:35 +02:00
control.h add "rndc fetchlimit" to show fetchlimited servers 2022-07-06 19:46:20 -07:00
fuzz.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
geoip.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
globals.h Remove isc_resource API and set limits directly in named_os unit 2022-12-07 19:40:00 +01:00
log.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
logconf.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
main.h Update isc_timer to use isc_loopmgr 2022-08-25 17:17:07 +02:00
os.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
server.h Update netmgr, tasks, and applications to use isc_loopmgr 2022-08-26 09:09:24 +02:00
smf_globals.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
statschannel.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
tkeyconf.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
transportconf.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
tsigconf.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
types.h Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
zoneconf.h Remove implicit inline-signing code 2022-08-15 11:44:20 +02:00