summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* libc/string/i386/string.h: fix -O0 build failureDenys Vlasenko2009-08-191-0/+22
| | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* avr32/microblaze/vax: punt local byteswap.hMike Frysinger2009-08-193-175/+0
| | | | | | | | These arches are generic C implementations of the byteswap functions, so rather than keep a useless local copy, use the common C one. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* syscall: convert cris/hppa to common syscallsMike Frysinger2009-08-193-140/+19
| | | | | | | | The cris/hppa code appears to be easy to convert, so go ahead and do it for them. Build tested only. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* MAKEALL: find kernel headers betterMike Frysinger2009-08-191-1/+12
| | | | | | | | Work with pre-sysroot compilers that have kernel headers available in the standard location, and let people force the location manually. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* some ports define ENOTSUPMike Frysinger2009-08-191-1/+3
| | | | | | | | A port or two (like hppa) does define ENOTSUP, so don't assume that everyone needs this fallback define. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* INLINE_SYSCALL_NCS: scope out local vars to avoid conflictsMike Frysinger2009-08-191-6/+6
| | | | | | | | | | | | The INLINE_SYSCALL_NCS() macro was using "res" and "err" as local variable names, but this caused conflicts with some code (like clock_getres) whose arguments were named the same. libc/sysdeps/linux/common/clock_getres.c: In function 'clock_getres': libc/sysdeps/linux/common/clock_getres.c:15: warning: 'res' is used uninitialized in this function Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* linuxthreads.old: extend workaround for asm rename warningsMike Frysinger2009-08-192-0/+12
| | | | | | | | The libc_pthread_init.c needs the include workaround like forward.c, and forward.c needs more includes now. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* fix building for systems w/out ldso supportMike Frysinger2009-08-192-1/+8
| | | | | | | | If an arch (like alpha and others) have no ldso support at all, then there is no point in attempting to walk loaded modules in the dl-* helper funcs. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* alpha: fix building with no asm/elf.hMike Frysinger2009-08-191-1/+14
| | | | | | | | The latest sanitized linux kernel headers no longer export asm/elf.h, so do not rely on it anymore. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* alpha/sigprocmask: fix implicit memset() prototypeMike Frysinger2009-08-191-0/+1
| | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* first pass at implementing *at funcsMike Frysinger2009-08-1924-48/+457
| | | | | | | | Tested basic functionality with coreutils and things seem to work. At least gives us a basis to jump from. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* fdatasync: handle latest alpha syscallsMike Frysinger2009-08-191-1/+1
| | | | | | | | The latest alpha Linux kernel defines __NR_fdatasync like everyone else and deprecates the older __NR_osf_fdatasync, so support that setup. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* sync a few headers with glibc (no functional changes)Mike Frysinger2009-08-194-47/+47
| | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* dirent: push dirent type to prototypesMike Frysinger2009-08-197-48/+70
| | | | | | | | | | | This syncs the dirent related functions with the glibc behavior -- rather than take void pointers everywhere, make the struct dirent pointers explicit in the API. After all, the functions themselves will cast the pointers to a dirent structure, so if it isn't as expected, people will crash. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* string: only include inline-asm if UCLIBC_HAS_STRING_ARCH_OPTMike Frysinger2009-08-191-1/+1
| | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* regex: convert #if to #ifdefMike Frysinger2009-08-192-2/+2
| | | | | | | Avoid gcc warnings about #if statements with defines that aren't defined. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* mknod: convert to INLINE_SYSCALL() to sync with glibcMike Frysinger2009-08-191-12/+6
| | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* note that we do not want hidden malloc aliasesMike Frysinger2009-08-191-0/+2
| | | | | | | | | | | We want to let malloc() and friends be overridable at runtime so that apps can insert their own implementation (think debugging, specialized setups, etc...). That means that C library functions that return allocated memory have to go through the normal malloc() symbol as well as the external code is the one who will be calling free(). Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* fix typo in frv endian commentMike Frysinger2009-08-191-1/+1
| | | | | | Reported-by: Denys Vlasenko <vda.linux@googlemail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* start ignoring include/ symlinksMike Frysinger2009-08-191-18/+22
| | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* relocate i386 string.h to i386-specific dirMike Frysinger2009-08-192-1/+1
| | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* unifdef: implement err.h funcs locallyMike Frysinger2009-08-191-1/+7
| | | | | | | | | | Since the err.h functions are optional in uClibc, make sure we can rebuild ourselves if support is disabled. URL: https://bugs.busybox.net/show_bug.cgi?id=257 Reported-by: Michael Deutschmann <michael@talamasca.ocis.net> Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* ppoll: switch to INLINE_SYSCALL() to match glibcMike Frysinger2009-08-191-11/+2
| | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* add hidden aliases for older regex search functionsMike Frysinger2009-08-192-0/+4
| | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* install_headers: convert header removal to Kbuild styleMike Frysinger2009-08-191-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> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* use -EB/-EL for all targetsMike Frysinger2009-08-191-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> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Fix ARM syscall argument loading.Joseph Myers2009-08-191-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> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* undef INTERNAL_SYSCALL_NCS before redefining to quash build warnings.Khem Raj2009-08-022-1/+3
| | | | | | Pass LDFLAGS using -Wl now gcc is used as LD. Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Makefile.in: Let make release or make dist to use git.Khem Raj2009-08-021-1/+2
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Rules.mak: Fix references to svn.Khem Raj2009-08-022-2/+2
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* syscall.c: Use common syscall.c for ARMKhem Raj2009-08-023-129/+0
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fnmatch.c: Include unistd.h before undefining _LIBC.Khem Raj2009-08-021-2/+9
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* fnmatch.c: Change scope of posixly_correct to be global.Khem Raj2009-08-021-1/+1
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* test_librt: Fix shmtest.c test caseCarmelo Amoroso2009-07-301-3/+5
| | | | | | | | | | | | | | | | | 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>
* test_librt: Fix build system for shm_open/unlink testsCarmelo Amoroso2009-07-302-2/+4
| | | | | | Fix and align build system of librt tests to the test suite. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* build: Include Makefile.commonarch from common Makefile.inCarmelo Amoroso2009-07-2920-38/+1
| | | | | | | | 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>
* build: use $(do_sed) command for pretty printingCarmelo Amoroso2009-07-296-9/+14
| | | | | | | Use the $(do_sed) command instead of plain @sed for pretty printing target generation by sed. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.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>
* Readd the thread local version of __res_stateAustin Foxley2009-07-102-12/+51
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Sync nptl branch to masterAustin Foxley2009-07-098-1544/+2071
| | | | | | | | | | | | | | Cherry picked these commits: afdfa59588: Do not install libc-XXX.h files fb863f7592: Make HARDWIRED_ABSPATH a config option e0c8160a38: Allow people to run hostutils targets without .config e0da861a29: Don't rely on features.h ac1087a727: Denis's resolv.c cleanup Pulled out the thread local __res_state in resolv. Will reapply it in a future commit. Signed-off-by: Austin Foxley <austinf@cetoncorp.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> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* 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> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* MAKEALL: expand cross-compiler arch searchMike Frysinger2009-07-091-9/+18
| | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Cherry-picked some old commits into nptl:Austin Foxley2009-07-099-174/+256
| | | | | | | | | | | | | | | | | | | The goal is to bring nptl closer to head so it can merged easier. This commit just syncs up some things that were never modified on the nptl branch. d38ad7827e: tst-calloc.c remove dependency on GNU error functionality 1055a181ad: utils/ldd.c include more info in error messages 0d5aec1211: utils/mmap-windows.c add mmap/munmap implementation for Windows 14fd4a3a31: utils/porting.h unify byte order cruft utils/bswap.h add bswap_64 replacement 32242e7e10: utils/* unify header/random defines into porting.h Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* ignore generated .i filesMike Frysinger2009-07-091-0/+1
| | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* drop missing {INLINE,INTERNAL}_SYSCALL fallback logicMike Frysinger2009-07-098-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> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* syscall: unify common syscall definesMike Frysinger2009-07-0915-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> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* MAKEALL: start a quick build test helper scriptMike Frysinger2009-07-092-0/+125
| | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Avoid type-punned pointers that break strict-aliasingRon2009-07-093-5/+11
| | | | | | Signed-off-by: Ron Lee <ron@debian.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Avoid warnings about shifting more bits than we haveRon2009-07-091-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> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>