summaryrefslogtreecommitdiff
path: root/libc/misc
AgeCommit message (Collapse)Author
2002-10-28Allow timezone info to be specified in a file... /etc/TZ. Turned on byManuel Novoa III
default for now. From the comments... * Defining __TIME_TZ_FILE causes tzset() to attempt to read the TZ value * from the file /etc/TZ if the TZ env variable isn't set. The file contents * must be the intended value of TZ, followed by a newline. No other chars, * spacing, etc is allowed. As an example, an easy way for me to init * /etc/TZ appropriately would be: echo CST6CDT > /etc/TZ Also optimized timezone setting when the timezone string hasn't changed, as well as fixed a minor buglet wrt SUSv3-allowed chars in TZ std and dst fields.
2002-10-25Fixup dependsEric Andersen
2002-10-25Doh. Add a missing #include to interp.c. I wonder why it used toEric Andersen
work? Perhaps the wrapper bug miles fixed? Regardless this is very much needed. -Erik
2002-10-01This commit contains a patch from Stefan Allius <allius@atecom.com> to changeEric Andersen
how uClibc handles _init and _fini, allowing shared lib constructors and destructors to initialize things in the correct sequence. Stefan ported the SH architecture. I then ported x86, arm, and mips. x86 and arm are working fine, but I don't think I quite got things correct for mips.
2002-09-26Replace _LIBC_REENTRANT with __UCLIBC_HAS_THREADS__Eric Andersen
-Erik
2002-09-19Add gnu obstack support. I still need to implement the obstack_printfManuel Novoa III
and obstack_vprintf, but at least now the reiserfsprogs build.
2002-09-19Hide my personal #warning reminders. Add __wcschrnul, rename strchrnulManuel Novoa III
to __strchrnul, and add weak aliases for them.
2002-09-14Fix a thinko -- I used the wrong symbol to check for LFS support.Eric Andersen
-Erik
2002-09-10Patch from Tiago Marques <tmarques@viaconnect.inf.br> -- fall back toEric Andersen
using SOCK_STREAM if SOCK_DGRAM fails. -Erik
2002-09-09Fixed compile bugs having to do with 64-bit filesystem operations that"Steven J. Hill"
need to be disabled when 'DOLFS' is disabled.
2002-09-03Support fstatvfs64 and statvfs64Eric Andersen
-Erik
2002-09-03Oops. Turns out I broke statvfs() and fstatvfs() back in February,Eric Andersen
when I accidentally changed them unconditionally into the 64 bit versions... Oops. -Erik
2002-08-26Implement missing readdir64_r.cEric Andersen
-Erik
2002-08-25Make shm stuff work properly.Eric Andersen
-Erik
2002-08-19Eliminate wrapping of struct stat and use the kernel versionEric Andersen
directly. Eliminate all the attendant baggage. Fix internal types to match kernel types more closely. -Erik
2002-08-19Add a .note section to make gdb happyEric Andersen
2002-08-19Call the pthread setup junk early if possible.Eric Andersen
2002-08-19Be prepared to call __pthread_initialize_minimalEric Andersen
2002-08-12Fix use of __pthread_once, and fix rpc usage of thread localEric Andersen
storage.... -Erik
2002-08-12Revert commit by davidm to printf.c that initialized conv_numManuel Novoa III
needlessly. To do so increases the generated code size with bcc. Eliminate duplicate define warnings in wstring.c. Fix potentially broken preprocessor comparisons. The preprocessor converts integers to maximal signed type, so inequality comparisons involving UINTMAX_MAX, ULLONG_MAX, and (if no long long) ULONG_MAX were potentially broken.
2002-08-08Shuffle things around a bit. Looks a little cleaner.Eric Andersen
-Erik
2002-08-08Cleanup warnings and fix prototypesEric Andersen
-Erik
2002-08-07Remove some noiseEric Andersen
2002-08-03A couple of little cleanups I forgot to check in.Manuel Novoa III
2002-08-03When DODEBUG and HAS_WCHAR were enabled and HAS_LOCALE was disabled,Eric Andersen
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
2002-07-16Do not assume NULL termination on the ut_id field. ThanksEric Andersen
to mac12@po.cwru.edu for spotting this one.
2002-07-15Clean up CLK_TCK situation. clock() and sysconf() now use anManuel Novoa III
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.
2002-07-10Tobias Anderberg <tobias.anderberg@axis.com> noticed thatEric Andersen
we were opening the socket() as SOCK_STREAM instead of using SOCK_DGRAM like we should have done.
2002-07-05Add copyright message and remove dead code.Manuel Novoa III
2002-07-03Enable WCHAR support for C/POSIX stub locales.Manuel Novoa III
Implemented unformatted wide i/o functions. (ungetwc still needs testing) Fix a few bugs in wchar.c. Modifications for bcc/elks support.
2002-07-02Oops. missed a spotEric Andersen
-Erik
2002-07-02openlog could deadlock when called from vsyslog, soEric Andersen
allow recursive locking, -Erik
2002-06-20Cleanup the function pointer comparisionsEric Andersen
-Erik
2002-06-18Add in thread locking for tzset() and associated data. Also, fix a bug soManuel Novoa III
that localtime_r() calls tzset() to initialize/update timezone data.
2002-06-18Fix thread locking so it worksEric Andersen
-Erik
2002-06-18Fix locking. KillEric Andersen
2002-06-18Some commentaryEric Andersen
-Erik
2002-06-17Shuffle the logic around a bitEric Andersen
-Erik
2002-06-17Some cleanups so utmp/wtmp behaves. Fix potential use ofEric Andersen
uninitialized memory. Prepare to reentrantify the utmp stuff. -Erik
2002-06-17Ah kant spel mi nameEric Andersen
2002-06-17Commit the new time stuff, even though I haven't made it threadsafe yet.Manuel Novoa III
At least people can play with it. Also, fix a buglet in setenv.c.
2002-06-15time() is implemented in syscalls.cEric Andersen
-Erik
2002-06-08Added a version of nl_langinfo for the stub C/POSIX locale support.Manuel Novoa III
2002-05-30Fixup totally broken locking code... No storage for the mutex,Eric Andersen
wrong ifdef macro.. -Erik
2002-05-30Cope with systems that don't glob all these together, but useEric Andersen
separate syscalls. -Erik
2002-05-23Obligatory forgotten file during commit...Manuel Novoa III
2002-05-23Multibyte and wide char conversion functions. Some work still to do, butManuel Novoa III
they're quite solid now and Erik needs them for the gcc port. Comments at the head of wchar.c.
2002-05-23Cleanup slightlyEric Andersen
2002-05-12Add a missing #includeEric Andersen
2002-05-12Fix this one up so it worksEric Andersen