Create a build structure that will (eventually) support using the VFS to manage named semaphores

This commit is contained in:
Gregory Nutt
2014-09-28 12:19:01 -06:00
parent 7db12a638c
commit 242b34cf46
12 changed files with 121 additions and 22 deletions
+6 -3
View File
@@ -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
}