summaryrefslogtreecommitdiff
path: root/libc/misc
AgeCommit message (Collapse)Author
2008-05-20- silence warningBernhard Reutner-Fischer
2008-05-19Moving libc_hidden_proto's into #ifdef UCLIBC_INTERNAL blockDenis Vlasenko
in string.h and strings.h. This caught unguarded string ops in libc/inet/ethers.c __ether_line_w() function. I will wait for fallout reports for a week or so, then continue converting more libc_hidden_proto's.
2008-05-19Added a bounch of locale fixes.Carmelo Amoroso
* extra/locale/gen_wc8bit.c: use strrchr to parse locale name to handle the case in which it contains a '.' character like ANSI_X3.4-1968 * include/locale.h: use __UCLIBC_HAS_XLOCALE__ to control inclusion of xlocale.h only * libc/misc/ctype/ctype.c: add missing weak_alias for __tolower_l and __toupper_l * libc/misc/locale/locale.c: use strcasecmp (case insensitive) for utf-8 locale name. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2008-04-28Experimentally move libc_hidden_proto(time) to time.h.Denis Vlasenko
The only code change observed is actually a case where we were not doing that as needed: 00000000 <__GI_tzset>: -53 push %ebx -e8 00 00 00 00 call 6 <__GI_tzset+0x6> -5b pop %ebx -81 c3 03 00 00 00 add $0x3,%ebx - R_386_GOTPC _GLOBAL_OFFSET_TABLE_ 6a 00 push $0x0 -e8 fc ff ff ff call 10 <__GI_tzset+0x10> - R_386_PLT32 time +e8 fc ff ff ff call 3 <__GI_tzset+0x3> + R_386_PC32 __GI_time 3d ff 4e 98 45 cmp $0x45984eff,%eax 0f 9e c0 setle %al 0f b6 c0 movzbl %al,%eax 50 push %eax -e8 fc ff ff ff call 21 <__GI_tzset+0x21> +e8 fc ff ff ff call 14 <__GI_tzset+0x14> R_386_PC32 _time_tzset 58 pop %eax 5a pop %edx -5b pop %ebx c3 ret No mass migration of libc_hidden_proto(foo) planned. Lets wait for potential fallout first.
2008-04-22Added support for error_print_progname as proposedCarmelo Amoroso
by Will Newton <will.newton@gmail.com>
2008-04-12Functions should be either exported in public .h filesDenis Vlasenko
and marked with libc_hidden_proto/def(), or not be exported in .h files and be hidden (or even static if possible). We have five functions which violate this. Fixing: netdb.h: export ruserpass() rpc/rpc.h: export xdr_accepted_reply() and xdr_rejected_reply() make inet_ntoa_r static function (it is not exported in any .h file) make _time_tzset hidden function (it is not exported in any .h file)
2008-02-12add hidden_proto's for __uc_mallocDenis Vlasenko
(patch by Bernd Schmidt <bernds_cb1 at t-online.de>)
2008-01-09- Fix compilation: semtimedop has 4 args (and not 6)Bernhard Reutner-Fischer
2008-01-05blah, enable the stupid hidden proto for fcntlMike Frysinger
2008-01-05krichy writes in 292:Mike Frysinger
I noticed, that in libc/misc/syslog/syslog.c when the syslog socket is opened, the close-on-exec flag is not set, as it is in gnu libc. This enables that behavior.
2008-01-05implement semtimedop for #927Mike Frysinger
2008-01-05michael_d writes in #1869: make sure GNU error functions output 'program: ' ↵Mike Frysinger
as documented in the function api
2007-12-07Removed pointless initialization to 0 of DIR fieldsCarmelo Amoroso
after having added memset. Thanks to Peter Mazinger for pointing this out. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2007-12-05Fix opendir problem when statically linked due to a missingCarmelo Amoroso
initialization of the mutex field within DIR struct. When linked dynamically instead, __pthread_mutex_init will initialize the mutex itself. Without this fix, any call to readdir will stuck forever trying to acquire the mutex. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2007-11-23Add some necessary Makefile bits for UCLIBC_FORMAT_FLAT_SEP_DATA.Bernd Schmidt
2007-11-23Some shared flat improvements.Bernd Schmidt
Fix minor errors: - UCLIBC_SHARED_FLAT_ID instead of SHARED_FLAT_ID - use -Wl,-shared-lib-id properly Use libc_so.a as the source for the shared libc, in order to be able to use -mleaf-id-shared-library on the Blackfin.
2007-11-10Do not return error when fprintf returns 0 in addmntent().Khem Raj
fprintf is considered failing if the return is less than 0
2007-09-15also fix bug 1012 by moschny in 64bit version of readdirMike Frysinger
2007-09-15bug 1310: drop hidden aliases to data since some arches crap with this due ↵Mike Frysinger
to copy relocs
2007-07-30make regex_old.c, ruserpass.c use __uc_malloc,Denis Vlasenko
replace "buf = malloc(BUFSIZ); if (!buf) abort();" by __uc_malloc elsewhere. With last 7 patches together uclibc has 3k of static data total with fairly big .config and with 2k being used for 2 x BUFSIZ stdio buffer: text data bss dec hex filename 114 132 2048 2294 8f6 _stdio.o (ex lib/libc.a) total data 593 total bss 3062
2007-07-30make utent.c, getpass.c use __uc_mallocDenis Vlasenko
2007-06-01change the auxvt code from being dependent on MMU to !LDSO as auxvt things ↵Mike Frysinger
are ELF-specific, not MMU-specific
2007-05-06Nickolai Zeldovich writes: if the temp name already exists, then the retry ↵Mike Frysinger
code does not create a new temp name as the code to do so is outside of the retry loop
2007-03-08svn 17941/17943 broke the build. 18032 made the threaded case compile Rob Landley
again, this makes the non-threaded case compile again. I have no idea if this is the proper fix, I'm just tired if it not compiling for two weeks.
2007-03-07Fix a build break due to errno and h_errno being unresolved symbols. Rob Landley
(No idea if this is the right fix but it's something for now.)
2007-02-22need to double check internal errno handling wrt libpthreadMike Frysinger
2007-02-21add missing file for previous commit as pointed out by Peter KjellerstedtMike Frysinger
2007-02-21redo errno handling so that it should work both in thread and non-threaded ↵Mike Frysinger
situations
2007-01-30- should look if LFS is enabled as suggested by pkj in #1131. This generates ↵Bernhard Reutner-Fischer
identical cc1 input for LFS enabled (compared to before r17652) but makes sure that we pickup the non-LFS if LFS is turned off (like r17652 did in this case).
2007-01-29- fix compilation of GNU glob with !LFSBernhard Reutner-Fischer
Sounds like a typo, really
2007-01-11Peter Mazinger pointed out that my last commit was faulty.Joakim Tjernlund
This should fix it.
2007-01-10Fix SEGV for static builds in exit() path.Joakim Tjernlund
Leave the now obsolete libc/misc/pthread dir in for now.
2006-12-11create new menu so people can select what format they wish to build uClibcMike Frysinger
2006-12-09these weaks are also needed in libc.so for the time beingEric Andersen
2006-12-09oops, use __pthread_mutex_unlock() not pthread_mutex_unlock()Eric Andersen
2006-12-09silence a lot of warnings and fix a few genuine bugs while I'm at it.Eric Andersen
2006-12-08Richard Sandiford writes: add support for init/fini arrays in shared flat ↵Mike Frysinger
libraries
2006-12-08finish the pthread locking cleanups. This should get things compiling againEric Andersen
though I still need to silence the warnings about _pthread_cleanup_push_defer
2006-12-07Major cleanup of internal mutex locking. Be more consistant in how we doEric Andersen
things, and avoid potential deadlocks caused when a thread holding a uClibc internal lock get canceled and terminates without releasing the lock. This change also provides a single place, bits/uClibc_mutex.h, for thread libraries to modify to change all instances of internal locking.
2006-12-02(no commit message)"Steven J. Hill"
2006-11-27fix from cmetcalf to make sure we clear the auxvt table before using itMike Frysinger
2006-11-07I failed to check the patch adding support for the new (stupid) US 2007Eric Andersen
daylight savings time rules when xlocale was enabled. Fix compile error.
2006-11-06mips64 patch from Atsushi Nemoto:Eric Andersen
We should not use old stype ipc_perm for 64-bit mips kernel. I suppose other 64-bit platforms shoule define __IPC_64 also and we can define it unconditionally, but not sure for other archs ...
2006-11-02In bug 622, JohnAta writes:Eric Andersen
In 2005, Congress passed a law so that in 2007, the second week of March starts DST. Previously, it was the first week of April. The uclibc time library routines apparently have not been updated to reflect this new processing. Using the current version of uclibc, on March 11, 2007 the reported time will be incorrect.
2006-08-30fix bug 1012 as noted by moschnyEric Andersen
2006-08-23sync with psm: update errno handling to be the same on all archesMike Frysinger
2006-07-13psm writes:Eric Andersen
forgotten to mention to remove glob-hooks.c and the reference in Makefile.in (the prototypes for the 3 hooks were already removed by the patch applied here) Peter
2006-07-13patch from psm:Eric Andersen
- malloc/realloc/free are not prepared to be hidable in trunk, you can't use libc_hidden_proto(x) for them - using libc_hidden_proto(x64) LFS unguarded will fail because the header does not provide the prototype - if you are using libc_hidden_proto(collated_compare|prefix_array), you also need libc_hidden_def|_weak(x) after the function itself, the result being to provide a hidden __GI_collated_compare and a visible collated_compare, for this case I do not consider this necessary, especially that collated_compare is hidden already (I have chosen to prefix them with __ to know that they are intended to be internal only, against the practice in glibc, you could go without prefix as well)
2006-07-05remove jump relocs, with minor related cleanupsEric Andersen
2006-07-05fixup my copyright notice, trim stale remnants of older notices whichEric Andersen
I had clearly run search/replace on that were cluttering things up.