diff options
author | Brent Cook <bcook@openbsd.org> | 2017-03-16 19:23:36 -0500 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2017-03-16 19:23:36 -0500 |
commit | d5b247cc4fe0f3dd6cc4f7084af7f290ba41e669 (patch) | |
tree | ecff511a1a175c88222a9c83872920d512671717 /include | |
parent | 8f69fe98dba08e22dd1341cbaad91745c8bf7ad7 (diff) | |
parent | c61c9821e8417243a5a0cf691415f5e5626f2b3b (diff) | |
download | portable-d5b247cc4fe0f3dd6cc4f7084af7f290ba41e669.tar.gz portable-d5b247cc4fe0f3dd6cc4f7084af7f290ba41e669.tar.bz2 portable-d5b247cc4fe0f3dd6cc4f7084af7f290ba41e669.zip |
Land #297, Add recallocarray
Diffstat (limited to 'include')
-rw-r--r-- | include/compat/stdlib.h | 4 | ||||
-rw-r--r-- | include/compat/unistd.h | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/include/compat/stdlib.h b/include/compat/stdlib.h index 781be77..11f82ba 100644 --- a/include/compat/stdlib.h +++ b/include/compat/stdlib.h | |||
@@ -29,6 +29,10 @@ uint32_t arc4random_uniform(uint32_t upper_bound); | |||
29 | void *reallocarray(void *, size_t, size_t); | 29 | void *reallocarray(void *, size_t, size_t); |
30 | #endif | 30 | #endif |
31 | 31 | ||
32 | #ifndef HAVE_RECALLOCARRAY | ||
33 | void *recallocarray(void *, size_t, size_t, size_t); | ||
34 | #endif | ||
35 | |||
32 | #ifndef HAVE_STRTONUM | 36 | #ifndef HAVE_STRTONUM |
33 | long long strtonum(const char *nptr, long long minval, | 37 | long long strtonum(const char *nptr, long long minval, |
34 | long long maxval, const char **errstr); | 38 | long long maxval, const char **errstr); |
diff --git a/include/compat/unistd.h b/include/compat/unistd.h index b37a2f6..d596043 100644 --- a/include/compat/unistd.h +++ b/include/compat/unistd.h | |||
@@ -39,6 +39,10 @@ int getentropy(void *buf, size_t buflen); | |||
39 | #endif | 39 | #endif |
40 | #endif | 40 | #endif |
41 | 41 | ||
42 | #ifndef HAVE_GETPAGESIZE | ||
43 | int getpagesize(void); | ||
44 | #endif | ||
45 | |||
42 | #define pledge(request, paths) 0 | 46 | #define pledge(request, paths) 0 |
43 | 47 | ||
44 | #ifndef HAVE_PIPE2 | 48 | #ifndef HAVE_PIPE2 |