Clean up paths.h.

Bug: 18905946
Change-Id: I02cd1ddd5c0b0af165685413bc1fb12ca6bf5f33
This commit is contained in:
Yabin Cui
2015-01-07 20:36:20 -08:00
parent 7e3766a8fc
commit 3471fcbb6a
2 changed files with 8 additions and 27 deletions

View File

@@ -59,6 +59,11 @@
#define ALIGNBYTES (sizeof(uintptr_t) - 1)
#define ALIGN(p) (((uintptr_t)(p) + ALIGNBYTES) &~ ALIGNBYTES)
/* OpenBSD has this in paths.h. But this directory doesn't normally exist.
* Even when it does exist, only the 'shell' user has permissions.
*/
#define _PATH_TMP "/data/local/tmp/"
/* We have OpenBSD's getentropy_linux.c, but we don't mention getentropy in any header. */
__LIBC_HIDDEN__ extern int getentropy(void*, size_t);