summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux
Commit message (Collapse)AuthorAgeFilesLines
...
* bits/kernel_stat.h: use the same guard on all archsPeter S. Mazinger2011-03-094-9/+9
| | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* types.h: remove __ipc_pid_tPeter S. Mazinger2011-03-091-5/+0
| | | | | | | Remove __ipc_pid_t, not needed internally, we do not support pre glibc-2.2 version of shmid_ds structure. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* guard *_chk() related stuff with UCLIBC_HAS_FORTIFYPeter S. Mazinger2011-03-092-2/+6
| | | | | | | | | | | | Guard x86_64 memset_chk/memcpy_chk be guarded by UCLIBC_HAS_FORTIFY. Compile ssp.c if one of SSP/FORTIFY is defined. Guard __chk_fail() with UCLIBC_HAS_FORTIFY and move its prototype to libc-internal.h. Disable _FORTIFY_SOURCE if UCLIBC_HAS_FORTIFY is not set. The config option itself is omitted on purpose, headers need to be reviewed and generic *_chk() functions need to be first provided. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* nios2: Correct guard #defines in bits/kernel_types.hTobias Klauser2011-03-081-3/+3
| | | | | | | | | The guards in posix_types.h are called _ASM_NIOS2_POSIX_TYPES_H, so correctly use them here. Otherwise we wont be able to build uClibc with headers exported from the current nios2 kernel. Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* shm.h: fix vax's bits/shm.hPeter S. Mazinger2011-03-081-3/+9
| | | | | | | | Do not use __ipc_pid_t, since that is not visible after install. Provide and use shmatt_t. Add missing __END_DECLS. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* The C6X portAurelien Jacquiot2011-03-0539-0/+2460
| | | | | | | | This adds support for the TI C6X family of processors. Signed-off-by: Mark Salter <msalter@redhat.com> Signed-off-by: Aurelien Jacquiot <a-jacquiot@ti.com> Signed-off-by: Bernd Schmidt <bernds@codesourcery.com>
* provide internal hidden version of __fcntl_nocancelPeter S. Mazinger2011-03-031-0/+1
| | | | | | guard the prototype with _LIBC, it is only for internal use Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* add _dl_errno support to errno.h, cleanupPeter S. Mazinger2011-03-031-43/+0
| | | | | | | | Add support to use errno.h in ldso. Move __set_errno into _LIBC guard. Remove uClibc_errno.h, unused. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* sgtty.h is useless, remove it on STRICT_HEADERSPeter S. Mazinger2011-03-031-0/+2
| | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* simplify guard of uClibc internalsPeter S. Mazinger2011-03-031-1/+1
| | | | | | Simplify guard of uClibc internals, since _LIBC sections are removed on install. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* remove ucontext.h and guard sigstack structure with SUSV4_LEGACY and ↵Peter S. Mazinger2011-03-035-0/+10
| | | | | | | | | | STRICT_HEADERS Remove ucontext.h if SUSV4_LEGACY is not set and fix it's references. Guard sigstack structure with SUSV4_LEGACY and STRICT_HEADERS. Disable sigstack function prototype, it is not provided by uClibc. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* remove error handling from some syscallsPeter S. Mazinger2011-03-039-51/+33
| | | | | | | Remove error handling from getegid/getgid/geteuid/getuid/getppid/getpid/getpgrp Use strong_alias if fallbacks are needed Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* fix stubsPeter S. Mazinger2011-03-031-5/+1
| | | | | | We use enosys_stub only in this file so make it static Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* Correct ssp codePeter S. Mazinger2011-03-031-1/+2
| | | | | | | | Avoid using strong_alias in ssp, some archs dislike it. Make stack_chk_guard static. Export __stack_smash_handler only if compatibility option is enabled. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* add missing prototypesPeter S. Mazinger2011-03-031-0/+4
| | | | | | Add some missing prototypes Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* use common sigthread.hPeter S. Mazinger2011-03-031-1/+7
| | | | | | | NPTL build did not use the correct bits/sigthread.h, use a common version avoiding this. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* nptl:arm: add a wrapper for .cfi_sections pseudo-opsCarmelo Amoroso2011-02-251-0/+5
| | | | | | | | | | | | | | | | ARM disables by default the support for ASM CFI directives. Anyway using an old version of binutils that does not support some new pseudo-op, the build fails as below: AS libpthread/nptl/sysdeps/unix/sysv/linux/close.oS libpthread/nptl/sysdeps/unix/sysv/linux/close.S: Assembler messages: libpthread/nptl/sysdeps/unix/sysv/linux/close.S:9: Error: unknown pseudo-op: `.cfi_sections' The problem is that the .cfi_sections pseudo should be wrapped by a macro that expands to nothing when the CFI is off. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com> CC: Khem Ray <ray.khem@gmail.com>
* unify stub logicMike Frysinger2011-02-2430-266/+195
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* bfin: fix fp reference in _JMPBUF_UNWINDSMike Frysinger2011-02-221-1/+1
| | | | | | | | | | | | We want to access the frame pointer, so do so directly rather than "overflowing" the pregs array and ending up at the fp member. This fixes the Blackfin build warnings: libpthread/linuxthreads.old/ptlongjmp.c: In function 'pthread_cleanup_upto': libpthread/linuxthreads.old/ptlongjmp.c:35: warning: array subscript is above array bounds libpthread/linuxthreads.old/ptlongjmp.c:56: warning: array subscript is above array bounds Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* nptl: imit waitpid just for MIPS O32Bernhard Reutner-Fischer2011-02-221-1/+0
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* bfin: add support for new cacheflush syscallSteve Kilbane2011-02-213-1/+40
| | | | | | | | | Newer gcc's will generate a call to cacheflush when updating jump tables, and that has to be done in kernel space (to avoid hardware anomalies). So make sure uClibc provides that symbol. Signed-off-by: Steve Kilbane <steve@whitecrow.demon.co.uk> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* bfin: fix sram/dma syscall definitionsSteve Kilbane2011-02-213-5/+5
| | | | | | | | Once we pull in the header, we're forced to declare the syscall with all the right types. Signed-off-by: Steve Kilbane <steve@whitecrow.demon.co.uk> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* bfin: add missing GNU-stack markings to __longjmpMike Frysinger2011-02-211-0/+2
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* buildsys: fix inverted logic with thread implsBernhard Reutner-Fischer2011-02-161-3/+2
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* buildsys: use kbuild styleBernhard Reutner-Fischer2011-02-141-96/+39
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* buildsys: remove wrong fileBernhard Reutner-Fischer2011-02-141-1/+1
| | | | | | Somehow Makefile.in ended in there, remove it. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* nptl: fix typo in buildsysBernhard Reutner-Fischer2011-02-141-1/+1
| | | | | | 0f85b228 used 'filter-pout' instead of 'filter-out'. Fix that. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* Fix GNU make v3.80 compatibilityKevin Cernekee2011-02-111-2/+6
| | | | | | | | Commits 1f6601a and 094d82d introduced the "else ifeq" construct, which requires GNU make v3.81 or higher. This breaks the build on RHEL4 hosts. Signed-off-by: Kevin Cernekee <cernekee@gmail.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* arm: use CAS gcc builtin if SI-mode pattern is availableBernhard Reutner-Fischer2011-02-111-8/+17
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* i386: extend IMA guards to also cover LTOBernhard Reutner-Fischer2011-02-091-2/+5
| | | | | | See GCC PR47577; TODO: Remove them. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* sync bits/socket.h PF_* / AF_* values with 2.6.38-rc3Peter Korsgaard2011-02-093-3/+63
| | | | | | | | | A number of new address / protocol families have been added over the years, so sync with Linux 2.6.38-rc3, adding CAN, ISDN, Phonet, Zigbee, .. which are starting to be used by applications. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* arm: mv nptl specific atomic impl to common placeBernhard Reutner-Fischer2011-02-091-0/+122
| | | | | | Thanks to Nitin Garg for notincing! Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* nios2: Name architecture correctly in endian.h headerTobias Klauser2011-02-011-1/+1
| | | | | | | Nios II is not i386 :-) Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* nptl/mips64: Fix build when using mips64 and ABIs other than o32Khem Raj2011-01-291-0/+4
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* cris: Fix build issuesKhem Raj2011-01-152-0/+83
| | | | | | Thanks Waldemar Brodkorb for reporting Signed-off-by: Khem Raj <raj.khem@gmail.com>
* sparc: check for log double support in gccKonrad Eisele2010-12-271-0/+6
| | | | | | | | | To compile the quad float emulation library gcc needs __LONG_DOUBLE_128__ macro defined. Check first, if not supported then revert to the qp_ops.c stubs Signed-off-by: Konrad Eisele <konrad@gaisler.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* libm_sh: add optimised assembly implementation of lroundf and lrintfChristian Bruel2010-12-171-0/+1
| | | | | | | | | | * libc/sysdeps/linux/sh/sysdep.h: Add LOCAL macro * libm/sh/sh4/Makefile.arch: Include asm source in the build * libm/sh/sh4/s_lrintf.S [NEW]: optimised asm lrintf * libm/sh/sh4/s_lroundf.S [NEW]: optimised asm lroundf Signed-off-by: Christian Bruel <christian.bruel@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* sh_fpu: Do not allow inclusion of fpu_control on not SH4 coreCarmelo Amoroso2010-12-151-1/+3
| | | | | | | Instead of emitting a warning even when compiling for SH4, stop compilation with an #error directive when not on SH4 core. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Adding quad float gcc intrinsic implementation for SPARCAustin Foxley2010-11-1841-2/+7220
| | | | | | | | | Sparc-Gcc generates q_xxx intrinsic calls for quad float ("long double") code. The routines from glibc's glibc-2.9/sysdeps/sparc/sparc32/soft-fp/* where taken and ported to uclibc. Signed-off-by: Konrad Eisele <konrad@gaisler.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* microblaze: build infrastructureSteven J. Magnani2010-11-102-62/+34
| | | | | | | Fix Microblaze config and makefiles. Signed-off-by: Steven J. Magnani <steve@digidescorp.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* microblaze: thread supportSteven J. Magnani2010-11-101-0/+145
| | | | | | | Header files needed to build linuxthreads.old for microblaze. Signed-off-by: Steven J. Magnani <steve@digidescorp.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* microblaze: misc headersSteven J. Magnani2010-11-104-17/+71
| | | | | | | Other header files for uClibc compilation. Signed-off-by: Steven J. Magnani <steve@digidescorp.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* microblaze: kernel headersSteven J. Magnani2010-11-105-64/+72
| | | | | | | Sync kernel header definitions with those used in recent mainline kernels. Signed-off-by: Steven J. Magnani <steve@digidescorp.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* microblaze: Restore soft-floatSteven J. Magnani2010-11-102-0/+225
| | | | | | | Software floating point for microblaze. Signed-off-by: Steven J. Magnani <steve@digidescorp.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* microblaze: vfork/clone interfaceSteven J. Magnani2010-11-102-52/+49
| | | | | | | | Fix the microblaze vfork() and clone() implementations. Add support for clone2(). Signed-off-by: Steven J. Magnani <steve@digidescorp.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* microblaze: syscall interfaceSteven J. Magnani2010-11-102-57/+48
| | | | | | | | | Fix the microblaze syscall interface. Recent mainline kernels no longer carry userland code to invoke syscalls and microblaze can use the uClibc generic code. Signed-off-by: Steven J. Magnani <steve@digidescorp.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* microblaze: Fix crt bootstrapSteven J. Magnani2010-11-103-0/+147
| | | | | | | | | | | Rework crt bootstrap to work with the new __uClibc_main(), and hardwire crt init/fini code since the awk approach to generating it on the fly doesn't work for microblaze. The output from the gcc 4.1.2 compiler is scrambled so that the tags expected by the awk script to bracket the init/fini entry and exit code no longer do. Signed-off-by: Steven J. Magnani <steve@digidescorp.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* microblaze: Fix setjmp/longjmpSteven J. Magnani2010-11-103-39/+50
| | | | | | | Some state and registers are missing from setjmp/longjmp handling. Signed-off-by: Steven J. Magnani <steve@digidescorp.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* libm: improve readability of math.h; expand comments and docsDenys Vlasenko2010-10-313-9/+14
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Fix msync() redefinition for noMMU buildBernhard Reutner-Fischer2010-10-271-0/+5
| | | | | | | | | | An architecture that _may_ have a MMU (and thus implements the msync syscall), but for which the kernel and uClibc are built as noMMU, we have a stub for msync. Thanks to Steven J. Magnani for noticing. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>