summaryrefslogtreecommitdiffstats
path: root/libc
Commit message (Collapse)AuthorAgeFilesLines
...
* i386: use common INTERNAL_SYSCALL_ERROR_PMike Frysinger2009-10-151-3/+0
| | | | | | The common define has the same behavior, just formatted differently. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Fix SH bits/kernel_types.h for new kernel headers.Joseph Myers2009-10-141-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>
* check stat("/etc/resolv.conf") for errorsDenys Vlasenko2009-10-141-1/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libc/inet/resolv.c: reread resolv.conf if its mtime was changedBernhard Reutner-Fischer2009-10-131-6/+9
| | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* drop __BCC__ cruft from string codeMike Frysinger2009-10-1014-131/+11
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* utime() is obsolescent in SUSv4Bernhard Reutner-Fischer2009-10-083-1/+5
| | | | | | LEGACY was removed for utimes() in SUSv4 Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* ftw() is obsolescent in SUSv4Bernhard Reutner-Fischer2009-10-082-2/+5
| | | | | | Apps should switch to nftw() Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* link-time warning for obsolescent/removed network funcsBernhard Reutner-Fischer2009-10-081-0/+4
| | | | Signed-off-by: aldot <rep.dot.nop@gmail.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>
* clean up O_CLOEXEC handlingMike Frysinger2009-10-0722-43/+32
| | | | | | | 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>
* fcntl.h: drop unused/dead O_STREAMINGMike Frysinger2009-10-0710-10/+0
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* sparc: add stubs for more of the _Q* opsAustin Foxley2009-10-051-0/+12
| | | | | | Thanks to Jason Woodward <jason.woodward@timesys.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* descriptive error messageBernhard Reutner-Fischer2009-10-051-1/+1
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* errno.c: add tls versions of errno and h_errnoAustin Foxley2009-09-262-1/+15
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* dl-support.c: add tls supportAustin Foxley2009-09-261-0/+42
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* resolv.c: add support for per thread res_stateAustin Foxley2009-09-263-5/+62
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* mips: do not save variables in "hi" or "lo" across system callsDaniel Jacobowitz2009-09-261-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>
* 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>
* 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>
* 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>
* sigpause: remove libc_hidden_proto/defDenys Vlasenko2009-09-192-3/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sigwait: remove __sigwait and __GI_sigwait symbols - they are unusedDenys Vlasenko2009-09-191-6/+5
| | | | | | | | sigwait is not called from any uclibc function, so "hidden symbol" trick is not needed on it. __sigwait also is never used, and it's not clear why it even existed. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* raise: remove unused hidden weak symbol __raiseDenys Vlasenko2009-09-191-6/+2
| | | | | | | It is not used by anybody, otherwise users of dynamically linked uclibc would notice - it is not exported from libuClibc-x.x.x.so Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libc/misc/wctype/_wctype.c: make it more readable. no code changesDenys Vlasenko2009-09-191-211/+183
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* remove a few more empty #if/#endif pairsDenys Vlasenko2009-09-1911-36/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* convert // comments to /**/; remove empty #if/#endif pairs. no code changesDenys Vlasenko2009-09-1852-214/+64
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* trim Experimentally off and uncommented hiddenBernhard Reutner-Fischer2009-09-18482-1837/+7
| | | | | | | | 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: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* fix make {,install_}{,host}utilsBernhard Reutner-Fischer2009-09-181-209/+46
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* always define float_t as floatBernhard Reutner-Fischer2009-09-174-80/+4
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* sh/user.h: clean up conflicts from kernel user.hAndrew Stubbs2009-09-151-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>
* daemon: fix up INTERNAL_SYSCALL() usageMike Frysinger2009-09-151-4/+6
| | | | | | | | | | | Make sure we declare the error properly in case a port uses it, and fix the invocation of exit(). Since clone() will be returning a pid, assume that the value will not have the MSB set (negative) to simplify the error test a bit more. If gcc supports it, force this function to always be heavily optimized in a bid to avoid stack usage as much as possible. Signed-off-by: James Coleman <james.coleman@ubicom.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* sparc/sigaction.c: note possible bugs by comments. style fixesDenys Vlasenko2009-09-091-49/+57
| | | | | | no code is actually changed Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* strsignal.c: whitespace fixes, no code changes (verified with objdump)Denys Vlasenko2009-09-091-21/+17
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* time.c: style cleanup. no code changes (verified with objdump)Denys Vlasenko2009-09-081-89/+37
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* simpler and shorter read_TZ_file() helperDenys Vlasenko2009-09-081-10/+23
| | | | | | | | text data bss dec hex filename - 1109 8 76 1193 4a9 libc/misc/time/tzset.o + 1095 8 76 1179 49b libc/misc/time/tzset.o Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wordexp.c: cleanup - remove old hidden_proto's; remove unused parameterDenys Vlasenko2009-09-061-42/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wordexp.c: fix a bug where we might close stdoutDenys Vlasenko2009-09-061-5/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fstatat: fix up behavior on 32/64 bit hostsMike Frysinger2009-09-064-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>
* xstatconv: drop useless hidden codeMike Frysinger2009-09-061-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>
* Revert "syscall.c: Use common syscall.c for ARM"Khem Raj2009-09-063-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>
* rexec.c: style fixes, no code chages (verified with objdump)Denys Vlasenko2009-09-061-44/+23
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* rexec.c: small code shrinkDenys Vlasenko2009-09-061-2/+6
| | | | | | | | text data bss dec hex filename - 1223 0 0 1223 4c7 libc/inet/rpc/rexec.o + 1214 0 0 2239 8bf libc/inet/rpc/rexec.o Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* comment out "int rexecoptions"; make "char ahostbuf[]" static (was hidden)Denys Vlasenko2009-09-061-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* do not save/restore errno around free() callsDenys Vlasenko2009-09-053-19/+10
| | | | | | | | In any non-buggy program free() does not fail. And when it fails in a buggy program, the failure is usually fatal (heap corruption and segfault). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* do not pass 3rd param to open() which do not create filesDenys Vlasenko2009-09-051-12/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wtmp code: style fixes, no code changesDenys Vlasenko2009-09-051-18/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* remove(): slight readabability tweak, no code changesDenys Vlasenko2009-09-051-5/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* opensock: work correctly on IPv6-only configDenys Vlasenko2009-09-051-9/+9
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* lckpwdf: remove a wrong comment and one write-only variableDenys Vlasenko2009-09-051-5/+1
| | | | | | no code changes (verified with objdump) Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* CLOEXEC: use open(CLOEXEC) if exist; do not check fcntl(FD_CLOEXEC) failureDenys Vlasenko2009-09-053-44/+42
| | | | | | | | | | | | text data bss dec hex filename - 370 0 0 370 172 libc/misc/dirent/opendir.o + 366 0 0 366 16e libc/misc/dirent/opendir.o - 375 4 0 379 17b libc/pwd_grp/lckpwdf.o + 356 4 0 360 168 libc/pwd_grp/lckpwdf.o - 248 0 0 248 f8 librt/shm.o + 209 0 0 209 d1 librt/shm.o Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>