commit 71873086975c1a7af5a5b94e9c3d77dcde556788 Author: Bernhard Reutner-Fischer Date: Wed Apr 11 19:01:57 2012 +0200 Release 0.9.33.1 Signed-off-by: Bernhard Reutner-Fischer commit c95a3dcf5e0153ea0cc9284879fe59e3d6e45612 Author: Mike Frysinger Date: Tue Apr 10 00:27:04 2012 -0400 mmap64: always use unsigned 64bit offsets The current code will sometimes cast the offset to an unsigned long. On 32bit systems, that doesn't make much sense since we always know that the off64_t type is 64bits. So drop the ifdef logic, cast it to an unsigned 64bit value, and then do the shift. If the system is 32bits, and the address is still too large, then there's really nothing we could do about it anyways, so the extra ifdef logic wasn't helping. URL: https://bugs.busybox.net/show_bug.cgi?id=3853 Signed-off-by: Mike Frysinger commit b98c5d51c33acd1d2c9efec0f827f164c8f15daf Author: Mike Frysinger Date: Sun Apr 8 15:36:28 2012 -0400 alpha: trim crt code to fix build errors Otherwise we get: /tmp/cc14nHjG.s: Assembler messages: /tmp/cc14nHjG.s: Error: .size expression for _init does not evaluate to a constant /tmp/cc14nHjG.s: Error: .size expression for _fini does not evaluate to a constant Signed-off-by: Mike Frysinger commit f8413d149569849fb9655b07bcb97fc6840fc590 Author: Kevin Cernekee Date: Sun Apr 8 11:43:02 2012 -0700 signalfd.h: Use new "bits/" scheme for arch-specific flags glibc has split off the arch-specific flag definitions (like SFD_NONBLOCK) into /bits/signalfd.h, so that there are no longer multiple redundant copies of the entire header file. We will adopt the same scheme in uClibc. Special cases are included for: alpha mips sparc hppa was omitted because it has not been updated in glibc. All others use the common definition. Signed-off-by: Kevin Cernekee Signed-off-by: Mike Frysinger commit f18dbba96f13408a66ed898db6080c05b4255f50 Author: Kevin Cernekee Date: Sun Apr 8 11:43:01 2012 -0700 timerfd.h: Use new "bits/" scheme for arch-specific flags glibc has split off the arch-specific flag definitions (like TFD_NONBLOCK) into /bits/timerfd.h, so that there are no longer multiple redundant copies of the entire header file. We will adopt the same scheme in uClibc. Special cases are included for: alpha mips sparc hppa was omitted because it has not been updated in glibc. All others use the common definition. Signed-off-by: Kevin Cernekee Signed-off-by: Mike Frysinger commit 825cf58fdefe035a1dc0119b4bf81b8c4a748b4b Author: Kevin Cernekee Date: Sun Apr 8 11:43:00 2012 -0700 inotify.h: Use new "bits/" scheme for arch-specific flags glibc has split off the arch-specific flag definitions (like IN_NONBLOCK) into /bits/inotify.h, so that there are no longer multiple redundant copies of the entire header file. We will adopt the same scheme in uClibc. Special cases are included for: alpha mips sparc hppa was omitted because it has not been updated in glibc. All others use the common definition. Signed-off-by: Kevin Cernekee Signed-off-by: Mike Frysinger commit f2a4bbe97f4d4fd48516112667dc9d8dda73bc50 Author: Kevin Cernekee Date: Sun Apr 8 11:42:59 2012 -0700 inotify_rm_watch: Change second argument to int 2009-01-30 Ulrich Drepper [BZ #7040] * sysdeps/unix/sysv/linux/sys/inotify.h: Second parameter of inotify_rm_watch should have type int. This change allows us to copy inotify.h verbatim from glibc into uClibc. Signed-off-by: Kevin Cernekee Signed-off-by: Mike Frysinger commit 2cd6bc45aff3dda813974415c160f631f63e78bb Author: Filippo Arcidiacono Date: Fri Apr 6 11:18:35 2012 +0200 ldso: fix fdpic support broken from prelink patch The fdpic support has been broken since the prelink support was added, because it didn't take into account DL_LOADADDR_TYPE could be a different type of ElfW(Addr). Signed-off-by: Filippo Arcidiacono Signed-off-by: Mike Frysinger commit 6dc563a7f56c8e1f97d39aa489fb68a28a4c7bbf Author: Mike Frysinger Date: Mon Apr 2 00:37:10 2012 -0400 fchmodat: fix handling of flags The Linux syscall takes 3 args, not 4. We have to process flags in userspace ourselves. Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit 5d7ee2fe0f12c5eb81361303a6bf03b597909237 Author: Bernhard Reutner-Fischer Date: Wed Mar 28 09:44:53 2012 +0200 stdio: Fix char signedness in _load_inttype() Signed-off-by: Bernhard Reutner-Fischer commit f2140b3ca3b3b0b5f069acae2fb4c5fba5b796dd Author: Bernhard Reutner-Fischer Date: Tue Mar 27 13:38:58 2012 +0200 buildsys: Fix typo in check-as-var handling Missing second expansion with _v. This led to wrong args passed down to assembler. Signed-off-by: Bernhard Reutner-Fischer commit f597997376006df052ff5b5f49e77fa23261e66f Author: Mike Frysinger Date: Mon Mar 26 23:54:32 2012 -0400 ldso: bfin: add alias from __start to _start On Blackfin systems, we have underscore prefixes in our ABI. So instead of _start, we use __start. However, the makefile explicitly sets _start as the entry point to support toolchains that implicitly use other symbols as the default entry. It's easy enough to add a hidden alias in the Blackfin code for free to support this. Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit 82f0cd5bbea70faf62b31afd99e4aee8b9e542d0 Author: Mike Frysinger Date: Mon Mar 26 22:58:37 2012 -0400 ldso: bfin: tweak style No functional changes here. We don't need line continuations as gcc is smart enough to merge the multiple strings for us. Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit 0bd15c132e832d67c101975457304934fa3826cd Author: Bernhard Reutner-Fischer Date: Wed Mar 7 21:09:05 2012 +0100 .gitignore: remove obsolete entries Signed-off-by: Bernhard Reutner-Fischer commit f94086fbc258a051476dfb2e63314236954e4ea9 Author: Mike Frysinger Date: Mon Mar 26 22:13:11 2012 -0400 arm: disable ioperm/iopl stubs ARM always provides its own userspace funcs for ioperm/iopl. They've never had syscalls. So disable the stubs on ARM to avoid multiple definition errors. Signed-off-by: Mike Frysinger commit 72e19c47f6edb22b6187a714c29f46a01824b2a0 Author: Mike Frysinger Date: Mon Mar 26 21:44:40 2012 -0400 Revert "Fix redefinition of ioperm and iopl in stubs.c and arm/{ioperm.c,iopl.c}" This reverts commit 3bcd031f97d61a8f732d865a0f4248aed2d191ab. The arm code is supposed to provide its own userspace ioperm/iopl functions. They've never had system calls for these funcs. Signed-off-by: Mike Frysinger commit fef3950c0d5bbd6c18a305e173dc2d5cf38886ea Author: Jason Woodward Date: Tue Feb 7 19:07:57 2012 -0500 Fix redefinition of ioperm and iopl in stubs.c and arm/{ioperm.c,iopl.c} This fixes the following link failure: LD libuClibc-0.9.33.so libc/libc_so.a(stubs.os): In function `sync_file_range': stubs.c:(.text+0x0): multiple definition of `ioperm' libc/libc_so.a(ioperm.os):ioperm.c:(.text+0x260): first defined here libc/libc_so.a(stubs.os): In function `sync_file_range': stubs.c:(.text+0x0): multiple definition of `iopl' libc/libc_so.a(iopl.os):iopl.c:(.text+0x0): first defined here collect2: ld returned 1 exit status make[1]: *** [lib/libc.so] Error 1 Signed-off-by: Jason Woodward Signed-off-by: Bernhard Reutner-Fischer commit a9924791ff02eeca8da99d9199b7f3bd09edf723 Author: Mike Frysinger Date: Sun Nov 27 01:58:40 2011 -0500 ldso: use ELF_xxx()/ElfW() helpers They expand into the same code, but using the ELF_xxx()/ElfW() macros makes it much easier to spot similarities between code bases. Acked-by: Bernhard Reutner-Fischer Acked-by: Carmelo Amoroso Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit 6f9cb761b681d6d0b6466aab83bed25d2f4eb98a Author: Denys Vlasenko Date: Sun Mar 11 22:27:08 2012 -0700 stdio: prevent retries on fclose/fflush after write errors Some test results: The longer patch posted at Sun 14:46:24 +0100 made my target system unbootable. I did not attempt to troubleshoot it, as we are focusing our efforts on the shorter patch now. The shorter patch posted at Mon 01:50:27 +0100 is a good start, but it didn't completely fix the problem for me. I am posting an updated version with a few changes at the end of this message; the patched uClibc 0.9.32.1 tree passes both of my test cases. My changes: 1) Need to break out of the loop on "hard" errors. Otherwise the library call never returns: open("/dev/null", O_RDONLY) = 4 dup2(4, 1) = 1 write(1, "hello world\n", 12) = -1 EBADF (Bad file descriptor) write(1, "hello world\n", 12) = -1 EBADF (Bad file descriptor) write(1, "hello world\n", 12) = -1 EBADF (Bad file descriptor) write(1, "hello world\n", 12) = -1 EBADF (Bad file descriptor) ... 2) Move all of the error handling logic back into the "else" clause. In particular, I believe we do not want to be checking errno unless __WRITE() had indicated a failure, since the value may be undefined: if (errno == EINTR || errno == EAGAIN /* do we have other "soft" errors? */ ) { 3) Whitespace/indentation consistency. -- 8< -- From: Denys Vlasenko Currently, uclibc retains buffered data on stdio write errors, and subsequent fclose and fflush will try to write it out again (in most cases, in vain). Which results in something like this: On Wednesday 26 January 2011 13:21, Baruch Siach wrote: > Hi busybox list, > > I'm running the following command under strace (thanks Rob): > > echo 56 > /sys/class/gpio/export > > and I see the following output: > > write(1, "56\n", 3) = -1 EBUSY (Device or resource busy) > write(1, "5", 1) = 1 > > The first EBUSY is OK, since GPIO 56 is already requested. But the second > write() attempt seems strange, and leads to an unwanted outcome. GPIO 5 gets > exported. This patch prevents that. Signed-off-by: Denys Vlasenko Signed-off-by: Kevin Cernekee Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit 06e3b3e5ff09ca7d295f9bf670cf77297f543cda Author: Denys Vlasenko Date: Sun Mar 11 13:33:49 2012 +0100 __stdio_WRITE: make code more readable. No code changes Pulled assignments out of ifs. do {...} while (1); is a weird method of writing "loop forever", thus rewrote it. No code changes: objdump output is the same. Signed-off-by: Denys Vlasenko Signed-off-by: Bernhard Reutner-Fischer commit d05f7f22f7d736d87aa848c5677b5ba4c2d9fc5f Author: Steve Bennett Date: Fri Mar 16 10:45:32 2012 +1000 microblaze: add sys/user.h A microblaze-specific sys/user.h is needed for (e.g.) strace, so use this version from glibc. Signed-off-by: Steve Bennett Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit 4afbf96175c7626b3e958b48736576331da8de0b Author: Mike Frysinger Date: Mon Mar 5 01:37:07 2012 -0500 librt: refactor source selection Should make adding more knob control simpler as people only need to modify one variable now (librt_filter_SRC). Signed-off-by: Mike Frysinger Signed-off-by: Bernhard Reutner-Fischer commit 9193a76bb0234d8a0be3ac8d256210fea03e4978 Author: Bernhard Reutner-Fischer Date: Mon Mar 26 13:15:57 2012 +0200 nptl: remove sigprocmask and sigfillset from libpthread Having them defined in both places was causing errors with static linking Signed-off-by: Bernhard Reutner-Fischer commit f4abd0d3e944af48c9bd6988816e26e8bfbe80ed Author: Bernhard Reutner-Fischer Date: Mon Mar 26 12:39:59 2012 +0200 Revert "nptl: remove sigaction, sigprocmask, and sigfillset from libpthread" This reverts commit 34b59601212249559bf3e99934ea878ebe20dcff. commit 985480d4dd3f77a1f510c948a905604c294b2d2a Author: Peter S. Mazinger Date: Thu May 12 23:47:00 2011 +0200 include pthreadP.h for SIGCANCEL based on a patch from Kevin Cernekee Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer commit 34b59601212249559bf3e99934ea878ebe20dcff Author: Austin Foxley Date: Fri Apr 22 15:06:18 2011 -0700 nptl: remove sigaction, sigprocmask, and sigfillset from libpthread Having them defined in both places was causing errors with static linking Signed-off-by: Austin Foxley Signed-off-by: Bernhard Reutner-Fischer commit 9f598f5ae8fa49a04982abee06d5e57a1df4b6e9 Author: Khem Raj Date: Mon Feb 13 11:37:26 2012 -0800 arm: Do not use 'sed -r' to calculate IS_EABI -r is not available on BSD sed so to keep compatibility avoid using it. Signed-off-by: Khem Raj Signed-off-by: Bernhard Reutner-Fischer commit 45b0b1b56793969b8cdf16411fba6e0c9e87559d Author: Filippo Arcidiacono Date: Fri Feb 3 16:41:44 2012 +0100 libdl: fix memleak for local scope of dlopened's needed libraries Signed-off-by: Filippo Arcidiacono Signed-off-by: Carmelo Amoroso Signed-off-by: Bernhard Reutner-Fischer commit 5653245fa516c5823226582d9a02b1b18d5e8925 Author: Carmelo Amoroso Date: Tue Feb 7 16:02:48 2012 +0100 tests: fix tests build (LDFLAGS_GNUHASH not longer defined) Since commit a899b909, variable LDFLAGS_GNUHASH has been replaced by CFLAG_-Wl--hash-style=gnu. This change has not been reported to the tests buildsys. Signed-off-by: Carmelo Amoroso commit b813377f6c746118a9d2625e6b29ffeec4233663 Author: Khem Raj Date: Fri Feb 3 20:06:55 2012 -0800 lstat/stat/fstat: Use 64bit version of syscall if available This is needed for stat'ing loop devices > 255 since otherwise kernel returns EOVERFLOW becasue it needs st_rdev/st_dev to be larger than 16bits but in kernel it uses __old_kernel_stat for stat syscall which has st_rdev/st_dev as unsigned short Add a testcase Signed-off-by: Khem Raj Signed-off-by: Bernhard Reutner-Fischer commit ca457af92be7835edf77f34bead94f504fbc2d4b Author: Khem Raj Date: Fri Feb 3 10:57:44 2012 -0800 Declare __err and pass it to INTERNAL_SYSCALL_NCS so subsequent macros can use it Signed-off-by: Khem Raj Signed-off-by: Bernhard Reutner-Fischer commit 1548ee3ca582f3732136e71613c87c16230f71cc Author: Bernhard Reutner-Fischer Date: Wed Feb 1 23:51:45 2012 +0100 bump version to 0.9.33.1-git Signed-off-by: Bernhard Reutner-Fischer