summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux
Commit message (Collapse)AuthorAgeFilesLines
* futimens: add functionBernhard Reutner-Fischer2009-11-222-0/+25
| | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* ppoll: get NULL from stddef.hBernhard Reutner-Fischer2009-11-221-3/+2
| | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* sync some headers and disable unused prototypesPeter S. Mazinger2009-11-221-0/+1
| | | | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* SUSv4: disable isascii, toascii, _toupper, _tolowerBernhard Reutner-Fischer2009-11-221-0/+2
| | | | | | | | [__]isascii need to be defined all the time for the build. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* DO_XSI_MATH: add config knobBernhard Reutner-Fischer2009-11-221-0/+2
| | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* _Exit(): add weak alias to _exit() for C99Bernhard Reutner-Fischer2009-11-221-0/+1
| | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* disable _POSIX_SPAWN defineMike Frysinger2009-11-091-0/+2
| | | | | | | | We don't provide spawn.h let alone any other spawn funcs/types, so don't set up the _POSIX_SPAWN define that some packages (like vlc) check. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* sysctl: avoid inline initializationMike Frysinger2009-11-091-17/+9
| | | | | | | | | Assign each field one by one rather than stack initialization as gcc will call memset() to zero out the rest of the structure -- which we don't care about as the field is unused and not seen outside of the libc. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* sparc: use fputs to write to stderrMike Frysinger2009-11-091-1/+1
| | | | | | | | This also has the advantage of fputs() having a hidden alias while puts does not. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* sparc: use HIDDEN_JUMPTARGET for errnoMike Frysinger2009-11-093-3/+3
| | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* whitespace fixesAustin Foxley2009-10-1712-22/+20
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* mips: do not save variables in "hi" or "lo" across system callsDaniel Jacobowitz2009-10-171-2/+2
| | | | | | | | | | The kernel does not save these registers across system calls. GCC 4.4 has gotten more aggressive about using them for temporary variables, so this shows up as intermittent crashes if you use a recent compiler. Signed-off-by: Daniel Jacobowitz <dan@codesourcery.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* i386: use common INTERNAL_SYSCALL_ERROR_PMike Frysinger2009-10-161-3/+0
| | | | | | | The common define has the same behavior, just formatted differently. Signed-off-by: Mike Frysinger <vapier@gentoo.org> 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>
* utime() is obsolescent in SUSv4Bernhard Reutner-Fischer2009-10-163-1/+5
| | | | | | | LEGACY was removed for utimes() in SUSv4 Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* clean up O_CLOEXEC handlingMike Frysinger2009-10-1619-16/+22
| | | | | | | | 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>
* sparc qops: unify & shrinkMike Frysinger2009-10-161-51/+40
| | | | | | | | | | We don't really need to know the exact symbol that caused a failure as long as we know where to start looking. So unify the duplicate code between all funcs and between the sparc variants. This gives us a nice code shrink of ~95%. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* fcntl.h: drop unused/dead O_STREAMINGMike Frysinger2009-10-1610-10/+0
| | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* sparc: add stubs for more of the _Q* opsAustin Foxley2009-10-161-0/+12
| | | | | | Thanks to Jason Woodward <jason.woodward@timesys.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* descriptive error messageBernhard Reutner-Fischer2009-10-161-1/+1
| | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> 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>
* Fix building arm EABIBernhard Reutner-Fischer2009-10-082-1/+2
| | | | | | | | | | | | | | | The syscall() impl on aeabi comes from syscall-eabi.S thus we do not need the generic syscall() impl. Fixes: AS libc/sysdeps/linux/arm/syscall-eabi.os CC libc/sysdeps/linux/common/syscall.os libc/libc_so.a(syscall.os): In function `syscall': syscall.c:(.text+0x0): multiple definition of `syscall' libc/libc_so.a(syscall-eabi.os):(.text+0x0): first defined here Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* mips nptl: Cleanup up _ABI64 warningsAustin Foxley2009-09-271-0/+2
| | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com> Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
* Revert part of ecd7069ac6Austin Foxley2009-09-251-0/+2
| | | | | | This seemingly harmless warning fix causes mutex use in libc to crash... Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* sparc specific bits/socket.hAustin Foxley2009-09-251-0/+356
| | | | | | | use socketcall for sparc32 since it does not have the individual socket syscalls Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* spent this morning beating i386 nptl into shapeAustin Foxley2009-09-226-4/+35
| | | | | | Got it compiling thus far, still working on getting it to run Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* sparc nptl: make sure correct clone.S and pt-vfork.S get in libpthreadAustin Foxley2009-09-221-2/+2
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* add timerfd syscall and headerStephan Raue2009-09-213-1/+93
| | | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com> Signed-off-by: Stephan Raue <mailinglists@openelec.tv>
* not-cancel: use *_not_cancel variants directlyAustin Foxley2009-09-211-0/+19
| | | | | | add a no threads version of not-cancel.h to fallback on Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* uClibc_mutex.h: define non-thread versions of all the io-mutex macrosAustin Foxley2009-09-211-5/+12
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* sparc/Makefile.arch: add back missing fork/vfork for non threads caseAustin Foxley2009-09-211-3/+6
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* warning fixesAustin Foxley2009-09-211-2/+0
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* sparc sigaction.c: fix the noted bugs by syncing up with glibcAustin Foxley2009-09-211-30/+16
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* guard sysdep-cancel.h include under defineAustin Foxley2009-09-201-0/+6
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* guard sysdep.h include with correct defineAustin Foxley2009-09-201-1/+1
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* remove a few more empty #if/#endif pairsDenys Vlasenko2009-09-182-7/+0
| | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* convert // comments to /**/; remove empty #if/#endif pairs. no code changesDenys Vlasenko2009-09-184-17/+11
| | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* trim Experimentally off and uncommented hiddenAustin Foxley2009-09-18140-221/+2
| | | | | | | | 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-184-80/+4
| | | | | 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>
* sparc/sigaction.c: note possible bugs by comments. style fixesDenys Vlasenko2009-09-181-49/+57
| | | | | | | no code is actually changed Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* fstatat: fix up behavior on 32/64 bit hostsMike Frysinger2009-09-184-2/+32
| | | | | | | | | | | | | The fstatat() syscall is a little funky in that it sometimes changes name between 32 and 64 bit hosts, but it should always operate on a 64bit stat structure. So for the fstatat() function, make sure we convert it from a 64bit kstat to a 32bit stat. Along these lines, we need to restore the __xstat32_conv() function. Reported-by: Timo Teräs <timo.teras@iki.fi> Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* xstatconv: drop useless hidden codeMike Frysinger2009-09-181-4/+2
| | | | | | | | The xstatconv.h header already sets up hidden prototypes for us, so no need to duplicate the code. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Revert "syscall.c: Use common syscall.c for ARM"Khem Raj2009-09-183-0/+129
| | | | | | | | | This reverts commit b1913a876059949e6c309bafade55e9425ef33fb. OABI is still a requirement. So we override the common syscall implementation specifically for arm port. Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* accidently let arm's sigaction.c sneak in when merging d990ec5891dfAustin Foxley2009-09-031-1/+1
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* drop last _syscall6 checksMike Frysinger2009-09-032-2/+2
| | | | | | | If your arch does not support _syscall6(), it is broken anyways. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* honour NO_LONG_DOUBLE_MATHBernhard Reutner-Fischer2009-09-0318-19/+81
| | | | | | | | | 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>
* Build posix_fadvice{64} only when UCLIBC_HAS_ADVANCED_REALTIME is set.Khem Raj2009-09-035-9/+22
| | | | | | | | | | Right now for ARM, MIPS, Xtensa and powerpc posix_fadvise routines are included conditionally. They should only be enabled when UCLIBC_HAS_ADVANCED_REALTIME is set. Also fix code style in powerpc/posix_fadvise64.c Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Add posix_fadvise{64}.c routines to Makefile.archKhem Raj2009-09-032-7/+7
| | | | | | | | Fix the argument types to operate on long and correct a typo. Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Add posix_fadvise and posix_fadvise64 for powerpcKhem Raj2009-09-032-0/+106
| | | | | | | | | | The syscall is having different number of params and in one case the parameters are passed in differently. This patch add powerpc specific versions of these functions. Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>