aboutsummaryrefslogtreecommitdiffstats
path: root/libc/upstream-openbsd
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2015-01-07 20:36:20 -0800
committerYabin Cui <yabinc@google.com>2015-01-09 20:04:04 -0800
commit3471fcbb6a7b13f8f06163f16ef52ceafa5d84a2 (patch)
treed593bfc72ade634f8d522dd37dbb1570b47659a4 /libc/upstream-openbsd
parent7e3766a8fcc534d92a6f7416fcbbdc092756e415 (diff)
downloadandroid_bionic-3471fcbb6a7b13f8f06163f16ef52ceafa5d84a2.tar.gz
android_bionic-3471fcbb6a7b13f8f06163f16ef52ceafa5d84a2.tar.bz2
android_bionic-3471fcbb6a7b13f8f06163f16ef52ceafa5d84a2.zip
Clean up paths.h.
Bug: 18905946 Change-Id: I02cd1ddd5c0b0af165685413bc1fb12ca6bf5f33
Diffstat (limited to 'libc/upstream-openbsd')
-rw-r--r--libc/upstream-openbsd/android/include/openbsd-compat.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libc/upstream-openbsd/android/include/openbsd-compat.h b/libc/upstream-openbsd/android/include/openbsd-compat.h
index 8783467c1..8f55a26cd 100644
--- a/libc/upstream-openbsd/android/include/openbsd-compat.h
+++ b/libc/upstream-openbsd/android/include/openbsd-compat.h
@@ -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);