summaryrefslogtreecommitdiff
path: root/libc
AgeCommit message (Collapse)Author
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-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-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-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- 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.
2008-06-03Remove __PRINTF_INFO_NO_BITFIELD hack, UCLIBC_INTERNAL can be used instead,Denis Vlasenko
and it's slightly shorter. Also removes stray macros from public <printf.h> header and uses spaces for comment indentation. No code changes (verified with objdump).
2008-06-03fix trivial mismatch in return type of build_wcs_upper_buffer()Denis Vlasenko
(int/enum). clases bug 3234.
2008-06-02libc/stdlib/stdlib.c: fix whitespace damage. No code changesDenis Vlasenko
(verified with objdump)
2008-06-02fix bug 1577: '`' is not an acceptable digit for strto[u]l().Denis Vlasenko
Code size is not changed on i386.
2008-06-02libc/inet/resolv.c: use ip6.arpa instead of ip6.int for reverseDenis Vlasenko
IPv6 DNS resolv. rfc4159 mandated this 3 years ago. Closes bug 1020. Also cleans up some stype inconsistensied and saves 2 bytes of rw data.
2008-06-02libc/inet/addr.c: fix broked indentation and bad style. No code changes.Denis Vlasenko
2008-06-02fix fallout from libc_hidden_proto removalDenis Vlasenko
2008-06-01suppress a few "might be used uninitialized" warnings. No code growth.Denis Vlasenko
2008-06-01Rework smallint machinery so that it will reliably fail to compileDenis Vlasenko
even if arch overrides smallint size. Makes it easier to spot bugs on such arches.
2008-06-01fix compile breakage in libc/string/wcscasecmp.cDenis Vlasenko
by adding include <wchar.h> in strcasecmp.c
2008-06-01add missing includes of unistd.h for smallint usageDenis Vlasenko
remove a few duplicate includes of unistd.h
2008-06-01A slight improvement over my previous commit which ensured we always rebuildBernd Schmidt
libc when one of the source files changes. Since there are more places which want to depend on $(libc), fix them all to use a new variable $(libc.depend), which contains the filename for which we have a rule.
2008-05-31Fix a dependency to mention libc.so, not libc.so.0, as we only have a rule toBernd Schmidt
build the former.
2008-05-31- generate deps via gccBernhard Reutner-Fischer
2008-05-31fix fallout from string.h libc_hidden_proto removalDenis Vlasenko
2008-05-30- cannot really guarantee proper order, so play safe and compile the problematicBernhard Reutner-Fischer
sources separately for now.
2008-05-30- Fix gcc glitch with mremap and IMA.Bernhard Reutner-Fischer
For -combine, make sure that we don't pollute our non-varargs mremap decl with some vararg decl from later in the TU by putting ours after anybody else who is picking up mman.h. This is admittedly a small work-around.. smallish testcase: $ cat bug.h extern void *mremap (void*, unsigned, unsigned, int, ...); $ cat bug1.c #include "bug.h" int whatever; $ cat bug2.c #define mremap _hidemremap #include "bug.h" #undef mremap void *mremap (void*, unsigned, unsigned, int, void*); $ gcc -c bug1.c bug2.c $ gcc -c bug1.c bug2.c -combine bug2.c:4: error: conflicting types for ‘mremap’ bug.h:1: error: previous declaration of ‘mremap’ was here
2008-05-30- try to pickup UINTMAX_MAXBernhard Reutner-Fischer
2008-05-30- Avoid warning about undefined preprocessor token. No obj-code changes.Bernhard Reutner-Fischer
2008-05-30- Avoid warning about undefined preprocessor token. No obj-code changes.Bernhard Reutner-Fischer
2008-05-30- shrink a little bit.Bernhard Reutner-Fischer
text data bss dec hex filename 1176 16 24 1216 4c0 libc/misc/syslog/syslog.o.orig 1140 16 21 1177 499 libc/misc/syslog/syslog.o
2008-05-29- fix dependencies for multi-sourceBernhard Reutner-Fischer
2008-05-29Fix typo in macro for tls access modelCarmelo Amoroso
2008-05-28avr32: splice(), vmsplice() and tee() supportHaavard Skinnemoen
Add the necessary prototypes and definitions for splice(), vmsplice() and tee() to work. Without this, they won't even compile.
2008-05-27Fix build failure due to missing 'smallint' definitionCarmelo Amoroso
by adding <unistd.h> header file. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2008-05-25Slight size reduction by use of smallints/consts:Denis Vlasenko
- 288016 1924 7176 297116 4889c libuClibc-0.9.29.so + 287956 1924 7168 297048 48858 libuClibc-0.9.29.so
2008-05-25__uClibc_main.c: save ~70 bytes by not checking that /dev/nullDenis Vlasenko
is indeed a char device with correct (maj,min). (If it's not such a char device, the system is screwed anyway, nothing can be done about it...) text data bss dec hex filename - 715 4 21 740 2e4 libc/misc/internals/__uClibc_main.o + 644 4 21 669 29d libc/misc/internals/__uClibc_main.o
2008-05-23- avoid warning about cast from pointer to integer of different sizeBernhard Reutner-Fischer
2008-05-23arm memcpy: fix the case when src=dstDenis Vlasenko
2008-05-23- for non-threaded, non-macro case we were missing __GI_fputc (for e.g. error.c)Bernhard Reutner-Fischer
2008-05-22- rename to match the set*() function's filenameBernhard Reutner-Fischer
2008-05-22- rename to match the setdomainname filenameBernhard Reutner-Fischer
2008-05-22convert two more static ints used as flags to smallintsDenis Vlasenko
2008-05-21- my manpage sais that init_module, create_module, query_module, delete_moduleBernhard Reutner-Fischer
were removed in linux-2.6
2008-05-21- fix warning about old-style function definitionBernhard Reutner-Fischer
This could need a pull from upstream to do away with these __STDC__ conditionals.
2008-05-21- fix warning about static not being at the beginning of a declBernhard Reutner-Fischer
2008-05-20replace "if (p) free(p)" by just "free(p)" - free(NULL) is safe.Denis Vlasenko
2008-05-20getopt: do not needlessly use static structure.Denis Vlasenko
Reorder structure members and change some of them into smallints to reduce bss and text: text data bss dec hex filename - 2403 12 40 2455 997 libc/unistd/getopt.o + 2252 12 0 2264 8d8 libc/unistd/getopt.o
2008-05-20Introduce and use small[u]int type. Changes in size:Denis Vlasenko
- 79 0 28 107 6b libc/inet/rpc/create_xid.o + 76 0 25 101 65 libc/inet/rpc/create_xid.o - 126 0 4 130 82 libc/misc/assert/__assert.o + 123 0 1 124 7c libc/misc/assert/__assert.o - 648 4 24 676 2a4 libc/misc/internals/__uClibc_main.o + 645 4 21 670 29e libc/misc/internals/__uClibc_main.o - 230 0 4 234 ea libc/stdlib/abort.o + 216 0 1 217 d9 libc/stdlib/abort.o - 129 0 4 133 85 libc/termios/tcgetsid.o + 126 0 1 127 7f libc/termios/tcgetsid.o
2008-05-20- note that __drand48_iterate should be voidBernhard Reutner-Fischer
2008-05-20- remove old-style definitions. No object-code changes.Bernhard Reutner-Fischer
2008-05-20- silence warningBernhard Reutner-Fischer