Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | In srandomdev(), use arc4random_buf() instead of from the kernel. | 2014-06-15 | 1 | -4/+3 | |
| | | | | discussion with matthew | ||||
* | Change return value of getentropy() to int 0 for success. Maximum | 2014-06-14 | 1 | -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 success | 2014-06-13 | 1 | -3/+3 | |
| | | | | of sysctl(). Mark it with XXX while we consider. | ||||
* | Remove deprecated RFC2292 ancillary data convenience functions. | 2014-06-13 | 2 | -488/+2 | |
| | | | | | | They are obsoleted by the RFC3542 api. ok mpi@ | ||||
* | use getgentropy() call. If it fails, things are pretty bad -- | 2014-06-13 | 1 | -8/+3 | |
| | | | | | call abort(). this direction discussed at length with miod beck tedu matthew etc | ||||
* | use getentropy; from matthew | 2014-06-13 | 1 | -5/+2 | |
| | |||||
* | typo; Piotr Sikora | 2014-06-13 | 1 | -3/+2 | |
| | |||||
* | delete a lie; replace with a truth | 2014-06-13 | 1 | -6/+5 | |
| | |||||
* | Add new getentropy() system call. Code and pressure from matthew. | 2014-06-13 | 2 | -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 major | 2014-06-13 | 1 | -1/+1 | |
| | |||||
* | Add timingsafe_memcmp(). | 2014-06-13 | 5 | -33/+152 | |
| | | | | ok deraadt, jmc, tedu | ||||
* | Add support for MAP_INHERIT_ZERO. | 2014-06-13 | 1 | -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 quadratic | 2014-06-12 | 1 | -13/+2 | |
| | | | | behavior for certain inputs. From NetBSD. OK tedu@ | ||||
* | Really remove the obsolete manpages left by earlier commit | 2014-06-11 | 2 | -0/+0 | |
| | | | | which just emptied the file but didn't remove it. | ||||
* | Remove manpages about deprecated RFC2292 ancillary data convenience functions. | 2014-06-11 | 4 | -769/+4 | |
| | | | | | | They are obsoleted by the RFC3542 api. ok mpi@ | ||||
* | mop up ifndef KERNEL goo; ok miod | 2014-06-10 | 13 | -65/+13 | |
| | |||||
* | Nuke the machinery to sync libkern with libc, it's not been used in the | 2014-06-09 | 15 | -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 __P | 2014-06-07 | 1 | -2/+2 | |
| | |||||
* | Fix modf() on sparc | 2014-06-07 | 1 | -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.h | 2014-06-04 | 10 | -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(). | 2014-06-04 | 1 | -7/+1 | |
| | | | | | Found by Elliott @ google ok mpi@ | ||||
* | move random bytes buffer to be part of mmaped pages; ok tedu@ | 2014-06-02 | 1 | -21/+18 | |
| | |||||
* | Delete the extraneous "return" statement at the end of a void function. | 2014-05-31 | 1 | -2/+1 | |
| | | | | From Fritjof Bornebusch. | ||||
* | Add definitions for Process and (finally!) Thread | 2014-05-30 | 1 | -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 something | 2014-05-30 | 1 | -4/+4 | |
| | | | | | | running ok millert@ sobrado@ | ||||
* | Use .Er for errnos | 2014-05-29 | 1 | -3/+3 | |
| | |||||
* | Grammar | 2014-05-29 | 1 | -3/+3 | |
| | |||||
* | move all stats collecting under MALLOC_STATS; ok krw@ | 2014-05-26 | 1 | -28/+33 | |
| | |||||
* | use calloc, from Benjamin Baier | 2014-05-25 | 4 | -12/+8 | |
| | |||||
* | one calloc from Benjamin Baier, one from me. | 2014-05-25 | 1 | -5/+3 | |
| | |||||
* | Fix typo in EPERM description; the function arg is pgrp, not pgid. | 2014-05-24 | 1 | -3/+3 | |
| | | | | From Abel Abraham Camarillo Ojeda | ||||
* | Document that v?dprintf() is just as safe as v?snprintf(). OK espie@ | 2014-05-23 | 2 | -4/+12 | |
| | |||||
* | fix MALLOC_STATS (not compiled in by default); ok tedu@ | 2014-05-21 | 1 | -18/+19 | |
| | |||||
* | warn about implicit. misspelled function names in libc are deadly. | 2014-05-21 | 1 | -1/+2 | |
| | |||||
* | factor out a bit of the chunk index code and use it to make sure that a | 2014-05-18 | 1 | -14/+33 | |
| | | | | | freed chunk is actually freeable immediately. catch more errors. hints/ok otto | ||||
* | correctly match size and buffer. from enh at google | 2014-05-17 | 1 | -3/+3 | |
| | |||||
* | Add missing header needed by isdigit(). | 2014-05-17 | 1 | -4/+5 | |
| | | | | | | While there, sort headers. ok tedu@ | ||||
* | refactor some of the des crypt code to use fewer globals. | 2014-05-17 | 2 | -42/+45 | |
| | | | | ok miod | ||||
* | update NAME and MLINKS for previous; | 2014-05-16 | 2 | -5/+7 | |
| | |||||
* | document crypt_checkpass | 2014-05-16 | 1 | -1/+14 | |
| | |||||
* | use $2b in the bcrypt example, ok tedu | 2014-05-16 | 1 | -3/+3 | |
| | |||||
* | stop flushing streams in abort(). it's hackish and unsafe, and no longer | 2014-05-14 | 2 | -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, | 2014-05-13 | 2 | -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/networks | 2014-05-13 | 2 | -2/+10 | |
| | | | | | | fix null deref spotted by Seth Hanford, pinpointed by dtucker@ ok florian@ | ||||
* | these files have moved to libutil | 2014-05-12 | 15 | -918/+0 | |
| | |||||
* | ...better if I actually unplug it, Makefile doesn't do it | 2014-05-12 | 1 | -2/+1 | |
| | |||||
* | remove md5crypt. | 2014-05-12 | 5 | -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. | 2014-05-12 | 1 | -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@ | 2014-05-12 | 5 | -25/+73 | |
| | | | | (mostly use a calloc function to avoid potential integer overflow) | ||||
* | change to having four freelists per size, to reduce another source of | 2014-05-12 | 1 | -16/+20 | |
| | | | | | deterministic behavior. four selected because it's more than three, less than five. i.e., no particular reason. |