summaryrefslogtreecommitdiff
path: root/lib/libc
AgeCommit message (Collapse)Author
2010-03-19Namespace protection for mi_vector_hash.joerg
2010-03-151. fix wrong byte order mark of utf-16, reported by NARUSE Yui -san.tnozaki
patch provided by tshiozak@ -san. 2. don't eat 0xfeff/0xfffe if they don't appear at the first of bytestream. noticed y tshiozak@ -san, patch provied by me. thanks a lot.
2010-03-14update all of these makefiles for the .so -> .pico change.mrg
most of them are most harmless, but the libgcc parts are quite essential. before this change, all the special rules for .pico files were not applied, and exception handling wasn't enabled. this caused c++ exceptions not to work on sparc64. this fixes the build of boost-headers (it was correctly calling exception support broken!), which in turn makes all the things that depend upon it to actually work again on sparc64.
2010-03-12Add memset to libkern on vax, moving existing memset.S to src/common.uwe
While kernel source code is supposed to use <machine/macros.h> via <sys/param.h> and pick an inline asm version from there, gcc itself can generate direct calls to memset() for structure initialization, so the symbol must be provided. Fixes INSTALL kernel, for which -Os caused gcc to use memset() call to initialize a struct in uvm_fault_internal().
2010-03-07indentation/whitespacedholland
2010-03-07remove stray semicolondholland
2010-03-04Fix race condition on reallocation of huge category.enami
We need to remove the old region before mremap() since if it relesae the old region, other thread may map it for the same huge category allocation and insert it to the tree before we acquire a lock after mremap(). Fixes PR/42876.
2010-03-01- KNFchristos
- fix hertz() - fix error and warning messages
2010-02-25Uncomment crash(8) reference.wiz
2010-02-17Fix a bug reported by Gene, and debugged by Robert Elz. fsck_ffs can coredumpchristos
if the timezone file fails to load, due to late initialization of sp->goahead to false in tzload, causing localsub to return NULL in the "cannot happen" case. The fix is belt and suspenders: - initialize sp->goback and sp->goahead very early in tzload - replace all malloc calls with callocs, and remove the bogus casts (it is not the 70's anymore!)
2010-02-12Link atomic_cas.3 to atomic_cas_{32,64,ptr,uint,ulong}_ni.3.dyoung
2010-02-12With help from rmind@, describe the non-interlocked (*_ni) variants ofdyoung
the standard atomic compare-and-swap operations. Tell some caveats. Manual page links, *_ni.3 -> atomic_cas.3 are coming up after a successful 'build.sh distribution'.
2010-02-12Fix typo.wiz
2010-02-04Include nbtool_config.h as we need to be part of the terminfo toolchain.roy
2010-02-03Remove trailing whitespace. Use Fn when referencing functions. Sort sections.wiz
New sentence, new line.
2010-02-02According to TOG:christos
- asctime{,_r}, ctime{,_r} may return NULL; document that, and avoid coredumps. - gmtime{,_r}, localtime{,_r} may return NULL and set EOVERFLOW, document and set errno. - when mktime returns (time_t)-1, make it set EOVERFLOW and document it. XXX: Should be pulled up to 5.x
2010-01-29Print AppleTalk phase 2 range, too, if available.is
2010-01-27fix behavior in case of +-Inf or NaN input: return the properdrochner
values and set *iptr (This code is only used under non-default build options, and on m68k.)
2010-01-26Add AF_APPLETALK support to getnameinfo(); make "route show" use it.is
Doesn't print "ranges" yet (should it be done here?); only numeric output.
2010-01-17Free malloc()ed buffer in error case. Found by cppcheck.wiz
2010-01-17Close file handles in error cases. Found by cppcheck.wiz
2010-01-17Close file handle in error case. Found by cppcheck.wiz
2010-01-17Close log file handle after using it. Found by cppcheck.wiz
2010-01-17Close file handle after using it. Found by cppcheck.wiz
2010-01-14Move AMD64's bswap64 implementation from libc to src/common and share itjoerg
with the kernel.
2010-01-11Use a proper char */size_t pair in __sfileext to keep track of the linejoerg
buffer for fgetln and fgetwln. Simplifies code by dropping the INT_MAX related logic. Drop conditionals around FREELB, free(NULL) is valid.
2010-01-08Fix mdoc(7)/man(7) mix up.joerg
2010-01-08Fix up mix of man(7)/mdoc(7).joerg
2010-01-08Try to fixup the mess of mdoc(7)/man(7) mixture as created by the merge.joerg
2010-01-07Deal with PLABELs in _lwp_makecontextskrll
2010-01-02Include "nbtool_config.h" for src/tools/zic/ andtsutsui
remove bogus -DNOID to disable __RCSID(). XXX: should we also remove #ifndef lint from scheck.c and zic.c?
2010-01-01POSIX says realpath(NULL, foo) is supposed to yield EINVAL rather thandholland
being allowed to crash. Go figure. Closes PR lib/42559 from Stathis Kamperis.
2009-12-31Import tzcode2009k.mlelstv
- now understands 64bit time_t and 64bit data in timezone files. - localtime(), gmtime(), asctime() and ctime() may now fail with a NULL result if time_t cannot be represented by struct tm.
2009-12-20Sort ERRORS.wiz
2009-12-19Remove note about portability, since PF_UNSPEC will cause socketpair()pooka
to EAFNOSUPPORT on NetBSD(!). Additionally, at least slowaris and linux talk only about PF_LOCAL. Finally, since I'm reading a NetBSD man page, I foremost care about the code working on NetBSD.
2009-12-17PR/42466: Yasuoka Masahiko: vsnprintf_ss() causes infinite loopchristos
2009-12-17don't warn about mcount on mips64* as well.mrg
XXX: someone really should fix mips profile.h's MCOUNT!
2009-12-15Put space after comma in the C code example.enami
2009-12-14Back errant change due to botched merge.matt
2009-12-14Bump date for previous.wiz
2009-12-14Whitespace nit.wiz
2009-12-14Suppress a warning if time_t is __int64_tmatt
2009-12-14whoops, bump date for previous.dholland
2009-12-14Document %ll. Closes PR 42283.dholland
2009-12-14Merge from matt-nb5-mips64matt
2009-12-14Fix typo.matt
2009-12-14getaddrinfo is defined to use the AF_* constants, even though perhaps itsdholland
interface ought to have been defined in terms of PF_*. Add a note about how the distinction has been lost anyway. Fixes PR lib/42384.
2009-12-14Merge from matt-nb5-mips64.matt
2009-12-14Make sure the kernel doesn't pass back 0 for pagesize.matt
2009-12-09Fix markup.joerg