diff options
author | Brent Cook <busterb@gmail.com> | 2014-07-10 06:21:51 -0500 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2014-07-10 06:22:54 -0500 |
commit | 2b6dbc39ef274d5298daad1ff864be8fc3c56537 (patch) | |
tree | bed05f6232bad0278f952bcfa173c50c202f4309 /include/string.h | |
parent | e9eff5016a4ec2153c037c1b888acd2755965755 (diff) | |
download | portable-2b6dbc39ef274d5298daad1ff864be8fc3c56537.tar.gz portable-2b6dbc39ef274d5298daad1ff864be8fc3c56537.tar.bz2 portable-2b6dbc39ef274d5298daad1ff864be8fc3c56537.zip |
initial top-level import of subdirectories
Diffstat (limited to 'include/string.h')
-rw-r--r-- | include/string.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/string.h b/include/string.h new file mode 100644 index 0000000..acdde6c --- /dev/null +++ b/include/string.h | |||
@@ -0,0 +1,25 @@ | |||
1 | #include_next <string.h> | ||
2 | |||
3 | #ifndef LIBCRYPTOCOMPAT_STRING_H | ||
4 | #define LIBCRYPTOCOMPAT_STRING_H | ||
5 | |||
6 | #include <sys/types.h> | ||
7 | |||
8 | #ifdef __sun | ||
9 | /* Some functions historically defined in string.h were placed in strings.h by | ||
10 | * SUS. Use the same hack as OS X and FreeBSD use to work around on Solaris. | ||
11 | */ | ||
12 | #include <strings.h> | ||
13 | #endif | ||
14 | |||
15 | size_t strlcpy(char *dst, const char *src, size_t siz); | ||
16 | |||
17 | size_t strlcat(char *dst, const char *src, size_t siz); | ||
18 | |||
19 | void explicit_bzero(void *, size_t); | ||
20 | |||
21 | int timingsafe_bcmp(const void *b1, const void *b2, size_t n); | ||
22 | |||
23 | int timingsafe_memcmp(const void *b1, const void *b2, size_t len); | ||
24 | |||
25 | #endif | ||