NetBSD/lib
thorpej c10a556f9b Change basename(3) and dirname(3) to return a pointer to static
storage, rather than modifying their input arguments.  While not
reentrant, this is explcitly allowed by IEEE Std 1003.1-2001 (which
allows either behavior, stating that it is implementation-dependent).

The new semantics are considered less hostile/more useful by most programs
which use basename(3) and/or dirname(3) (several programs in the NetBSD
tree reimplement basename()/dirname() themselves to avoid modification
of the input argument).

This new implementation truncates results to PATH_MAX.  The Std does
not address this in the static storage case.  However since PATH_MAX
is the maximum pathname length in the Std, this should not be a problem
in practice.  Nontheless, it is noted in the BUGS section.

See the basename(3)/dirname(3) regression tests in src/regress/lib/libc.

Inspired by discussion with Niels Provos, related to PR 18647.
2002-10-17 02:06:04 +00:00
..
csu don't include machine/asm.h (make this build again). 2002-09-19 01:24:43 +00:00
i18n_module Only use the MKDYNAMICROOT semantics (i.e. -rpath=/lib,/usr/lib and 2002-09-27 21:37:50 +00:00
libarch architecture, not architecure, and EACCES, not EACESS. 2002-10-02 10:39:14 +00:00
libasn1 When being built as a host tool, the <config.h> we see is actually 2002-09-13 17:29:56 +00:00
libbz2
libc Change basename(3) and dirname(3) to return a pointer to static 2002-10-17 02:06:04 +00:00
libcdk
libcom_err The config.h we get when building as a host tool is the libnbcompat 2002-09-13 18:30:43 +00:00
libcompat New sentence, new line. From Robert Elz. 2002-10-01 19:03:15 +00:00
libcrypt New sentence, new line. From Robert Elz. 2002-10-01 19:38:46 +00:00
libcrypto Move libcrypto.so* from /usr/lib to /lib, as /sbin/cgdconfig needs it. 2002-10-07 00:53:31 +00:00
libcrypto_idea adopted changes made to libcrypto/Makefile: 2002-09-01 06:01:13 +00:00
libcrypto_mdc2 MDC2 is a patented algorithm; don't ship it in default libcrypto. 2002-09-26 13:05:54 +00:00
libcrypto_rc5 adopted changes made to libcrypto/Makefile: 2002-09-01 06:01:13 +00:00
libcurses Remove duplicate definitions of getyx, getbegyx and getmaxyx. 2002-10-14 16:25:52 +00:00
libdes
libedit write the vis(3) converted string into the file, not the original one. 2002-10-13 17:15:53 +00:00
libform New sentence, new line. From Robert Elz. 2002-10-01 19:15:15 +00:00
libgssapi
libhdb
libintl
libipsec
libkadm
libkadm5clnt
libkadm5srv
libkafs
libkdb
libkrb remove all traces of ktypes.h 2002-09-12 15:28:22 +00:00
libkrb5 fix typo in previous 2002-09-12 15:29:02 +00:00
libkstream
libkvm session, not sessiod. By Adrian Mrva. 2002-10-02 10:59:45 +00:00
libl
libm New sentence, new line. From Robert Elz. 2002-10-01 19:21:30 +00:00
libmenu New sentence, new line. From Robert Elz. 2002-10-01 19:26:58 +00:00
libossaudio New sentence, new line. From Robert Elz. 2002-10-01 19:26:58 +00:00
libpcap New sentence, new line. From Robert Elz. 2002-10-01 19:26:58 +00:00
libpci
libpmc New sentence, new line. From Robert Elz. 2002-10-01 19:26:58 +00:00
libposix Set LLIBS to nothing; no sense in warning about the routines from 2002-09-14 21:18:20 +00:00
libresolv
librmt New sentence, new line. From Robert Elz. 2002-10-01 19:26:58 +00:00
libroken version 12.3 2002-09-12 13:39:53 +00:00
librpcsvc
libskey New sentence, new line. From Robert Elz. 2002-10-01 19:26:58 +00:00
libsl
libss
libssl
libtelnet context -> telnet_context in two places. 2002-09-20 22:25:49 +00:00
libterm Only use the MKDYNAMICROOT semantics (i.e. -rpath=/lib,/usr/lib and 2002-09-27 21:37:50 +00:00
libusbhid New sentence, new line. From Robert Elz. 2002-10-01 19:26:58 +00:00
libutil Spell out month name in .Dd. Use .Fn instead of .Fo/.Fc and .Fa's. 2002-10-12 22:19:25 +00:00
libvers
libwrap New sentence, new line. From Robert Elz. 2002-10-01 19:38:46 +00:00
liby
libz
bumpversion
checkver
checkvers
Makefile visit libcrypto_mdc2 if MKCRYPTO_MDC2 is defined 2002-09-26 13:29:44 +00:00
Makefile.inc