OSDN Git Service
Mike Frysinger [Thu, 8 Oct 2009 02:51:55 +0000 (22:51 -0400)]
clean up O_CLOEXEC handling
Drop the "#ifndef O_CLOEXEC" cruft, enable O_CLOEXEC in most fcntl.h
headers, and import __ASSUME_O_CLOEXEC from glibc.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Thu, 8 Oct 2009 02:46:10 +0000 (22:46 -0400)]
fcntl.h: drop unused/dead O_STREAMING
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Thu, 8 Oct 2009 02:24:22 +0000 (22:24 -0400)]
ldso: use MAP_FAILED with ld.so.cache
Rather than use our own custom casted -1 value, just use the MAP_FAILED
that common code already sets up for us for mmap().
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Bernhard Reutner-Fischer [Tue, 6 Oct 2009 17:04:42 +0000 (19:04 +0200)]
fix coding style
TODO: use likely/unlikely
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer [Tue, 6 Oct 2009 16:51:08 +0000 (18:51 +0200)]
commentary typo fix
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer [Tue, 6 Oct 2009 16:50:19 +0000 (18:50 +0200)]
trim whitespace
and wrap superlong line.
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer [Tue, 6 Oct 2009 10:59:17 +0000 (12:59 +0200)]
whitespace cleanup
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Austin Foxley [Mon, 5 Oct 2009 18:01:30 +0000 (11:01 -0700)]
sparc: add stubs for more of the _Q* ops
Thanks to Jason Woodward <jason.woodward@timesys.com>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Bernhard Reutner-Fischer [Mon, 5 Oct 2009 11:04:12 +0000 (13:04 +0200)]
descriptive error message
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Austin Foxley [Mon, 5 Oct 2009 00:48:54 +0000 (17:48 -0700)]
mips: fix typo in elfinterp.c
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Austin Foxley [Sat, 26 Sep 2009 16:34:19 +0000 (09:34 -0700)]
Config.in: enable TLS config option only for nptl
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Austin Foxley [Thu, 24 Sep 2009 06:43:58 +0000 (23:43 -0700)]
errno.c: add tls versions of errno and h_errno
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Austin Foxley [Sat, 19 Sep 2009 17:11:14 +0000 (10:11 -0700)]
dl-support.c: add tls support
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Austin Foxley [Sat, 19 Sep 2009 17:09:39 +0000 (10:09 -0700)]
resolv.c: add support for per thread res_state
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Austin Foxley [Sat, 19 Sep 2009 17:04:05 +0000 (10:04 -0700)]
ldso/: tls support for dynamic linker
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Austin Foxley [Sat, 19 Sep 2009 16:54:20 +0000 (09:54 -0700)]
include/: add tls errno and res_state
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Daniel Jacobowitz [Fri, 25 Sep 2009 22:48:39 +0000 (18:48 -0400)]
mips: do not save variables in "hi" or "lo" across system calls
The kernel does not save these registers across system calls. GCC 4.4
has gotten more aggressive about using them for temporary variables, so
this shows up as intermittent crashes if you use a recent compiler.
Signed-off-by: Daniel Jacobowitz <dan@codesourcery.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Austin Foxley [Fri, 25 Sep 2009 19:55:30 +0000 (12:55 -0700)]
sparc specific bits/socket.h
use socketcall for sparc32 since it does not have
the individual socket syscalls
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Austin Foxley [Wed, 23 Sep 2009 14:24:20 +0000 (07:24 -0700)]
doc/: typo fix
noted by Carlo Zinato <c.zinato@viscount.it>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Stephan Raue [Tue, 22 Sep 2009 01:35:40 +0000 (18:35 -0700)]
add timerfd syscall and header
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Signed-off-by: Stephan Raue <mailinglists@openelec.tv>
Austin Foxley [Mon, 21 Sep 2009 16:16:52 +0000 (09:16 -0700)]
sparc sigaction.c: fix the noted bugs by syncing up with glibc
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Denys Vlasenko [Sat, 19 Sep 2009 02:00:48 +0000 (04:00 +0200)]
sigpause: remove libc_hidden_proto/def
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 19 Sep 2009 01:41:14 +0000 (03:41 +0200)]
sigwait: remove __sigwait and __GI_sigwait symbols - they are unused
sigwait is not called from any uclibc function, so "hidden symbol"
trick is not needed on it. __sigwait also is never used,
and it's not clear why it even existed.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 19 Sep 2009 00:51:20 +0000 (02:51 +0200)]
raise: remove unused hidden weak symbol __raise
It is not used by anybody, otherwise users of dynamically linked uclibc
would notice - it is not exported from libuClibc-x.x.x.so
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 19 Sep 2009 00:14:12 +0000 (02:14 +0200)]
libc/misc/wctype/_wctype.c: make it more readable. no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 19 Sep 2009 00:09:48 +0000 (02:09 +0200)]
remove a few more empty #if/#endif pairs
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Fri, 18 Sep 2009 21:07:26 +0000 (23:07 +0200)]
convert // comments to /**/; remove empty #if/#endif pairs. no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Bernhard Reutner-Fischer [Fri, 18 Sep 2009 18:57:40 +0000 (20:57 +0200)]
trim Experimentally off and uncommented hidden
sed -i -e '/Experimentally off - /d' $(grep -rl "Experimentally off - " *)
sed -i -e '/^\/\*[[:space:]]*libc_hidden_proto(/d' $(grep -rl "libc_hidden_proto" *)
should be a nop
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer [Fri, 18 Sep 2009 14:07:31 +0000 (16:07 +0200)]
fix make {,install_}{,host}utils
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer [Fri, 18 Sep 2009 13:45:50 +0000 (15:45 +0200)]
document ARCH=
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer [Thu, 17 Sep 2009 08:34:22 +0000 (10:34 +0200)]
always define float_t as float
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer [Thu, 17 Sep 2009 07:29:59 +0000 (09:29 +0200)]
No need for a libresolv stub
libresolv is just a stub anyway, default to not building it.
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer [Wed, 16 Sep 2009 08:00:56 +0000 (10:00 +0200)]
handle make ARCH= config
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Mike Frysinger [Tue, 15 Sep 2009 22:07:29 +0000 (18:07 -0400)]
sys/mount.h: sync with latest glibc
Newer glibc adds a few more MNT_* flags, so import them.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Andrew Stubbs [Tue, 15 Sep 2009 22:02:48 +0000 (18:02 -0400)]
sh/user.h: clean up conflicts from kernel user.h
This patch makes sufficient modifications to the SH sys/user.h to be
able to build and run gdbserver with Linux kernel 2.6.30.
The problem is that both the kernel and library headers define the same
symbols, thus making it impossible in include both headers. The patch
undefines the kernel symbols in favour of the library symbols.
Signed-off-by: Andrew Stubbs <ams@codesourcery.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Thu, 13 Aug 2009 11:49:07 +0000 (07:49 -0400)]
daemon: fix up INTERNAL_SYSCALL() usage
Make sure we declare the error properly in case a port uses it, and fix the
invocation of exit(). Since clone() will be returning a pid, assume that
the value will not have the MSB set (negative) to simplify the error test a
bit more. If gcc supports it, force this function to always be heavily
optimized in a bid to avoid stack usage as much as possible.
Signed-off-by: James Coleman <james.coleman@ubicom.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Thu, 13 Aug 2009 11:48:55 +0000 (07:48 -0400)]
setup attribute_optimize which comes with gcc-4.4+
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Bernhard Reutner-Fischer [Mon, 14 Sep 2009 14:00:24 +0000 (16:00 +0200)]
Revert "default ?conf to native arch"
This reverts commit
6625518cd6894338937a74ca6b9187b7b8167b03.
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Denys Vlasenko [Tue, 8 Sep 2009 23:34:30 +0000 (01:34 +0200)]
sparc/sigaction.c: note possible bugs by comments. style fixes
no code is actually changed
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Tue, 8 Sep 2009 22:38:41 +0000 (00:38 +0200)]
strsignal.c: whitespace fixes, no code changes (verified with objdump)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Tue, 8 Sep 2009 20:30:22 +0000 (22:30 +0200)]
time.c: style cleanup. no code changes (verified with objdump)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Tue, 8 Sep 2009 20:03:51 +0000 (22:03 +0200)]
simpler and shorter read_TZ_file() helper
text data bss dec hex filename
- 1109 8 76 1193 4a9 libc/misc/time/tzset.o
+ 1095 8 76 1179 49b libc/misc/time/tzset.o
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 6 Sep 2009 19:58:17 +0000 (21:58 +0200)]
docs/defines.txt: add a note about possibly obsolete __LDBL_COMPAT
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 6 Sep 2009 19:51:10 +0000 (21:51 +0200)]
wordexp.c: cleanup - remove old hidden_proto's; remove unused parameter
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sun, 6 Sep 2009 19:48:16 +0000 (21:48 +0200)]
wordexp.c: fix a bug where we might close stdout
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Mike Frysinger [Sun, 6 Sep 2009 16:12:12 +0000 (12:12 -0400)]
fstatat: fix up behavior on 32/64 bit hosts
The fstatat() syscall is a little funky in that it sometimes changes name
between 32 and 64 bit hosts, but it should always operate on a 64bit stat
structure. So for the fstatat() function, make sure we convert it from a
64bit kstat to a 32bit stat.
Along these lines, we need to restore the __xstat32_conv() function.
Reported-by: Timo Teräs <timo.teras@iki.fi>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Sun, 6 Sep 2009 15:15:29 +0000 (11:15 -0400)]
xstatconv: drop useless hidden code
The xstatconv.h header already sets up hidden prototypes for us, so no
need to duplicate the code.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Khem Raj [Sun, 6 Sep 2009 08:02:02 +0000 (01:02 -0700)]
Revert "syscall.c: Use common syscall.c for ARM"
This reverts commit
b1913a876059949e6c309bafade55e9425ef33fb.
OABI is still a requirement. So we override the common syscall
implementation specifically for arm port.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Denys Vlasenko [Sun, 6 Sep 2009 02:34:07 +0000 (04:34 +0200)]
md5 passwords: reduce static usage
text data bss dec hex filename
- 1875 0 120 1995 7cb libcrypt/md5.o
+ 1855 0 35 1890 762 libcrypt/md5.o
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 5 Sep 2009 23:03:10 +0000 (01:03 +0200)]
rexec.c: style fixes, no code chages (verified with objdump)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 5 Sep 2009 22:54:06 +0000 (00:54 +0200)]
rexec.c: small code shrink
text data bss dec hex filename
- 1223 0 0 1223 4c7 libc/inet/rpc/rexec.o
+ 1214 0 0 2239 8bf libc/inet/rpc/rexec.o
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 5 Sep 2009 22:52:35 +0000 (00:52 +0200)]
comment out "int rexecoptions"; make "char ahostbuf[]" static (was hidden)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 5 Sep 2009 21:37:40 +0000 (23:37 +0200)]
do not save/restore errno around free() calls
In any non-buggy program free() does not fail.
And when it fails in a buggy program, the failure
is usually fatal (heap corruption and segfault).
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 5 Sep 2009 21:35:09 +0000 (23:35 +0200)]
do not pass 3rd param to open() which do not create files
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 5 Sep 2009 21:30:57 +0000 (23:30 +0200)]
wtmp code: style fixes, no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 5 Sep 2009 21:25:38 +0000 (23:25 +0200)]
remove(): slight readabability tweak, no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 5 Sep 2009 21:24:20 +0000 (23:24 +0200)]
opensock: work correctly on IPv6-only config
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 5 Sep 2009 20:15:24 +0000 (22:15 +0200)]
lckpwdf: remove a wrong comment and one write-only variable
no code changes (verified with objdump)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 5 Sep 2009 20:04:36 +0000 (22:04 +0200)]
CLOEXEC: use open(CLOEXEC) if exist; do not check fcntl(FD_CLOEXEC) failure
text data bss dec hex filename
- 370 0 0 370 172 libc/misc/dirent/opendir.o
+ 366 0 0 366 16e libc/misc/dirent/opendir.o
- 375 4 0 379 17b libc/pwd_grp/lckpwdf.o
+ 356 4 0 360 168 libc/pwd_grp/lckpwdf.o
- 248 0 0 248 f8 librt/shm.o
+ 209 0 0 209 d1 librt/shm.o
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 5 Sep 2009 19:29:48 +0000 (21:29 +0200)]
utent.c: fix a few bugs, and shrink a bit
bug #1:
static_fd = -1;
close(static_fd);
DOH!
bug #2:
if (utmp_fd == -1) {
__setutent();
}
if (utmp_fd == -1) {
return NULL;
}
if utmp_fd == -1, we call _setutent().
if __setutent() opens a fd, utmp_fd (a parameter)
wouldn't change, the second check is bogus.
We need to use static_fd instead in second check.
Which makes clear that having utmp_fd parameter
is wrong. See the patch for a complete fix.
Shrink comes from simplifying fcntl(static_fd, F_SETFD, FD_CLOEXEC):
text data bss dec hex filename
- 661 8 384 1053 41d libc/misc/utmp/utent.o
+ 604 8 384 996 3e4 libc/misc/utmp/utent.o
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Sat, 5 Sep 2009 19:28:31 +0000 (21:28 +0200)]
math.h: fix trivial typo (missing !): !defined __NO_LONG_DOUBLE_MATH
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Mike Frysinger [Mon, 31 Aug 2009 08:48:04 +0000 (04:48 -0400)]
drop last _syscall6 checks
If your arch does not support _syscall6(), it is broken anyways.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Bernhard Reutner-Fischer [Thu, 12 Mar 2009 16:51:53 +0000 (16:51 +0000)]
honour NO_LONG_DOUBLE_MATH
This fixes compilation errors on hosts that turn off long double support
for C99 like powerpc32.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Khem Raj [Sun, 30 Aug 2009 18:42:28 +0000 (11:42 -0700)]
Build posix_fadvice{64} only when UCLIBC_HAS_ADVANCED_REALTIME is set.
Right now for ARM, MIPS, Xtensa and powerpc posix_fadvise
routines are included conditionally. They should only be
enabled when UCLIBC_HAS_ADVANCED_REALTIME is set. Also fix
code style in powerpc/posix_fadvise64.c
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Khem Raj [Sun, 30 Aug 2009 08:07:37 +0000 (01:07 -0700)]
Add posix_fadvise{64}.c routines to Makefile.arch
Fix the argument types to operate on long
and correct a typo.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Khem Raj [Sun, 30 Aug 2009 07:30:02 +0000 (00:30 -0700)]
Add posix_fadvise and posix_fadvise64 for powerpc
The syscall is having different number of params
and in one case the parameters are passed in differently.
This patch add powerpc specific versions of these
functions.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Bernhard Reutner-Fischer [Tue, 25 Aug 2009 12:52:08 +0000 (14:52 +0200)]
default ?conf to native arch
Default is now the native arch, you can start a fresh .config via
'make ARCH=ia64 menuconfig'.
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer [Tue, 25 Aug 2009 08:34:09 +0000 (10:34 +0200)]
use CURDIR
use CURDIR instead of spawning a separate shell as suggested by
Mike.
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer [Wed, 19 Aug 2009 11:29:41 +0000 (13:29 +0200)]
use pwd, not PWD
PWD may point to somewhere else if we're run from another make
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer [Mon, 17 Aug 2009 17:33:41 +0000 (19:33 +0200)]
always define CONFIG_SHELL
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer [Mon, 17 Aug 2009 17:17:00 +0000 (19:17 +0200)]
support building out-of-tree
Handle O=
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer [Mon, 17 Aug 2009 11:44:25 +0000 (13:44 +0200)]
add hidden aliases for newer regex search functions
Fixes
3575b741754b391a27e33bb1866bdb29131b7fea
which only changed the old impl but not the new one.
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Maxim Kuvyrkov [Tue, 4 Aug 2009 18:51:54 +0000 (11:51 -0700)]
m68k syscall: switch to common code
Signed-off-by: Maxim Kuvyrkov <maxim@codesourcery.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Bernhard Reutner-Fischer [Mon, 10 Aug 2009 09:49:06 +0000 (11:49 +0200)]
define attribute_noreturn
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer [Wed, 5 Aug 2009 20:56:03 +0000 (22:56 +0200)]
handle _SC_NPROCESSORS_CONF and _SC_NPROCESSORS_ONLN
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Bernhard Reutner-Fischer [Wed, 5 Aug 2009 20:54:46 +0000 (22:54 +0200)]
fix compilation
wrong placed attribute_noreturn
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Joseph Myers [Tue, 4 Aug 2009 15:45:53 +0000 (15:45 +0000)]
Fix daemon build for no-MMU no-threads.
CLONE_VM (used in no-MMU daemon) is defined in <bits/sched.h>. A
build with threads ends up including <sched.h> via <pthread.h> via
<bits/uClibc_mutex.h>; this indirect include does not happen for a
build without threads, so this patch adds a direct <sched.h> include.
Signed-off-by: Joseph Myers <joseph@codesourcery.com>
Bernhard Reutner-Fischer [Sat, 1 Aug 2009 09:21:52 +0000 (11:21 +0200)]
ioperm is not used internally, remove hidden_proto
Without a hidden_def we'd end up with __GI_ioperm which is wrong.
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Khem Raj [Sat, 1 Aug 2009 08:41:23 +0000 (01:41 -0700)]
Makefile.in: Let make release or make dist to use git.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Khem Raj [Sat, 1 Aug 2009 08:40:34 +0000 (01:40 -0700)]
Rules.mak: Fix references to svn.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Khem Raj [Sat, 1 Aug 2009 07:58:01 +0000 (00:58 -0700)]
syscall.c: Use common syscall.c for ARM
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Khem Raj [Sat, 1 Aug 2009 07:57:05 +0000 (00:57 -0700)]
fnmatch.c: Include unistd.h before undefining _LIBC.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Khem Raj [Fri, 31 Jul 2009 21:17:31 +0000 (14:17 -0700)]
fnmatch.c: Change scope of posixly_correct to be global.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Carmelo Amoroso [Thu, 30 Jul 2009 12:21:20 +0000 (14:21 +0200)]
test_librt: Fix shmtest.c test case
Fix wrong use of sizeof (array) to retrieve the number
of elements; it was causing accessing beyond the array's boundaries.
Below the output of the testcase showing an attempt to read beyond
the array (actually 11 elements in size).
root@amorosoc:/home/carmelo# ./shmtest
Compare memory error : Offset 11, local
4262624, shm 224
Compare memory error : Offset 12, local
693493828, shm 68
Compare memory error : Offset 13, local
693489168, shm 16
Compare memory error : Offset 14, local
693826444, shm 20
.....
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Carmelo Amoroso [Thu, 30 Jul 2009 09:38:26 +0000 (11:38 +0200)]
test_librt: Fix build system for shm_open/unlink tests
Fix and align build system of librt tests to the test suite.
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Carmelo Amoroso [Wed, 29 Jul 2009 16:50:58 +0000 (18:50 +0200)]
build: Include Makefile.commonarch from common Makefile.in
Avoid including akefile.commonarch in each Makefile.arch.
Include it instead from Makefile.in just after the arch specific
Makefile.arch
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Bernhard Reutner-Fischer [Tue, 28 Jul 2009 13:39:52 +0000 (15:39 +0200)]
remove erroneous ';'
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Mike Frysinger [Sun, 26 Jul 2009 20:09:10 +0000 (16:09 -0400)]
linuxthreads.old: define pthread_yield to sched_yield
The pthread_yield() function in linuxthreads does the same thing as the
standardized sched_yield() function, so add a simple define for it to make
porting GNU apps easier.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Sun, 26 Jul 2009 19:51:06 +0000 (15:51 -0400)]
force arches to provide sys/user.h
Now that Linux is no longer installing linux/user.h, arches will have to
provide their own.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Sun, 26 Jul 2009 19:23:32 +0000 (15:23 -0400)]
add missing UTIME_* defines for *at funcs
I always forget that many arches have their own bits/stat.h ...
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Sun, 26 Jul 2009 19:17:21 +0000 (15:17 -0400)]
enable nanosecond stat support for everyone
Fill out the stat structure so that the nanosecond resolution support is
always available. There is a small code size increase for a few ports
(three additional assignments in xstatconv), but otherwise everything
should remain the same.
While we're here, punt __old_kernel_stat from the few headers that still
define it as it is unused in uClibc and causes compile errors after these
nanosecond changes.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Sun, 26 Jul 2009 18:31:24 +0000 (14:31 -0400)]
do not force LFS for Blackfin systems
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Sun, 26 Jul 2009 18:25:08 +0000 (14:25 -0400)]
enable sbrk() for everyone
The sbrk() function can be used to merely query sizes and for that, no-mmu
works the same as mmu. It can also sometimes increase data segments on
no-mmu systems provided the trailing memory is free. So, there is no real
reason to exclude this function for no-mmu ports.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Sun, 26 Jul 2009 17:37:07 +0000 (13:37 -0400)]
add missing UTIME_* defines for *at funcs
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger [Thu, 23 Jul 2009 09:38:44 +0000 (05:38 -0400)]
Blackfin: rename __dl_boot to __start
The entry symbol is __start rather than __dl_boot. While in the past this
was silently ignored, now with common code checking the _start symbol in C
code, we end up with link errors:
ldso/ldso/ld-uClibc_so.a(ldso.oS): In function `__dl_get_ready_to_run':
ldso/ldso/ldso.c:(.text+0x2b30): undefined reference to `__start'
collect2: ld returned 1 exit status
make[1]: *** [lib/ld-uClibc.so] Error 1
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Denys Vlasenko [Thu, 23 Jul 2009 11:42:37 +0000 (13:42 +0200)]
test/librt: make it build again
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Thu, 23 Jul 2009 11:27:05 +0000 (13:27 +0200)]
testsuite: fix one bug, one warning; extend README (one TODO added)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Thu, 23 Jul 2009 11:26:08 +0000 (13:26 +0200)]
testsuite: use KERNEL_HEADERS
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Denys Vlasenko [Thu, 23 Jul 2009 11:23:49 +0000 (13:23 +0200)]
fix lib_hidden_proto's which have extra ;
This was making them appear in sanitized headers.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Mike Frysinger [Thu, 23 Jul 2009 09:27:24 +0000 (05:27 -0400)]
fix dl_iterate_phdr() for FDPIC systems
The dlpi_addr isn't a simple Elf_Addr type for FDPIC systems, so we can't
just assign 0 to it to initialize.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>