summaryrefslogtreecommitdiffstats
path: root/libc
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* - use the compiler-driver instead of the linkerBernhard Reutner-Fischer2007-10-131-2/+2
| | | | | | | | | - adjust setting flags accordingly to use (hardcoded, see below) -Wl, Potential improvements: *) --warn-unresolved-symbols should perhaps be used for all libs *) eventually rename LDFLAGS to CC_LDFLAGS *) probe for compiler driver's notion of flag to use for passing in linker flags (i.e. don't hardcode "-Wl,")
* - Fix compilation for mips ABI64 with no LFS.Bernhard Reutner-Fischer2007-09-301-2/+6
|
* - Fix compilation for mips ABI64 with no LFS.Bernhard Reutner-Fischer2007-09-301-4/+7
| | | | This wants a stub_enosys(readahead) line later on, like many, many others need..
* This patch will fix a problem when the same host is defined with both IPv4 andMike Frysinger2007-09-281-2/+8
| | | | | | | | | | | | IPv6 entries in /etc/hosts. Previous only the first of these host would work, as uClibc would read the /etc/hosts file from top to bottom, failing if the first hit did not match the IP type. Now uClibc will continue reading, even if the first correct entry name, but wrong IP type fails. Thus, allowing a second correct entry name with correct IP type will result in a name resolve. Signed-off-by: Hans-Christian Egtvedt <hcegtvedt@atmel.com>
* do not check the pointer before freeing it since free(NULL) works just fineMike Frysinger2007-09-281-8/+4
|
* cleanup code styleMike Frysinger2007-09-281-323/+301
|
* drop LDFLAGS from OUTPUT_FORMAT until LD/LDFLAGS can be fixed in generalMike Frysinger2007-09-211-1/+1
|
* Fix author name and copyright notice in __uc_malloc.cDenis Vlasenko2007-09-191-6/+4
|
* fix assembler error. libc_hidden_data_def cannot work on COMMONs,Denis Vlasenko2007-09-191-3/+6
| | | | | | | thus need to initialize stuff with 0 to force it into bss. All hell can again break loose if future gcc will be smart enough to ignore it.
* add libc_hidden_xxxx for __uc_mallocDenis Vlasenko2007-09-151-0/+2
|
* from Blue Swirl: fixup sparc a bit moreMike Frysinger2007-09-151-4/+20
|
* pull from Blackfin repo: optimized byteswap funcs!Mike Frysinger2007-09-151-0/+93
|
* pull from Blackfin repo: cleanup string funcsMike Frysinger2007-09-157-194/+241
|
* forgot to add this with previous sparc commit ...Mike Frysinger2007-09-151-0/+30
|
* use gcc input constraints to avoid often duplicated reloads when making syscallsMike Frysinger2007-09-154-96/+52
|
* if __NR__newselect and __NR_select are unavailable, fall back to __NR_pselect6Mike Frysinger2007-09-151-0/+24
|
* also fix bug 1012 by moschny in 64bit version of readdirMike Frysinger2007-09-151-1/+1
|
* bug 1310: drop hidden aliases to data since some arches crap with this due ↵Mike Frysinger2007-09-151-14/+13
| | | | to copy relocs