Replace #include <semaphore.h> to #include <nuttx/semaphore.h>

Since the kernel side should call nxsem_xxx instead and remove the unused inclusion
This commit is contained in:
Xiang Xiao
2020-02-01 15:17:32 +08:00
committed by Gregory Nutt
parent 95dc647c3c
commit 5c80b94820
566 changed files with 239 additions and 664 deletions
+3 -3
View File
@@ -47,7 +47,6 @@
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <semaphore.h>
#include <errno.h>
#include <debug.h>
@@ -55,6 +54,7 @@
#include <netinet/in.h>
#include <nuttx/fs/userfs.h>
#include <nuttx/semaphore.h>
/****************************************************************************
* Private Types
@@ -97,7 +97,7 @@ static inline uint16_t userfs_server_portno(void)
{
int ret;
ret = nxsem_wait(&g_userfs_exclsem);
ret = _SEM_WAIT(&g_userfs_exclsem);
if (ret >= 0)
{
/* Get the next instance number.
@@ -108,7 +108,7 @@ static inline uint16_t userfs_server_portno(void)
*/
ret = USERFS_SERVER_PORTBASE | g_userfs_next_instance++;
nxsem_post(&g_userfs_exclsem);
_SEM_POST(&g_userfs_exclsem);
}
return ret;