summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps
Commit message (Collapse)AuthorAgeFilesLines
...
* - forgot to checkin this s/check/FORCE/Bernhard Reutner-Fischer2008-06-051-1/+1
|
* Fix merge error: mmap.c no longer exists in bfin/.Bernd Schmidt2008-06-031-1/+1
|
* - adds several config-options to allow for turning off certain featuresBernhard Reutner-Fischer2008-06-0344-56/+187
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | like o UCLIBC_HAS_GNU_ERROR o UCLIBC_HAS_BSD_ERR o UCLIBC_HAS_PTY o UCLIBC_HAS_GETPT (1) o UCLIBC_SYSCALL_STUBS o UCLIBC_SYSCALL_STUB_WARNING o UCLIBC_LINUX_SPECIFIC (2) o UCLIBC_BSD_SPECIFIC (3) o UCLIBC_NTP_LEGACY (4) o UCLIBC_SV4_DEPRECATED (5) o UCLIBC_HAVE_REALTIME (6) o UCLIBC_HAVE_ADVANCED_REALTIME (7) o UCLIBC_HAVE_EPOLL (8) o UCLIBC_HAVE_XATTR (9) o UCLIBC_HAVE_PROFILING (10) (1) make non-standard getpt optional and implement standard posix_openpt (2) fstatfs(), inotify_*(), ioperm(), iopl(), madvise(), modify_ldt(), personality() ppoll(), setresuid() (3) mincore(), getdomainname(), setdomainname() (4) ntp_adjtime(), ntp_gettime() aliases (5) ustat() [use statfs(2) in your code instead] (6) All marked as "(REALTIME)" in SUSv3 (7) All marked as "(ADVANCED REALTIME)" in SUSv3 (8) epoll_create(), epoll_ctl(), epoll_wait() (9) all Extended Attributes (10) helpers for gcc's -finstrument-functions - Fixes _dl_exit() - Implements sleep(3) for !UCLIBC_HAVE_REALTIME - Implements usleep(3) for !UCLIBC_HAVE_REALTIME - adds #warning about incorrect posix_fadvise{,64}() - removes unused and unwanted uselib() Net outcome is that an allnoconfig with HAVE_SHARED is now about 88k instead of formerly 130k.
* Rework smallint machinery so that it will reliably fail to compileDenis Vlasenko2008-06-011-4/+2
| | | | | | even if arch overrides smallint size. Makes it easier to spot bugs on such arches.
* add missing includes of unistd.h for smallint usageDenis Vlasenko2008-06-011-0/+1
| | | | | remove a few duplicate includes of unistd.h
* - cannot really guarantee proper order, so play safe and compile the problematicBernhard Reutner-Fischer2008-05-301-8/+4
| | | | sources separately for now.
* - Fix gcc glitch with mremap and IMA.Bernhard Reutner-Fischer2008-05-301-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | For -combine, make sure that we don't pollute our non-varargs mremap decl with some vararg decl from later in the TU by putting ours after anybody else who is picking up mman.h. This is admittedly a small work-around.. smallish testcase: $ cat bug.h extern void *mremap (void*, unsigned, unsigned, int, ...); $ cat bug1.c #include "bug.h" int whatever; $ cat bug2.c #define mremap _hidemremap #include "bug.h" #undef mremap void *mremap (void*, unsigned, unsigned, int, void*); $ gcc -c bug1.c bug2.c $ gcc -c bug1.c bug2.c -combine bug2.c:4: error: conflicting types for ‘mremap’ bug.h:1: error: previous declaration of ‘mremap’ was here
* Fix typo in macro for tls access modelCarmelo Amoroso2008-05-291-1/+1
|
* avr32: splice(), vmsplice() and tee() supportHaavard Skinnemoen2008-05-281-0/+31
| | | | | Add the necessary prototypes and definitions for splice(), vmsplice() and tee() to work. Without this, they won't even compile.
* - rename to match the set*() function's filenameBernhard Reutner-Fischer2008-05-221-0/+0
|
* - rename to match the setdomainname filenameBernhard Reutner-Fischer2008-05-221-0/+0
|
* - my manpage sais that init_module, create_module, query_module, delete_moduleBernhard Reutner-Fischer2008-05-211-0/+5
| | | | were removed in linux-2.6
* replace "if (p) free(p)" by just "free(p)" - free(NULL) is safe.Denis Vlasenko2008-05-202-4/+2
|
* Introduce and use small[u]int type. Changes in size:Denis Vlasenko2008-05-202-1/+9
| | | | | | | | | | | | | | - 79 0 28 107 6b libc/inet/rpc/create_xid.o + 76 0 25 101 65 libc/inet/rpc/create_xid.o - 126 0 4 130 82 libc/misc/assert/__assert.o + 123 0 1 124 7c libc/misc/assert/__assert.o - 648 4 24 676 2a4 libc/misc/internals/__uClibc_main.o + 645 4 21 670 29e libc/misc/internals/__uClibc_main.o - 230 0 4 234 ea libc/stdlib/abort.o + 216 0 1 217 d9 libc/stdlib/abort.o - 129 0 4 133 85 libc/termios/tcgetsid.o + 126 0 1 127 7f libc/termios/tcgetsid.o
* Moving libc_hidden_proto's into #ifdef UCLIBC_INTERNAL blockDenis Vlasenko2008-05-1922-30/+30
| | | | | | | | | in string.h and strings.h. This caught unguarded string ops in libc/inet/ethers.c __ether_line_w() function. I will wait for fallout reports for a week or so, then continue converting more libc_hidden_proto's.
* - add missing #endifBernhard Reutner-Fischer2008-05-0324-1/+23
|
* - implement splice,vmsplice,tee for all archesBernhard Reutner-Fischer2008-05-0324-158/+806
| | | | - synch F_LINUX_SPECIFIC_BASE related fcntls for all arches
* Wire up vmsplice, splice and tee for arm.Khem Raj2008-05-031-11/+14
|
* - add vmsplice, splice, tee (Timo Teräs)Bernhard Reutner-Fischer2008-05-024-10/+106
| | | | - pull bits/fcntl.h from glibc (Timo Teräs)
* Experimentally move libc_hidden_proto(time) to time.h.Denis Vlasenko2008-04-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The only code change observed is actually a case where we were not doing that as needed: 00000000 <__GI_tzset>: -53 push %ebx -e8 00 00 00 00 call 6 <__GI_tzset+0x6> -5b pop %ebx -81 c3 03 00 00 00 add $0x3,%ebx - R_386_GOTPC _GLOBAL_OFFSET_TABLE_ 6a 00 push $0x0 -e8 fc ff ff ff call 10 <__GI_tzset+0x10> - R_386_PLT32 time +e8 fc ff ff ff call 3 <__GI_tzset+0x3> + R_386_PC32 __GI_time 3d ff 4e 98 45 cmp $0x45984eff,%eax 0f 9e c0 setle %al 0f b6 c0 movzbl %al,%eax 50 push %eax -e8 fc ff ff ff call 21 <__GI_tzset+0x21> +e8 fc ff ff ff call 14 <__GI_tzset+0x14> R_386_PC32 _time_tzset 58 pop %eax 5a pop %edx -5b pop %ebx c3 ret No mass migration of libc_hidden_proto(foo) planned. Lets wait for potential fallout first.
* - fixup asm. No object-code changesBernhard Reutner-Fischer2008-04-2441-184/+184
|
* Fix whitespace damage in AVR32 in libc sysdeps AVR32 specific Linux files.Hans-Christian Egtvedt2008-04-2415-252/+252
|
* Fix whitespace damage in AVR32 libc sysdeps sys header files.Hans-Christian Egtvedt2008-04-244-77/+77
|
* Fix whitespace damage in AVR32 libc bits header files.Hans-Christian Egtvedt2008-04-2410-398/+398
|
* Cleanup INTERNAL_SYSCALL macros for ARM.Khem Raj2008-04-231-80/+35
|
* Fix mmap64 undefined on arm oabi with pure thumb1 patchset. Thanks Tobias ↵Khem Raj2008-04-201-0/+1
| | | | Poschwatta
* Fix remap_file_pages prototype and use mman.h headerCarmelo Amoroso2008-04-011-3/+3
|
* Paul Brook writes:Bernhard Reutner-Fischer2008-03-2613-4/+380
| | | | | | | | | | | | | | | The attached patch adds support for compiling arm uClibc as pure Thumb code. This is needed because some recent ARM codes do not implement traditional ARM mode. Specifically: * Cortex-M1 - An extremely minimal FPGA based core that only implements Thumb-1 (aka ARMv6-M). * Cortex-M3 - A Thumb-2 only ARMv7-M core. Most of uClibc already builds in Thumb mode, all that is left are a handful of assembly bits. Tested on arm-uclinuxeabi.
* Add rempa_file_pages function by Will Newton <will.newton@imgtec.com>Carmelo Amoroso2008-03-211-0/+16
|
* michael_d writes in [#2064]: fix building on linux-2.0 systemsMike Frysinger2008-03-214-6/+21
|
* xtensa: the size of the elf_gregset_t array is actually 128.Chris Zankel2008-02-201-1/+1
| | | | Signed-off-by: Chris Zankel <chris@zankel.net>
* Use HIDDEN_JUMPTARGET define instead of __GI_ directly in AVR32 filesHans-Christian Egtvedt2008-02-202-2/+2
| | | | | | | This patch uses the HIDDEN_JUMPTARGET instead of the __GI_ prefix in AVR32 assembler files. This is done to follow the code style in uClibc. Signed-off-by: Hans-Christian Egtvedt <hcegtvedt@atmel.com>
* Xtensa: Provide an architecture specific sigaction and sa_restorer function ↵Chris Zankel2008-02-203-3/+81
| | | | | | in libc to avoid having to place executable code on stack. Signed-off-by: Chris Zankel <chris@zankel.net>
* posix_fadvise64 on 64bit systems take 5 arguments, not 6, as pointed out by ↵Mike Frysinger2008-02-161-1/+1
| | | | skinkie in #2194
* fix typo pointed out by skinkie in #2194Mike Frysinger2008-02-161-1/+1
|
* 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.
* A patch from our Blackfin repository, originally from Jie Zhang. This fixesBernd Schmidt2008-01-1727-80/+3
| | | | | | | | | | | | | 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.
* 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
|
* 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-0542-0/+2991
| | | | | | | | | | | | | | | | | | 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.
* whitespace only: touchups from Hans-Christian EgtvedtMike Frysinger2008-01-052-3/+3
|
* add BOTHER define from termios2Mike Frysinger2008-01-051-0/+1
|
* implement semtimedop for #927Mike Frysinger2008-01-051-17/+0
|
* 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.
* 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>
* Blackfin crt1.S fixes for building with -msep-data.Bernd Schmidt2007-11-231-6/+11
|