summaryrefslogtreecommitdiff
path: root/lib/libc
AgeCommit message (Collapse)Author
2014-06-13delete a lie; replace with a truthTheo de Raadt
2014-06-13Add new getentropy() system call. Code and pressure from matthew.Theo de Raadt
I accepted that he's right (again) to seperate this out from heavy sysctl API and this will simply a variety of things. Functionname is not used by anyone in the ports tree, so we guess we can use it. Shocking that no application has a function called this. ok matthew & others who pushed him to start this early on
2014-06-13crank majorTheo de Raadt
2014-06-13Add timingsafe_memcmp().Matthew Dempsky
ok deraadt, jmc, tedu
2014-06-13Add support for MAP_INHERIT_ZERO.Matthew Dempsky
This provides a way for a process to designate pages in its address space that should be replaced by fresh, zero-initialized anonymous memory in forked child processes, rather than being copied or shared. ok jmc, kettenis, tedu, deraadt; positive feedback from many more
2014-06-12Disable the "switch to insertion sort" optimization to avoid quadraticTodd C. Miller
behavior for certain inputs. From NetBSD. OK tedu@
2014-06-11Really remove the obsolete manpages left by earlier commitChristopher Zimmermann
which just emptied the file but didn't remove it.
2014-06-11Remove manpages about deprecated RFC2292 ancillary data convenience functions.Christopher Zimmermann
They are obsoleted by the RFC3542 api. ok mpi@
2014-06-10mop up ifndef KERNEL goo; ok miodTheo de Raadt
2014-06-09Nuke the machinery to sync libkern with libc, it's not been used in theMiod Vallat
last 15 years and there is no point to use it in the future. From Jean-Philippe Ouellet
2014-06-07remove last few uses of __PTheo de Raadt
2014-06-07Fix modf() on sparcTobias Ulmer
For large integral values, modf returned uninitialized data in iptr since 1992. Found while debugging python segfaults. ok miod
2014-06-04Apply "unifdef -D__STDC__" to libc/arch/*/SYS.hMatthew Dempsky
A while back, pascal@ converted our system call stubs from using "cpp | as" to "cc -x assembler-with-cpp", so there's no need to stay compatible with ancient preprocessor semantics. ok miod
2014-06-04Remove assigned but unused local variables and macro from vfwprintf().Stefan Sperling
Found by Elliott @ google ok mpi@
2014-06-02move random bytes buffer to be part of mmaped pages; ok tedu@Otto Moerbeek
2014-05-31Delete the extraneous "return" statement at the end of a void function.Jeremie Courreges-Anglas
From Fritjof Bornebusch.
2014-05-30Add definitions for Process and (finally!) ThreadPhilip Guenther
Tweak some error descriptions based on that Completely reword ETXTBSY description based on a suggestion from millert@ tweaks and oks jmc@ millert@ sobrado@
2014-05-30A program is the thing you run; a process is an instance of somethingPhilip Guenther
running ok millert@ sobrado@
2014-05-29Use .Er for errnosPhilip Guenther
2014-05-29GrammarPhilip Guenther
2014-05-26move all stats collecting under MALLOC_STATS; ok krw@Otto Moerbeek
2014-05-25use calloc, from Benjamin BaierTed Unangst
2014-05-25one calloc from Benjamin Baier, one from me.Ted Unangst
2014-05-24Fix typo in EPERM description; the function arg is pgrp, not pgid.Todd C. Miller
From Abel Abraham Camarillo Ojeda
2014-05-23Document that v?dprintf() is just as safe as v?snprintf(). OK espie@Todd C. Miller
2014-05-21fix MALLOC_STATS (not compiled in by default); ok tedu@Otto Moerbeek
2014-05-21warn about implicit. misspelled function names in libc are deadly.Ted Unangst
2014-05-18factor out a bit of the chunk index code and use it to make sure that aTed Unangst
freed chunk is actually freeable immediately. catch more errors. hints/ok otto
2014-05-17correctly match size and buffer. from enh at googleTed Unangst
2014-05-17Add missing header needed by isdigit().Charles Longeau
While there, sort headers. ok tedu@
2014-05-17refactor some of the des crypt code to use fewer globals.Ted Unangst
ok miod
2014-05-16update NAME and MLINKS for previous;Jason McIntyre
2014-05-16document crypt_checkpassTed Unangst
2014-05-16use $2b in the bcrypt example, ok teduStuart Henderson
2014-05-14stop flushing streams in abort(). it's hackish and unsafe, and no longerTed Unangst
required. try to document this fact and some of the history. with feedback from deraadt guenther millert
2014-05-13for non-valid combinations with `#', instead of trying to list them all,Jason McIntyre
simply say all other combinations are behaviour undefined; ok guenther, who reminded me to change these too;
2014-05-13skip incomplete entries in /etc/hosts and /etc/networksEric Faurot
fix null deref spotted by Seth Hanford, pinpointed by dtucker@ ok florian@
2014-05-12these files have moved to libutilMarc Espie
2014-05-12...better if I actually unplug it, Makefile doesn't do itMarc Espie
2014-05-12remove md5crypt.Ted Unangst
while changing things, add a crypt_checkpass wrapper that handles most of the edge cases. (not quite ready for production, though.) ok deraadt
2014-05-12move the ohash functions into libutil by popular demand.Marc Espie
It's not a standard interface, so it doesn't belong in libc. I hate duplicating the code in client programs, so do beck@, kettenis@, schwarze@, millert@, miod@... and they agree with libutil.
2014-05-12tweak interface to do the right thing, after useful comments from millert@Marc Espie
(mostly use a calloc function to avoid potential integer overflow)
2014-05-12change to having four freelists per size, to reduce another source ofTed Unangst
deterministic behavior. four selected because it's more than three, less than five. i.e., no particular reason.
2014-05-10remove warning by adding explicit parentheses around && within ||Charles Longeau
ok sperreault@
2014-05-10fix MALLOC_STATS code that was broken in rev 1.159, not compiled in by defaultOtto Moerbeek
2014-05-09Add a bit more detail about dot notation from the old inet(3) manpage.Philip Guenther
ok jmc@
2014-05-09when demonstrating the correct "double-check" idiom, provide aTheo de Raadt
reminder that the return value is int...
2014-05-08move reallocarray() to a seperate file so that -portable applicationsTheo de Raadt
can avoid reinventing the wheel ok guenther schwarze
2014-05-07comment style fixAlexander Hall
ok crickets@
2014-05-07Kill the {nd6_,}useloopback buttons, using the loopback interface forMartin Pieuchot
local traffic is not optional. ok mikeb@, stsp@, jca@