include/string.h


Log

Author Commit Date CI Message
Brent Cook e83c30c1 2014-11-20T07:32:15 monkey patch more POSIX-like behavior out of winsock 2 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.
Brent Cook cccdd689 2014-11-19T07:43:07 add minimal winsock->BSD networking header shims also add license header to existing shims
Brent Cook a4cc9539 2014-10-29T15:44:36 Improve and simplify function and header detection logic. 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
kinichiro a91d1013 2014-10-22T15:47:31 update string.h for include strings.h for HPUX environment
Brent Cook 00b51d5c 2014-08-02T21:43:56 conditionally build strnlen if needed. it is only used by strndup prodded by Sortie@
Brent Cook 981fc361 2014-07-28T12:09:38 Guard individual compatibility header prototypes. 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@
Brent Cook 0a74a4d4 2014-07-27T06:11:56 add strndup/strnlen compat functions from OpenBSD
Brent Cook ea6e7116 2014-07-21T18:57:06 build openbsd memmem implementation for explicit_bzero test memmem is not always available, and not all memmem's work the same way ok beck@ guenther@
Brent Cook 2b6dbc39 2014-07-10T06:21:51 initial top-level import of subdirectories