diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-09-28 12:19:01 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-09-28 12:19:01 -0600 |
commit | 1398381d05cea7c71d83138e36d57b06278bfa33 (patch) | |
tree | 426c11fc6e2b9d8435180dea352d2409c229dd99 /nuttx/include/semaphore.h | |
parent | 465f0eba5068ad78d659ad5c75cf3e91da60b8c3 (diff) | |
download | nuttx-1398381d05cea7c71d83138e36d57b06278bfa33.tar.gz nuttx-1398381d05cea7c71d83138e36d57b06278bfa33.tar.bz2 nuttx-1398381d05cea7c71d83138e36d57b06278bfa33.zip |
Create a build structure that will (eventually) support using the VFS to manage named semaphores
Diffstat (limited to 'nuttx/include/semaphore.h')
-rw-r--r-- | nuttx/include/semaphore.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/nuttx/include/semaphore.h b/nuttx/include/semaphore.h index 99f067824..5818f0fb7 100644 --- a/nuttx/include/semaphore.h +++ b/nuttx/include/semaphore.h @@ -129,15 +129,18 @@ struct timespec; /* Defined in time.h */ int sem_init(FAR sem_t *sem, int pshared, unsigned int value); int sem_destroy(FAR sem_t *sem); -FAR sem_t *sem_open(FAR const char *name, int oflag, ...); -int sem_close(FAR sem_t *sem); -int sem_unlink(FAR const char *name); int sem_wait(FAR sem_t *sem); int sem_timedwait(FAR sem_t *sem, FAR const struct timespec *abstime); int sem_trywait(FAR sem_t *sem); int sem_post(FAR sem_t *sem); int sem_getvalue(FAR sem_t *sem, FAR int *sval); +#ifdef CONFIG_FS_NAMED_SEMAPHORES +FAR sem_t *sem_open(FAR const char *name, int oflag, ...); +int sem_close(FAR sem_t *sem); +int sem_unlink(FAR const char *name); +#endif + #undef EXTERN #ifdef __cplusplus } |