libc/newlib/libc/sys/linux/linuxthreads
Pieter du Preez 264b817b8e Define the newlib version macros in one place: _newlib_version.h.
Currently, the newlib version information needs to be updated in two places:
 - newlib/acinclude.m4
 - newlib/libc/include/sys/features.h

The goal of this patch is to:
 - supply a single location for defining the newlib version
   information: newlib/acinclude.m4
 - define __NEWLIB__, __NEWLIB_MINOR__ and __NEWLIB_PATCHLEVEL__
   This is in line with what gcc does for its version macros. See:
   https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html

This patch moves the definition of the _NEWLIB_VERSION, __NEWLIB__
and __NEWLIB_MINOR__ macros from newlib/libc/include/sys/features.h,
to the newly generated newlib/_newlib_version.h file. Additionally,
the __NEWLIB_PATCHLEVEL__ macro was created, for completeness.

In order to stay backwards compatible, newlib/_newlib_version.h gets
included by newlib/newlib.h and newlib/libc/include/sys/features.h.

Note: This patch does _not_ include the modifications to the following
files, as these should all be generated any way.
      *Makefile.in,
      *aclocal.m4,
      *configure
      stamp-* files

Signed-off-by: Pieter du Preez <pdupreez@gmail.com>
2016-02-17 16:04:09 -05:00
..
bits 2005-10-26 Shaun Jackman <sjackman@gmail.com> 2005-10-26 22:16:34 +00:00
machine Regenerate files for newlib 2.3.0. 2015-12-21 21:32:11 -05:00
LICENSE 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
Makefile.am * ltmain.sh: Update from GCC. 2007-05-24 17:33:42 +00:00
Makefile.in Define the newlib version macros in one place: _newlib_version.h. 2016-02-17 16:04:09 -05:00
aclocal.m4 2012-12-20 Jeff Johnston <jjohnstn@redhat.com> 2012-12-20 21:10:27 +00:00
attr.c 2007-12-19 Jeff Johnston <jjohnstn@redhat.com> 2007-12-19 22:27:00 +00:00
barrier.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
bp-sym.h 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
cancel.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
condvar.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
config.h 2006-03-17 Jeff Johnston <jjohnstn@redhat.com> 2006-03-17 22:27:37 +00:00
configure Regenerate files for newlib 2.3.0. 2015-12-21 21:32:11 -05:00
configure.in 2010-02-24 Charles Wilson <...> 2010-02-24 21:00:08 +00:00
defs.awk 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
ecmutex.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
events.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
getcpuclockid.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
getreent.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
internals.h headers: properly decorate attributes 2014-08-01 15:44:51 +00:00
join.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
joinrace.c 2007-12-19 Jeff Johnston <jjohnstn@redhat.com> 2007-12-19 22:27:00 +00:00
kernel-features.h 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
libc-internal.h 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
libc-symbols.h headers: properly decorate attributes 2014-08-01 15:44:51 +00:00
linuxthreads.texi 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
lockfile.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
manager.c 2007-12-19 Jeff Johnston <jjohnstn@redhat.com> 2007-12-19 22:27:00 +00:00
mq_notify.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
mutex.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
no-tsd.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
oldsemaphore.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
posix-timer.h 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
prio.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
proc_service.h 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
pt-machine.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
ptclock_gettime.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
ptclock_settime.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
ptfork.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
pthread.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
ptlongjmp.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
queue.h 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
reent.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
reqsyscalls.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
restart.h 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
rwlock.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
semaphore.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
semaphore.h 2003-06-20 Jeff Johnston <jjohnstn@redhat.com> 2003-06-20 23:57:48 +00:00
shlib-compat.h 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
signals.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
specific.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
spinlock.c 008-09-08 Jeff Johnston <jjohnstn@redhat.com> 2008-09-08 22:25:14 +00:00
spinlock.h 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
sysctl.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
td_init.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_log.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_symbol_list.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
td_ta_clear_event.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_ta_delete.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_ta_enable_stats.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_ta_event_addr.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_ta_event_getmsg.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_ta_get_nthreads.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_ta_get_ph.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_ta_get_stats.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_ta_map_id2thr.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_ta_map_lwp2thr.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_ta_new.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_ta_reset_stats.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_ta_set_event.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_ta_setconcurrency.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_ta_thr_iter.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_ta_tsd_iter.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_thr_clear_event.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_thr_dbresume.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_thr_dbsuspend.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_thr_event_enable.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_thr_event_getmsg.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_thr_get_info.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_thr_getfpregs.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_thr_getgregs.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_thr_getxregs.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_thr_getxregsize.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_thr_set_event.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_thr_setfpregs.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_thr_setgregs.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_thr_setprio.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_thr_setsigpending.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_thr_setxregs.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_thr_sigsetmask.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_thr_tsd.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_thr_validate.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
testrtsig.h 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
thread_db.h 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
thread_dbP.h 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
timer_create.c 2013-11-25 Sahil Patnayakuni <sahil.patnayakuni@gmail.com> 2013-11-25 13:46:23 +00:00
timer_delete.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
timer_getoverr.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
timer_gettime.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
timer_routines.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
timer_settime.c 2013-11-25 Sahil Patnayakuni <sahil.patnayakuni@gmail.com> 2013-11-25 13:46:23 +00:00
tst-cancel.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
tst-context.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
tststack.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
unload.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
weaks.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
wrapsyscall.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00