acadia-newlib/newlib/libc/sys/linux
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
..
argp Move duplicated documentation rules to Makefile.shared 2015-11-02 18:02:39 -05:00
bits 2008-11-19 Jeff Johnston <jjohnstn@redhat.com> 2008-11-19 20:56:22 +00:00
cmath Move duplicated documentation rules to Makefile.shared 2015-11-02 18:02:39 -05:00
dl Move duplicated documentation rules to Makefile.shared 2015-11-02 18:02:39 -05:00
iconv Move duplicated documentation rules to Makefile.shared 2015-11-02 18:02:39 -05:00
include headers: properly decorate attributes 2014-08-01 15:44:51 +00:00
intl Move duplicated documentation rules to Makefile.shared 2015-11-02 18:02:39 -05:00
linuxthreads Define the newlib version macros in one place: _newlib_version.h. 2016-02-17 16:04:09 -05:00
machine Regenerate files for newlib 2.3.0. 2015-12-21 21:32:11 -05:00
net Change if_nameindex() to use unsigned int i variable. 2016-02-04 13:30:14 -05:00
sys headers: properly decorate attributes 2014-08-01 15:44:51 +00:00
Makefile.am * libc/include/signal.h (psignal): Declare. 2011-05-04 11:26:22 +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
aio.c 2006-02-16 Jeff Johnston <jjohnstn@redhat.com> 2006-02-16 21:25:45 +00:00
aio64.c
bp-checks.h
brk.c
calloc.c
callocr.c
cfreer.c
cfspeed.c
clock_getres.c
clock_gettime.c
clock_settime.c
config.h
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
confstr.c
confstr.h
crt1.c
ctermid.c
fclean.c
flockfile.c
fpathconf.c
free.c
freer.c
fstab.c
fstatvfs.c
fstatvfs64.c
ftok.c
ftw.c
ftw64.c
funlockfile.c
getdate.c
getdate_err.c
gethostid.c
gethostname.c
getlogin.c
getopt.c
getopt1.c
getpwent.c
getreent.c
getrlimit64.c
getwd.c
hp-timing.h
ids.c
inode.c 2008-11-28 Jeff Johnston <jjohnstn@redhat.com> 2008-11-28 17:15:47 +00:00
internal_statvfs.c
io.c Fix reference to __mknod syscall to pass proper third argument. 2006-03-29 21:50:52 +00:00
io64.c 2008-11-28 Jeff Johnston <jjohnstn@redhat.com> 2008-11-28 17:15:47 +00:00
ipc.c
isatty.c 2008-01-03 Jeff Johnston <jjohnstn@redhat.com> 2008-01-03 22:33:37 +00:00
kernel_sigaction.h
libc-internal.h
libc-symbols.h headers: properly decorate attributes 2014-08-01 15:44:51 +00:00
libc-tsd.h
libintl.h
linux.c
linux_fsinfo.h
malign.c
malignr.c
mallinfor.c
malloc.c
mallocr.c
malloptr.c
mallstatsr.c
mcheck.c
mhooks.h
mmap.c 2006-07-31 Jeff Johnston <jjohnstn@redhat.com> 2006-07-31 22:21:24 +00:00
mntent.c
mntent_r.c
mq_close.c
mq_getattr.c
mq_notify.c
mq_open.c
mq_receive.c
mq_send.c
mq_setattr.c
mq_unlink.c
mqlocal.h
msize.c
msizer.c
mstats.c
mtrim.c
mtrimr.c
ntp_gettime.c
pathconf.c
pread.c
pread64.c
process.c
prof-freq.c
profile.c
pvallocr.c
pwrite.c
pwrite64.c
raise.c
readdir64.c
realloc.c
reallocr.c
realpath.c 2013-11-18 Joel Sherrill <joel.sherrill@oarcorp.com> 2013-11-19 17:32:24 +00:00
rename.c
resource.c
scandir64.c
sched.c
select.c
seteuid.c
sethostid.c
sethostname.c
setrlimit64.c
shared.ld 2014-12-18 Jeff Johnston <jjohnstn@redhat.com> 2014-12-18 20:30:11 +00:00
shlib-compat.h 2008-05-22 Jeff Johnston <jjohnstn@redhat.com> 2008-05-22 21:30:28 +00:00
shm_open.c
shm_unlink.c
sig.c
sigaction.c
siglongjmp.c
signal.c
sigqueue.c
sigset.c
sigwait.c
sleep.c
socket.c
sockops.h
stack.c
statvfs.c 2013-11-21 Daniel Ramirez <javamonn@gmail.com> 2013-11-22 01:17:42 +00:00
statvfs64.c
strsignal.c
strverscmp.c
sysconf.c
sysctl.c
systat.c
system.c
tcdrain.c
tcsendbrk.c
termios.c
thread-m.h
time.c
ttyname_r.c
usleep.c
utimes.c
vallocr.c
versionsort.c
versionsort64.c
wait.c