979f97fade
As the xinstall(8) utility had to be patched up to work with the POSIXly correct basename()/dirname() prototypes, we make it pretty hard to build previous versions of FreeBSD on HEAD. xinstall(8) is part of the bootstrap tools. Add some logic to <libgen.h> to automatically detect bad calls to dirname() based on the type of the argument. If the argument is of type 'const char *', we simply fall back to calling into dirname@FBSD_1.0 directly. I'll also give basename() similar treatment when importing the thread-safe version of that function. Tested by: bdrewery, madpilot (thanks!) |
||
---|---|---|
.. | ||
arpa | ||
gssapi | ||
protocols | ||
rpc | ||
rpcsvc | ||
xlocale | ||
_ctype.h | ||
a.out.h | ||
ar.h | ||
assert.h | ||
bitstring.h | ||
complex.h | ||
cpio.h | ||
ctype.h | ||
db.h | ||
dirent.h | ||
dlfcn.h | ||
elf-hints.h | ||
elf.h | ||
err.h | ||
fmtmsg.h | ||
fnmatch.h | ||
fstab.h | ||
fts.h | ||
ftw.h | ||
getopt.h | ||
glob.h | ||
grp.h | ||
gssapi.h | ||
hesiod.h | ||
iconv.h | ||
ieeefp.h | ||
ifaddrs.h | ||
inttypes.h | ||
iso646.h | ||
kenv.h | ||
langinfo.h | ||
libgen.h | ||
limits.h | ||
link.h | ||
locale.h | ||
Makefile | ||
Makefile.depend | ||
malloc_np.h | ||
malloc.h | ||
memory.h | ||
mk-osreldate.sh | ||
monetary.h | ||
mpool.h | ||
mqueue.h | ||
ndbm.h | ||
netconfig.h | ||
netdb.h | ||
nl_types.h | ||
nlist.h | ||
nss.h | ||
nsswitch.h | ||
paths.h | ||
printf.h | ||
proc_service.h | ||
pthread_np.h | ||
pthread.h | ||
pwd.h | ||
ranlib.h | ||
readpassphrase.h | ||
regex.h | ||
res_update.h | ||
resolv.h | ||
runetype.h | ||
search.h | ||
semaphore.h | ||
setjmp.h | ||
signal.h | ||
spawn.h | ||
stab.h | ||
stdalign.h | ||
stdbool.h | ||
stddef.h | ||
stdio.h | ||
stdlib.h | ||
stdnoreturn.h | ||
string.h | ||
stringlist.h | ||
strings.h | ||
sysexits.h | ||
tar.h | ||
termios.h | ||
tgmath.h | ||
time.h | ||
timeconv.h | ||
timers.h | ||
ttyent.h | ||
uchar.h | ||
ulimit.h | ||
unistd.h | ||
unwind.h | ||
utime.h | ||
utmpx.h | ||
uuid.h | ||
varargs.h | ||
wchar.h | ||
wctype.h | ||
wordexp.h | ||
xlocale.h |