OSDN Git Service
Peter S. Mazinger [Tue, 12 Apr 2011 20:36:24 +0000 (22:36 +0200)]
_exit.c: add ABORT_INSTRUCTION
Warn if the arch has no __UCLIBC_ABORT_INSTRUCTION__.
Run only one syscall, exit_group is not an exclusivity, use it if THREADS are enabled.
Guard according header.
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, 12 Apr 2011 20:11:15 +0000 (22:11 +0200)]
stdlib.c: remove comment about _Exit, it is provided in _exit.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 [Tue, 12 Apr 2011 20:10:32 +0000 (22:10 +0200)]
hppa/bits/atomic.h: include errno.h to get EFAULT/ENOSYS
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, 12 Apr 2011 20:01:42 +0000 (22:01 +0200)]
add lcong48[_r]
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, 12 Apr 2011 15:20:51 +0000 (17:20 +0200)]
getpt.c: no need for hidden posix_openpt
Prefer static inline instead of hidden (__bsd_getpt)
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, 8 Apr 2011 20:17:59 +0000 (22:17 +0200)]
_exit.c: include the proper 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 [Fri, 8 Apr 2011 19:40:18 +0000 (21:40 +0200)]
munmap.c: do not include unistd.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 [Thu, 7 Apr 2011 21:46:22 +0000 (23:46 +0200)]
PORTING: remove obsolete comment about readelf
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, 7 Apr 2011 21:13:12 +0000 (23:13 +0200)]
dl-iterate-phdr.c: no need for visible __dl_iterate_phdr, make it static
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, 6 Apr 2011 13:36:54 +0000 (15:36 +0200)]
posix_fadvise: make posix_fadvise[64] similar on all archs
Remove all versions, that can be covered by the common one.
Drop incorrectly implemented fallback support, if __NR_fadvise64_64 is not available.
To support 64 bit ppc, move ppc support into common.
Cleanup including 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, 6 Apr 2011 10:53:11 +0000 (12:53 +0200)]
i386/posix_fadvise64: remove fallback code, uClibc does not do that
Makefile.arch: include it only if ADVANCED_REALTIME 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, 6 Apr 2011 10:37:52 +0000 (12:37 +0200)]
splice,sync_file_range: mark them as GNU extensions
They can't be compiled if LFS is disabled, they are using off64_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 [Wed, 6 Apr 2011 10:36:33 +0000 (12:36 +0200)]
tee,vmsplice: mark them as GNU extensions
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, 6 Apr 2011 10:32:15 +0000 (12:32 +0200)]
readahead.c: add correct guards
While there, remove unneeded 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 [Tue, 5 Apr 2011 14:29:53 +0000 (16:29 +0200)]
cacheflush.c: compile only if __NR_cacheflush is available
The header had to be removed under the guard, else asm/cachectl.h might
not be available at all.
While there, disable __cachectl prototype.
Use untyped strong_alias for cacheflush because char * != void *.
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, 2 Apr 2011 01:34:42 +0000 (03:34 +0200)]
dl-defs.h: avoid including dl-sysdep.h if compiling hostutils
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, 31 Mar 2011 19:51:32 +0000 (21:51 +0200)]
mips/README: fix comment about file from which functions were copied
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, 31 Mar 2011 08:19:52 +0000 (10:19 +0200)]
utils: expand search path to find dl-sysdep.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 [Thu, 31 Mar 2011 08:19:02 +0000 (10:19 +0200)]
_collate.c: avoid initialization 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 [Thu, 31 Mar 2011 08:17:26 +0000 (10:17 +0200)]
_fpmaxtostr.c: align comments, 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 [Thu, 31 Mar 2011 08:16:31 +0000 (10:16 +0200)]
arm: avoid 2 compiler warnings
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, 30 Mar 2011 22:20:50 +0000 (00:20 +0200)]
ldso: use _dl_strdup and _dl_dprintf only in ld-uClibc.so
Add support for %p to _dl_dprintf for later corrections in debug messages.
Disable _dl_debug_file if LD debugging is not enabled and change it's use to 2.
The use of dprintf in elfinterp.c will spit out warnings, will be fixed in the
reworked ldso.
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, 30 Mar 2011 21:09:15 +0000 (23:09 +0200)]
sh: remove longjmp.c, the common is good for sh
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, 30 Mar 2011 21:07:52 +0000 (23:07 +0200)]
sh: add back clone and vfork for 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 [Wed, 30 Mar 2011 20:20:27 +0000 (22:20 +0200)]
Rules.mak: add ldso search paths independently of 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, 27 Mar 2011 00:58:07 +0000 (01:58 +0100)]
uClibc_pthread.h: remove __pthread_mutex_destroy, 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 [Sun, 27 Mar 2011 00:54:39 +0000 (01:54 +0100)]
adapt regex to new regex.h
While there, add some defines to help build, cleanup
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, 27 Mar 2011 00:39:39 +0000 (01:39 +0100)]
ftw.c: errno.h has to be included before undefining _LIBC
While, cleanup a bit
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, 26 Mar 2011 23:53:01 +0000 (00:53 +0100)]
regex_old.c: adapt to new regex.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, 26 Mar 2011 20:43:16 +0000 (21:43 +0100)]
dl-string.h: include dl-defs.h instead of dl-sysdep.h
Include stddef.h instead of defining NULL
Adapt guard to file name.
Reorder includes a bit.
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, 26 Mar 2011 20:40:01 +0000 (21:40 +0100)]
dl-defs.h: include dl-sysdep.h before fallbacks.
dl-sysdep.h has to come before the fallbacks in dl-defs.h,
else the wrong macros are used.
While there adapt the guard to the file name.
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, 26 Mar 2011 20:38:11 +0000 (21:38 +0100)]
dl-elf.h: add some includes and fix comments
While there change the guard of the file
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, 26 Mar 2011 20:37:08 +0000 (21:37 +0100)]
ldso/include: change guard of headers to reflect the file names.
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, 26 Mar 2011 17:36:19 +0000 (18:36 +0100)]
regex.h: sync with glibc, making it more POSIX-like
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, 26 Mar 2011 16:41:29 +0000 (17:41 +0100)]
libdl.c: disable dlinfo
dlinfo is a GNU extension, it should be of the same type
as on 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, 26 Mar 2011 00:13:29 +0000 (01:13 +0100)]
dl-string.h: change IS_IN_libdl guard to IS_IN_rtld
The guard is changed to allow to be used the file in libc as well.
Include string.h (although already included by ldso.h).
Guard the rest of the file according to config options.
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, 26 Mar 2011 00:06:00 +0000 (01:06 +0100)]
dl-string.h: use __powerpc__ guard instead of powerpc
powerpc guard depends on the compiler options, __powerpc__ should
work all the time.
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, 26 Mar 2011 00:04:07 +0000 (01:04 +0100)]
dl-string.h: remove mips related guard
This can't happen, __mips__ was already checked earlier
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, 25 Mar 2011 12:08:19 +0000 (13:08 +0100)]
remove uClibc_mutex.h on install
Add a comment to uClibc_stdio.h to keep macros in sync with uClibc_mutex.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 [Thu, 24 Mar 2011 23:56:59 +0000 (00:56 +0100)]
ldd.c: change syntax, no size and no functional change
Proposed-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
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, 24 Mar 2011 23:56:14 +0000 (00:56 +0100)]
_scanf.c: fix to signedness warnings
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, 24 Mar 2011 23:49:42 +0000 (00:49 +0100)]
errno, h_errno: correct them for non-TLS
Move h_errno related stuff to separate file.
Do not hide errno and h_errno for non-TLS, else it keeps being 0.
Make __[h_]errno_location weak for non-TLS.
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, 24 Mar 2011 21:08:15 +0000 (22:08 +0100)]
avr32: common do_rem is good for 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 [Thu, 24 Mar 2011 18:06:37 +0000 (19:06 +0100)]
libdl: no need for _dl_strstr in libdl, use strstr
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, 24 Mar 2011 14:09:30 +0000 (15:09 +0100)]
ppc/elfinterp.c: fix comment typos
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, 24 Mar 2011 14:04:45 +0000 (15:04 +0100)]
dl-hash.h: remove unused _dl_symbol and unneeded prototypes
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, 24 Mar 2011 13:55:57 +0000 (14:55 +0100)]
__uClibc_main.c: do not include unused headers
Remove unneeded headers.
Guard inclusion of fcntl.h.
While there, remove an obsoleted 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 [Thu, 24 Mar 2011 13:54:31 +0000 (14:54 +0100)]
getpagesize.c, unistd.h: hide __pagesize
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, 24 Mar 2011 13:53:41 +0000 (14:53 +0100)]
malloc.h: use sysconf(_SC_PAGESIZE) instead of __pagesize
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, 24 Mar 2011 13:39:47 +0000 (14:39 +0100)]
libdl.c: hide dl_cleanup
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, 24 Mar 2011 13:33:32 +0000 (14:33 +0100)]
dl-elf.h: remove unused prototype
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, 24 Mar 2011 13:31:46 +0000 (14:31 +0100)]
jmp-unwind.c: add hidden _longjmp_unwind
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, 24 Mar 2011 12:57:34 +0000 (13:57 +0100)]
internals.h: use sysconf(_SC_PAGESIZE) instead of __pagesize
Rename PAGE_SIZE to __PAGE_SIZE to be sure that we do not get the
definition from uClibc_page.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 [Thu, 24 Mar 2011 11:18:40 +0000 (12:18 +0100)]
libc-symbols.h: fix weak functions handling
Move weak_function and weak_const_function under HAVE_WEAK_SYMBOLS guard
and provide fallbacks.
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, 24 Mar 2011 10:37:17 +0000 (11:37 +0100)]
ldd.c: reduce size
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, 24 Mar 2011 09:32:10 +0000 (10:32 +0100)]
libdl.c,dl-string.h: do not use inlined _dl_memset and others in libdl
Use the one from libc.
While there, remove unused _dl_strncmp() and superfluos static 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, 24 Mar 2011 09:14:25 +0000 (10:14 +0100)]
Makefile.commonarch: use proper CFLAGS for jmp-unwind.c
Filter out libpthread CFLAGS
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, 24 Mar 2011 08:43:32 +0000 (09:43 +0100)]
nios2,xtensa: common uClibc_page.h is good for them
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, 24 Mar 2011 08:39:19 +0000 (09:39 +0100)]
xtensa-config.h: remove XCHAL_MMU_MIN_PTE_PAGE_SIZE used only in uClibc_page.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 [Thu, 24 Mar 2011 00:33:14 +0000 (01:33 +0100)]
ldconfig.c: fix strncmp() usage
While there, remove unused __strtok.
Use err() and warn() if uClibc provides them (if ldconfig is not static).
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, 24 Mar 2011 00:32:14 +0000 (01:32 +0100)]
getconf.c: fix noreturn warnings
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, 24 Mar 2011 00:15:25 +0000 (01:15 +0100)]
iconv: Do not include __iconv_codesets into iconv utility
Host iconv needs only L_iconv_main defined and __iconv_codesets
has to included, as host system does not provide it.
Keep __iconv_codesets out of iconv linked against 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 [Wed, 23 Mar 2011 23:14:35 +0000 (00:14 +0100)]
libnsl,libresolv: do not include unneeded 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 [Wed, 23 Mar 2011 23:13:50 +0000 (00:13 +0100)]
popen.c: get rid of a 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 [Wed, 23 Mar 2011 16:08:07 +0000 (17:08 +0100)]
errno and *_init cleanup
Define a common view of __errno_location, __h_errno_location in common header
and use that everywhere, __uClibc_main.c is no special.
The rule adopted:
for enabled threads we make in libc the __GI_x() variants strong, x() weak
and (should) provide another strong x() in libpthread.
If threads are disabled, even the __GI_x() variants are weak.
_stdio_init,_stdio_term,_locale_init: make all hidden weak in common header
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, 23 Mar 2011 14:24:46 +0000 (15:24 +0100)]
librt: provide missing prototypes for mq_timedreceive,mq_timedsend
If ADVANCED_REALTIME is disabled, these prototypes are missing and
librt_hidden_proto() fails.
Makefile.in: added a comment, we build mq_timedreceive/mq_timedsend
on NPTL even if ADVANCED_REALTIME is 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 [Wed, 23 Mar 2011 14:05:06 +0000 (15:05 +0100)]
librt: get rid of visible __mq_timed(send,receive)
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, 23 Mar 2011 12:31:53 +0000 (13:31 +0100)]
Config.in.arch: remove UCLIBC_FORMAT_ELF config option
Unused option (and is in !ARCH_HAS_MMU guarded section, but depends on ARCH_HAS_MMU)
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, 23 Mar 2011 10:19:29 +0000 (11:19 +0100)]
uClibc_stdio.h: change the guard used to include stdio-lock.h
My intention was to get rid of uClibc_mutex.h completely on install, but it
introduces other dependencies. It affects anyway only the installed case.
Note: since NPTL was added, the FILE structure changes between the build
and the installed version. I wanted to fix this by the earlier commit.
Reverting the behaviour to IMHO a wrong one.
While there, remove libc-lock.h and stdio-lock.h on install (even though
glibc has them -wrongly- installed).
Reported-by: Tony Wu <tung7970@gmail.com>
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, 23 Mar 2011 10:02:27 +0000 (11:02 +0100)]
utime.c,utimes.c: include headers only when needed
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, 22 Mar 2011 07:30:39 +0000 (08:30 +0100)]
__uClibc_main.c: make __uClibc_init hidden
The linker can cope with it if it is hidden.
No need for the __GI___uClibc_init.
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, 22 Mar 2011 00:04:30 +0000 (01:04 +0100)]
clock_{g,s}ettime.c,{create,delete}_module.c: cleanup
Do not include unneeded headers.
Move headers to the needed place.
Fix a comment typo.
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, 23 Apr 2012 15:58:42 +0000 (17:58 +0200)]
wrapsyscall.c: include proper header for epoll
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, 22 Mar 2011 00:02:10 +0000 (01:02 +0100)]
add epoll_pwait()
Change const to __const while at 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 [Mon, 21 Mar 2011 23:20:36 +0000 (00:20 +0100)]
sysconf.c: the clock_getres function is good for NPTL as well
Even if glibc reuses the syscall (bloat), we can reuse the function.
Make sure, that we use it only if it is provided by the syscall
and the function is really around (UCLIBC_HAS_REALTIME disables it),
else we get into a loop.
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, 21 Mar 2011 23:19:24 +0000 (00:19 +0100)]
clock_getres.c: include unistd.h unless syscall 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 [Mon, 21 Mar 2011 23:18:05 +0000 (00:18 +0100)]
Config.in: NPTL does not compile with disabled UCLIBC_HAS_REALTIME
Select 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 [Mon, 21 Mar 2011 22:29:52 +0000 (23:29 +0100)]
chdir.c: simplify 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 [Mon, 21 Mar 2011 22:27:24 +0000 (23:27 +0100)]
memmove.c,strchrnul.c: use real name in libc_hidden_def
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, 21 Mar 2011 22:20:05 +0000 (23:20 +0100)]
bcopy.c,bzero.c: include string.h instead of _string.h
No need for internal _string.h.
For now include string.h, although the correct header would be 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 [Mon, 21 Mar 2011 22:06:05 +0000 (23:06 +0100)]
_vfprintf.c: use _fpmaxtostr.h
remove code already in _fpmaxtostr.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 [Mon, 21 Mar 2011 21:59:04 +0000 (22:59 +0100)]
_vfprintf.c: get rid of __STDIO_PRINTF_FLOAT
Rely completely on the configuration options chosen,
in this case on UCLIBC_HAS_FLOATS.
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, 21 Mar 2011 21:51:16 +0000 (22:51 +0100)]
old_vfprintf.c: use _fpmaxtostr.h
It shows that the internal functions differ...
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, 21 Mar 2011 21:34:14 +0000 (22:34 +0100)]
_fpmaxtostr.c: move common to _fpmaxtostr.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 [Mon, 21 Mar 2011 16:09:40 +0000 (17:09 +0100)]
lckpwdf.c: add back lost return
2 earlier (2006 and 2009) commits killed the proper return: -1 for failure, 0 on success
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, 21 Mar 2011 15:29:30 +0000 (16:29 +0100)]
getttyent.c: include stdio_ext.h only when needed
do not include pthread.h as the locking macro is provided by stdio.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 [Mon, 21 Mar 2011 15:26:08 +0000 (16:26 +0100)]
time.c: fix a guard to avoid a warning about unused label
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, 21 Mar 2011 14:55:51 +0000 (15:55 +0100)]
dirname.c: include only what is needed
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, 21 Mar 2011 14:34:26 +0000 (15:34 +0100)]
basename.c: define it correctly, use the proper header for each 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 [Mon, 21 Mar 2011 14:25:49 +0000 (15:25 +0100)]
malloc.h: hide internal functions (mainly debug 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 [Mon, 21 Mar 2011 14:01:50 +0000 (15:01 +0100)]
malloc-simple: make _aligned_blocks static and __libc_free_aligned hidden
move __libc_free_aligned prototype up to a common place.
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, 21 Mar 2011 13:43:50 +0000 (14:43 +0100)]
malloc: use uClibc_mutex.h provided macros consequently
use the __UCLIBC_MUTEX macros
remove unused code
remove duplicated code (likely,unlikely)
hide internal __x() functions (mainly debug 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 [Mon, 21 Mar 2011 13:29:54 +0000 (14:29 +0100)]
memalign.c: does not use MAX, do not include param.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 [Mon, 21 Mar 2011 12:08:33 +0000 (13:08 +0100)]
_vfprintf.c: fix typo s/NL_MAX_ARG/NL_ARGMAX/
NL_MAX_ARG does not exist.
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, 21 Mar 2011 12:02:20 +0000 (13:02 +0100)]
_stdio.h: move _load_inttype.h and _store_inttype.h prototypes here
Use one common 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 [Mon, 21 Mar 2011 11:53:25 +0000 (12:53 +0100)]
socketcalls.c: prefer using recvfrom in recv and sendto in send
Make socketcall the last alternative.
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, 20 Mar 2011 03:24:34 +0000 (04:24 +0100)]
Rules.mak: include KERNEL_HEADERS last, even there it is wrong
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, 20 Mar 2011 03:20:23 +0000 (04:20 +0100)]
Rules.mak: change the way -include is used
Other compilers do not expect absolute path after -include,
they want to find the included file by path search (-I).
While there, prefer $(TARGET_ARCH) before common path.
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, 20 Mar 2011 02:20:27 +0000 (03:20 +0100)]
do not define _ISOC99_SOURCE in specific files
This should come properly from features.h or the build.
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, 20 Mar 2011 02:10:54 +0000 (03:10 +0100)]
remove duplicate prototypes for _stdio_term().
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>