summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2008-06-12Revert revision 19344 plus the libc_hidden_proto for __uc_malloc.Bernd Schmidt
2008-06-12Revert revision 19343 and also remove libc_hidden_proto for __uc_malloc.Bernd Schmidt
For now, a straight revert; we can decide later wheter we want to do something more.
2008-06-11Make locale_headers only when doing pregen and not headersCarmelo Amoroso
due to dependencies against sysnum.h Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2008-06-11libcrypt/md5.c:Denis Vlasenko
Make sp, ep and p variables automatic. There is no point in having them static, they never use their values retained from previous call. Replace strlen(__md5__magic) etc by compile-time constants. text data bss dec hex filename - 1957 0 132 2089 829 libcrypt/md5.o + 1905 0 120 2025 7e9 libcrypt/md5.o
2008-06-11Fix some compiler warningsCarmelo Amoroso
2008-06-11- disregard any and all $(top_builddir) in deps.Bernhard Reutner-Fischer
Fixes e.g. make -C ldso rebuilding unneeded stuff
2008-06-11Fix two more cases where a libc_hidden_proto was added to string.h whileBernd Schmidt
no libc_hidden_def exists for the function.
2008-06-11xtensa: Fix spill routine.Chris Zankel
The spill routine to flush all windowed registers was missing a 'mov' instruction. Signed-off-by: Chris Zankel <chris@zankel.net>
2008-06-10- no need to export the included dependencies generated by ccBernhard Reutner-Fischer
2008-06-10Revert revison 19346, except parts needed by later patches (r19347 also addedBernd Schmidt
__uc_malloc calls in getnetent.c, so we must retain the include and libc_hidden_proto).
2008-06-10Revert revision 19342, plus one whitespace fix demanded by the pre-commitBernd Schmidt
hook.
2008-06-09- Improve prerequisites and avoid spurious reconfigurations.Bernhard Reutner-Fischer
More details: http://uclibc.org/lists/uclibc/2008-June/019509.html
2008-06-08In string.h, move libc_hidden_proto next to the corresponding declaration.Bernd Schmidt
Filter them out when installing headers. Tested by building up bfin-*linux toolchains and building our copy of uClinux-dist.
2008-06-07- if UNIX98PTY_ONLY is not set then we're in legacy land anyway which needsBernhard Reutner-Fischer
UCLIBC_HAS_GETPT unconditionally for __libc_ptyname{1,2}[] and related bloat.
2008-06-07- revert incorrect parts of r22257 and 22259Bernhard Reutner-Fischer
since posix_openpt lives in getpt.c it has to stay there unconditionally.
2008-06-07- remove __USE_BSD guard from __bsd_getpt().Bernhard Reutner-Fischer
Fixes compilation error for defined UCLIBC_HAS_PTY && !defined UNIX98PTY_ONLY which need both __libc_ptyname1 and __libc_ptyname2 for ptsname_r().
2008-06-07- UCLIBC_HAS_GETPT pulls in getpt.Bernhard Reutner-Fischer
- ptsname_r depends on UCLIBC_HAS_PTY just like ptsname()
2008-06-06Remove superfluous attribute_hidden from functionDenis Vlasenko
definition. I seems to produce spurious warning: libc/inet/resolv.c:1549: warning: 'visibility' attribute ignored on non-class types (seems like gcc bug) and it is not really needed - attribute_hidden was already specified in function _declaration_ so it is not necessary here. No code changes (verified with objdump).
2008-06-06Document the reason why ether tests in testsuite may fail.Denis Vlasenko
No code changes.
2008-06-06Fix hard-to-rigger locking bug in vsyslog():Denis Vlasenko
SIGPIPE handler was attempting to re-acquire an already taken lock. While at it, stop checking for sigaction failure which is not possible here. Sizes: text data bss dec hex filename - 1123 13 2 1138 472 libc/misc/syslog/syslog.o + 1112 13 2 1127 467 libc/misc/syslog/syslog.o Run tested.
2008-06-06Use more natural way to return a value in __read_etc_hosts_r:Denis Vlasenko
text data bss dec hex filename - 230 0 9 239 ef libc/inet/gethostent.o + 224 0 9 233 e9 libc/inet/gethostent.o - 782 0 0 782 30e libc/inet/read_etc_hosts_r.o + 767 0 0 767 2ff libc/inet/read_etc_hosts_r.o Run tested.
2008-06-06Fix failure in test/inet/gethost_r-align:Denis Vlasenko
we were closing a FILE, but did not record that fact by setting a variable to NULL, and then we used it for reading! While at it, small reduction in bss. Run tested. text data bss dec hex filename - 210 0 12 222 de libc/inet/gethostent.o + 230 0 9 239 ef libc/inet/gethostent.o
2008-06-06shrink getopt a bit by using smallints. Run tested (busybox testsuite)Denis Vlasenko
text data bss dec hex filename - 2403 12 40 2455 997 libc/unistd/getopt.o + 2388 12 28 2428 97c libc/unistd/getopt.o
2008-06-06Heed a warning: "string" was assigned to char*, changing that to const char*Denis Vlasenko
2008-06-06Fix spurious testsuite failureDenis Vlasenko
2008-06-05Revert revision 22027 which totally broke getopt.Bernd Schmidt
2008-06-05- forgot to checkin this s/check/FORCE/Bernhard Reutner-Fischer
2008-06-05- revert r22233Bernhard Reutner-Fischer
2008-06-05- make libcrypt optional. Untested.Bernhard Reutner-Fischer
2008-06-05- switching thread impls without makeing clean before left the objs of theBernhard Reutner-Fischer
previously selected impl lying around on a distclean. Make sure that this does not happen.
2008-06-05- do a defconfig for the given arch, not unconditionally for alphaBernhard Reutner-Fischer
2008-06-05- drats. The pre-commit hook is broken. No chance to ci a patch other than ↵Bernhard Reutner-Fischer
obfuscated, sorry.
2008-06-05- pull kconfig from 2.6.25.4Bernhard Reutner-Fischer
It has nicer "-*-" etc hints
2008-06-05- fix keyword "depends on"Bernhard Reutner-Fischer
2008-06-05- linuxthreads and linuxthreads.old need nanosleep()Bernhard Reutner-Fischer
2008-06-04Fix typo that prevented "make clean" from removing objects in libc/misc/locale.Bernd Schmidt
2008-06-04- remove duplicate removing of ustat.hBernhard Reutner-Fischer
2008-06-04- strip the targets and not prerequisitesBernhard Reutner-Fischer
- tidy up PTHREADS_DEBUG_SUPPORT by using per-target STRIP_FLAGS for the few This fixes the spurious rebuilds bernd and vda were seeing with libpthreads.
2008-06-04Undefining __UCLIBC_HAS_OBSOLETE_SYSV_SIGNAL__ did not work, since weBernd Schmidt
were still defining signal to sysv_signal.
2008-06-04This fixes a problem with the move of libc_hidden_proto to string.h.Bernd Schmidt
The obsolete functions bcopy, index, etc. are not supposed to be used within uClibc itself. Hence, there is no libc_hidden_def for them, but the previous patch did not just move libc_hidden_protos, it also added new ones for the legacy functions. As a result, programs which use these functions can no longer link with uClibc. This fixes it by removing the unnecessary libc_hidden_protos. I've also removed all inclusions of <strings.h> from uClibc source files: since we define _GNU_SOURCE, it is sufficient to include <string.h>. We then do not need to duplicate the libc_hidden_proto block in <strings.h>.
2008-06-04- fix typo (have to check the content, not if true)Bernhard Reutner-Fischer
2008-06-03Fix merge error: mmap.c no longer exists in bfin/.Bernd Schmidt
2008-06-03close bug 473:Denis Vlasenko
1. names with two consecutive dots are not valid 2. if name ends with a dot, dont try appending search domain(s) alos a few small optimisations are here.
2008-06-03- Revert _dl_exit touch-up.Bernhard Reutner-Fischer
It breaks on arches that don't define proper/complete/nice syscall facilities.
2008-06-03- add libpthread-nonshared-y to files.depBernhard Reutner-Fischer
Fixes superfluous rebuild of pthread_atfork.oS.
2008-06-03syslog.c: fix a buglet in prev-last commit: logic inversion in closelogDenis Vlasenko
2008-06-03syslog.c: fix indentation and style. No code changes.Denis Vlasenko
2008-06-03Fix bug 575 and other small problems noticed along the way.Denis Vlasenko
The bug: this blocks in syslogd is stopped: #include <syslog.h> int main() { int i; for (i = 0; i < 10000; i++) syslog(LOG_INFO, "Testing, disregard...................."); return 0; } Fix: set O_NONBLOCK on fd to "/dev/log". Other fixes: do not try to write to fd -1, do not spin forever or EAGAIN, use constant sockaddr instead of recreating identical one each time, eliminate one intermediate function (SUGPIPE sig handler), use smallints where appropriate, add a few comments. Size: text data bss dec hex filename - 1140 16 21 1177 499 libc/misc/syslog/syslog.o + 1123 13 2 1138 472 libc/misc/syslog/syslog.o
2008-06-03- Generate dummy rules for prerequisites.Bernhard Reutner-Fischer
Fixes build-failures in ldso when switching thread-impl because of missing rule to make e.g. pthreadtypes.h Thanks to Peter Kjellerstedt for the reminder.
2008-06-03- adds several config-options to allow for turning off certain featuresBernhard Reutner-Fischer
like o UCLIBC_HAS_GNU_ERROR o UCLIBC_HAS_BSD_ERR o UCLIBC_HAS_PTY o UCLIBC_HAS_GETPT (1) o UCLIBC_SYSCALL_STUBS o UCLIBC_SYSCALL_STUB_WARNING o UCLIBC_LINUX_SPECIFIC (2) o UCLIBC_BSD_SPECIFIC (3) o UCLIBC_NTP_LEGACY (4) o UCLIBC_SV4_DEPRECATED (5) o UCLIBC_HAVE_REALTIME (6) o UCLIBC_HAVE_ADVANCED_REALTIME (7) o UCLIBC_HAVE_EPOLL (8) o UCLIBC_HAVE_XATTR (9) o UCLIBC_HAVE_PROFILING (10) (1) make non-standard getpt optional and implement standard posix_openpt (2) fstatfs(), inotify_*(), ioperm(), iopl(), madvise(), modify_ldt(), personality() ppoll(), setresuid() (3) mincore(), getdomainname(), setdomainname() (4) ntp_adjtime(), ntp_gettime() aliases (5) ustat() [use statfs(2) in your code instead] (6) All marked as "(REALTIME)" in SUSv3 (7) All marked as "(ADVANCED REALTIME)" in SUSv3 (8) epoll_create(), epoll_ctl(), epoll_wait() (9) all Extended Attributes (10) helpers for gcc's -finstrument-functions - Fixes _dl_exit() - Implements sleep(3) for !UCLIBC_HAVE_REALTIME - Implements usleep(3) for !UCLIBC_HAVE_REALTIME - adds #warning about incorrect posix_fadvise{,64}() - removes unused and unwanted uselib() Net outcome is that an allnoconfig with HAVE_SHARED is now about 88k instead of formerly 130k.