summaryrefslogtreecommitdiffstats
path: root/libc/include
diff options
context:
space:
mode:
authorCalin Juravle <calin@google.com>2014-05-07 14:04:31 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-05-07 14:04:32 +0000
commite292875cf55265bea7f78049e31d50c15a3a34e0 (patch)
treea4719a65d1fda437008ff47afcd863289a77faa6 /libc/include
parentb6c48b20e4aa9a0e0068980eb305dc522a680900 (diff)
parent0686d5e26fd1949fbfd33a2441f750791bc87091 (diff)
downloadbionic-e292875cf55265bea7f78049e31d50c15a3a34e0.zip
bionic-e292875cf55265bea7f78049e31d50c15a3a34e0.tar.gz
bionic-e292875cf55265bea7f78049e31d50c15a3a34e0.tar.bz2
Merge "Reserve some space in sem_t for the future."
Diffstat (limited to 'libc/include')
-rw-r--r--libc/include/semaphore.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/libc/include/semaphore.h b/libc/include/semaphore.h
index 30e3123..7ae3c3a 100644
--- a/libc/include/semaphore.h
+++ b/libc/include/semaphore.h
@@ -33,10 +33,13 @@
__BEGIN_DECLS
typedef struct {
- volatile unsigned int count;
+ volatile unsigned int count;
+#ifdef __LP64__
+ int __reserved[3];
+#endif
} sem_t;
-#define SEM_FAILED NULL
+#define SEM_FAILED NULL
extern int sem_init(sem_t *sem, int pshared, unsigned int value);