OSDN Git Service
Peter S. Mazinger [Fri, 18 Mar 2011 23:33:39 +0000 (00:33 +0100)]
iconv.c: make iconv use the XPG version of basename
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Fri, 18 Mar 2011 23:23:36 +0000 (00:23 +0100)]
allocrtsig.c,pthread.c: disable __libc_allocate_rtsig, unused
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Fri, 18 Mar 2011 23:17:56 +0000 (00:17 +0100)]
setjmp.h: move __sigjmp_save prototype for consistency
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Fri, 18 Mar 2011 22:55:37 +0000 (23:55 +0100)]
allocsigrt.c: provide proper crrent_rtmin for LT new
might be good for LT old as well
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Fri, 18 Mar 2011 22:33:19 +0000 (23:33 +0100)]
libc-internal.h: provide dummy attribute_tls_model_ie and __thread for non TLS builds
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Fri, 18 Mar 2011 22:30:19 +0000 (23:30 +0100)]
locale.c, uClibc_locale.h: provide hidden __curlocale[_set]
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Fri, 18 Mar 2011 22:21:15 +0000 (23:21 +0100)]
*_strerror_r.c: keep all occurences in sync with string.h
libc-internal.h: this has to provide the reversed case of what string.h defines.
Accomodate for later possibility to compile without _GNU_SOURCE defined
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Fri, 18 Mar 2011 20:36:04 +0000 (21:36 +0100)]
err.c: add attribute_noreturn to static functions
while there, remove unneeded pthread.h
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Fri, 18 Mar 2011 20:29:02 +0000 (21:29 +0100)]
err.c, err.h: no need for hidden functions
Since we reuse the functions in the same file, provide static __X()
and use strong_alias to provide the visible functions.
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Fri, 18 Mar 2011 20:22:12 +0000 (21:22 +0100)]
rpc: constify some more data
Comments in header were used by vda on a similar commit
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Fri, 18 Mar 2011 20:21:26 +0000 (21:21 +0100)]
clnt_generic.c: whitespace only, no code change
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Fri, 18 Mar 2011 20:20:07 +0000 (21:20 +0100)]
pm_getmaps.c: change __close to close (even though unused)
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Fri, 18 Mar 2011 20:19:15 +0000 (21:19 +0100)]
ruserpass.c: needs stdio_ext.h only if threads are enabled
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Fri, 18 Mar 2011 20:18:49 +0000 (21:18 +0100)]
rcmd.c: no need for stdio_ext.h
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Fri, 18 Mar 2011 20:14:16 +0000 (21:14 +0100)]
xdr_intXX_t.c,xdr.h: add xdr_quad_t and xdr_u_quad_t
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Fri, 18 Mar 2011 19:31:54 +0000 (20:31 +0100)]
svc_auth.c: use same prototypes as in svc_authux.c
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Fri, 18 Mar 2011 18:59:11 +0000 (19:59 +0100)]
pmap_rmt.c: do not undefine _POSIX_SOURCE, it is anyway too late
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Fri, 18 Mar 2011 18:34:00 +0000 (19:34 +0100)]
rpc: remove unused USE_IN_LIBIO guarded code
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Fri, 18 Mar 2011 18:15:37 +0000 (19:15 +0100)]
arc4random.c: replace a comment
Remove pointer to a dead link.
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Fri, 18 Mar 2011 17:38:14 +0000 (18:38 +0100)]
stdlib.h, arc4random.c: fix arc4random return type to u_int32_t
Change uint32_t to u_int32_t and uint8_t to u_int8_t, removing
completely the dependency on stdint.h.
Based on patch by Timo Teraes <timo.teras@iki.fi>. His comment:
This also fixes a major bug that stdlib.h includes stdint.h. Things
might go very wrong because stdint.h has conditional defines and
if stdlib.h is included before #define's for stdint.h we end up
missing things and breaking builds (e.g. openjdk).
Signed-off-by: Timo Teraes <timo.teras@iki.fi>
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Fri, 18 Mar 2011 15:06:16 +0000 (16:06 +0100)]
arc4random.c: use smallint for rs_initialized
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Fri, 18 Mar 2011 15:03:12 +0000 (16:03 +0100)]
arc4random.c: move arc4_getbyte up
no need for forward declarations
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Thu, 17 Mar 2011 00:31:58 +0000 (01:31 +0100)]
resolv.c: remove duplicated attribute_hidden
while there add one for future (currently in unused code)
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Wed, 16 Mar 2011 23:39:55 +0000 (00:39 +0100)]
ntohl.c: simplify and shrink ntohl and friends
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Wed, 16 Mar 2011 23:23:38 +0000 (00:23 +0100)]
geopt.c, LT new/pthread.c: s/__mempcpy/mempcpy/
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Wed, 16 Mar 2011 23:14:04 +0000 (00:14 +0100)]
nios[2]/crt1.S: remove unused _stdio_init,_stdio_term and __h_errno_location
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Wed, 16 Mar 2011 23:02:13 +0000 (00:02 +0100)]
dl-osinfo.h: include needed headers
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Wed, 16 Mar 2011 22:50:43 +0000 (23:50 +0100)]
__xpg_strerror_r.c, {ge,se}trlimit.c: use strong_alias_untyped
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Wed, 16 Mar 2011 22:41:00 +0000 (23:41 +0100)]
stdlib.c: get rid of the compiler workarounds by using strong_alias_untyped
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Wed, 16 Mar 2011 22:11:48 +0000 (23:11 +0100)]
tsd.c: fix comment
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Wed, 16 Mar 2011 21:35:49 +0000 (22:35 +0100)]
wait.h: resource.h is included already, rusage is defined
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Wed, 16 Mar 2011 21:29:59 +0000 (22:29 +0100)]
signal.h: disable sigreturn prototype
sigreturn is an internal linux specific function and is not exported
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Wed, 16 Mar 2011 21:22:21 +0000 (22:22 +0100)]
signal.h: disable ssignal and gsignal
raise.c: only LT new provided gsignal, disable it
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Wed, 16 Mar 2011 21:15:05 +0000 (22:15 +0100)]
link.h: guard TLS related internals of struct link_map with _LIBC
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Wed, 16 Mar 2011 20:50:52 +0000 (21:50 +0100)]
alphasort*.c: use strcoll instead of strcmp to support locales
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Wed, 16 Mar 2011 20:15:16 +0000 (21:15 +0100)]
s_scalbn.c: since we have strong_alias_untyped now, use it
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Wed, 16 Mar 2011 20:07:18 +0000 (21:07 +0100)]
scandir,readdir[_t]: use one common source for X() and X64()
Since the sources differ only minimally, use only scandir.c,readdir[_t].c
and redefine the used functions accordingly.
Use a strong_alias instead of compiling *64.c if __WORDSIZE = 64
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Wed, 16 Mar 2011 19:52:50 +0000 (20:52 +0100)]
versionsort*.c, alphasort*.c: do not need *64 compiled for __WORDSIZE = 64
use a strong_alias instead
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Wed, 16 Mar 2011 19:50:39 +0000 (20:50 +0100)]
dirent.h: use __ssize_t instead of ssize_t
getdents[64].c: forgot to include dirent.h
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Wed, 16 Mar 2011 19:23:02 +0000 (20:23 +0100)]
move __getdents[64] prototypes to dirent.h
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Wed, 16 Mar 2011 09:23:18 +0000 (10:23 +0100)]
math: avoid jump relocation in libm
add hidden significand, lgamma_r, scalb, log2, gamma
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Wed, 16 Mar 2011 09:21:30 +0000 (10:21 +0100)]
k_standard.c: guard scalb[f] related (unused) code with SUSV3_LEGACY
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Wed, 16 Mar 2011 08:59:42 +0000 (09:59 +0100)]
mathcalls.h: fix comment, MATHCALLI and MATHCALL_PRIV include libm_hidden_proto
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Wed, 16 Mar 2011 08:34:36 +0000 (09:34 +0100)]
libm: remove superfluos attribute_hidden, the one in prototype is enough
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Wed, 16 Mar 2011 08:24:48 +0000 (09:24 +0100)]
libm: change j0 to _j0 and y1 to _y1 to avoid shadow warning
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Tue, 15 Mar 2011 22:51:59 +0000 (23:51 +0100)]
update partially string.h and strings.h
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Tue, 15 Mar 2011 21:17:10 +0000 (22:17 +0100)]
dirstream.h: remove unused constants
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Tue, 15 Mar 2011 21:01:24 +0000 (22:01 +0100)]
quota.h: update, but keep old functionality
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Tue, 15 Mar 2011 20:53:22 +0000 (21:53 +0100)]
stdio.h: update partially, mainly for POSIX 2008
Guard some UCLIBC specific parts.
Add comment about bits/getopt.h.
open_memstream.c: remove __restrict according to SuSv4.
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Tue, 15 Mar 2011 20:20:43 +0000 (21:20 +0100)]
unistd.h: partial update, mostly related to POSIX 2008
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Tue, 15 Mar 2011 19:15:06 +0000 (20:15 +0100)]
make __uClibc_fini() hidden
No need for a visible version
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Tue, 15 Mar 2011 19:12:15 +0000 (20:12 +0100)]
netdb.h: partial update, adding some __USE_MISC/__USE_GNU guards
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Tue, 15 Mar 2011 15:53:01 +0000 (16:53 +0100)]
remove libc_hidden_proto(ioperm) from all headers except arm
While there, guard everywhere ioperm and iopl prototypes with __UCLIBC_LINUX_SPECIFIC__
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Tue, 15 Mar 2011 14:55:17 +0000 (15:55 +0100)]
no need for hidden lockf64
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Tue, 15 Mar 2011 14:29:14 +0000 (15:29 +0100)]
utent.c, wtent.c: move functions from utxent.c
before the change (threads enabled)
text data bss dec hex filename
1107 8 408 1523 5f3 libc/misc/utmp/utent.os
152 0 0 152 98 libc/misc/utmp/wtent.os
240 0 0 240 f0 libc/misc/utmp/utxent.os
after the change
text data bss dec hex filename
1072 8 408 1488 5d0 libc/misc/utmp/utent.os
157 0 0 157 9d libc/misc/utmp/wtent.os
200 0 0 200 c8 libc/misc/utmp/utxent.os
The smaller size on utent.os is unexpected, could be due to better inlining/not inlining
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Tue, 15 Mar 2011 12:54:31 +0000 (13:54 +0100)]
utent.c: go back to use static __X() functions without size increase
__X() {...} and strong_alias(__X,X) keeps size the same as X() {...}
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Mon, 14 Mar 2011 22:11:32 +0000 (23:11 +0100)]
use fputwc in putwchar()
use fputwc instead of fputc
add hidden fputwc to avoid jump relocation
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Mon, 14 Mar 2011 21:59:44 +0000 (22:59 +0100)]
fputc.c, stdio.h: no need for hidden putc, putc_unlocked and fputc_unlocked
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Mon, 14 Mar 2011 18:58:35 +0000 (19:58 +0100)]
cleanup fork()
Keep only fork (and it's hidden variant) and __libc_fork.
Common __libc_fork prototype in unistd.h.
Get rid of __fork, by changing HIDDEN_JUMPTARGET(__fork) to use fork
I can't see the reason to have fork() in libpthread, but kept it for now
making __fork static in these files.
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Mon, 14 Mar 2011 17:33:13 +0000 (18:33 +0100)]
semaphore.h, uClibc_local_lim.h: make sure SEM_VALUE_MAX is always defined
LT old and new provided SEM_VALUE_MAX in semaphore.h, NPTL in local_lim.h
Make sure to get the same definitions, independently of the fact, that
semaphore.h is included or not.
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Mon, 14 Mar 2011 16:45:43 +0000 (17:45 +0100)]
semaphore.c: include limits.h before semaphore.h
else SEM_VALUE_MAX will be undefined
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Mon, 14 Mar 2011 11:59:11 +0000 (12:59 +0100)]
huge_val.h: add for vax
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Mon, 14 Mar 2011 11:57:18 +0000 (12:57 +0100)]
huge_vall.h: add for i386,ia64,m68k,sparc
relevant only for gcc < 3.3 or non-gcc compiler
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Mon, 14 Mar 2011 11:37:56 +0000 (12:37 +0100)]
posix_opt.h: update to POSIX 2008
uClibc_posix_opt.h: adapt accordingly
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Mon, 14 Mar 2011 11:27:09 +0000 (12:27 +0100)]
posix_opt.h: update to glibc's NPTL version
add uClibc_posix_opt.h to handle uClibc specific options/features
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Mon, 14 Mar 2011 10:53:52 +0000 (11:53 +0100)]
local_lim.h: add NPTL version for alpha,ia64,powerpc,sparc, update common
avoid the possibility to use the wrong bits/local_lim.h
uClibc_local_lim.h fix it be correct for LT
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Mon, 14 Mar 2011 10:08:50 +0000 (11:08 +0100)]
tgmath.h: disable builtins
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Sun, 13 Mar 2011 21:21:26 +0000 (22:21 +0100)]
add jmpbuf-unwind.h and jmpbuf-offsets.h to avr32,c6x and xtensa
cleanup bits/setjmp.h and avr32's setjmp.S
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Sun, 13 Mar 2011 20:48:22 +0000 (21:48 +0100)]
change __HAVE_FPU__ to __UCLIBC_HAS_FPU__
add features.h where necessary
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Sun, 13 Mar 2011 20:43:14 +0000 (21:43 +0100)]
cleanup bits/setjmp.h of stuff moved to jmpbuf-offsets.h and jmpbuf-unwind.h
Make sure we use the new jmpbuf-*.h headers
While there, adapt the offset on microblaze and the _JMPBUF_UNWINDS macro on bfin,
it seems, these were changed in the meantime.
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Sun, 13 Mar 2011 20:24:42 +0000 (21:24 +0100)]
make use of jmpbuf-offsets.h and jmpbuf-unwind.h
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Sun, 13 Mar 2011 20:13:27 +0000 (21:13 +0100)]
jmpbuf-unwind.h: add NTPL related section
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Sun, 13 Mar 2011 19:56:54 +0000 (20:56 +0100)]
add jmpbuf-offsets.h and jmpbuf-unwind.h for all archs (LT related)
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Sun, 13 Mar 2011 19:10:13 +0000 (20:10 +0100)]
move *longjmp related prototypes to setjmp.h
Provide common prototypes for __longjmp, __libc_longjmp, __libc_siglongjmp
_longjmp_unwind, __libc_unwind_longjmp in setjmp.h in preparation for use in LT new
Add __longjmp to h8300 and i960
Make common longjmp.c good for NPTL
Guard _longjmp_unwind use in sh's longjmp.c for NPTL (I think sh could use the common one)
Remove unneeded attribute_noreturn, prototype provides it already
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Sun, 13 Mar 2011 14:37:48 +0000 (15:37 +0100)]
libintl.h, clnt_perror.c: add fallback gettext(x) and use it for _(x)
clnt_perror.c: change _(x) to N_(x) to allow compile with the change in libintl.h
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Sun, 13 Mar 2011 14:36:32 +0000 (15:36 +0100)]
getopt[-susv3].c: use libintl's _(x)
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Sun, 13 Mar 2011 14:35:39 +0000 (15:35 +0100)]
regex_old.c: remove unneeded guard
_LIBC is undefined here, no need to specially guard with __UCLIBC__
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Sun, 13 Mar 2011 14:31:57 +0000 (15:31 +0100)]
obstack.c: use libintl.h
remove gettext workarounds and use libintl.h's _(x)
use strong_alias instead of weak_alias
change how strong_alias and libc_hidden_def are disabled
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Sun, 13 Mar 2011 00:42:50 +0000 (01:42 +0100)]
arm: consistency check OABI v. EABI
added check in toolchain and config
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Sun, 13 Mar 2011 00:35:42 +0000 (01:35 +0100)]
wchar.h: SuSv compliance
add restrict keyword to wcsstr/wcswcs
remove restrict keyword from wmemcmp
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Sun, 13 Mar 2011 00:22:47 +0000 (01:22 +0100)]
wchar.h: fix 2 typos in comments
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Sun, 13 Mar 2011 00:06:12 +0000 (01:06 +0100)]
alpha/__syscall_rt_sigaction.S: make the function hidden on non-NPTL
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Sun, 13 Mar 2011 00:00:55 +0000 (01:00 +0100)]
remove unneeded hidden sigwaitinfo
use __sigwaitinfo in sigwait.c, since that is already hidden
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Sat, 12 Mar 2011 23:55:15 +0000 (00:55 +0100)]
no need for hidden sigtimedwait
remove unneeded attribute_hidden too, as the prototype provides it
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Sat, 12 Mar 2011 23:54:46 +0000 (00:54 +0100)]
setjmp.h: sync with glibc
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Sat, 12 Mar 2011 23:43:07 +0000 (00:43 +0100)]
tgmath.h: sync with glibc
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Sat, 12 Mar 2011 23:36:00 +0000 (00:36 +0100)]
parser_config.[ch]: remove duplicated hidden functions
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Sat, 12 Mar 2011 23:29:45 +0000 (00:29 +0100)]
signal.h: move prototypes for __syscall_[rt_]sigaction to common place
solve inconsistency between archs
NPTL should not use __syscall_rt_sigaction at all, for now it needs to be visible
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Sat, 12 Mar 2011 21:52:58 +0000 (22:52 +0100)]
libintl.h: add _(x) and N_(x) and use it everywhere
remove _LIBC part from rpc headers
include libintl.h to rpc_private.h and use that instead of rpc.h
include libintl.h anywhere else needed replacing _(x) and N_(x)
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Sat, 12 Mar 2011 21:01:27 +0000 (22:01 +0100)]
libc-internal.h: use a consistent prototype for __stack_chk_fail
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Sat, 12 Mar 2011 20:56:14 +0000 (21:56 +0100)]
signal.h: provide prototype for __libc_sigaction and remove all others
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Sat, 12 Mar 2011 20:43:52 +0000 (21:43 +0100)]
complex.h: sync a bit glibc to guard properly
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Sat, 12 Mar 2011 20:37:42 +0000 (21:37 +0100)]
use one common prototype for _create_xid
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Sat, 12 Mar 2011 20:32:37 +0000 (21:32 +0100)]
remove subdir include/internal on install
overseen this on an earlier commit
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Sat, 12 Mar 2011 20:26:01 +0000 (21:26 +0100)]
rpc_private.h: change guard
need another guard, else rpc/rpc.h might not be included
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Sat, 12 Mar 2011 20:24:44 +0000 (21:24 +0100)]
remove __FORCE_GLIBC
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Sat, 12 Mar 2011 19:55:47 +0000 (20:55 +0100)]
getopt.c, getopt.h: avoid the need for __FORCE_GLIBC
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Sat, 12 Mar 2011 19:53:43 +0000 (20:53 +0100)]
do not include libc-internal.h
it is already included by features.h
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Sat, 12 Mar 2011 19:45:04 +0000 (20:45 +0100)]
locale.h, xlocale.h: guard *locale functions correctly
change the guard from LOCALE to XLOCALE for uselocale/newlocale...
move locale_t to xlocale.h
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger [Sat, 12 Mar 2011 19:41:33 +0000 (20:41 +0100)]
do not include xlocale.h, it is included by locale.h when needed
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>