summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* lstat/stat/fstat: Use 64bit version of syscall if availablemasterKhem Raj2012-02-054-13/+74
| | | | | | | | | | | | 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 <raj.khem@gmail.com>
* Declare __err and pass it to INTERNAL_SYSCALL_NCS so subsequent macros can ↵Khem Raj2012-02-051-2/+2
| | | | | | use it Signed-off-by: Khem Raj <raj.khem@gmail.com>
* bump version to 0.9.34-gitBernhard Reutner-Fischer2012-02-011-2/+2
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* Release 0.9.33Bernhard Reutner-Fischer2012-02-011-1/+1
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* tmpnam, tempnam are obsolete in SUSV4Bernhard Reutner-Fischer2012-01-2911-51/+65
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* handle signal-OBXSI.SUSv4.symsBernhard Reutner-Fischer2012-01-294-5/+7
| | | | | | A couple of sig functions are obsolete in SUSv4. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* nptl_db: handle SUSv4-OBBernhard Reutner-Fischer2012-01-293-3/+6
| | | | | | | pthread_getconcurrency / pthread_setconcurrency is OBSOLETE in SUSv4 so disable pthread debug support too Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* test: ignore undefined symbols for APIBernhard Reutner-Fischer2012-01-291-2/+3
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* config: ftw is SUSv4-obsoleteBernhard Reutner-Fischer2012-01-291-1/+1
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* *: if !HAS_THREADS strong alias sigactionBernhard Reutner-Fischer2012-01-289-2/+50
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* buildsys: fixup sigaction handlingBernhard Reutner-Fischer2012-01-289-41/+11
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* libubacktrace:arm: libgcc_eh.a not neededCarmelo Amoroso2012-01-271-4/+0
| | | | | | Dummy symbol is __aeabi_unwind_cpp_pr is part of uclibc_shared.a Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* ldso: fix typo in debug messageBernhard Reutner-Fischer2012-01-271-1/+1
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* buildsys: add cppcheck wrapper script (correct one)Bernhard Reutner-Fischer2012-01-271-10/+43
| | | | | | Also incooperate vapier's suggestion on how to set REAL_CC once Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* libc_arm: avoid multiple version of __aeabi_unwind_cpp_pr dummy codeCarmelo Amoroso2012-01-275-9/+1
| | | | | | | | | Do not pollute libraries with its own implementation of __aeabi_unwind_cpp_pr1 code. Just add it to uclibc_nonshared.a archive and share it. This fixes build issue with static linking of application due to multiple symbol definition in libgcc_eh-a and libpthread.a or librt.a Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* buildsys: use single slash version of -print-whateverBernhard Reutner-Fischer2012-01-261-1/+1
| | | | | | | The double slash variants are not documented (doc bug?) so better use the single slash variants like we usually do. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* buildsys: turn off forced EXTRA_WARNINGS on i386Bernhard Reutner-Fischer2012-01-261-2/+0
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* *: silence some warningsBernhard Reutner-Fischer2012-01-2618-68/+111
| | | | | | warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* syscall: flag ia64 syscall error path as unlikelyBernhard Reutner-Fischer2012-01-261-2/+2
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* arm: tweak commentBernhard Reutner-Fischer2012-01-261-2/+2
| | | | | | harmless copy'n paste error Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* libc: fix signal handling in system()Richard Braun2012-01-231-17/+20
| | | | | | | | | | | | | | | When built without NPTL support (or for a sparc target), the system() function doesn't conform to its specification. Namely, it uses signal() to install/save/restore signal handlers, which may break applications using custom handlers installed with sigaction(). In addition, it resets the SIGCHLD handler to SIG_DFL instead of blocking the signal, which may result in "lost" signals if a custom handler was installed. Fix system() by replacing uses of signal() with appropriate calls to sigaction() and sigprocmask(). Signed-off-by: Richard Braun <rbraun@sceen.net> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* ldso/mips: fix symbol lookup for JUMP_SLOT and COPY relocationsCarmelo Amoroso2012-01-231-1/+3
| | | | | | | | Fill properly the sym_ref fields when invoking _dl_find_hash to lookup symbols Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libdl: fix dlclose handling of symbol scopeCarmelo Amoroso2012-01-231-12/+21
| | | | | | | | | | | Defer removal of the local scope of a dl-opened library after all the destructors (of itself and related dependencies) are actually get unloaded, otherwise any function registered via atexit() won't be resolved. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
* Rules: Check for CROSS_COMPILE to be emptyKhem Raj2012-01-231-1/+1
| | | | | | | | | In some case where CROSS is defined to be empty we define CROSS_COMPILE ?= CROSS so at this point it will be defined but will be empty so check for the same Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libubacktrace: Add arm implementationKhem Raj2012-01-234-9/+131
| | | | | | | | Arm has a different mechanism of getting _Unwind_GetIP. Therefore we provide arch specific backtrace file. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mips/libdl: Apply relocations after appending the new scopeKhem Raj2012-01-231-5/+6
| | | | | | | Without this the relocations for the current shared object are not resolved since the scope is not added to map yet Signed-off-by: Khem Raj <raj.khem@gmail.com>
* i386/sigaction.c: slightly more readable form of [rt_]sigreturn definitionsDenys Vlasenko2012-01-181-5/+4
| | | | | | No code changes Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* stubs: mark stubs as usedBernhard Reutner-Fischer2012-01-182-0/+2
| | | | | | | Avoids warning from -Wunused-function about the alias target that is only used at link-time. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* stdlib: use shorhand wur for realloc prototypeBernhard Reutner-Fischer2012-01-181-1/+1
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* buildsys: add cppcheck wrapper scriptBernhard Reutner-Fischer2012-01-181-0/+23
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* libcrypt: shrink crypt() again - unmodulariseBernhard Reutner-Fischer2012-01-181-30/+13
| | | | | | | | | | | | | modularisation added too much bloat for no benefit, undo. $ ../busybox/scripts/bloat-o-meter .lib.05/libcrypt-0.9.33-rc1-git.so lib/libcrypt-0.9.33-rc1-git.so function old new delta crypt 130 46 -84 .rodata 2704 - -2704 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 0/1 up/down: 0/-2788) Total: -2788 bytes Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* nptl: .gitignore generated pt-crt{i,n}.SBernhard Reutner-Fischer2012-01-181-0/+2
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* tests: only test crypt if we have an implBernhard Reutner-Fischer2012-01-181-1/+1
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* tests: add sha356/512 testsBernhard Reutner-Fischer2012-01-184-0/+134
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* tests: silence warnings in cryptBernhard Reutner-Fischer2012-01-181-43/+33
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* buildsys: use = for --sort-section linker flagMike Frysinger2012-01-171-2/+2
| | | | | | | | The spaces aren't handled correctly (currently) when outputting the CFLAGS version of the linker flag. Reported-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* tests: mark all helper scripts +xMike Frysinger2012-01-173-0/+0
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* buildsys: handle more clean targetsMike Frysinger2012-01-161-2/+2
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* buildsys: fix handling of CFLAG_-W{a,l} varsMike Frysinger2012-01-161-2/+4
| | | | | | | | Need a little indirection/delayed evaluation to handle variables with equal signs and commas in them. Reported-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* tests: tst-futimens1: add missing mode args to open()Mike Frysinger2012-01-161-1/+1
| | | | | | Since we use O_CREAT with open(), need to make sure to pass in mode too. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* tests: test-canon: include sys/stat.h for mkdir()Mike Frysinger2012-01-161-0/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* tests: fdopen: add missing mode args to open()Mike Frysinger2012-01-161-1/+1
| | | | | | | We call open() with O_CREAT, so make sure we pass in the mode else we might get build errors with fortify source. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* tests: opendir-tst1: add header for mknod()Mike Frysinger2012-01-161-0/+1
| | | | | | Include sys/stat.h for mknod() prototype. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* tests: mmap2: ignore permission denied errors on /dev/memMike Frysinger2012-01-161-1/+6
| | | | | | | Non-root users can't open /dev/mem, so it makes it hard to pass. Ignore that case. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* buildsys: skip compiler flag checking for clean targetsMike Frysinger2012-01-161-0/+2
| | | | | | | | | As suggested by Bernhard, there is no point in evaluating the compiler's flag availability when cleaning, so skip things in that case. If there are variables that change targets based on the flags, then things are already broken and need fixing independently. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* mips/dlfcn.h: Disable RTLD_DEEPBINDKhem Raj2012-01-161-0/+2
| | | | | | RTLD_DEEPBIND is not supported in uclibc Signed-off-by: Khem Raj <raj.khem@gmail.com>
* buildsys: simplify include_clean greatlyMike Frysinger2012-01-151-12/+7
| | | | | | | | | | Since we want to clean out all the headers we symlinked into include/, just use `find` to locate all the symlinks for us. This simplifies it greatly, and actually fixes bugs where we build for one arch, switch to another, and then do a clean but the previous arch headers are left behind. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* buildsys: fix detection of silent makeMike Frysinger2012-01-151-1/+1
| | | | | | | | | | The MAKEFLAGS variable contains all the flags without the leading dash. From the GNU make manual: This variable is set up automatically by make to contain the flag letters that make received. Thus, if you do ‘make -ks’ then MAKEFLAGS gets the value ‘ks’. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* tests: skip redundant -Wstrict-prototypes setupMike Frysinger2012-01-151-1/+0
| | | | | | | We inherit the top-level Rules.mak which sets up this flag for us, so just rely on that. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* libc: build abort with unwind-info for backtraceBernhard Reutner-Fischer2012-01-153-0/+6
| | | | | | | If backtrace support is turned on, build raise() and abort() with unwind info (fixup 4c9b7f3c21ff21c199e54bfad2fdf3445fa4573d). Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>