summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/sh
Commit message (Collapse)AuthorAgeFilesLines
* whitespace fixesAustin Foxley2009-10-175-12/+12
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Fix SH bits/kernel_types.h for new kernel headers.Joseph Myers2009-10-161-1/+2
| | | | | | | | | Recent SH kernel headers merge 32-bit and 64-bit headers, changing the include guards on asm/posix_types.h in the process; update uClibc code depending on those include guards. Signed-off-by: Joseph Myers <joseph@codesourcery.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* clean up O_CLOEXEC handlingMike Frysinger2009-10-161-2/+0
| | | | | | | | Drop the "#ifndef O_CLOEXEC" cruft, enable O_CLOEXEC in most fcntl.h headers, and import __ASSUME_O_CLOEXEC from glibc. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* sh: Align sh clone implementation with glibcCarmelo Amoroso2009-10-101-8/+7
| | | | | | | | | Align sh clone implementation with glibc one that incorporated time ago a patch provided by me slightly modified. The glibc code indeed avoids to load the r3 register if the 2nd function argument is NULL (r5). No functional change. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* trim Experimentally off and uncommented hiddenAustin Foxley2009-09-184-4/+0
| | | | | | | | sed -i -e '/Experimentally off - /d' $(grep -rl "Experimentally off - " *) sed -i -e '/^\/\*[[:space:]]*libc_hidden_proto(/d' $(grep -rl "libc_hidden_proto" *) should be a nop Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* always define float_t as floatBernhard Reutner-Fischer2009-09-181-21/+1
| | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* sh/user.h: clean up conflicts from kernel user.hAndrew Stubbs2009-09-181-0/+11
| | | | | | | | | | | | | This patch makes sufficient modifications to the SH sys/user.h to be able to build and run gdbserver with Linux kernel 2.6.30. The problem is that both the kernel and library headers define the same symbols, thus making it impossible in include both headers. The patch undefines the kernel symbols in favour of the library symbols. Signed-off-by: Andrew Stubbs <ams@codesourcery.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* honour NO_LONG_DOUBLE_MATHBernhard Reutner-Fischer2009-09-031-0/+6
| | | | | | | | | This fixes compilation errors on hosts that turn off long double support for C99 like powerpc32. Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* enable nanosecond stat support for everyoneMike Frysinger2009-08-191-14/+6
| | | | | | | | | | | | | | Fill out the stat structure so that the nanosecond resolution support is always available. There is a small code size increase for a few ports (three additional assignments in xstatconv), but otherwise everything should remain the same. While we're here, punt __old_kernel_stat from the few headers that still define it as it is unused in uClibc and causes compile errors after these nanosecond changes. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* build: Include Makefile.commonarch from common Makefile.inCarmelo Amoroso2009-07-291-2/+0
| | | | | | | | Avoid including akefile.commonarch in each Makefile.arch. Include it instead from Makefile.in just after the arch specific Makefile.arch Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* syscall(): create a common version based on INLINE_SYSCALL_NCS()Mike Frysinger2009-07-092-28/+1
| | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* syscall: unify part 2: NCS varietyMike Frysinger2009-07-091-23/+0
| | | | | | | | Declare common NCS (non-constant syscall) variants and convert the existing ports over to this. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* syscall: unify common syscall definesMike Frysinger2009-07-091-134/+0
| | | | | | | | | | Unify all the common syscall defines in syscalls-common.h and scrub all the duplicated code from relevant ports. This should also make converting existing ports to INLINE_SYSCALL() much easier as they don't have to get lost in all the unrelated noise, as well as creating new ports. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* uClibc_arch_features: sync defines between portsMike Frysinger2009-07-091-0/+3
| | | | | | | | Make sure each arch has the same complete list to make comparing between them easier. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* sh: Add licensing statement to cacheflush.cCarmelo Amoroso2009-07-021-0/+2
| | | | Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* sh: add cacheflush syscall wrapperGiuseppe Cavallaro2009-07-022-1/+14
| | | | | Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Add position independent code for crt1.S.Carmelo Amoroso2009-05-051-0/+45
| | | | | | | | | This will generate a Scrt1.o that is linked to executabled when compiled as PIE code (position independent executable) without requiring relocation in .text section (not allowed on uclibc/sh4). Signed-off-by: Peter Griffin <pgriffin@mpc-data.co.uk> Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com>
* Use gcc built-in defines for detecting SH cores instead ofCarmelo Amoroso2009-02-235-6/+6
| | | | | | | | | | | | | uclibc config option macros (aligning SH to all other archs). Changes applied as below: __CONFIG_SH4__ -> __SH4__ __CONFIG_SH2__ -> __sh2__ __CONFIG_SH2A__ -> __SH2A__ Note: pay attention to capital letters Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Fix my previous commit to use preprocessor in the right way !Carmelo Amoroso2009-02-201-1/+1
|
* Fix typo.Carmelo Amoroso2009-02-201-1/+1
|
* sh: Fix __SH_SYSCALL_TRAP_BASE for SH2A architectureCarmelo Amoroso2009-02-201-1/+1
| | | | Signed-off-by: Peter Griffin <pgriffin@mpc-data.co.uk>
* Synch with trunk @ 24160Carmelo Amoroso2008-11-2711-35/+27
| | | | | | Step 14: miscellaneous merge for arch specific files in libc/sysdeps. Comments, cleanup, formatting, hidden_proto removal and others.
* sh_nptl: Enable CFI directives for shCarmelo Amoroso2008-09-181-0/+3
| | | | | | | | | Enable CFI directives for sh to add proper CFI information into assembly functions. This provides stack frame information used during stack unwinding as well by debugger for backtracing. Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Fixes posix_fadvise[64] functions to return the Carmelo Amoroso2008-09-181-0/+145
| | | | | | | | | | error number in case of failure instead of -1 and setting errno, according to SuSv3 (IEEE Std 1003.1 2004 edition) specification. Also refactor sysdep.h and syscalls.h moving INTERNAL_SYSCALL macro to the latter (as other archs do in uclibc). Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Kill off the GOT lookup for init/fini in the sh crti.S. This wasCarmelo Amoroso2008-09-181-25/+2
| | | | | | | | | inversely conditional on __HAVE_SHARED__, which has been broken since the time it was copied in originally. The compiler properly generates the GOT references on its own, negating the entire purpose for the init/fini reference. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Fix SH ldso sequence startup.Carmelo Amoroso2008-08-081-2/+8
| | | | | | | | | | | | | | | | | | Pass via r4 the rtld finalizer _dl_fini to the user application. This will be the 6^ arg of __uClibc_main and will be registered with 'atexit'. In this way the dynamic linker will be able to call destructors defined within the loaded DSOs. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com> Acked-by: Paul Mundt <lethal@linux-sh.org> Add missing 7th arg "stack_end". add comment of undocumented usage of r4. fix comment of expected __uClibc_main() prototype. Signed-off-by: Yoshii Takashi <yoshii.takashi@renesas.com> Acked-by: Paul Mundt <lethal@linux-sh.org>
* Synch with trunk at rev 22997.Carmelo Amoroso2008-07-313-6/+6
| | | | | | | Basically trailing whitespaces removal, fix non standard keywords asm -> __asm__ inline -> __inline__ and some minor changes on trunk. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* BIG BIG commit: all left files merged from trunk [rev 22714]. Currenntly ↵Carmelo Amoroso2008-07-098-35/+48
| | | | NPTL sh4 port build and work fine. All committed to allow Khem Ray working on a working branch to integrate the ARM nptl port. MIPS nptl port not tested but should still building and working fine. There are some other part non yet merged with trunk (misc/internals and some headers file that need some more work). Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Added some missing files:Carmelo Amoroso2007-11-211-0/+56
| | | | | | | | creat.c: to provide creat function longjmp.c: to provide longjmp implementation for sh4 tsd.c: to provide implementation of __libc_dl_error_tsd Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Push latest libc SH4 specific implementationsCarmelo Amoroso2007-11-2012-401/+400
|
* Merge from trunk."Steven J. Hill"2006-12-1611-48/+68
|
* When you delete a '1' does it become '0' or tri-stated?"Steven J. Hill"2006-12-161-209/+0
|
* Copy from trunk."Steven J. Hill"2006-12-161-0/+109
|
* Big fricking merge from trunk, but an easy one."Steven J. Hill"2006-08-249-84/+63
|
* Copy from trunk."Steven J. Hill"2006-08-241-0/+69
|
* Copy from trunk."Steven J. Hill"2006-08-241-0/+72
|
* Removal as per trunk."Steven J. Hill"2006-08-221-33/+0
|
* Merge from trunk."Steven J. Hill"2006-08-213-5/+0
|
* Merge from trunk."Steven J. Hill"2006-08-181-9/+12
|
* Merge from trunk."Steven J. Hill"2006-08-182-18/+66
|
* Merge from trunk."Steven J. Hill"2006-02-2814-122/+121
|
* Big fricking merge from trunk."Steven J. Hill"2006-01-076-16/+20
|
* Merge from trunk."Steven J. Hill"2005-12-102-4/+5
|
* Merge from trunk."Steven J. Hill"2005-12-023-4/+3
|
* Sync up with trunk."Steven J. Hill"2005-11-191-1/+1
|
* Massive merge from trunk."Steven J. Hill"2005-11-181-2/+2
|
* Massive merge from trunk."Steven J. Hill"2005-11-172-73/+18
|
* Copy from trunk."Steven J. Hill"2005-11-161-0/+14
|
* Merge from trunk."Steven J. Hill"2005-10-301-35/+23
|
* Big, huge fricking merge. Peter, if you touch the build system again I'm ↵"Steven J. Hill"2005-10-041-5/+3
| | | | going to smash your keyboard.