Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Wrap blowfish, sha*, md5, and rmd160 so that internal calls go direct | guenther | 2015-09-11 | 2 | -2/+24 | |
| | | | | ok deraadt@ | |||||
* | Add support for building arc4random with MSVC. | bcook | 2015-09-10 | 1 | -7/+8 | |
| | | | | | | | By default, MSVC's stdlib.h defines min(), so we need to spell out something less common to avoid picking it up. ok deraadt@ beck@ miod@ | |||||
* | Pull in namespace.h when building all .c files using gcc's -include option, | guenther | 2015-09-10 | 2 | -3/+18 | |
| | | | | | | | | so that we can provide asm labels for the memcpy/memset/__stack_smash_handler calls that it generates ab initio. Eliminate direct #includes of it. Make sure it's a dependency of all objects (unnecessary for asm, but close enough). ok deraadt@ | |||||
* | reduce .Nd to one line and kill .Tn while here | schwarze | 2015-09-10 | 5 | -25/+15 | |
| | ||||||
* | missing commas at the end of .Nm lines in the NAME section | schwarze | 2015-09-10 | 1 | -3/+3 | |
| | ||||||
* | tweak Nd after previous; ok mpi | jmc | 2015-09-10 | 1 | -2/+2 | |
| | ||||||
* | Remove link_addr(3). A function to encode the name of an interface in | mpi | 2015-09-10 | 3 | -136/+8 | |
| | | | | | | | | | | | | a sockaddr_dl is a questionnable interface. But now it makes it harder to properly reference ifp becauses of this. Set sdl_index to the index of the corresponding interface when constructing a routing message. Ridding previous libc crank. ok guenther@, deraadt@, dlg@ | |||||
* | Stop exporting from libc the <mpool.h> and the mpool_* API | guenther | 2015-09-09 | 1 | -0/+122 | |
| | | | | ports scan by sthen@ | |||||
* | Fix aliasing of sys_errlist, sys_nerr, sys_siglist, and sys_signame | guenther | 2015-09-06 | 2 | -15/+4 | |
| | | | | | | to eliminate duplicate copies of the tables and get direct access internally ok kettenis@ deraadt@ | |||||
* | Use new framework for wrapping cat{open,gets,close}(), eliminating | guenther | 2015-09-05 | 2 | -8/+2 | |
| | | | | | | _cat* in the process. ok kettenis@ | |||||
* | Add framework for resolving (pun intended) libc namespace issues, using | guenther | 2015-08-31 | 43 | -49/+233 | |
| | | | | | | | | | | | | wrapper .h files and asm labels to let internal calls resolve directly and not be overridable or use the PLT. Then, apply that framework to most of the functions in stdio.h, string.h, err.h, and wchar.h. Delete the should-have-been-hidden-all-along _v?(err|warn)[cx]? symbols while here. tests clean on i386, amd64, sparc64, powerpc, and mips64 naming feedback from kettenis@ and millert@ ok kettenis@ | |||||
* | Use nanosleep instead of sleep to avoid the extra layer and simplify later | guenther | 2015-08-30 | 1 | -5/+8 | |
| | | | | | | symbol hiding ok w/tweak deraadt@ | |||||
* | Use static and __{BEGIN,ENV}_HIDDEN_DECLS to hide a bunch of internal | guenther | 2015-08-27 | 2 | -4/+7 | |
| | | | | | | symbols that are not longer exported. (This improves the generated code.) ok deraadt@ | |||||
* | Move the __rand48_* declarations into rand48.h, and then hide both them | guenther | 2015-08-27 | 7 | -25/+13 | |
| | | | | | | and __dorand48() and __rand48_deterministic ok deraadt@ | |||||
* | All these files include <stdlib.h>, so do not need to cast | deraadt | 2015-08-20 | 2 | -5/+5 | |
| | | | | malloc/calloc/realloc* returns. | |||||
* | call it bcrypt in the man page too | tedu | 2015-07-23 | 1 | -3/+3 | |
| | ||||||
* | permit "bcrypt" as an alias for "blowfish". this is, after all, what | tedu | 2015-07-23 | 1 | -11/+27 | |
| | | | | | | | 99% of the world calls it. allow just "bcrypt" without params to mean auto-tune ("bcrypt,a"). default remains 8 rounds (for now) ok deraadt | |||||
* | Unbreak, add errno header | jeremy | 2015-07-18 | 1 | -1/+2 | |
| | | | | OK tedu@ | |||||
* | set errno in null cases, just in case. | tedu | 2015-07-18 | 1 | -2/+3 | |
| | ||||||
* | standards compliant error return (null). will make ruby happier, at least. | tedu | 2015-07-18 | 1 | -5/+2 | |
| | | | | ok deraadt jeremy | |||||
* | Just return if nmemb is 0. Avoids a NULL dereference and is | millert | 2015-06-21 | 1 | -1/+4 | |
| | | | | | consistent with the behavior of the other libc sort functions. OK deraadt@ | |||||
* | Remove needless casts. There's no reason to cast delim to char * | millert | 2015-06-19 | 1 | -5/+4 | |
| | | | | when we can just make spanp const char * to match it. OK deraadt@ | |||||
* | force reseeding if pid has changed. | eric | 2015-06-04 | 1 | -2/+7 | |
| | | | | ok deraadt@ | |||||
* | Make index/rindex weak aliases of strchr/strrchr since they are not | millert | 2015-05-15 | 4 | -90/+6 | |
| | | | | | part of the ISO C standard and have also been dropped from POSIX. OK guenther@ kettenis@ | |||||
* | rev 1.3 introduced a check to an if statement without adding braces. | jsg | 2015-05-14 | 1 | -3/+1 | |
| | | | | | | | Claudio points out the size is checked by an earlier test so just remove it to restore the original handling of the partial octet case. Discussed with claudio and gilles. | |||||
* | If crypt(3) is called with an unknown setting, return NULL instead | bluhm | 2015-05-13 | 1 | -1/+3 | |
| | | | | | of some undefined value. OK tedu@ | |||||
* | Add dlclose(3) to SEE ALSO | guenther | 2015-05-12 | 1 | -2/+3 | |
| | | | | ok millert@ jmc@ schwarze@ | |||||
* | When checking flags that will be passed to open(), test the O_ACCMODE portion | guenther | 2015-05-11 | 1 | -2/+3 | |
| | | | | | | separately to avoid false negatives. ok miod@ millert@ | |||||
* | Another couple of commas in the wrong place, ok jmc | nicm | 2015-04-14 | 1 | -3/+3 | |
| | ||||||
* | Make pthread_atfork() track the DSO that called it like atexit() does, | guenther | 2015-04-07 | 3 | -2/+81 | |
| | | | | | | | | | | unregistering callbacks if the DSO is unloaded. Move the callback handling from libpthread to libc, though libpthread still overrides the inner call to handle locking and thread-library reinitialization. Major version bump for both libc and libpthread. verification that this fixes various ports ajacoutot@ asm assistance miod@; ok millert@ deraadt@ | |||||
* | bludgeon DES support out of crypt. long live the bcrypt. | tedu | 2015-04-06 | 2 | -761/+9 | |
| | ||||||
* | improve realloc. when expanding a region, actually use the free page cache | tedu | 2015-04-06 | 1 | -7/+16 | |
| | | | | | instead of simply zapping it. this can save many syscalls in a program that repeatedly grows and shrinks a buffer, as observed in the wild. | |||||
* | Make rcmdsh(3) not fail if it is passed a non resolvable hostname. | halex | 2015-03-23 | 3 | -20/+16 | |
| | | | | | | | Instead, silently ignore the fact and instead let the underlying ssh (or $RSH) command handle it. ok millert@ | |||||
* | differentiate between a failed read, returning -1, and encountering | halex | 2015-03-22 | 1 | -2/+4 | |
| | | | | | | | end-of-file, returning 0, in order not to print an unrelated strerror(errno) in the latter case ok millert@ | |||||
* | unmute rcmd hostname lookup failure | halex | 2015-03-22 | 1 | -3/+2 | |
| | | | | ok millert@ jung@ | |||||
* | zap #if 0'd code that's been dead since '96 | halex | 2015-03-19 | 1 | -7/+0 | |
| | | | | ok todd@ | |||||
* | remove incorrect statement. the standard *does* require calloc to check | tedu | 2015-03-14 | 1 | -7/+2 | |
| | | | | | for overflow. stop talking about old broken systems, there's little use for such info. | |||||
* | Update comment to match code; Caspar Schutijserlibressl-v2.1.4 | millert | 2015-03-02 | 1 | -2/+2 | |
| | ||||||
* | we don't let strtonum errors bleed through now. | tedu | 2015-02-24 | 1 | -4/+2 | |
| | ||||||
* | Set errno to EINVAL, instead of letting ERANGE escape out. | tedu | 2015-02-24 | 1 | -2/+4 | |
| | | | | | | Printing strerror() in that case will say result too large, even if rounds is actually too small. invalid is less specific, but less incorrect. ok millert | |||||
* | Amend documentation for AI_ADDRCONFIG | jca | 2015-02-16 | 1 | -2/+4 | |
| | | | | ok jmc@ | |||||
* | lsearch and lfind return void * | tedu | 2015-02-15 | 1 | -4/+4 | |
| | ||||||
* | use a width specifier for lists, and Sq rather than Dq for single letters | jmc | 2015-02-11 | 1 | -3/+3 | |
| | | | | to avoid swamping it; | |||||
* | the possible algos for pref should be documented here | tedu | 2015-02-11 | 1 | -4/+11 | |
| | ||||||
* | Use .Rv where appropriate, and move it to RETURN VALUES; | schwarze | 2015-01-29 | 3 | -27/+13 | |
| | | | | | remove .Tn, and a few minor macro adjustments. Patch from Kaspars at Bankovskis dot net. | |||||
* | dial the time back to about 0.1s, closer to the original targets and | tedu | 2015-01-28 | 1 | -4/+4 | |
| | | | | friendlier for users. requested by deraadt | |||||
* | Improve wording in alloca. | tedu | 2015-01-17 | 1 | -7/+5 | |
| | | | | | | | 1. it's not a bug; it's a caveat. 2. "slightly unsafe" gives me the willies. 3. one .Xr to malloc should suffice ok deraadt jmc | |||||
* | Use ">", not ">=" when comparing length to HOST_NAME_MAX since | millert | 2015-01-16 | 1 | -3/+3 | |
| | | | | | otherwise we end up needlessly replacing a NUL with a NUL. OK deraadt@ | |||||
* | Replace HOST_NAME_MAX+1-1 with HOST_NAME_MAX. OK deraad@ | millert | 2015-01-16 | 2 | -8/+8 | |
| | ||||||
* | Replace check for ">= HOST_NAME_MAX+1" with "> HOST_NAME_MAX". | millert | 2015-01-16 | 1 | -1/+1 | |
| | | | | OK deraadt@ |