diff options
| author | Brent Cook <bcook@openbsd.org> | 2017-04-28 00:22:43 -0500 |
|---|---|---|
| committer | Brent Cook <bcook@openbsd.org> | 2017-04-28 00:22:43 -0500 |
| commit | 53fb56ea87be14453c366fa63fc3296ef0a3ebac (patch) | |
| tree | 6b212cf96147af5f9e3724cfdefb33e2fa14cdd8 /include/compat | |
| parent | 7ec0510e33ed897b2d6421a6235c563f1953e210 (diff) | |
| parent | 048625cf2b36a91bcf04c5a1adc02fc5803491ca (diff) | |
| download | portable-53fb56ea87be14453c366fa63fc3296ef0a3ebac.tar.gz portable-53fb56ea87be14453c366fa63fc3296ef0a3ebac.tar.bz2 portable-53fb56ea87be14453c366fa63fc3296ef0a3ebac.zip | |
Land #306, add freezero
Diffstat (limited to 'include/compat')
| -rw-r--r-- | include/compat/stdlib.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/compat/stdlib.h b/include/compat/stdlib.h index 11f82ba..cc04856 100644 --- a/include/compat/stdlib.h +++ b/include/compat/stdlib.h | |||
| @@ -25,6 +25,10 @@ void arc4random_buf(void *_buf, size_t n); | |||
| 25 | uint32_t arc4random_uniform(uint32_t upper_bound); | 25 | uint32_t arc4random_uniform(uint32_t upper_bound); |
| 26 | #endif | 26 | #endif |
| 27 | 27 | ||
| 28 | #ifndef HAVE_FREEZERO | ||
| 29 | void freezero(void *ptr, size_t sz); | ||
| 30 | #endif | ||
| 31 | |||
| 28 | #ifndef HAVE_REALLOCARRAY | 32 | #ifndef HAVE_REALLOCARRAY |
| 29 | void *reallocarray(void *, size_t, size_t); | 33 | void *reallocarray(void *, size_t, size_t); |
| 30 | #endif | 34 | #endif |
