Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | recv() and send() aren't overriden by libpthread (vs recvfrom() and sendto()!) | guenther | 2015-10-04 | 2 | -2/+4 | |
| | | | | so wrap them to make internal calls go direct | |||||
* | Eliminate the last of the LINTEDn and PRINTFLIKEn comments. In one | guenther | 2015-10-01 | 6 | -15/+7 | |
| | | | | | | | case, by deleting some useless '& of an array' we also eliminate the need for the casts which prompted the original lint warnings ok deraadt@ | |||||
* | lint is dead: delete useless LINTLIBRARY comments | guenther | 2015-09-26 | 2 | -4/+2 | |
| | | | | ok millert@ | |||||
* | Don't wrap initialized variables: binutils appears to be mishandling them | guenther | 2015-09-19 | 1 | -1/+3 | |
| | | | | | | on arm and m88k problems with optind observed by jsg@ | |||||
* | Only two of the *rand48.c files need <math.h>, so just #include it in them | guenther | 2015-09-14 | 3 | -4/+5 | |
| | ||||||
* | use .Va for global variables, and .Vt where the type is included | schwarze | 2015-09-14 | 1 | -4/+3 | |
| | ||||||
* | Wrap <ifaddrs.h>, <netinet/in.h>, and <netinet/if_ether.h> so internal | guenther | 2015-09-14 | 3 | -3/+7 | |
| | | | | calls go direct and all the symbols are weak | |||||
* | Wrap <net/if.h> and <net/if_dl.h> so internal calls go direct and all the | guenther | 2015-09-14 | 2 | -2/+4 | |
| | | | | symbols are weak | |||||
* | Remove cast of int* to int* | guenther | 2015-09-14 | 1 | -2/+2 | |
| | ||||||
* | Finish wrapping <netdb.h> so that calls go direct and the symbols are all weak | guenther | 2015-09-14 | 9 | -9/+24 | |
| | ||||||
* | Wrap <arpa/inet.h> and <arpa/nameser.h> so that calls go direct and the | guenther | 2015-09-13 | 5 | -5/+11 | |
| | | | | symbols without underbar prefix are all weak | |||||
* | For now, permit overriding of the malloc family, to make emacs happy | guenther | 2015-09-13 | 1 | -6/+6 | |
| | ||||||
* | Wrap <pwd.h> so that calls go direct and the symbols are all weak. | guenther | 2015-09-13 | 2 | -7/+8 | |
| | | | | Hide bcrypt_autorounds(), prefixing with an underbar for static builds. | |||||
* | Overshot w/PROTO_DEPRECATED: seed48_deterministic() is used internally | guenther | 2015-09-13 | 1 | -1/+2 | |
| | ||||||
* | The number of rounds is just two digits in the salt. We've already | millert | 2015-09-13 | 1 | -2/+2 | |
| | | | | | verified that they are there via isdigit() so we can convert from ASCII to an int without using atoi(). OK guenther@ deraadt@ | |||||
* | Wrap <stdlib.h> so that calls go direct and the symbols not in the | guenther | 2015-09-13 | 22 | -26/+54 | |
| | | | | | | C standard are all weak. Apply __{BEGIN,END}_HIDDEN_DECLS to gdtoa{,imp}.h, hiding the arch-specific __strtorx, __ULtox_D2A, __strtorQ, __ULtoQ_D2A symbols. | |||||
* | __strsignal() is now declared in hidden/signal.h | guenther | 2015-09-12 | 1 | -2/+0 | |
| | ||||||
* | Wrap <inttypes.h> and finish wrapping of <wchar.h> so that calls go direct | guenther | 2015-09-12 | 24 | -24/+51 | |
| | | | | and the symbols not in the C standard are weak | |||||
* | Wrap <unistd.h> so that internal calls go direct and they're all weak symbols | guenther | 2015-09-12 | 6 | -4/+12 | |
| | | | | Delete unused 'fd' argument from internal function oldttyname() | |||||
* | Wrap <getopt.h> to make the functions weak and make access to the initialized | guenther | 2015-09-12 | 1 | -1/+6 | |
| | | | | variables go direct. (Common variables cannot be aliased.) | |||||
* | _getnetbyaddr and _getnetbyname appear to be historical accidents in | deraadt | 2015-09-11 | 3 | -103/+2 | |
| | | | | our tree. ok guenther miod | |||||
* | 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 | |
| |