summaryrefslogtreecommitdiffstats
path: root/libc
Commit message (Collapse)AuthorAgeFilesLines
* Some mips updates. Add a couple of missing sys/*.h files and update a few ↵Manuel Novoa III2004-07-305-51/+684
| | | | others.
* Do not grovel about in the ELF header for the page size whenEric Andersen2004-07-281-2/+5
| | | | running on uClinux, which at runtime uses the FLAT file format.
* Be certain to include sys/sysmacros.h when major() and minor()Eric Andersen2004-07-272-0/+2
| | | | are being used
* Fix ftruncate64 and truncate64 for powerpc and mipsEric Andersen2004-07-212-10/+52
| | | | -Erik
* Update sigaction for armEric Andersen2004-07-171-22/+42
|
* Add sigaction for mipsEric Andersen2004-07-172-1/+124
|
* Follow glibc's lead and add a gcc-3.4.1 required symbol to crt0.S.Manuel Novoa III2004-07-161-0/+6
|
* Pete Popov writes:Eric Andersen2004-07-1660-1/+4349
| | | | | | | | | | | | | 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
* Cleanup some cruftEric Andersen2004-07-151-3/+0
|
* Cleanup a few of the more egregiously broken sysconf values toEric Andersen2004-07-153-31/+19
| | | | | | | | 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
* _SC_PAGESIZE is standard. Some ancient legacy unix variants used _SC_PAGE_SIZEEric Andersen2004-07-151-1/+1
| | | | instead, but we are not such a system and should not propagate such things.
* Use MAP_PRIVATE whenever __ARCH_HAS_MMU__ is set.Eric Andersen2004-07-154-7/+21
| | | | Only use MAP_SHARED when mmu-less.
* Atsushi Nemoto writes:Eric Andersen2004-07-151-18/+13
| | | | | | | | | | | | This is a patch for uClibc/libc/sysdeps/linux/mips/sys/procfs.h pulled from glibc CVS. This fixes gdb with threaded application (with glibc environment). Although debugging threaded programs seems not working on uClibc/mips yet, this patch will be required when it becomes working. This patch can be applied to any version of uClibc (including current CVS).
* h8300 updates from Yoshinori SatoEric Andersen2004-07-1525-421/+788
|
* Stephen Hemminger from osdl dot org writes:Eric Andersen2004-06-121-0/+22
| | | | | | | | | | | | | | | | Rather than copy more code back into the bridge-utilities, how about applying this change to uClibc? I hate when packages get cluttered for workarounds for other incompatibilities. The problem is that SIOCGIFCONF only lists interfaces that have IP addresses, so it doesn't find the other interfaces that are being used for bridging. It could be fixed in the kernel to return all interfaces, but then something else might break; and still it mean a kernel update for the 2.4 users. The whole use of ifindex in the bridge API is a bad idea. But we probably have to live with it for compatibility. Patch against uClibc 0.9.26
* Philip Craig at snapgear dot com writes:Eric Andersen2004-06-121-1/+10
| | | | Strlen was counting the last 3 bytes incorrectly for big endian arm.
* Per comments from Bernhard Rosenkraenzer, adjust gcc 3.3.x generated asmEric Andersen2004-06-122-38/+24
| | | | with s/i686.get_pc_thunk.bx/get_pc_thunk_bx/g to make gcc 3.4 happy.
* Oops. Missed a spot.Eric Andersen2004-06-121-1/+1
|
* scrap the goofy time + getpid() based "randomness" and useEric Andersen2004-06-061-28/+35
| | | | the real thing.
* Removed unused file.Tobias Anderberg2004-05-241-72/+0
|
* Cope when the __NR_get_kernel_syms is undefined (i.e. 2.6.x arm-linux)Eric Andersen2004-05-151-0/+9
|
* Joakim Tjernlund writes:Eric Andersen2004-05-142-11/+7
| | | | | | | | | | | Hi Erik It seems to me that __pthread_once and __pthread_initialize_minimal could be made WEAKs with no stub. The code in rpc_thread.c and __uClibc_main.c appears to expect this. Also, __pthread_return_0 __pthread_return_1 and __pthread_return_void can be static, not to pollute the name space. Jocke
* Alexandre Oliva writes:Eric Andersen2004-05-146-336/+349
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Here are a number of minor changes to FR-V-specific bits of the uClibc port: - I've adjusted the definition of _dl_mmap to cope with the fact that there will be a definition for an mmap2-only system. - We don't have COPY relocs, so optimize the copy reloc-related code away. - Change the page size to 16KiB, to match the ABI spec, and not a stale value I'd copied from a linker config file. Oops. - Fix error handling in clone and vfork; parts of the changes by David Howells <dhowells@redhat.com> - Rearrange includes in crtreloc.c. - Change the API of __syscall_error, to reduce code size. - Improve __syscall_return in terms of code size, so as to enable tail-calling of __syscall_error, at least within libc. Ideally, __syscall_error should be hidden within libc.so, but this didn't work because of libdl. I haven't looked into why, and figured I'd leave it visible for now. - Rename enumerators and macros in sys/ucontext.h to reduce namespace pollution.
* __data_start needs to be added to all crt0.S files that don't currentlyEric Andersen2004-05-1414-44/+145
| | | | have it. It is used by the boehm gc, amoung other things.
* Kill off the now obsolete __libc_vfork symbolEric Andersen2004-05-144-11/+4
|
* Alexandre Oliva writes:Eric Andersen2004-05-144-1/+319
| | | | | This patch introduces optimized versions of memcpy and memset for frv.
* Patch from Alexandre Oliva:Eric Andersen2004-05-142-2/+130
| | | | | | | | | | | On Mar 20, 2004, Erik Andersen <andersen@codepoet.org> wrote: > If you supply a FR-V specific link.h header into > libc/sysdeps/linux/frv/ then you can do the same sortof > thing that mips does i.e. with sgidefs.h in the headers > target in libc/sysdeps/linux/mips/Makefile Thanks, this patch implements your suggestion.
* Add define for SHM_HUGETLBEric Andersen2004-05-131-0/+1
|
* Setup a _dl_pagesize value for use by staticly linked appsEric Andersen2004-05-111-0/+2
|
* make certain that getpagesize() returns correct the value for mipsEric Andersen2004-05-112-13/+39
| | | | by extracting the value from the ELF header.
* Purge trailing white spaceEric Andersen2004-05-111-13/+13
|
* Obligatory forgotten file...Manuel Novoa III2004-05-081-1/+2
|
* Change clock() to allow wrapping.Manuel Novoa III2004-05-081-86/+145
| | | | | | | Add timegm() function. Make lookup_tzname() static (as it should have been). Have strftime() get timezone information from the passed struct for the %z and %Z conversions when using struct tm extensions.
* Patch from Yoshinori Sato <ysato@users.sourceforge.jp>.Manuel Novoa III2004-05-071-0/+4
|
* "Fix" this so that at least things will link when threading is disabled.Manuel Novoa III2004-05-071-4/+8
| | | | | | Also fix the sizeof() issue since the change to a dynamicly allocated buf. Note! This is still broken wrt threading, but so is the glibc version. I'm just commiting this for new until I can test my rewrite.
* Fix a couple of issues in configurations I hadn't tested.Manuel Novoa III2004-05-072-23/+9
|
* Add missing include.Manuel Novoa III2004-05-071-0/+1
|
* Change the global 'buf' to 'servbuf' since some functions in here useEric Andersen2004-05-071-7/+7
| | | | a local named 'buf' and we want to avoid shadowing that.
* Fix screwed up formattingEric Andersen2004-05-051-20/+20
|
* Jeroen Dobbelaere writes:Eric Andersen2004-05-051-1/+2
| | | | | | | | | | Because variables are linked to fixed registers, there is a problem in : (*__errno_location())=(-_r0); As __errno_location() uses r0 to return the address of the errno location, the negated address will be assigned instead of the error code. Attached patch will resolve this.
* It turns out that asm/reg.h is missing from the 2.6.x kernel headers,Eric Andersen2004-04-231-2/+167
| | | | | which prevents libthread_db (used by gdb) from compiling. Include a copy within include/sys/user.h for mips, per what was done in glibc.
* Cope with gcc 3.4's more aggressive persuit of attribute unusedEric Andersen2004-04-2011-29/+29
|
* Fix typo.Manuel Novoa III2004-04-141-1/+1
|
* Fix a bug noticed by Oleg I. Vdovikin, oleg at cs dot msu dot su.Eric Andersen2004-04-061-4/+0
| | | | | | | This code in uClibc would attempt to set the default facility if none was specified. Except none being specified is 0, which is also LOG_KERN, therefore klogd could never get kernel messages logged as LOG_KERN.
* Per patch from Stefan Holst, do not try to compile theseEric Andersen2004-03-194-0/+8
| | | | syscalls if they are not supported.
* Patch from Stefan Holst to fix argv[0]Eric Andersen2004-03-191-5/+5
|
* Based on a patch from Alexandre Oliva, allow uClibc to compileEric Andersen2004-03-191-0/+2
| | | | with __NR_mmap is not available (i.e. only __NR_mmap2)
* Alexandre Oliva writes:Eric Andersen2004-03-182-1/+42
| | | | | I added this function after I posted the last version of the FR-V patch. Add syscall.c.
* Supply '__bzero' with 'bzero' as just a weak alias (since it is not SuSv3)Eric Andersen2004-03-182-4/+7
|
* Based on a patch from Alexandre Oliva, remove all reference to 'bzero' (whichEric Andersen2004-03-1810-23/+24
| | | | | is not a SuSv3 symbol). Rather than using __bzero internally per Alexandre's original patch, use memset instead.