Synchronise with FreeBSD:
authorJeroen Ruigrok/asmodai <asmodai@dragonflybsd.org>
Sun, 18 Sep 2005 11:57:33 +0000 (11:57 +0000)
committerJeroen Ruigrok/asmodai <asmodai@dragonflybsd.org>
Sun, 18 Sep 2005 11:57:33 +0000 (11:57 +0000)
commita15492ffc2d5051087499e54cfc6263de9eab8a3
treed79f15a0df152d41a82dad1c0d32d17554e5a839
parent788f761f75ddbaae03bab77ef7d33b7d5936ecea
Synchronise with FreeBSD:

Reduce libc.so's memory footprint by lazily allocating memory used internally
by basename() and dirname().

Furthermore:

Drop sizeof(bname) and replace with MAXPATHLEN since that is what it boils
down to.
lib/libc/gen/basename.c