summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* remove wait callbacks for non-cancelation funcsBernhard Reutner-Fischer2009-11-174-24/+0
| | | | | | | No need to install a cancellation handler, these are no cancellation point. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* include string.h for memset()Bernhard Reutner-Fischer2009-11-171-0/+2
| | | | | | This avoids a warnings about implicit declaration of function 'memset'. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* Makefile: fix indentationBernhard Reutner-Fischer2009-11-171-19/+18
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* Simplify kconfig wording of thread supportBernhard Reutner-Fischer2009-11-091-46/+47
| | | | | | | Use a choice for thread support selection. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* remove wrong default for choiceBernhard Reutner-Fischer2009-11-091-3/+0
| | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* support selecting which locales to buildBernhard Reutner-Fischer2009-11-092-16/+54
| | | | | | | | | | | Introduce UCLIBC_BUILD_MINIMAL_LOCALES and if selected build only those locales. Based on a patch by Bernhard Reutner-Fischer. Signed-off-by: Marc Andre Tanner <mat@brain-dump.org> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* remember some TODOs for 0.9.31Bernhard Reutner-Fischer2009-11-091-7/+16
| | | | | 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>
* build with -fmerge-all-constantsMike Frysinger2009-11-091-0/+2
| | | | | | | | Glibc is already using this flag and it gives us a slight code shrink in a few functions. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* test/plt: add a script to find PLT usageMike Frysinger2009-11-092-0/+39
| | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* libc: add hidden calls to pthread cleanup funcsMike Frysinger2009-11-092-0/+4
| | | | | | | | | | A lot of libc code calls the pthread cleanup funcs implicitly (for stdio) which currently goes through the PLT. Since we already have forwarding symbols for these funcs, it's safe to declare the internal libc usage hidden as a loaded libpthread will have the real symbols found. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* regex: call memcpy() ourselvesMike Frysinger2009-11-091-1/+2
| | | | | | | | Call the hidden memcpy() ourselves otherwise gcc will emit a call to the public memcpy() which goes through the PLT. 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>
* inet_ntop4: avoid inline initializationMike Frysinger2009-11-091-1/+3
| | | | | | | | We only need to set the first byte to 0, but gcc likes to zero out the rest of the string with memset() when using this initialization style. 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>
* make the sem_open changes actually compileAustin Foxley2009-11-093-3/+3
| | | | | | __gen_tempname now needs to not be hidden so libpthread can get at it Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Unbreak sem_open when UCLIBC_SUSV3_LEGACY is not definedMikhail Gusarov2009-11-091-32/+5
| | | | | | | | | sem_open uses mktemp to create temporary file. Reimplement it using __gen_tmpname, removing ugly while(1) loop. As a side-effect remove the potential source of EAGAIN errors. Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Extend __gen_tempname with mode argumentMikhail Gusarov2009-11-0911-17/+22
| | | | | | | | | | sem_open(3) needs to create a temporary file in a way which can't be efficiently implemented in terms of POSIX API. Extend __gen_tempname with mode_t mode argument in order to ease sem_open implementation. Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Rules.mak fix typo (qstrup -> qstrip)Austin Foxley2009-11-091-1/+1
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* remove useless .gitignoreAustin Foxley2009-10-201-22/+0
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* whitespace fixesAustin Foxley2009-10-1764-130/+97
| | | | 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>
* mktemp does not depend on floatsAustin Foxley2009-10-171-1/+4
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Remove broken install_test targetAustin Foxley2009-10-171-14/+0
| | | | | | If someone wants to fix and readd, please do it on master Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* sync a few trivial changes back to masterAustin Foxley2009-10-172-5/+5
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* hostid: style fixes to match masterAustin Foxley2009-10-171-6/+8
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* ldso: fixup missed variable rename ( tls_tpnt -> tpntp )Austin Foxley2009-10-161-2/+2
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* ldso: drop duplicated/unused definesMike Frysinger2009-10-161-23/+0
| | | | | | | | We already include bits/fcntl.h for some of these defines, and most of the bits/stat.h defines are unused. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* ldso: unify and cleanup _dl_mmap codeMike Frysinger2009-10-161-40/+22
| | | | | | | The interface should be straight forward now and the same for everyone. 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>
* ldso: define MAP_FAILED for everyoneMike Frysinger2009-10-161-1/+1
| | | | | | | This fixes build errors where common code has started using MAP_FAILED. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* ldso: simplify handling of extra _dl_lookup_hash() argMike Frysinger2009-10-162-15/+7
| | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* ldso: clean up breakage in tls mergeMike Frysinger2009-10-1614-159/+137
| | | | | | | | | | | The TLS merge 534661b91c9849 introduced multiple style problems as well as random breakage: - missing _dl_free - incomplete parametrization of _dl_lookup_hash - restore FDPIC handling in _dl_lookup_hash Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* ldso: fixup all the rest of the calls to _dl_find_hashAustin Foxley2009-10-167-13/+13
| | | | | | | | With TLS _dl_find_hash grew an extra param. These archs don't have TLS reloc support yet, but they do need to compile without it. 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>
* check stat("/etc/resolv.conf") for errorsDenys Vlasenko2009-10-161-1/+2
| | | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* fix cosmetic typoBernhard Reutner-Fischer2009-10-161-3/+3
| | | | | | | s/dependancies/dependencies/g Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* libc/inet/resolv.c: reread resolv.conf if its mtime was changedBernhard Reutner-Fischer2009-10-161-6/+9
| | | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* drop __BCC__ cruft from string codeMike Frysinger2009-10-1614-131/+11
| | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* check_ld some more flagsBernhard Reutner-Fischer2009-10-162-3/+6
| | | | | | | gold does not currently implement these. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* SUSV4: remove utime.hBernhard Reutner-Fischer2009-10-161-0/+1
| | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* add and use qstripBernhard Reutner-Fischer2009-10-161-13/+16
| | | | | | | | qstrip substitites quotes and strips the result. Avoiding single-quotes helps vim's poor syntax highlighting. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.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>
* ftw() is obsolescent in SUSv4Bernhard Reutner-Fischer2009-10-165-14/+31
| | | | | | | Apps should switch to nftw() Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* _toupper, _tolower depend on SUSv4Bernhard Reutner-Fischer2009-10-161-3/+6
| | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* link-time warning for obsolescent/removed network funcsBernhard Reutner-Fischer2009-10-161-0/+4
| | | | | Signed-off-by: aldot <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* resolv/crypt: convert to foo-y kbuild styleMike Frysinger2009-10-162-15/+8
| | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* ldso: pull in missing bits/fcntl.h header for O_CLOEXECMike Frysinger2009-10-161-0/+2
| | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* ldso: use O_CLOEXEC for cache fileMike Frysinger2009-10-161-1/+1
| | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>