newlib-cygwin/newlib/libc
Yaakov Selkowitz 79e419de62 Rework handling of basename variants
As a commonly-included header, the #define basename in <string.h> can
affect code which uses "basename" for its own purposes (e.g. struct
members or C++ namespaced functions).  When such cases occur and some
code includes <string.h> and some not, then errors result.  OTOH,
<libgen.h> is rarely used, and that's where the renaming occurs in
glibc, so code using <libgen.h> should already be safe.

* libc/include/libgen.h (basename): Define as __xpg_basename
for source compatibility with glibc.
Declare with __ASMNAME("basename") for ABI compatibility.
* libc/include/string.h (basename): Define as basename for
source compatibility with glibc.
Declare with __ASMNAME("__gnu_basename") for ABI compatibility.
2015-07-06 14:58:51 -05:00
..
argz Correct argz_replace behaviour when memory is exhausted. 2015-06-01 10:09:04 +02:00
ctype Regenerate Makefile.in 2015-06-29 12:29:50 +01:00
errno 2012-12-20 Jeff Johnston <jjohnstn@redhat.com> 2012-12-20 21:10:27 +00:00
iconv 2013-11-25 Joel Sherrill <joel.sherrill@oarcorp.com> 2013-11-26 14:38:58 +00:00
include Rework handling of basename variants 2015-07-06 14:58:51 -05:00
locale Fix mismatched parentheses in documentation. 2015-06-24 12:23:25 +01:00
machine Update the assembler code to support old ARM architectures. 2015-06-01 12:49:37 +02:00
misc 2012-12-20 Jeff Johnston <jjohnstn@redhat.com> 2012-12-20 21:10:27 +00:00
posix Regenerate Makefile.in 2015-06-29 12:29:50 +01:00
reent * libc/reent/reent.c (_reclaim_reent): Free also _misc and 2013-06-24 11:34:03 +00:00
search * libc/include/stdlib.h (__bsd_qsort_r): Declare. 2014-12-05 16:21:04 +00:00
signal Fix makedoc markup used in texinfo source 2015-06-23 16:14:39 +01:00
stdio Prevent use of uninitialized file lock 2015-07-02 09:38:06 +02:00
stdio64 Regenerate Makefile.in 2015-06-29 12:29:50 +01:00
stdlib Regenerate Makefile.in 2015-06-29 12:29:50 +01:00
string Regenerate Makefile.in 2015-06-29 12:29:50 +01:00
sys Add <sys/_stdint.h> for FreeBSD compatibility 2015-04-23 21:57:10 +02:00
syscalls 2012-12-20 Jeff Johnston <jjohnstn@redhat.com> 2012-12-20 21:10:27 +00:00
time Fix SYNOPSIS prototypes without marked up parameter names 2015-06-23 17:30:22 +01:00
unix * libc/unix/getcwd.c (getcwd): Close directory also in case of an error. 2014-10-16 15:00:59 +00:00
xdr 2012-12-20 Jeff Johnston <jjohnstn@redhat.com> 2012-12-20 21:10:27 +00:00
Makefile.am 2011-01-05 Ralf Corsepius <ralf.corsepius@rtems.org> 2011-01-05 17:18:16 +00:00
Makefile.in 2012-12-20 Jeff Johnston <jjohnstn@redhat.com> 2012-12-20 21:10:27 +00:00
aclocal.m4 2012-12-20 Jeff Johnston <jjohnstn@redhat.com> 2012-12-20 21:10:27 +00:00
configure 2014-12-18 Jeff Johnston <jjohnstn@redhat.com> 2014-12-18 20:30:11 +00:00
configure.in 2014-07-04 Bin Cheng <bin.cheng@arm.com> 2014-07-04 17:21:45 +00:00
libc.texinfo Fix newlib texinfo source so 'info libc' and 'info libm' work 2015-03-16 15:02:22 +00:00
saber
sys.tex 2005-10-28 Bob Wilson <bob.wilson@acm.org> 2005-10-28 21:36:05 +00:00