summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/sh/bits
Commit message (Collapse)AuthorAgeFilesLines
* whitespace fixesAustin Foxley2009-10-171-1/+1
| | | | 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>
* 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>
* 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>
* 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>
* Use gcc built-in defines for detecting SH cores instead ofCarmelo Amoroso2009-02-232-2/+2
| | | | | | | | | | | | | 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-273-19/+10
| | | | | | 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>
* Synch with trunk at rev 22997.Carmelo Amoroso2008-07-312-4/+4
| | | | | | | 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-093-17/+28
| | | | 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>
* Push latest libc SH4 specific implementationsCarmelo Amoroso2007-11-204-321/+197
|
* Merge from trunk."Steven J. Hill"2006-12-164-25/+37
|
* 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-244-67/+48
|
* 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-182-18/+66
|
* Merge from trunk."Steven J. Hill"2006-02-281-0/+48
|
* Big fricking merge from trunk."Steven J. Hill"2006-01-071-4/+4
|
* Merge from trunk."Steven J. Hill"2005-12-021-0/+1
|
* Massive merge from trunk."Steven J. Hill"2005-11-181-2/+2
|
* Massive merge from trunk."Steven J. Hill"2005-11-171-4/+10
|
* Merge from trunk."Steven J. Hill"2005-08-091-1/+4
|
* Added new 'bits/atomic.h' for most of the architectures and the top-level ↵"Steven J. Hill"2005-05-121-0/+419
| | | | 'include/atomic.h' to add in new atomic operations for use by NPTL. There are multiple files for PowerPC and Sparc for 'atomic.h'. I will let those architecture maintainers choose the correct file. The files come from glibc in 'sysdeps/ARCH/bits'.
* Fix trapa value for _syscall6() to conform with new sh syscall ABI.Paul Mundt2005-05-071-1/+1
| | | | | | | | The old sh system call interface used 0x00 - 0x0f for the trapa value (number of arguments), whereas the new ABI uses the 0x10 - 0x1f range. For some reason we were using an off-by-1 trapa immediate which ended up trashing r1 in the _syscall6() case, so we fix it up..
* no more cvsMike Frysinger2005-02-121-1/+0
|
* Kill off all support for 'gcc -pg' / 'gprof' style profiling. There is both aEric Andersen2004-08-211-83/+0
| | | | | | | | 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
* Cope with gcc 3.4's more aggressive persuit of attribute unusedEric Andersen2004-04-201-1/+1
|
* Sigh. The 2.6.x kernel removed '__kernel_dev_t' and renamed it asEric Andersen2004-02-061-0/+1
| | | | | | | | | '__kernel_old_dev_t'. And of course there is no good way to know which is in use except checking linux/version.h. Grumble. This is rather lame, but for now, define __kernel_old_dev_t to be the same as __kernel_dev_t. This will want to be revisited soon. -Erik
* Some updates from glibc. mjn3 reports this fixes profilingEric Andersen2003-09-071-6/+6
| | | | on i386, at least, so seems like a good thing.
* Patch from Stefan Allius:Eric Andersen2003-03-071-0/+5
| | | | fix a couple of gcc 3.3 compiler warnings in gmon.c
* Patch from Stefan Allius to finish off the last required bitsEric Andersen2003-03-061-25/+76
| | | | for gmon profiling support for the SuperH target.
* Initial effort at adding profiling support.Eric Andersen2003-03-034-0/+115
|
* Ok, people are probably going to hate me for this... This commit changes theEric Andersen2003-01-241-60/+3
| | | | | | | | | | | | | | | type of 'struct stat' and 'struct stat64' so they use consistant types. This change is the result of a bug I found while trying to use GNU tar. The problem was caused by our using kernel types within struct stat and trying to directly compare these values with standard types. Trying an 'if (a < b)' when 'a' is an 'unsigned long' and 'b' is an 'int' leads to very different results then when comparing entities of the same type (i.e. time_t values).... Grumble. Nasty stuff, but I'm glad I got this out of the way now. As a result of this fix, uClibc 0.9.17 will not be binary compatible with earlier releases. I have always warned people this can and will happen. -Erik
* Support O_STREAMINGEric Andersen2002-10-091-0/+1
|
* Change <bits/syscall.h> to <bits/sysnum.h>.Miles Bader2002-09-052-3/+3
|
* Added __kernel_fsid_t to satisfy some apps that need it.David McCullough2002-08-271-0/+8
| | | | Definitions taken from 2.4 kernel sources for each of the platforms.
* Make bits/kernel_types.h include guard names match the includeEric Andersen2002-08-261-3/+9
| | | | | | | guard names used by the kernel's asm/posix_types.h to eliminate gratuitous conflicts and let our file win over the very-likely- to-be-broken kernel header file. -Erik
* Finish off the bits/kernel_stat.h cleanup for properEric Andersen2002-08-251-0/+55
| | | | | __USE_FILE_OFFSET64 handling. -Erik
* Break dependancy of bits/types.h on the asm/posix_types.h kernelEric Andersen2002-08-241-0/+29
| | | | | header, which is not directly usable for many architectures. -Erik