summaryrefslogtreecommitdiff
path: root/lib/libc
AgeCommit message (Collapse)Author
2011-01-14superceded -> superseded;Jason McIntyre
2011-01-12avoid some integer overflows mostly with GLOB_APPEND and GLOB_DOOFFSDamien Miller
and sanity check arguments (these will be unnecessary when we switch struct glob members from being type into to size_t in the future); "looks ok" tedu@ feedback guenther@
2011-01-10tweak previous; ok millertJason McIntyre
2011-01-10mkdtemp() is present in POSIX 1003.1-2008Todd C. Miller
Add a warning about using less than 6 Xs causing an error on some systems
2011-01-07mktemp(3) can be used, but not where mkstemp(3) is an alternative. AlsoNicholas Marriott
trim an inaccurate comment about its future removal. ok deraadt
2010-12-31Make this compile with llvm-clang; problem pointed out by Amit KulkarniPhilip Guenthe
2010-12-27mktemp(3) (and thus mktemp(1)) no longer use the process ID whenTodd C. Miller
replacing the Xs, it is now purely random. Also replace a use of .Fn that should be .Xr. OK jmc@
2010-12-22Fix out of date comment; no code changeTodd C. Miller
2010-12-22remove comment that hasn't been true for quite a while now;Otto Moerbeek
ok deraadt@ djm@
2010-12-16avoid pointer arithmetic on void *David Hill
tested for a while by me. ok otto@
2010-12-05Rewrite the mbrtowc(3) man page so we can make sense of this function.Stefan Sperling
tweaks from jmc, help from uwe, "We are going to have to trust you :-)" deraadt
2010-11-30involes -> involves; from Carlos Alberto Pereira GomesJason McIntyre
2010-11-30replace a large stack buffer with a malloc call, with help from matthew.Ted Unangst
ok deraadt [passed upstream to the tz list as well]
2010-11-21the posix regex mistake is here to stay. ok deraadtTed Unangst
2010-11-20Add CAVEATS section documenting error handling caveats.Stefan Sperling
tweak and ok jmc, tedu
2010-11-19Make KERN_CPTIME return an avarage number of ticks across all CPUsMike Belopuhov
tedu agreed with an idea, tested by Luis Useche and me; ok deraadt
2010-11-08tweak previous;Jason McIntyre
2010-11-08Add %F, %g, %G, %u, %z (extended) and %Z.Jasper Lievisse Adriaanse
This is mostly a sync with NetBSD. tested in a bulk build by landry@ ok millert@
2010-10-29- the nroff workaround is no longer neededJason McIntyre
- use some Fn and \*(Gt
2010-10-28Change basep parameter of getdirentries() to be off_t *, not long *Todd C. Miller
so it works correctly with large offsets (and matches other systems). This requires adding a new getdirentries syscall, with the old one renamed to ogetdirentries. All in-tree consumers of getdirentries() have been updated. Bump libc and libpthread major numbers. OK and with deraadt@
2010-10-28remove skipjack and cast from the libc; ok deraadtMike Belopuhov
2010-10-28support _SC_HOST_NAME_MAX; from bradTheo de Raadt
a libc crank is happening in < 24 hours
2010-10-27Remove the EXAMPLE, since *noone* should use this non-portable APITheo de Raadt
directly -- it exists for libc use only. Tell people to use readdir(3). discussed with millert
2010-10-21print the pointer value that caused the error (if available); okOtto Moerbeek
deraadt@ nicm@ (on an earlier version)
2010-10-17The ssizearg member of union arg is pointless if it isn't of type ssize_tPhilip Guenthe
Noted by Claus Assmann
2010-10-16update struct statfs; from Vladimir KirillovJason McIntyre
2010-10-11tcp.sendspace & tcp.recvspace buttons are gone.Claudio Jeker
2010-10-08Extend GLOB_LIMIT to cover readdir and stat and bump the malloc limitNicholas Marriott
from ARG_MAX to 64K. Fixes glob-using programs (notably ftp) able to be triggered to hit resource limits. Idea from a similar NetBSD change, original problem reported by jasper@. ok millert tedu jasper
2010-10-06Retire SkipjackMike Belopuhov
There's not much use for the declassified cipher from the 80's with a questionable license these days. According to the FIPS drafts, Skipjack reaches its EOL in December 2010. The libc portion will be removed after the ports hackathon. djm and thib agree, no objections from deraadt Thanks to jsg for digging up FIPS drafts.
2010-10-01Provide a WEAK_ALIAS macro in <machine/asm.h> for the few platformsPhilip Guenthe
that didn't already have one, and then immediately use it in libc's SYS.h ok miod@
2010-09-27Update to tzcode2010m from elsie.nci.nih.govTodd C. Miller
2010-09-26oops, don't free array before freeing members; spotted by dkrause@Damien Miller
2010-09-25Make gcvt() better match printf("%g") behavior, it now passes regress.Todd C. Miller
OK deraadt@
2010-09-25document GLOB_KEEPSTAT in the RETURN VALUES and STANDARDS sections.Damien Miller
2010-09-24Bump libc major for ABI changes.Todd C. Miller
2010-09-24Bump fts_level from short to int and add a spare short so thingsTodd C. Miller
line up nicely. OK deraadt@
2010-09-24Provide IRIX-compatible get_fpc_csr() and set_fpc_csr() for mips, althoughMiod Vallat
we don't provide the silly union to decompose the value. This will allow userland to flip the ``flush denormalized to zero'' setting, which apparently is being relied upon by tcl. Asked by jasper@ a long time ago. Riding upon the upcoming libc major crank.
2010-09-24Add timingsafe_bcmp(3) to libc, mention that it's already in theMatthew Dempsky
kernel in kern(9), and remove it from OpenSSH. ok deraadt@, djm@
2010-09-24add a GLOB_KEEPSTAT option that retains a copy of the struct statDamien Miller
information that is looked up while matching glob(3)s Keeping this information around can make a big difference when fetching it is expensive, e.g. in sftp which uses GLOB_ALTDIRFUNC feedback millert@ jmc@ "get it in before the libc crank" deraadt@
2010-09-24Implement if_freenameindex() as a real function as required by posix.Claudio Jeker
OK deraadt@, millert@
2010-09-20according to ingo, it isn;t a problem to have empty [BDS]q macros, soJason McIntyre
revert that part of yesterday's diffs;
2010-09-19more wacky macro fixing;Jason McIntyre
2010-09-10observe the following spelling:Jason McIntyre
- wide character (noun) - wide-character (adjective) this is the "fix of least resistance", and appears to be in line with posix style; a tiny fix still needed for curses, but i'll mail that upstream;
2010-09-07Document EBUSY return when attempting to open a cua device thatTodd C. Miller
someone else already has open. OK jmc@
2010-09-07do not use .B, which is man(7), not mdoc(7); and stop .Tn abuseIngo Schwarze
feedback and ok jmc@, ok millert@
2010-09-07- O_NOFOLLOW is no longer non-posix; from thomas klausnerJason McIntyre
- bump posix revision and remove xpg; from millert ok millert
2010-09-01Oracle has re-licensed sunrpc under a three-clause BSD license.Todd C. Miller
Update our sources appropriately. OK deraadt@ jsg@
2010-08-24backout VIS_HEX. guenther@ points out that the C89 \xff encodingDamien Miller
idiotically accepts more then two hex digits following the \x, even on platforms where a char has 8 bits. It is therefore dangerous to have an almost-bit-not-quite compatible format in vis(3). The VIS_ALL (encode all characters) option introduced in the same commit remains.
2010-08-23update to tzcode2010k from elsie.nci.nih.gov; OK miod@Todd C. Miller
2010-08-23Check for duplicate variables in the environment when setting a valueTodd C. Miller
via setenv() or putenv(). OK miod@