summaryrefslogtreecommitdiff
path: root/lib/libc
AgeCommit message (Collapse)Author
2009-04-29Remove the stderr spray balony. Library functions should indicate failureTheo de Raadt
(and libc and some others can use errno to indicate more detailed results). They should not print trash to stderr, let alone assume that stderr is open to the place they think it is. ok millert
2009-04-29junk spaceTheo de Raadt
2009-04-22Correct the declaration of the dladdr() stub so that it has the correctPhilip Guenthe
lint information originally ok'ed deraadt@ right before the 4.5 tree lock
2009-04-21remove from gen so that lint doesn't check gen if assembly versionsMartynas Venckus
are available. spotted by theo
2009-04-19- ldexp implementation has issues. switch to the one from libmMartynas Venckus
- remove frexp in hppa64, cloned from hppa - move generic ieee754 implementations of modf and ldexp to gen ok kettenis@, "looks good" millert@
2009-04-15allow building without SHA384 and SHA512 (i.e. SHA256 only) withDamien Miller
-DSHA256_ONLY in order to save space; ok deraadt@
2009-04-12document that no leading whitespace is permitted between the option andOkan Demirmen
argument if the argument is deemed to be optional ('::'). feedback and ok jmc@ and millert@
2009-04-05accept %F, which actually behaves the same as %f. per C99Martynas Venckus
ok millert@
2009-04-05this is not a write-only register. might have caused to optimizeMartynas Venckus
it away. ok miod@
2009-03-28document superuser requirements, with input from jmc@Marc Espie
2009-03-27supplement previous: add /etc/netid to FILES section; ok jmc@, ajacoutot@Ingo Schwarze
2009-03-27getgrouplist: If YP is #defined and enabled in /etc/group(5) and /etc/netid(5)Ingo Schwarze
contains a matching entry, use that and refrain from accessing YP. getpwnam/getpwuid: If YP is #defined and /etc/master.passwd(5) contains a matching entry before the first YP entry, use that and stay away from YP. Taken together, this allows a solution to the following problem pointed out by deraadt@: When YP was configured but temporarily unavailable, even root login would block, hindering you when trying to do repairs. To avoid this, you can now provide a static entry for root in /etc/netid. Using suggestions from miod@ otto@ blambert@ jmc@. "commit" deraadt@, "cool" ajacoutot@, "looks fine" jmc@.
2009-03-23add a HISTORY section to fts(3).Igor Sobrado
diff proposed by an anonymous user on bugs@; tweaked by jmc@; verified using the superb 4BSD collection at pdp-11.org.ru (thanks form@). ok jmc@
2009-03-20Return -1 from mktemp_internal() on EINVAL like we used to.Todd C. Miller
OK oga@ thib@
2009-03-17correct argument type for swap64(); from Thomas PfaffJason McIntyre
2009-03-05Add glob(7) and refer to it. OK jmc@ sobrado@Todd C. Miller
2009-03-01Update to match mktemp.c changesTodd C. Miller
2009-03-01New mktemp(3) based on the one from portable mktemp(1). Now includesTodd C. Miller
digits (in addition to letters) in the random file name. Instead of looping forever, mktemp(3) will terminate when it has tried 2 * N^62 times where N is the number of X's. This is effectively forever for lots of X's.
2009-02-18Add missing braces. This is why we use braces for indented block thatTodd C. Miller
are more than a couple of lines...
2009-02-17when the template is entirely XXX characters, would crashTheo de Raadt
from Vadim Zhukov <persgray@gmail ok millert
2009-02-13kill whitespace at eol;Jason McIntyre
2009-02-13decribe 'F' better and mention flags are debugging aids; ok tedu@ jmc@Otto Moerbeek
2009-02-11Avoid level going negative on deep (i mean really deep) dirs. ReportedOtto Moerbeek
by Maksymilian Arciemowicz. ok kettenis@ millert@
2009-02-10correct function definitions; from Markus BergkvistJason McIntyre
2009-01-31fix typoPierre-Yves Ritschard
ok jmc@
2009-01-30Change section: we're talking about the symlink system call, not thePhilip Guenthe
generic symlink info ok jmc@
2009-01-30tweak previous;Jason McIntyre
2009-01-29Update to reflect renaming of the st_[acm]timespec members to st_[acm]timPhilip Guenthe
per the POSIX 1003.1-2008 spec. Also, tweak the information about what system calls hit which timestamps ok jmc@
2009-01-29from Yoshihiko Sarumaru, freebsd pr #76333: fseek(3) can clear EOF too;Jason McIntyre
ok millert
2009-01-15Remove support for kerb4 '.' instance separator, kerb4 is dead. OK jacekm@Todd C. Miller
2009-01-13Man page for wcstof(3), wcstod(3) and wcstold(3).Mark Kettenis
2009-01-13Crank minor because of addition of wcsto* functions.Mark Kettenis
2009-01-13Add wcstof(3) and wcstold(3).Mark Kettenis
ok miod@
2009-01-13Add wcstoimax(3) and wcstoumax(3).Mark Kettenis
ok miod@
2009-01-10The process number is longer used to replace trailing 'Xs'.Tobias Stoeckmann
ok jmc, millert
2009-01-03reintroduce extra malloc protections, but avoiding the use ofDamien Miller
PAGE_(SIZE|SHIFT|MASK) defines that evaluate to variables on the sparc architecture; ok otto@ tested on my reanimated ss20
2008-12-31PAGE_SIZE is not a valid symbol to use in that way. In particular,Theo de Raadt
on sparc, it expands to something that just plain does not work, because the page size can be variable. Sorry we didn't spot this before. Backing it all out to allow sparc to build; please find a different way to fix it.
2008-12-30Remove mprotecting of struct dir_info introduced in previous commitDamien Miller
(MALLOC_OPTIONS=L). It was too slow to turn on by default, and we don't do optional security. requested by deraadt@ grumbling ok otto@
2008-12-29extra paranoia for malloc(3):Damien Miller
Move all runtime options into a structure that is made read-only (via mprotect) after initialisation to protect against attacks that overwrite options to turn off malloc protections (e.g. use-after-free) Allocate the main bookkeeping data (struct dir_info) using mmap(), thereby giving it an unpredictable address. Place a PROT_NONE guard page on either side to further frustrate attacks on it. Add a new 'L' option that maps struct dir_info PROT_NONE except when in the allocator code itself. Makes attacks on it basically impossible. feedback tedu deraadt otto canacar ok otto
2008-12-27Fix file descriptor leak in fts_children(); okay dhill@, millert@,Pedro Martelletto
tedu@, thib@.
2008-12-23repair the ARC4 story; ok jmc djm millertTheo de Raadt
2008-12-23ddb.console does not override machdep.kbdreset, so don't say it does;Jason McIntyre
2008-12-22document yp_maplist(); from Ingo SchwarzeJason McIntyre
ok deraadt
2008-12-22The example for detecting malicious PTR records could be easily misinterpreted.Jacek Masiulaniec
Make it less ambiguous; ok gilles@ claudio@
2008-12-20Add man page for wcstol and friends.Mark Kettenis
ok jmc@
2008-12-17Document ENOBUFS for writev(2).Ray Lai
Okay claudio, deraadt.
2008-12-15shave off more bytes than you expect by declaring a few const local arraysOtto Moerbeek
as static const
2008-12-12__isinff and __isnanfMartynas Venckus
2008-12-12do the same as was done in mi version: do not include math.h, since isinf,Martynas Venckus
and isnan would expand to macros and compatibility aliases won't work
2008-12-12strcpy -> strlcpy; ok mbalmer@ martynas@Otto Moerbeek