Sync with upstream findfp.c.

Change-Id: Ib298f46de0c4d0fd4ce0a9b456c163e8b8b06342
This commit is contained in:
Elliott Hughes
2014-09-24 10:27:09 -07:00
parent fc5a93f7a2
commit c08c25b4c9
4 changed files with 16 additions and 10 deletions

View File

@@ -52,6 +52,10 @@
#define explicit_bzero(p, s) memset(p, 0, s)
/* OpenBSD has these in <sys/param.h>, but "ALIGN" isn't something we want to reserve. */
#define ALIGNBYTES (sizeof(uintptr_t) - 1)
#define ALIGN(p) (((uintptr_t)(p) + ALIGNBYTES) &~ ALIGNBYTES)
/* We have OpenBSD's getentropy_linux.c, but we don't mention getentropy in any header. */
__LIBC_HIDDEN__ extern int getentropy(void*, size_t);