summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* ppoll: switch to INLINE_SYSCALL() to match glibcMike Frysinger2009-07-201-11/+2
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* add hidden aliases for older regex search functionsMike Frysinger2009-07-202-0/+4
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* install_headers: convert header removal to Kbuild styleMike Frysinger2009-07-151-182/+83
| | | | | | | | | | Convert the large if...$(RM)...endif style to standard Kbuild foo-$(...) += style to make the list much easier to review and update. This is largely a style change, but in the process, these two headers are added to the "always remove" list: tls.h and uClibc_errno.h Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* use -EB/-EL for all targetsMike Frysinger2009-07-151-8/+3
| | | | | | | These are common linker options rather than target specific ones, so they should be safe to use for all targets. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Fix ARM syscall argument loading.Joseph Myers2009-07-141-14/+21
| | | | | | | | | | | This patch is a uClibc equivalent of <http://sourceware.org/ml/libc-ports/2008-11/msg00006.html>, to compute all syscall arguments on ARM in temporary variables before loading them into register variables. The principle is as for that glibc patch; the problem I actually observed was a GCC internal compiler error building ld.so for Thumb-2. Signed-off-by: Joseph Myers <joseph@codesourcery.com>
* sh: Fix up optimized SH-4 memcpy on big endian.Giuseppe Cavallaro2009-07-141-12/+12
| | | | | | | | | | Signed-off-by: Hideo Saito <saito@densan.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org> Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com> See Linux Kernel commit: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=e08b954c9a140f2062649faec72514eb505f18c3 Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* syscall(): create a common version based on INLINE_SYSCALL_NCS()Mike Frysinger2009-07-095-78/+14
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* syscall: unify part 2: NCS varietyMike Frysinger2009-07-0914-78/+40
| | | | | | | Declare common NCS (non-constant syscall) variants and convert the existing ports over to this. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* MAKEALL: expand cross-compiler arch searchMike Frysinger2009-07-091-9/+18
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* sh: Change __HAVE_SHARED__ to __PIC__Peter Griffin2009-07-093-5/+5
| | | | | | | | Generate PIC relocations when __PIC__ is defined rather than __HAVE_SHARED__ (like other architectures). Signed-off-by: Peter Griffin <pgriffin@mpc-data.co.uk> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* ignore generated .i filesMike Frysinger2009-07-081-0/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* drop missing {INLINE,INTERNAL}_SYSCALL fallback logicMike Frysinger2009-07-088-102/+0
| | | | | | | Ports missing INLINE_SYSCALL() support need to get fixed, so drop the cruft keeping them alive since it no longer works with the unification. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* syscall: unify common syscall definesMike Frysinger2009-07-0815-1061/+317
| | | | | | | | | Unify all the common syscall defines in syscalls-common.h and scrub all the duplicated code from relevant ports. This should also make converting existing ports to INLINE_SYSCALL() much easier as they don't have to get lost in all the unrelated noise, as well as creating new ports. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* sparc: Update syscalls.h to define INTERNAL_SYSCALLAustin Foxley2009-07-061-70/+119
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* MAKEALL: start a quick build test helper scriptMike Frysinger2009-07-052-0/+125
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Avoid type-punned pointers that break strict-aliasingRon2009-07-053-5/+11
| | | | | Signed-off-by: Ron Lee <ron@debian.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Avoid warnings about shifting more bits than we haveRon2009-07-051-2/+4
| | | | | | | | | The test here is a constant expression and will compile out. For platforms that don't need the shift the code gets slightly smaller and simpler, for those that do the result is unchanged. Signed-off-by: Ron Lee <ron@debian.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Don't shadow the chroot globalRon2009-07-051-6/+6
| | | | | Signed-off-by: Ron Lee <ron@debian.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Don't shadow the mask parameter with a local variable in the same functionRon2009-07-051-2/+2
| | | | | Signed-off-by: Ron Lee <ron@debian.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Don't shadow stat with a local variableRon2009-07-052-7/+7
| | | | | Signed-off-by: Ron Lee <ron@debian.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Don't shadow the err() function with a local varRon2009-07-051-2/+2
| | | | | | | gcc-4.4 barks about that. Signed-off-by: Ron Lee <ron@debian.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Add a few missing includesRon2009-07-053-0/+3
| | | | | | | | elf.h needs __BYTE_ORDER, and s_scalbn.c needs {LONG,INT}_MAX. shm.c complains about no prototypes for shm_{open,unlink} without its header. Signed-off-by: Ron Lee <ron@debian.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Check #if feature test macros are defined where they may not beRon2009-07-057-11/+11
| | | | | | | | | Once again all of these reduce the noise from gcc-4.4. Replaces a few more (USE_TLS && HAVE___THREAD) with USE___THREAD while we need to mess with them for this anyhow. Signed-off-by: Ron Lee <ron@debian.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Provide token prototypes for functions that are external but have no headerRon2009-07-0513-33/+31
| | | | | | | This cuts down on a lot of noise from gcc-4.4 Signed-off-by: Ron Lee <ron@debian.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Make more utility functions staticRon2009-07-053-15/+15
| | | | | | | This keeps gcc-4.4 from nagging that they have no prototypes. Signed-off-by: Ron Lee <ron@debian.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Add noreturn attributes to some functions that won't ever do soRon2009-07-052-4/+4
| | | | | | | | | usage() is also made static in answer to warnings about no prototype. In __pthread_manager_event() we also have to drop the return statement, else gcc will in turn complain about a non-returning function having one. Signed-off-by: Ron Lee <ron@debian.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Move extern prototype out of function scopeRon2009-07-051-1/+2
| | | | | | | gcc-4.4 now barks about this, so appease it. Signed-off-by: Ron Lee <ron@debian.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Add some missing printf/scanf format attributesRon2009-07-051-5/+10
| | | | | | | | | The gcc-4.4 documentation still suggests that the compiler will automatically do format checking for the standard format function prototypes, but it is now also barking warnings suggesting that we add them for this lot too. So added. Signed-off-by: Ron Lee <ron@debian.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* use -isystem with gcc pathsMike Frysinger2009-07-051-1/+1
| | | | | | | Use -isystem to include gcc header paths rather than -I as these are system paths, not uClibc specific paths. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* i386: store errno value before using __set_errno()Ingo van Lil2009-07-031-4/+3
| | | | | | | | | | | The __syscall_error() function stores the errno value in the edx register before invoking the __set_errno() macro. When using the pthread library this macro calls thread_self() to determine the errno location, which might clobber the edx register. The errno value must be stored in a "real" variable so the compiler can take care of saving/restoring it if necessary. Signed-off-by: Ingo van Lil <inguin@gmx.de> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* ignore generated unifdefMike Frysinger2009-07-031-0/+1
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* uClibc_arch_features: sync defines between portsMike Frysinger2009-07-0326-3/+206
| | | | | | | Make sure each arch has the same complete list to make comparing between them easier. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Merge branch 'master' of git://uclibc.org/uClibcMike Frysinger2009-07-0316-454/+276
|\
| * add testcases for shm_{open,unlink}Bernhard Reutner-Fischer2009-07-033-0/+112
| | | | | | | | | | Reported-by: Mikael Lund Jepsen <mlj@iccc.dk> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
| * sh: add cacheflush syscall wrapperCarmelo Amoroso2009-07-022-1/+16
| | | | | | | | | | Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
| * Correct ARM memcpy comments.Joseph Myers2009-07-011-1/+2
| | | | | | | | | | | | | | | | The comments on register usage in ARM memcpy had dest and src the wrong way round; this patch (originally from Mark Shinwell) corrects this and adds a note on the return value. Signed-off-by: Joseph Myers <joseph@codesourcery.com>
| * Fix Thumb-2 setjmp.Joseph Myers2009-06-301-1/+1
| | | | | | | | | | | | | | | | Many Thumb-2 instructions cannot use sp or pc as operands, and the assembler now diagnoses these. setjmp had one such instruction, movs; this patch changes it to mov. Signed-off-by: Joseph Myers <joseph@codesourcery.com>
| * Fix Thumb-2 memcpy.Joseph Myers2009-06-301-1/+1
| | | | | | | | | | | | | | | | | | When an IT block was changed from having two instructions to having one, the IT instruction at the start of the block was not updated, causing memcpy to fail to assemble for Thumb-2; this patch makes the obvious fix. Signed-off-by: Joseph Myers <joseph@codesourcery.com>
| * Add missing CLIBABI variables __aeabi_stdin, __aeabi_stdout, __aeabi_stderr.Joseph Myers2009-06-281-0/+15
| | | | | | | | | | | | | | | | | | | | | | The ARM EABI has a document CLIBABI specifying various __aeabi_* functions and variables to be provided for the use of portable objects that can be linked with different EABI-conforming C libraries. __aeabi_stdin, __aeabi_stdout and __aeabi_stderr were missing in uClibc; this patch (originally from Nathan Froyd and for glibc) adds them. Signed-off-by: Joseph Myers <joseph@codesourcery.com>
| * locale: gen_wc8bit: try to find UTF8 locale automaticallyMike Frysinger2009-06-281-1/+24
| | | | | | | | | | | | | | | | | | | | Rather than require everyone to have en_US.UTF-8 when we really need any UTF8 locale, do a scan for possible UTF8 locales if the default en_US does not exist. Hopefully this should make the utility "just work" for most people. Reported-by: Daniel Cordero <theappleman@gmail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
| * stop installing/screwing with linux-headersMike Frysinger2009-06-282-94/+0
| | | | | | | | | | | | | | | | | | It is not uClibc's business to make sure the user's toolchain is sane and has proper kernel headers configured/installed. If they don't, then they need to fix their toolchain, we don't need to try and magically do it for them. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
| * add gitignore for utilsMike Frysinger2009-06-281-0/+4
| | | | | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
| * wchar: fix inverted parameters in error messageAndré Goddard Rosa2009-06-281-1/+1
| | | | | | | | | | | | | | | | | | | | The error message should output "fromcode -> tocode" rather than "tocode -> fromcode". Seems to be a typo due to the order of the func called: iconv_t iconv_open(const char *tocode, const char *fromcode); Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
| * libc.so: include all output formats in linker scriptSteve Bennett2009-06-281-2/+2
| | | | | | | | | | | | | | | | | | | | Rather than ripping out the default output format from the linker, include the big/little endian alternatives for the people who link with bi-endian toolchains. URL: http://lists.uclibc.org/pipermail/uclibc/2009-June/042595.html Signed-off-by: Steve Bennett <steveb@workware.net.au> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
| * utils: punt readelfMike Frysinger2009-06-282-352/+1
| | | | | | | | | | | | | | This miniature version of readelf has never been terribly useful and has caused significantly more headaches in its maintenance, so punt it. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
| * include errno.h unconditionallyBernhard Reutner-Fischer2009-06-021-4/+3
| | | | | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
| * add stub for shm_open() and shm_unlinkBernhard Reutner-Fischer2009-06-021-0/+98
| | | | | | | | | | | | Untested and needs testsuite exercise added Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* | Blackfin: make sure all relocs are uppercaseMike Frysinger2009-06-014-33/+33
|/ | | | | | This is to match changes in the toolchain. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* waitid: linux ABI takes 5 args, not 4Mike Frysinger2009-05-271-4/+16
| | | | | | | | The POSIX waitid() takes 4 args, but the Linux one takes 5 args, so make sure we stuff the 5th arg with a NULL. Otherwise garbage gets randomly passed up and considering this is a pointer, that's baaaad. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* tweak .gitignoreBernhard Reutner-Fischer2009-05-271-0/+17
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>