freebsd-skq/libexec
kib 0e0ae17971 Eliminate the static buffer used to read the first page of the mapped
object, and eliminate the pread(2) call as well [1]. Mmap the first
page of the object temporaly, and unmap it on error or last use.
Potentially, this leaves one-page gap between succeeding dlopen(3),
but there are other mmap(2) consumers as well.

Fix several cases were the whole mapping of the object leaked on error.

Use MAP_PREFAULT_READ for mmap(2) calls which map real object pages [2].

Insipired by the patch by:	Ian Lepore <freebsd damnhippie dyndns org> [1]
Suggested by:	alc [2]
MFC after:	2 weeks
2012-06-14 11:20:22 +00:00
..
atrun
bootpd Make sure sections are sorted into conventional order. 2012-03-25 16:00:56 +00:00
comsat
fingerd
ftpd
getty mdoc: terminate quoted strings. 2012-03-26 15:18:14 +00:00
lukemftpd
mail.local
mknetid
pppoed
rbootd mdoc: fix .Bl -offset. 2012-05-23 20:22:09 +00:00
revnetgroup
rlogind
rpc.rquotad
rpc.rstatd
rpc.rusersd
rpc.rwalld
rpc.sprayd
rshd None of these programs actually use auth.conf. 2012-06-11 16:18:39 +00:00
rtld-aout
rtld-elf Eliminate the static buffer used to read the first page of the mapped 2012-06-14 11:20:22 +00:00
save-entropy
smrsh
talkd
tcpd
telnetd
tftp-proxy
tftpd mdoc: Only use macros inside a reference block. 2012-05-23 20:29:16 +00:00
ulog-helper Do a better job at determining the username of the login session. 2012-04-19 21:12:08 +00:00
ypxfr
Makefile
Makefile.inc