summaryrefslogtreecommitdiffstats
path: root/lib/libc (follow)
Commit message (Collapse)AuthorAgeFilesLines
* In srandomdev(), use arc4random_buf() instead of from the kernel.deraadt2014-06-151-4/+3
| | | | discussion with matthew
* Change return value of getentropy() to int 0 for success. Maximumderaadt2014-06-141-9/+27
| | | | | | | | buffersize is enforced strictly, this supplies sufficient entropy payload to act as seed material. Discourage general use of this API, but lock down this function name as the go-to for userland PRNG seeding. Improve documentation. ok miod matthew
* For now... assume success of getentropy() just like we assumed successderaadt2014-06-131-3/+3
| | | | of sysctl(). Mark it with XXX while we consider.
* Remove deprecated RFC2292 ancillary data convenience functions.chrisz2014-06-132-488/+2
| | | | | | They are obsoleted by the RFC3542 api. ok mpi@
* use getgentropy() call. If it fails, things are pretty bad --deraadt2014-06-131-8/+3
| | | | | call abort(). this direction discussed at length with miod beck tedu matthew etc
* use getentropy; from matthewderaadt2014-06-131-5/+2
|
* typo; Piotr Sikoraderaadt2014-06-131-3/+2
|
* delete a lie; replace with a truthderaadt2014-06-131-6/+5
|
* Add new getentropy() system call. Code and pressure from matthew.deraadt2014-06-132-6/+57
| | | | | | | | 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
* crank majorderaadt2014-06-131-1/+1
|
* Add timingsafe_memcmp().matthew2014-06-135-33/+152
| | | | ok deraadt, jmc, tedu
* Add support for MAP_INHERIT_ZERO.matthew2014-06-131-16/+24
| | | | | | | | 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
* Disable the "switch to insertion sort" optimization to avoid quadraticmillert2014-06-121-13/+2
| | | | behavior for certain inputs. From NetBSD. OK tedu@
* Really remove the obsolete manpages left by earlier commitchrisz2014-06-112-0/+0
| | | | which just emptied the file but didn't remove it.
* Remove manpages about deprecated RFC2292 ancillary data convenience functions.chrisz2014-06-114-769/+4
| | | | | | They are obsoleted by the RFC3542 api. ok mpi@
* mop up ifndef KERNEL goo; ok miodderaadt2014-06-1013-65/+13
|
* Nuke the machinery to sync libkern with libc, it's not been used in themiod2014-06-0915-100/+15
| | | | | | last 15 years and there is no point to use it in the future. From Jean-Philippe Ouellet
* remove last few uses of __Pderaadt2014-06-071-2/+2
|
* Fix modf() on sparctobiasu2014-06-071-3/+3
| | | | | | | For large integral values, modf returned uninitialized data in iptr since 1992. Found while debugging python segfaults. ok miod
* Apply "unifdef -D__STDC__" to libc/arch/*/SYS.hmatthew2014-06-0410-109/+10
| | | | | | | | 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
* Remove assigned but unused local variables and macro from vfwprintf().stsp2014-06-041-7/+1
| | | | | Found by Elliott @ google ok mpi@
* move random bytes buffer to be part of mmaped pages; ok tedu@otto2014-06-021-21/+18
|
* Delete the extraneous "return" statement at the end of a void function.jca2014-05-311-2/+1
| | | | From Fritjof Bornebusch.
* Add definitions for Process and (finally!) Threadguenther2014-05-301-9/+28
| | | | | | | Tweak some error descriptions based on that Completely reword ETXTBSY description based on a suggestion from millert@ tweaks and oks jmc@ millert@ sobrado@
* A program is the thing you run; a process is an instance of somethingguenther2014-05-301-4/+4
| | | | | | running ok millert@ sobrado@
* Use .Er for errnosguenther2014-05-291-3/+3
|
* Grammarguenther2014-05-291-3/+3
|
* move all stats collecting under MALLOC_STATS; ok krw@otto2014-05-261-28/+33
|
* use calloc, from Benjamin Baiertedu2014-05-254-12/+8
|
* one calloc from Benjamin Baier, one from me.tedu2014-05-251-5/+3
|
* Fix typo in EPERM description; the function arg is pgrp, not pgid.millert2014-05-241-3/+3
| | | | From Abel Abraham Camarillo Ojeda
* Document that v?dprintf() is just as safe as v?snprintf(). OK espie@millert2014-05-232-4/+12
|
* fix MALLOC_STATS (not compiled in by default); ok tedu@otto2014-05-211-18/+19
|
* warn about implicit. misspelled function names in libc are deadly.tedu2014-05-211-1/+2
|
* factor out a bit of the chunk index code and use it to make sure that atedu2014-05-181-14/+33
| | | | | freed chunk is actually freeable immediately. catch more errors. hints/ok otto
* correctly match size and buffer. from enh at googletedu2014-05-171-3/+3
|
* Add missing header needed by isdigit().chl2014-05-171-4/+5
| | | | | | While there, sort headers. ok tedu@
* refactor some of the des crypt code to use fewer globals.tedu2014-05-172-42/+45
| | | | ok miod
* update NAME and MLINKS for previous;jmc2014-05-162-5/+7
|
* document crypt_checkpasstedu2014-05-161-1/+14
|
* use $2b in the bcrypt example, ok tedusthen2014-05-161-3/+3
|
* stop flushing streams in abort(). it's hackish and unsafe, and no longertedu2014-05-142-21/+13
| | | | | required. try to document this fact and some of the history. with feedback from deraadt guenther millert
* for non-valid combinations with `#', instead of trying to list them all,jmc2014-05-132-19/+6
| | | | | | simply say all other combinations are behaviour undefined; ok guenther, who reminded me to change these too;
* skip incomplete entries in /etc/hosts and /etc/networkseric2014-05-132-2/+10
| | | | | | fix null deref spotted by Seth Hanford, pinpointed by dtucker@ ok florian@
* these files have moved to libutilespie2014-05-1215-918/+0
|
* ...better if I actually unplug it, Makefile doesn't do itespie2014-05-121-2/+1
|
* remove md5crypt.tedu2014-05-125-195/+65
| | | | | | while changing things, add a crypt_checkpass wrapper that handles most of the edge cases. (not quite ready for production, though.) ok deraadt
* move the ohash functions into libutil by popular demand.espie2014-05-121-2/+2
| | | | | | 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.
* tweak interface to do the right thing, after useful comments from millert@espie2014-05-125-25/+73
| | | | (mostly use a calloc function to avoid potential integer overflow)
* change to having four freelists per size, to reduce another source oftedu2014-05-121-16/+20
| | | | | deterministic behavior. four selected because it's more than three, less than five. i.e., no particular reason.