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
+1 -1
View File
@@ -39,12 +39,12 @@
#include <nuttx/config.h>
#include <semaphore.h>
#include <assert.h>
#include <errno.h>
#include <queue.h>
#include <nuttx/sched.h>
#include <nuttx/semaphore.h>
#include "aio/aio.h"
+1 -1
View File
@@ -46,7 +46,6 @@
#include <unistd.h>
#include <stdio.h>
#include <fcntl.h>
#include <semaphore.h>
#include <string.h>
#include <errno.h>
#include <assert.h>
@@ -55,6 +54,7 @@
#include <nuttx/kmalloc.h>
#include <nuttx/drivers/drivers.h>
#include <nuttx/fs/fs.h>
#include <nuttx/semaphore.h>
#if !defined(CONFIG_DISABLE_MOUNTPOINT) && \
!defined(CONFIG_DISABLE_PSEUDOFS_OPERATIONS)
+1 -1
View File
@@ -43,7 +43,6 @@
#include <sys/stat.h>
#include <stdio.h>
#include <semaphore.h>
#include <string.h>
#include <errno.h>
#include <assert.h>
@@ -51,6 +50,7 @@
#include <nuttx/kmalloc.h>
#include <nuttx/mtd/mtd.h>
#include <nuttx/semaphore.h>
#include "driver/driver.h"
-1
View File
@@ -54,7 +54,6 @@
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <semaphore.h>
#include <assert.h>
#include <fcntl.h>
#include <errno.h>
+1 -1
View File
@@ -46,11 +46,11 @@
#include <sys/types.h>
#include <stdint.h>
#include <stdbool.h>
#include <semaphore.h>
#include <time.h>
#include <nuttx/kmalloc.h>
#include <nuttx/fs/dirent.h>
#include <nuttx/semaphore.h>
/****************************************************************************
* Pre-processor Definitions
-1
View File
@@ -52,7 +52,6 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <semaphore.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
-1
View File
@@ -46,7 +46,6 @@
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <semaphore.h>
#include <assert.h>
#include <fcntl.h>
#include <errno.h>
+2 -1
View File
@@ -45,7 +45,8 @@
#include <sys/types.h>
#include <stdint.h>
#include <stdbool.h>
#include <semaphore.h>
#include <nuttx/semaphore.h>
/****************************************************************************
* Pre-processor Definitions
+1 -1
View File
@@ -39,12 +39,12 @@
#include <nuttx/config.h>
#include <semaphore.h>
#include <assert.h>
#include <errno.h>
#include <nuttx/sched.h>
#include <nuttx/fs/fs.h>
#include <nuttx/semaphore.h>
#include "inode/inode.h"
+1 -1
View File
@@ -42,13 +42,13 @@
#include <sys/types.h>
#include <string.h>
#include <semaphore.h>
#include <assert.h>
#include <sched.h>
#include <errno.h>
#include <nuttx/fs/fs.h>
#include <nuttx/kmalloc.h>
#include <nuttx/semaphore.h>
#include "inode/inode.h"
+1 -1
View File
@@ -41,11 +41,11 @@
#include <nuttx/config.h>
#include <unistd.h>
#include <semaphore.h>
#include <assert.h>
#include <errno.h>
#include <nuttx/fs/fs.h>
#include <nuttx/semaphore.h>
#include "inode/inode.h"
+1 -1
View File
@@ -45,7 +45,7 @@
#include <nuttx/config.h>
#include <sys/types.h>
#include <semaphore.h>
#include <nuttx/semaphore.h>
#ifdef CONFIG_FS_RAMMAP
+1
View File
@@ -49,6 +49,7 @@
****************************************************************************/
#include <sys/socket.h>
#include <nuttx/semaphore.h>
#include "rpc.h"
-1
View File
@@ -52,7 +52,6 @@
#include <assert.h>
#include <debug.h>
#include <nuttx/semaphore.h>
#include <nuttx/fs/dirent.h>
#include "rpc.h"
-1
View File
@@ -59,7 +59,6 @@
#include <string.h>
#include <fcntl.h>
#include <time.h>
#include <semaphore.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
+1 -1
View File
@@ -48,10 +48,10 @@
#include <sys/types.h>
#include <stdint.h>
#include <stdbool.h>
#include <semaphore.h>
#include <nuttx/mtd/mtd.h>
#include <nuttx/fs/nxffs.h>
#include <nuttx/semaphore.h>
/****************************************************************************
* Pre-processor Definitions
-1
View File
@@ -47,7 +47,6 @@
#include <errno.h>
#include <debug.h>
#include <nuttx/semaphore.h>
#include <nuttx/fs/fs.h>
#include <nuttx/mtd/mtd.h>
#include <nuttx/fs/dirent.h>
-1
View File
@@ -46,7 +46,6 @@
#include <errno.h>
#include <debug.h>
#include <nuttx/semaphore.h>
#include <nuttx/fs/fs.h>
#include <nuttx/fs/ioctl.h>
#include <nuttx/mtd/mtd.h>
-1
View File
@@ -48,7 +48,6 @@
#include <errno.h>
#include <debug.h>
#include <nuttx/semaphore.h>
#include <nuttx/fs/fs.h>
#include <nuttx/mtd/mtd.h>
-1
View File
@@ -50,7 +50,6 @@
#include <errno.h>
#include <debug.h>
#include <nuttx/semaphore.h>
#include <nuttx/fs/fs.h>
#include <nuttx/mtd/mtd.h>
-2
View File
@@ -46,8 +46,6 @@
#include <errno.h>
#include <debug.h>
#include <nuttx/semaphore.h>
#include "nxffs.h"
#ifdef __NO_TRUNCATE_SUPPORT__
-1
View File
@@ -46,7 +46,6 @@
#include <assert.h>
#include <debug.h>
#include <nuttx/semaphore.h>
#include <nuttx/fs/fs.h>
#include <nuttx/mtd/mtd.h>
-1
View File
@@ -48,7 +48,6 @@
#include <errno.h>
#include <debug.h>
#include <nuttx/semaphore.h>
#include <nuttx/fs/fs.h>
#include <nuttx/mtd/mtd.h>
-1
View File
@@ -39,7 +39,6 @@
#include <nuttx/config.h>
#include <semaphore.h>
#include <sched.h>
#include <errno.h>
-1
View File
@@ -44,7 +44,6 @@
#include <stdarg.h>
#include <stdio.h>
#include <fcntl.h>
#include <semaphore.h>
#include <string.h>
#include <sched.h>
#include <errno.h>
+1 -1
View File
@@ -41,13 +41,13 @@
#include <stdbool.h>
#include <stdio.h>
#include <semaphore.h>
#include <sched.h>
#include <queue.h>
#include <errno.h>
#include <assert.h>
#include <nuttx/kmalloc.h>
#include <nuttx/semaphore.h>
#include "inode/inode.h"
#include "semaphore/semaphore.h"
+1 -1
View File
@@ -45,10 +45,10 @@
#include <sys/types.h>
#include <stdint.h>
#include <stdbool.h>
#include <semaphore.h>
#include <nuttx/mtd/mtd.h>
#include <nuttx/fs/smart.h>
#include <nuttx/semaphore.h>
/****************************************************************************
* Pre-processor Definitions
-1
View File
@@ -46,7 +46,6 @@
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <semaphore.h>
#include <assert.h>
#include <fcntl.h>
#include <errno.h>
-1
View File
@@ -45,7 +45,6 @@
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <semaphore.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
-1
View File
@@ -51,7 +51,6 @@
#include <string.h>
#include <fcntl.h>
#include <dirent.h>
#include <semaphore.h>
#include <errno.h>
#include <assert.h>
#include <queue.h>
-1
View File
@@ -45,7 +45,6 @@
#include <string.h>
#include <fcntl.h>
#include <dirent.h>
#include <semaphore.h>
#include <errno.h>
#include <assert.h>
#include <debug.h>
+1 -1
View File
@@ -43,9 +43,9 @@
#include <nuttx/config.h>
#include <stdint.h>
#include <semaphore.h>
#include <nuttx/fs/fs.h>
#include <nuttx/semaphore.h>
/****************************************************************************
* Pre-processor Definitions
+1 -1
View File
@@ -49,7 +49,6 @@
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <semaphore.h>
#include <assert.h>
#include <errno.h>
#include <fixedmath.h>
@@ -60,6 +59,7 @@
#include <nuttx/fs/unionfs.h>
#include <nuttx/fs/dirent.h>
#include <nuttx/fs/ioctl.h>
#include <nuttx/semaphore.h>
#include "inode/inode.h"
+1 -1
View File
@@ -48,7 +48,6 @@
#include <stdbool.h>
#include <string.h>
#include <fcntl.h>
#include <semaphore.h>
#include <assert.h>
#include <errno.h>
#include <debug.h>
@@ -62,6 +61,7 @@
#include <nuttx/fs/dirent.h>
#include <nuttx/fs/ioctl.h>
#include <nuttx/net/net.h>
#include <nuttx/semaphore.h>
/****************************************************************************
* Pre-processor Definitions
+1 -1
View File
@@ -41,11 +41,11 @@
#include <stdio.h>
#include <string.h>
#include <semaphore.h>
#include <fcntl.h>
#include <errno.h>
#include <nuttx/kmalloc.h>
#include <nuttx/semaphore.h>
#include <nuttx/fs/fs.h>
#include <nuttx/net/net.h>
-1
View File
@@ -42,7 +42,6 @@
#include <stdbool.h>
#include <poll.h>
#include <time.h>
#include <semaphore.h>
#include <assert.h>
#include <errno.h>