aboutsummaryrefslogtreecommitdiff
path: root/include/string.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* add strsep fallback for libtlsBrent Cook2015-02-141-0/+4
|
* monkey patch more POSIX-like behavior out of winsock 2Brent Cook2014-12-031-0/+16
| | | | | | | | | | | | | | | | | | | | | | Windows sockets functions look on the outside like they behave similarly to POSIX functions, but there are many subtle and glaring differences, including errors reported via WSAGetLastError, read, write, and close do not work on sockets, setsockopt takes a (char *) rather than (void *), etc. This header implements wrappers that coerce more POSIX-like behavior from these functions, making portable code easier to develop. BENEFITS: One does not necessarily need to sprinkle #ifdefs around code to handle the Windows and non-Windows behavior when porting code. CAVEATS: There may be performance implications with the 'mother-may-I' approach to determining if a descriptor is a socket or a file. The errno mappings are not 100% what one might expect compared to POSIX since there were not always good 1:1 equivalents from the WSA errors.
* add minimal winsock->BSD networking header shimsBrent Cook2014-12-031-0/+5
| | | | also add license header to existing shims
* Improve and simplify function and header detection logic.Brent Cook2014-10-301-8/+9
| | | | | | | | | Simplify autoconf checks by using AC_CHECK_FUNCS/HEADERS. Clarify some ambiguous dependencies around strnlen/strndup. Unconditionally enable pidwraptest for all arc4random implementations. Remove HAVE_VASPRINTF conditional, since asprintf requires vasprintf. ok @doug
* update string.h for include strings.h for HPUX environmentkinichiro2014-10-221-2/+2
|
* conditionally build strnlen if needed.Brent Cook2014-08-021-0/+2
| | | | | | it is only used by strndup prodded by Sortie@
* Guard individual compatibility header prototypes.Brent Cook2014-07-281-1/+14
| | | | | | | | This is to avoid redefining prototypes from the libc headers. Also, simplify the autoconf function checks and remove some copy/paste errors checking for 'write'. ok wouter@
* add strndup/strnlen compat functions from OpenBSDBrent Cook2014-07-281-0/+4
|
* build openbsd memmem implementation for explicit_bzero testBrent Cook2014-07-211-0/+3
| | | | | | memmem is not always available, and not all memmem's work the same way ok beck@ guenther@
* initial top-level import of subdirectoriesBrent Cook2014-07-101-0/+25