Rich Felker
37bb3cce45
omit declaration of basename wrongly interpreted as prototype in C++
...
the non-prototype declaration of basename in string.h is an ugly
compromise to avoid breaking 2 types of broken software:
1. programs which assume basename is declared in string.h and thus
would suffer from dangerous pointer-truncation if an implicit
declaration were used.
2. programs which include string.h with _GNU_SOURCE defined but then
declare their own prototype for basename using the incorrect GNU
signature for the function (which would clash with a correct
prototype).
however, since C++ does not have non-prototype declarations and
interprets them as prototypes for a function with no arguments, we
must omit it when compiling C++ code. thankfully, all known broken
apps that suffer from the above issues are written in C, not C++.
2012-05-09 11:47:06 -04:00
..
2011-11-10 20:40:06 -05:00
2011-11-10 20:40:06 -05:00
2012-05-03 22:12:46 -04:00
2011-06-09 21:47:24 -04:00
2012-05-04 00:31:25 -04:00
2012-05-04 00:13:23 -04:00
2012-04-09 15:06:58 -04:00
2012-05-06 16:35:32 -04:00
2011-02-12 00:22:29 -05:00
2012-05-03 22:27:36 -04:00
2012-03-22 20:00:58 -04:00
2011-02-12 00:22:29 -05:00
2011-11-10 20:40:06 -05:00
2012-05-04 00:13:23 -04:00
2011-06-27 01:02:28 -04:00
2011-02-12 00:22:29 -05:00
2012-05-06 13:40:19 -04:00
2011-04-05 11:16:49 -04:00
2012-01-26 10:53:37 -05:00
2012-05-04 00:13:23 -04:00
2011-02-12 00:22:29 -05:00
2011-02-12 00:22:29 -05:00
2012-03-21 12:42:48 -04:00
2011-10-17 12:24:23 -04:00
2012-05-04 00:13:23 -04:00
2011-04-05 15:45:24 -04:00
2012-05-04 00:13:23 -04:00
2011-04-13 09:03:22 -04:00
2011-02-12 00:22:29 -05:00
2011-02-12 00:22:29 -05:00
2011-02-14 21:59:38 -05:00
2011-02-14 18:41:25 -05:00
2012-05-06 16:35:32 -04:00
2011-02-12 00:22:29 -05:00
2011-02-12 00:22:29 -05:00
2012-03-20 21:10:06 -04:00
2011-02-14 20:45:37 -05:00
2011-02-12 00:22:29 -05:00
2012-05-05 22:22:46 -04:00
2012-03-01 01:34:58 -05:00
2011-04-13 15:24:26 -04:00
2012-03-21 00:47:37 -04:00
2011-09-20 12:14:06 -04:00
2011-02-12 00:22:29 -05:00
2011-02-12 00:22:29 -05:00
2011-02-12 00:22:29 -05:00
2011-02-12 00:22:29 -05:00
2012-02-29 22:55:08 -05:00
2011-11-10 21:01:24 -05:00
2012-01-29 11:54:18 -05:00
2011-06-16 16:53:11 -04:00
2012-01-26 10:53:37 -05:00
2012-04-29 19:54:03 -04:00
2011-09-21 21:01:56 -04:00
2011-03-03 18:32:26 -05:00
2011-02-14 18:45:58 -05:00
2011-02-12 00:22:29 -05:00
2012-04-13 23:06:54 -04:00
2011-09-13 21:09:35 -04:00
2011-04-27 23:41:48 -04:00
2011-09-20 14:51:56 -04:00
2011-02-12 00:22:29 -05:00
2012-02-07 12:08:27 -05:00
2011-06-30 12:44:48 -04:00
2012-05-04 00:13:23 -04:00
2012-05-04 00:13:23 -04:00
2012-05-09 11:47:06 -04:00
2012-02-06 21:51:02 -05:00
2012-05-06 09:03:19 -04:00
2012-02-29 22:36:06 -05:00
2011-04-05 15:40:36 -04:00
2011-04-13 16:13:49 -04:00
2011-02-12 00:22:29 -05:00
2012-04-18 13:11:35 -04:00
2012-03-22 15:36:56 -04:00
2012-04-18 12:22:24 -04:00
2011-07-31 00:10:29 -04:00
2011-02-12 00:22:29 -05:00
2012-05-04 00:13:23 -04:00
2011-02-12 00:22:29 -05:00
2012-05-06 16:35:32 -04:00
2011-04-12 12:03:33 -04:00
2012-03-01 23:24:45 -05:00
2012-02-06 21:33:40 -05:00
2011-02-19 12:44:36 -05:00