Ed Schouten cd4dcac89a Improve compatibility of calls to dirname() on constant strings.
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!)
2016-08-26 20:23:10 +00:00
..
2012-08-11 12:07:24 +00:00
2016-08-04 11:38:53 +00:00
2011-10-01 12:19:48 +00:00
2011-10-01 12:19:48 +00:00
2016-02-19 06:50:00 +00:00
2015-09-20 20:21:49 +00:00
2013-08-18 13:25:18 +00:00
2015-09-20 20:21:49 +00:00
2012-04-26 19:21:58 +00:00
2016-04-10 19:33:58 +00:00
2011-05-25 14:13:53 +00:00
2015-09-20 20:21:49 +00:00
2015-02-15 21:11:07 +00:00
2016-05-25 06:55:53 +00:00
2015-09-14 18:44:13 +00:00
2015-04-26 10:29:43 +00:00
2015-12-20 11:55:39 +00:00
2015-04-26 10:56:06 +00:00
2015-04-26 10:52:37 +00:00
2015-04-26 10:52:37 +00:00
2015-04-26 10:52:37 +00:00
2015-04-26 10:52:37 +00:00
2015-04-26 10:52:37 +00:00
2015-04-26 10:52:37 +00:00
2015-04-26 10:52:37 +00:00
2015-04-26 10:52:37 +00:00
2015-04-26 10:52:37 +00:00
2015-09-20 20:21:49 +00:00
2013-04-23 13:03:03 +00:00
2012-12-12 15:27:33 +00:00
2015-02-17 16:01:00 +00:00
2015-09-20 20:21:49 +00:00
2015-09-20 20:21:49 +00:00
2015-09-20 20:21:49 +00:00
2015-09-20 20:21:49 +00:00
2015-09-20 20:21:49 +00:00
2015-09-20 20:21:49 +00:00