mirror of
https://github.com/apache/nuttx.git
synced 2026-09-27 18:58:27 +08:00
Restructure header files for POSIX compliance; eliminate compile warnings
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@107 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -57,27 +57,6 @@
|
||||
* Private Functions
|
||||
************************************************************/
|
||||
|
||||
#if CONFIG_NFILE_STREAMS > 0
|
||||
static void _lib_semtake(FAR struct streamlist *list)
|
||||
{
|
||||
/* Take the semaphore (perhaps waiting) */
|
||||
|
||||
while (sem_wait(&list->sl_sem) != 0)
|
||||
{
|
||||
/* The only case that an error should occr here is if
|
||||
* the wait was awakened by a signal.
|
||||
*/
|
||||
|
||||
ASSERT(*get_errno_ptr() == EINTR);
|
||||
}
|
||||
}
|
||||
|
||||
# define _lib_semgive(list) sem_post(&list->sl_sem)
|
||||
#else
|
||||
# define _lib_semtake(list)
|
||||
# define _lib_semgive(list)
|
||||
#endif
|
||||
|
||||
/************************************************************
|
||||
* Public Functions
|
||||
************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user