summaryrefslogtreecommitdiffstats
path: root/libc/misc
Commit message (Collapse)AuthorAgeFilesLines
* Shuffle things around a bit. Looks a little cleaner.Eric Andersen2002-08-081-56/+21
| | | | -Erik
* Cleanup warnings and fix prototypesEric Andersen2002-08-081-16/+11
| | | | -Erik
* Remove some noiseEric Andersen2002-08-071-13/+0
|
* A couple of little cleanups I forgot to check in.Manuel Novoa III2002-08-031-1/+1
|
* When DODEBUG and HAS_WCHAR were enabled and HAS_LOCALE was disabled,Eric Andersen2002-08-031-2/+6
| | | | | | | | wchar.c wouldn't compile: wchar.c: In function `__mbsnrtowcs': wchar.c:631: `__ctype_encoding_7_bit' undeclared (first use in this function) This fixes it by keeping the locale specific asserts hidden when not relevant. -Erik
* Do not assume NULL termination on the ut_id field. ThanksEric Andersen2002-07-161-1/+1
| | | | to mac12@po.cwru.edu for spotting this one.
* Clean up CLK_TCK situation. clock() and sysconf() now use anManuel Novoa III2002-07-151-13/+18
| | | | | | arch-specific constant value defined in bits/uClibc_clk_tck.h. Default is 100 (common/bits) but alpha uses 1024 following glibc. Override per arch as necessary.
* Tobias Anderberg <tobias.anderberg@axis.com> noticed thatEric Andersen2002-07-101-1/+1
| | | | | we were opening the socket() as SOCK_STREAM instead of using SOCK_DGRAM like we should have done.
* Add copyright message and remove dead code.Manuel Novoa III2002-07-051-157/+28
|
* Enable WCHAR support for C/POSIX stub locales.Manuel Novoa III2002-07-037-40/+756
| | | | | | Implemented unformatted wide i/o functions. (ungetwc still needs testing) Fix a few bugs in wchar.c. Modifications for bcc/elks support.
* Oops. missed a spotEric Andersen2002-07-021-0/+1
| | | | -Erik
* openlog could deadlock when called from vsyslog, soEric Andersen2002-07-021-1/+1
| | | | | allow recursive locking, -Erik
* Cleanup the function pointer comparisionsEric Andersen2002-06-201-7/+7
| | | | -Erik
* Add in thread locking for tzset() and associated data. Also, fix a bug soManuel Novoa III2002-06-181-5/+42
| | | | that localtime_r() calls tzset() to initialize/update timezone data.
* Fix thread locking so it worksEric Andersen2002-06-181-45/+20
| | | | -Erik
* Fix locking. KillEric Andersen2002-06-181-5/+18
|
* Some commentaryEric Andersen2002-06-181-5/+4
| | | | -Erik
* Shuffle the logic around a bitEric Andersen2002-06-171-56/+49
| | | | -Erik
* Some cleanups so utmp/wtmp behaves. Fix potential use ofEric Andersen2002-06-173-90/+210
| | | | | | uninitialized memory. Prepare to reentrantify the utmp stuff. -Erik
* Ah kant spel mi nameEric Andersen2002-06-171-1/+1
|
* Commit the new time stuff, even though I haven't made it threadsafe yet.Manuel Novoa III2002-06-1721-2203/+1879
| | | | At least people can play with it. Also, fix a buglet in setenv.c.
* time() is implemented in syscalls.cEric Andersen2002-06-152-39/+1
| | | | -Erik
* Added a version of nl_langinfo for the stub C/POSIX locale support.Manuel Novoa III2002-06-081-3/+92
|
* Fixup totally broken locking code... No storage for the mutex,Eric Andersen2002-05-308-29/+29
| | | | | wrong ifdef macro.. -Erik
* Cope with systems that don't glob all these together, but useEric Andersen2002-05-303-17/+48
| | | | | separate syscalls. -Erik
* Obligatory forgotten file during commit...Manuel Novoa III2002-05-231-1/+1
|
* Multibyte and wide char conversion functions. Some work still to do, butManuel Novoa III2002-05-232-0/+770
| | | | | they're quite solid now and Erik needs them for the gcc port. Comments at the head of wchar.c.
* Cleanup slightlyEric Andersen2002-05-231-8/+10
|
* Add a missing #includeEric Andersen2002-05-121-0/+5
|
* Fix this one up so it worksEric Andersen2002-05-121-3/+3
|
* Fixup for architectures that do not supply the ipc systemEric Andersen2002-05-111-22/+24
| | | | | call, but implement the ipc functions as separate system calls. -Erik
* Oops. Stupid typo.Eric Andersen2002-05-111-1/+1
|
* Begin the process of reworking the time functions for properEric Andersen2002-05-1115-410/+432
| | | | | | time zone and locale support (in theory). More work is still needed. -Erik
* Implement readdir_r. Audit for proper thread safety and locking.Eric Andersen2002-05-1110-101/+140
| | | | -Erik
* Fixup build a bit moreEric Andersen2002-05-071-2/+8
|
* The obligatory forgotten files...Manuel Novoa III2002-05-061-0/+1
|
* New locale support (in development). Supports LC_CTYPE, LC_NUMERIC,Manuel Novoa III2002-05-0611-1121/+1237
| | | | | | | | | | | | | | | | | | | | | | LC_TIME, LC_MONETARY, and LC_MESSAGES for the SUSv3 items. Also, nl_langinfo() when real locale support is enabled. New implementation of ctype.h. New implementation of wctype.h. New implementation of most of the string functions (smaller). New implementation of the wcs/wmem functions. These are untested, but they're also just preprocessor-modified versions ot the corresponding str/mem functions. Tweaked qsort and new bsearch. Stuff still pending: stdlib.h and wchar.h mb<->wc functions. I actually have working versions of the stdlib ones, but the reentrant versions from wchar.h require some reworking. Basic replacement and translit support for wc->mb conversions. (groundwork laid). Simple-minded collate support such as was provided by the previous locale implementation. (mostly done -- 8-bit codesets only) Shared mmaping of the locale data and strerror message text.
* Patch from Martin Proulx to not do ELFish things when not ELF.Eric Andersen2002-04-171-0/+2
|
* Patch from Martin Proulx to remove weak_aliases for non ELF compilers inEric Andersen2002-04-171-2/+2
| | | | | | __uClibc_main for the _stdio_init and _stdio_term functions. Since weak_aliases are defined as hard aliases for non ELF compilers, these 2 symbols ended up to be multiply defined, as those two are defined in stdio.c.
* Revert Erik's changes... they were broken since there weren't enoughManuel Novoa III2002-04-093-21/+10
| | | | | | | | bits for the extra ISblank flag. Instead, hardwire isblank() to not depend on locale for now. At least it will work for space and tab in the immenent release. This will all be blown away for the next release anyway, as I should be committing my new stuff in the next day or two.
* Support ISblank properlyEric Andersen2002-04-091-0/+1
|
* Avoid defining __USE_FILE_OFFSET64, since we do _NOT_ wantEric Andersen2002-04-095-15/+25
| | | | | | interfaces silently renamed under us or very bad things may happen... -Erik
* undefine __USE_FILE_OFFSET64, since we absolutely do _NOT_ want interfacesEric Andersen2002-04-091-7/+8
| | | | | | silently renamed under us or very bad things will happen. In this case, statfs64() ended up recurively calling statfs64() instead of statfs().... -Erik
* Add a fun pointer to make apps happyEric Andersen2002-04-051-1/+5
|
* Richard June <rjune@bravegnuworld.com> noticed that pututlineEric Andersen2002-04-031-6/+4
| | | | | | was only writing the first sizeof-a-pointer bytes to the utmp file. oops. -Erik
* Richard June <rjune@bravegnuworld.com> noticed that setutentEric Andersen2002-04-031-1/+1
| | | | was only opening utmp readonly. Oops.
* Doh! I forgot to commit this...Eric Andersen2002-04-031-3/+3
|
* Remove function declartions from include/features.h, createEric Andersen2002-04-012-0/+17
| | | | | a separate header file for those, and fixup references. -Erik
* Patches from Yoshinori Sato <qzb04471@nifty.ne.jp> to fix h8300Eric Andersen2002-04-011-0/+3
| | | | support for pthreads and update for the latest and greatest.
* Add glob64.c, and add support for glob64 when large file is enabled.Eric Andersen2002-03-313-1/+71
| | | | -Erik