freebsd-dev/libexec
Peter Wemm 5584286a91 Update to handle new version ld.so.hints and info in executable for
configurable fallback search paths, as well as new crt interface version.

Also:
 - even faster getenv(), get all environment variable settings in a single
   pass.
 - ldd printf-like format specifications
 - minor code cleanups, one vsprintf -> vsnprintf (harmless)

The library search sequence is a little more complete now. Before,
it'd search $LD_LIBRARY_PATH (by opendir/readdir/closedir), then read
the hints file, then read /usr/lib (again by scanning thr directory).  It
would then fail if there was no "found" library.

Now, it does LD_LIBRARY_PATH and the hints file the same, but then uses
a longer fallback path.  The -R path is fetched from the executable if
specified at build time, the ldconfig path is appended, and /usr/lib is
appended to that. Duplicates are suppressed.  This means that simply
placing a new library in /usr/local/lib will work (the same as it did in
/usr/lib) without needing ldconfig -m.  It will find it quicker if the
ldconfig is run though.

Similar changes have been made to the NetBSD ld.so, but ours is rather
different now due to John Polstra's speedups and fixes from a while back.

The ldd printf-like format support came direct from NetBSD.

Reviewed by: nate, jdp
1996-10-01 01:52:03 +00:00
..
atrun add forgotten $Id$ 1996-09-22 21:56:57 +00:00
bootpd add forgotten $Id$ 1996-09-22 21:56:57 +00:00
comsat add forgotten $Id$ 1996-09-22 21:56:57 +00:00
fingerd add forgotten $Id$ 1996-09-22 21:56:57 +00:00
ftpd add forgotten $Id$ 1996-09-22 21:56:57 +00:00
getNAME sync copyright with /usr/share/examples/etc/bsd-style-copyright 1996-08-27 20:04:45 +00:00
getty This should have gone away with the COMPAT_43 cruft. cgetent() is now 1996-09-20 11:19:00 +00:00
lfs_cleanerd add forgotten $Id$ 1996-09-22 21:56:57 +00:00
mail.local add forgotten $Id$ 1996-09-22 21:56:57 +00:00
makekey add forgotten $Id$ 1996-09-22 21:56:57 +00:00
mknetid Include <sys/types.h> before including <grp.h> so that this doesn't 1996-07-12 05:55:38 +00:00
named-xfer Unlocalize date 1996-09-01 00:53:45 +00:00
rbootd add forgotten $Id$ 1996-09-22 21:56:57 +00:00
revnetgroup Use err() instead of perror()/exit() and remember to #include <errno.h> 1996-08-04 19:17:15 +00:00
rexecd add forgotten $Id$ 1996-09-22 21:56:57 +00:00
rlogind add forgotten $Id$ 1996-09-22 21:56:57 +00:00
rpc.rquotad Obtained from: NetBSD 1996-01-05 08:47:12 +00:00
rpc.rstatd Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
rpc.rusersd Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
rpc.rwalld Remove trailing whitespace. 1995-05-30 05:51:47 +00:00
rpc.sprayd Correct some man page cross references and file location references. 1996-04-07 00:06:21 +00:00
rshd add forgotten $Id$ 1996-09-22 21:56:57 +00:00
rtld-aout Update to handle new version ld.so.hints and info in executable for 1996-10-01 01:52:03 +00:00
rtld-elf Update to handle new version ld.so.hints and info in executable for 1996-10-01 01:52:03 +00:00
talkd add forgotten $Id$ 1996-09-22 21:56:57 +00:00
telnetd add forgotten $Id$ 1996-09-22 21:56:57 +00:00
tftpd add forgotten $Id$ 1996-09-22 21:56:57 +00:00
uucpd add forgotten $Id$ 1996-09-22 21:56:57 +00:00
xtend add missing comma(s) in .Xr macros 1996-09-23 22:24:39 +00:00
ypxfr Fixed DPADD. 1996-09-05 17:16:10 +00:00
Makefile add forgotten $Id$ 1996-09-22 21:56:57 +00:00
Makefile.inc BSD 4.4 Lite Libexec Sources 1994-05-27 12:39:25 +00:00