summaryrefslogtreecommitdiffstats
path: root/libc
Commit message (Collapse)AuthorAgeFilesLines
...
* Omit adding 'OUTPUT_FORMAT' to the libc.so linker script if the architectureChris Zankel2008-02-111-2/+2
| | | | | | didn't provide one (Xtensa, for example, is such an architecture). Signed-off-by: Chris Zankel <chris@zankel.net>
* Added AI_NUMERICSERV flag and check if the string is not just a numberCarmelo Amoroso2008-02-071-2/+6
| | | | | | when AI_NUMERICSERV flag set. Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
* Fix stack overflow in _ppfs_parsespecCarmelo Amoroso2008-02-071-1/+1
|
* give execlp() its own cache on no-mmu to avoid recursive cache fightingMike Frysinger2008-01-231-37/+57
|
* L1 memory support for the Blackfin. A couple new syscalls to manage L1Bernd Schmidt2008-01-187-13/+69
| | | | | allocations, dma_memcpy to move stuff between L1 and main memory, and a new structure to describe the global data in L1 scratchpad memory.
* - fix compilation:Bernhard Reutner-Fischer2008-01-171-0/+3
| | | | | In file included from toolchain_build_i386/gcc-3.4.6/libiberty/hashtab.c:49: build_i386/staging_dir/i386-linux-uclibc/sys-include/malloc.h:193: error: ISO C forbids data definition with no type or storage class
* - fix linking.Bernhard Reutner-Fischer2008-01-171-1/+1
| | | | We use the compiler-driver and not ld.
* A patch from our Blackfin repository, originally from Jie Zhang. This fixesBernd Schmidt2008-01-1728-81/+4
| | | | | | | | | | | | | a problem where the linker was trying to use the wrong symbol name for the init function. Define SYMBOL_PREFIX as _ in Rules.mak for h8300, bfin, i960, microblaze, and v850. Add -D__UCLIBC_UNDERSCORES__ in CFLAGS for targets which define SYMBOL_PREFIX as _. Remove defines and undefs from uClibc_arch_features.h of each target. Add $(SYMBOL_PREFIX) to __uClibc_init when passed by ld option -init.
* Use poll() rather than select() if the former is available to wait inPeter Kjellerstedt2008-01-111-0/+26
| | | | | __dns_lookup(). This avoids segmentation faults when more than 1024 file descriptors are used by an application.
* - Fix compilation: semtimedop has 4 args (and not 6)Bernhard Reutner-Fischer2008-01-091-1/+1
|
* add workaround for gcc-3.4.6 with mipsMike Frysinger2008-01-091-1/+1
|
* Daniel Jacobowitz writes:Mike Frysinger2008-01-091-0/+26
| | | | | | | | MontaVista noticed that when their kernels were configured to trap on unaligned access gethostbyname_r could mysteriously crash. I tracked this down to an unaligned buffer being passed to gethostbyname_r from some other part of uClibc (afraid I don't remember where from any more). We have to pad the beginning of the buffer to a pointer alignment before we store pointers in it.
* change NO_UNDERSCORES to just UNDERSCORES so as to be less confusing when ↵Mike Frysinger2008-01-0827-27/+27
| | | | doing double negatives
* Switch sh64 to use __uClibc_main and the new register layout.Paul Mundt2008-01-081-28/+25
| | | | | | This was one of the stragglers still bent on __uClibc_start_main utilization, now it's only FR-V.
* Bring sh64 support back from the dead.Paul Mundt2008-01-086-63/+181
|
* fix memory corruption on no-mmu from doing multiple execls where earlier ↵Mike Frysinger2008-01-081-10/+3
| | | | execls fail by simply not releasing the memory reserved for the arguments of children processes
* this code does not actually rely on INTERNAL_SYSCALLMike Frysinger2008-01-051-3/+1
|
* if an arch does not provide __NR_mmap, fall back to __NR_mmap2 (this just ↵Mike Frysinger2008-01-053-25/+30
| | | | generalizes what Blackfin was already doing)
* Chris Zankel writes:Mike Frysinger2008-01-0549-0/+4274
| | | | | | | | | | | | | | | | | | The following patches add support for the Xtensa processor architecture to uClibc. They are based on a recent SVN checkout (12/05/2007). The first patch (attached to this post) adds Xtensa support to various shared configuration and make files. The following patches then include the Xtensa specific files and directories. I welcome any feedback and would appreciate it if you could include the patches into the mainline tree. I am certainly committed to maintain the port. Bob Wilson was kind enough to review the patches. Some notes about the architecture: Xtensa is a configurable and extensible processor architecture developed by Tensilica. For more information, please visit: www.linux-xtensa.org.
* patch from Hans-Christian Egtvedt to silence some spurious signed warningsMike Frysinger2008-01-053-10/+10
|
* whitespace only: touchups from Hans-Christian EgtvedtMike Frysinger2008-01-052-3/+3
|
* add BOTHER define from termios2Mike Frysinger2008-01-051-0/+1
|
* blah, enable the stupid hidden proto for fcntlMike Frysinger2008-01-051-1/+1
|
* krichy writes in 292:Mike Frysinger2008-01-051-1/+1
| | | | | | I noticed, that in libc/misc/syslog/syslog.c when the syslog socket is opened, the close-on-exec flag is not set, as it is in gnu libc. This enables that behavior.
* implement semtimedop for #927Mike Frysinger2008-01-057-18/+42
|
* michael_d writes in 1879:Mike Frysinger2008-01-051-1/+1
| | | | | | When no TIOCGPTN definition is present in the kernel headers, the library's ptsname() function will not work. The libc/stdlib/ptsname_r.c file is the problem. This file includes a complicated nest of #if directives. One of these #if's has the opposite sense from what is required.
* michael_d writes in #1869: make sure GNU error functions output 'program: ' ↵Mike Frysinger2008-01-051-0/+4
| | | | as documented in the function api
* michael_d writes in #1874: Mike Frysinger2008-01-051-2/+2
| | | | | | | | | On an i386 platform with no rt_sigsuspend syscall (ie: Linux 2.0), compilation will halt on libc/sysdeps/linux/common/sigsuspend.os with a cryptic error message: "Error: non-constant expression in ".if" statement" I've investigated and found that the cause is that a literal '0' is being passed into a block of complex assembler macrology that is only prepared to deal with register names - '%eax', etc. In turn, that seems to be because of a typo in the GCC register constraints. The constraints for 2 and 3-argument syscalls includes a "C" constraint. To gcc, "C" means an SSE floating point constant -- an unlikely element in a syscall. I suspect the author meant to type "S" (%esi).
* michael_d in #1849 writes: The getcwd() implementation in the absence of a ↵Mike Frysinger2008-01-051-1/+1
| | | | getcwd syscall has an off-by-one allocation bug. As a result, sometimes the returned string has garbage at the end.
* plug a memory leak when using execl* functions on no-mmuMike Frysinger2007-12-221-9/+17
|
* mark a bunch of public mem/str functions as weak so that people who insist ↵Mike Frysinger2007-12-2221-50/+36
| | | | on their own local copies while static linking dont hit link failures when other uClibc code force the libc.a objects to be pulled in via the hidden alias symbols
* add hidden defs for execv/execlp for completenessMike Frysinger2007-12-221-0/+4
|
* Removed pointless initialization to 0 of DIR fieldsCarmelo Amoroso2007-12-071-1/+0
| | | | | | | after having added memset. Thanks to Peter Mazinger for pointing this out. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* I don't remember exactly why we decided to pick the caller's value ofCarmelo Amoroso2007-12-071-1/+1
| | | | | | | | sa_restorer when SA_ONSTACK is set, but it seems to break LTP's sigaltstack testcase. Some users have reported problems with sigaltstack as well; hopefully this will fix it. Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
* Fix opendir problem when statically linked due to a missingCarmelo Amoroso2007-12-051-0/+1
| | | | | | | | | initialization of the mutex field within DIR struct. When linked dynamically instead, __pthread_mutex_init will initialize the mutex itself. Without this fix, any call to readdir will stuck forever trying to acquire the mutex. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* realpath: reduce stack usage from 3*PATH_MAX (12k) to 1*PATH_MAX (4k).Denis Vlasenko2007-12-031-34/+36
| | | | | | | | | reduction is achieved by direct use of user-supplied PATH_MAX sized buffer for result (without intermediate copy) and changes in copy_buf[] usage - now it is used for both "source" pathname and link name (it works because they have to be less than PATH_MAX combined, otherwise we return NULL).
* Blackfin crt1.S fixes for building with -msep-data.Bernd Schmidt2007-11-231-6/+11
|
* Add some necessary Makefile bits for UCLIBC_FORMAT_FLAT_SEP_DATA.Bernd Schmidt2007-11-231-0/+3
|
* Some shared flat improvements.Bernd Schmidt2007-11-232-2/+12
| | | | | | | | Fix minor errors: - UCLIBC_SHARED_FLAT_ID instead of SHARED_FLAT_ID - use -Wl,-shared-lib-id properly Use libc_so.a as the source for the shared libc, in order to be able to use -mleaf-id-shared-library on the Blackfin.
* mcontext_t shouldn't have a version argument, and fix REG_B0 definition.Bernd Schmidt2007-11-231-2/+1
|
* From Jie Zhang:Bernd Schmidt2007-11-231-3/+4
| | | | __bswap_16 could not assume that it's zero extended when an unsigned short int is loaded into the data register.
* Ignore entries of "-1" in rofixup; the linker sometimes has no choice but toBernd Schmidt2007-11-221-23/+26
| | | | create these for deleted entries in .eh_frame.
* Add Blackfin specific mmap implementation using sys_mmap2.Bernd Schmidt2007-11-222-1/+25
|
* sys/procfs.h defines a typedef for floating point registers that references anBernd Schmidt2007-11-221-2/+2
| | | | | | | undefined structure. This typedef is used in linuxthreads.old-db, causing a compilation failure. Fixed by defining an empty structure for it - we don't have fp regs anyway.
* Added optimized versions of strcpy() and strncpy() for CRIS/CRISv32.Peter Kjellerstedt2007-11-212-0/+112
|
* ARM SHMLBA = (4 * PAGE_SIZE). Currently in uclibc arm used shm.h fromCarmelo Amoroso2007-11-201-0/+103
| | | | | | | | | common directory where SHMLBA = __getpagesize() This patch fixes the issue. Khem Raj MontaVista Software Inc.
* Added AVR32 support to uClibc. Signed-off-by: Hans-Christian Egtvedt ↵Carmelo Amoroso2007-11-1641-0/+2269
| | | | <hcegtvedt@atmel.com>
* CRIS/CRISv32 architecture specific memcpy, memmove and memset.Ricard Wanderlof2007-11-124-0/+698
|
* Do not return error when fprintf returns 0 in addmntent().Khem Raj2007-11-101-5/+2
| | | | | fprintf is considered failing if the return is less than 0
* Poll with zero timeoutJoakim Tjernlund2007-10-231-0/+4
| | | | | | | | | | Jean-Christian de Rivaz writes: The attached patch solve an issue I faced while using the libdbus-glib waiting for a D-Bus message or the end of a glib timer at the same time. This specific case of use generate a poll call with a zero timeout. On platformes with the glibc a zero timeout poll return immetiately even if there is no file descriptor event. But on platformes with uClibc a zero timeout poll block until a file descriptor event occurs.