summaryrefslogtreecommitdiff
path: root/libc
AgeCommit message (Collapse)Author
2004-10-19Peter S. Mazinger writes:Eric Andersen
Hello! Would the attached patch be acceptable (maybe instead of __libc_gettimeofday using __gettimeofday) We have some issues, see http://bugs.gentoo.org/show_bug.cgi?id=65892
2004-10-19Atsushi Nemoto writes:Eric Andersen
In a recent post to linux-mips ML (and libc-alpha ML), a problem with inline syscalls was reported. http://www.linux-mips.org/archives/linux-mips/2004-10/msg00142.html It seems uClibc should be fixed also for newer gcc. Here is a patch.
2004-10-14Peter Mazinger writes:Joakim Tjernlund
The attached patch generalizes the use of PIE (all archs are brought in sync that use/mention it: x86/ppc/frv) and makes use of it building the target utils. Tested on x86, ppc should be tested, frv uses -fPIE at one location, but at another place -fpie, I don't know which is correct (could be both) and misses the target addition in Config.in. The test for ppc (requires the earlier sent crt-correction patch to work correctly): enable UCLIBC_PIE_SUPPORT, build uClibc and utils, check: file ./utils/ldd, it should show shared object (instead of executable)
2004-10-14Remove unused stuff. From Peter Mazinger.Joakim Tjernlund
2004-10-07Add ualarm.cEric Andersen
2004-10-07implement SuSv3 required ualarm()Eric Andersen
2004-09-28Atsushi Nemoto writes:Joakim Tjernlund
Hi. I found a mismatch between uClibc and kernel in semctl definition. In uClibc/libc/misc/sysvipc/sem.c: static inline _syscall4(int, __semctl, int, semid, int, semnum, int, cmd, union semun *, arg); ... int semctl(int semid, int semnum, int cmd, ...) ... arg = va_arg (ap, union semun); ... return __semctl(semid, semnum, cmd, &arg); But kernel's semctl is: asmlinkage long sys_semctl (int semid, int semnum, int cmd, union semun arg) The last argument is an union semun itself, not a pointer to the union. Here is a patch.
2004-09-23Add bswap_64 macro and uClibc_page.h. From Peter Kjellerstedt.Joakim Tjernlund
2004-09-10Hide some x86-specific devel asserts.Manuel Novoa III
2004-09-07Implement gethostent_rEric Andersen
2004-09-07Remove stale leftoversEric Andersen
2004-09-07Add missing imaxdiv and lldiv needed for SuSv3. Adjust ldiv toEric Andersen
match glibc's quotient truncation behavior.
2004-09-02Add a couple of mips-specific string funcs.Manuel Novoa III
Port the generic optimized string funcs from glibc, with some tweaks to cut their size a little. The main change is making memmove call memcpy for forward copying to trim redundant code. Make use of both the generic and arch-specific speed-optimized string funcs configurable. Arch-specific take precedence over generic, and generic takes precedence over basic size-optimized uClibc funcs.
2004-09-02Fix a couple of symbol name issues.Manuel Novoa III
2004-08-30Typo fix from Peter Mazinger.Joakim Tjernlund
2004-08-27Preliminary PIE support for powerpc, i386 was used as template.Joakim Tjernlund
Requested by Peter Mazinger. Testing wanted.
2004-08-26Partial patch from Alexandre Oliva:Eric Andersen
- adjust licensing terms of sources for crt*.o - change the stat ABI to speed it up, matching changes in the kernel - assorted bug-fixes, improvements and updates in the FR-V port etc.
2004-08-25Mike Frysinger writes:Eric Andersen
this was sent earlier in a different form: http://www.uclibc.org/lists/uclibc/2004-January/008136.html find attached a smaller version ... perhaps adding a fprintf to stderr before calling abort would be nice like in the glibc patch, but whatever glibc has since adopted a similar fix for their malloc (third hunk, line 1970) http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/malloc/malloc.c.diff?r1=1.121&r2=1.122&cvsroot=glibc&f=h -mike
2004-08-25Mike Frysinger writes:Eric Andersen
i sent this earlier but perhaps people missed it the first time around :) http://www.uclibc.org/lists/uclibc/2004-August/009544.html basically if you try to #include <sys/ucontext.h> on arm it'll fail because ucontext.h utilizes typedefs found in bits/sigcontext.h ... i386 already has this fix in uClibc find attached a trivial patch to fix this -mike
2004-08-25Patch by Carl SHAW <carl.shaw@st.com>...Manuel Novoa III
Below is a patch to make the pread and pwrite calls work on the SH architecture. I've only tested this on the SH4 with a 2.4.24 kernel - a fairly recent kernel is required as the problem is partially fixed in the kernel itself. For more information (in relation to glibc, but the problem is the same) see the thread at http://sourceforge.net/mailarchive/message.php?msg_id=2375908 Someone should really test this on the SH2/3...
2004-08-22Make the stub profiling stuff workEric Andersen
2004-08-21Attempt to support 'gcc -finstrument-functions', which seems muchEric Andersen
more sane than 'gcc -pg' and seems much easier to support. -Erik
2004-08-21Kill off all support for 'gcc -pg' / 'gprof' style profiling. There is both aEric Andersen
size and performance penalty to profiling applications this way, as well as Heisenberg effects, where the act of measuring changes what is measured. There are better tools for doing profiling, such as OProfile, that do not require gcc to instrument the application code. -Erik
2004-08-20Enable only for architectures where __NR_madvise is definedEric Andersen
-Erik
2004-08-16I will always test before I commit.Eric Andersen
I will always test before I commit. I will always test before I commit. -Erik
2004-08-16Setup __pagesize from inside __uClibc_init(), or else when registeringEric Andersen
dtors via atexit(), atexit may need to call realloc with __pagesize still set to 0. ugh. -Erik
2004-08-16Be a bit more prominant about the fact that setuid handlingEric Andersen
is not quite there...
2004-08-16The variable used to store pagesize is not the same as theEric Andersen
_dl_pagesize variable in ldso, so avoid aliasing. -Erik
2004-08-15Do not fail all lookups when /etc/resolv.conf is missing, as i.e.Eric Andersen
checking on 127.0.0.1 is still valid w/o resolv.conf -Erik
2004-08-15Logic was reversed.Manuel Novoa III
2004-08-14req_search returned garbage. This teaches it to behave itself andEric Andersen
return the length and the actual dns packet as received, rather than making stuff up. -Erik
2004-08-13Fixup PAGE_SIZE problemsEric Andersen
-Erik
2004-08-10Fix mips bug related to 2.6 headers by following glibc's lead. Based onManuel Novoa III
the comment, newer kernels appended "64" to __NR_pread and __NR_pwrite.
2004-08-10Apparently the sigaction code added was broken, as it generated illegalManuel Novoa III
instruction errors. Disable it for now.
2004-08-10On Monday 02 August 2004 08:44 am, Mike Frysinger wrote:Manuel Novoa III
> the gethostbyname_r() call itself is not segfaulting, but the memory > returned in the h_aliases array seems to be wrong ... was playing around with the source today and eventually the obvious answer hit me ... while read_etc_hosts_r() generatings an array of strings fo h_aliases and populates it, the dns path does not :) find attached a patch that'll actually generate the h_aliases list in the normal dns code path ... i used the etc_hosts_r() code as a template for some of it ... note that this is just a simple fix ... it fills the alias list with just the hostname gethostbyname_r was passed ... the proper fix i think would be to parse the dns packet down in __dns_lookup() and pass the info back via the resolv_answer struct ... but this fix is better than the current state of things ... that is, h_aliases currently is never initailized in the dns code path :)
2004-08-04dohEric Andersen
2004-08-04Add missing header file needed to define PAGE_SIZEEric Andersen
2004-08-03As Joakim Tjernlund rightly notes, I should have used PAGE_SIZEEric Andersen
not the hard coded value of 4096.
2004-07-30Cleanup some dead wood in the header filesEric Andersen
2004-07-30s/___brk_addr/__curbrk/gEric Andersen
Some utilities, such as valgrind, have a legitimate reason to know the address of the current brk. Since we know such utils will peek under our skirt, we might as well give them what they expect and not use a gratuitously different symbol name. -Erik
2004-07-30Some mips updates. Add a couple of missing sys/*.h files and update a few ↵Manuel Novoa III
others.
2004-07-28Do not grovel about in the ELF header for the page size whenEric Andersen
running on uClinux, which at runtime uses the FLAT file format.
2004-07-27Be certain to include sys/sysmacros.h when major() and minor()Eric Andersen
are being used
2004-07-21Fix ftruncate64 and truncate64 for powerpc and mipsEric Andersen
-Erik
2004-07-17Update sigaction for armEric Andersen
2004-07-17Add sigaction for mipsEric Andersen
2004-07-16Follow glibc's lead and add a gcc-3.4.1 required symbol to crt0.S.Manuel Novoa III
2004-07-16Pete Popov writes:Eric Andersen
Hi Erik, I'm not sure why the NIOS support is not in uClibc -- perhaps the patch was rejected or never submitted? In any case, I'm playing with some NIOS stuff and created this patch against 0.9.26. The work was done by Microtronix. I'm not sure who else contributed to it. It would be great to have the NIOS support available in uClibc so developers don't have to go searching for these bits. Pete
2004-07-15Cleanup some cruftEric Andersen
2004-07-15Cleanup a few of the more egregiously broken sysconf values toEric Andersen
actually match reality. In particular, _SC_GETPW_R_SIZE_MAX and _SC_GETGR_R_SIZE_MAX were causing us problems with programs such as libglib, since they were always returning -1, which is a bit smaller than the actual passwd and group max buffer sizes. -Erik