summaryrefslogtreecommitdiffstats
path: root/libc
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* switch to a smaller/more robust implementation by Andrey Simonenko and as ↵Mike Frysinger2007-09-151-43/+41
| | | | | | suggested by Natanael Copa harvested from: http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/92880
* Blue Swirl writes:Mike Frysinger2007-09-1513-12/+15
| | | | | | | | | | | | | | | | | | | | I got the library to compile with the attached patches, though dynamic loader crashes early. In buildroot I changed the architecture name by hand from sparc to sparc64, otherwise the compiler produced 32-bit files with V9 (64-bit) instructions. This configuration is not supported by QEMU, so I aimed for pure 64-bit. I think Sparc64 option needs to be added to buildroot. The _Qp_ ops seem to be required by the ABI. This and setjmp patches are just hacks to get the compilation further. The _Qp_ ops can be found in glibc, would it be OK to use those? V9 assembler requires declarations for global register use. The mem* functions in sparc32 directory did not work. They are actually used only by the hybrid 32-bit + V9 CPU configuration.
* setup OUTPUT_FORMAT() in linker script (helps with multilib)Mike Frysinger2007-09-151-0/+3
|
* Atsushi Nemoto writes:Mike Frysinger2007-09-152-1/+11
| | | | | | | In MIPS syscall(2), .cpload was added to an the error path, but it was not enough for ABIs other then O32. Use SETUP_GP, SETUP_GP64 and RESTORE_GP64 to handle all ABIs. This patch fixes an error path of MIPS pipe(2) too.
* add strerror_r symbol alias as some autotool based packages simply use ↵Mike Frysinger2007-09-151-0/+6
| | | | AC_CHECK_LIB() to see if a function exists rather than checking the headers
* sgetspent: add missing free/__uc_malloc callsDenis Vlasenko2007-08-011-0/+2
| | | | | (spotted by Peter S. Mazinger <ps.m@gmx.net>)
* make regex_old.c, ruserpass.c use __uc_malloc,Denis Vlasenko2007-07-307-19/+20
| | | | | | | | | | | | | replace "buf = malloc(BUFSIZ); if (!buf) abort();" by __uc_malloc elsewhere. With last 7 patches together uclibc has 3k of static data total with fairly big .config and with 2k being used for 2 x BUFSIZ stdio buffer: text data bss dec hex filename 114 132 2048 2294 8f6 _stdio.o (ex lib/libc.a) total data 593 total bss 3062
* make getnetent.c, md5.c use __uc_mallocDenis Vlasenko2007-07-301-6/+20
|
* make utent.c, getpass.c use __uc_mallocDenis Vlasenko2007-07-302-6/+14
|
* make pwd_grp.c use __uc_mallocDenis Vlasenko2007-07-301-39/+90
|
* patch #3: make resolv.c use __uc_mallocDenis Vlasenko2007-07-301-12/+29
|
* introduce __uc_malloc, so that users can intercept libc internal OOM.Denis Vlasenko2007-07-302-1/+42
|
* Remove stray code alignment (.align 16 and .align 4 directives)Denis Vlasenko2007-07-2925-28/+16
| | | | | from i386 and x86_64.
* execXp should go to next PATH dir on any error except ENOEXEC,Denis Vlasenko2007-07-181-3/+3
| | | | | | not just on ENOENT (in particular, on EPERM). At least glibc does so. Fixing this.
* include/sys/mman.h says that msync exists only on MMU.Denis Vlasenko2007-07-181-0/+4
| | | | | Make msync.c agree on this.
* Enable all of the remaining baud rates. All of the other architectures have ↵"Steven J. Hill"2007-07-181-4/+0
| | | | them enabled, so let's go all the way. There was a quick discussion on IRC about making the max baud rate configurable. That requires a bunch of #ifdef salting throughout all of the 'termios.h' files for the pre-processor to chew on. I'm going to pass on that for now.
* Fix broken syscall() function since the original patch did not work."Steven J. Hill"2007-07-121-2/+4
|
* - make sure to define _LIBC in libc-symbols.h before including anythingBernhard Reutner-Fischer2007-06-241-0/+2
| | | | | | else. - internal_function is only used inside libc, so do not define it in uClibc_arch_features.h on i386 if we are outside of libc.
* Carmelo AMOROSO <carmelo.amoroso@st.com> writes:Joakim Tjernlund2007-06-131-2/+14
| | | | | | | | Hi All, this patch fixes a mismatch in ucontext struct between uClibc and kernel. In this way a signal handler installed by sigaction can access to the whole machine state correctly. This can be applied both to trunk and nptl branch
* change the auxvt code from being dependent on MMU to !LDSO as auxvt things ↵Mike Frysinger2007-06-011-5/+5
| | | | are ELF-specific, not MMU-specific
* Atsushi Nemoto writes:Mike Frysinger2007-05-314-1/+122
| | | | | | | | Current MIPS readahead(), posix_fadvise(), posix_fadvise64() do not match with kernel on all ABIs. On O32 ABI, a padding is needed before a long long argument. On N32/N64, a long long argument should be passed via a single register.
* Atsushi Nemoto writes:Mike Frysinger2007-05-314-8/+4
| | | | | http://www.opengroup.org/onlinepubs/009695399/functions/posix_fadvise.html states it returns error code instead of setting errno.
* Jean-Christian de Rivaz writes:Mike Frysinger2007-05-251-1/+1
| | | | | | | | I actually suspect this code into the file uClibc/libc/sysdeps/linux/common/poll.c: tval.tv_nsec = (timeout % 1000) *1000; <==== make only usec! From milisecond this really needs a * 1000000 to make nanosecond. Without this a 1100 milisecond timeout is converted into a 1 seconde and 100 microsecond timeout! This can explain the weird result of the test code.
* Remove the arch specific mmap impl. for Powerpc. The common one will do.Joakim Tjernlund2007-05-252-56/+1
|
* Fix MIPS syscall() and pipe functions to set errno correctly as reported by ↵"Steven J. Hill"2007-05-242-5/+20
| | | | Daniel Jacobowitz on the mailing list. More information available at <http://www.uclibc.org/lists/uclibc/2007-May/017968.html> .
* Fix ARM EABI signal unwinding to accomodate signal frame layout between ↵"Steven J. Hill"2007-05-241-2/+13
| | | | Linux kernel versions as reported by Joseph S. Myers on the mailing list. More information available at <http://www.uclibc.org/lists/uclibc/2007-May/017971.html> .
* Restored indentation.Peter Kjellerstedt2007-05-152-11/+13
|
* Made it compile again.Peter Kjellerstedt2007-05-151-1/+1
|
* Fix arm mmap when using mmap2 syscall. Fixes bug #1303Khem Raj2007-05-152-4/+16
|
* Nickolai Zeldovich writes: if the temp name already exists, then the retry ↵Mike Frysinger2007-05-061-10/+9
| | | | code does not create a new temp name as the code to do so is outside of the retry loop