fs: Simplify sendfile implementation

and avoid call nx_ file API in the kernel space

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Id951ca161df2c2ee267dc4b5a0d7dfa67df4c1e6
This commit is contained in:
Xiang Xiao
2021-07-10 23:52:17 +08:00
parent be0b910f86
commit e5c60da2f5
24 changed files with 299 additions and 400 deletions
+1 -1
View File
@@ -139,7 +139,7 @@
"sem_unlink","semaphore.h","defined(CONFIG_FS_NAMED_SEMAPHORES)","int","FAR const char *"
"sem_wait","semaphore.h","","int","FAR sem_t *"
"send","sys/socket.h","defined(CONFIG_NET)","ssize_t","int","FAR const void *","size_t","int"
"sendfile","sys/sendfile.h","defined(CONFIG_NET_SENDFILE)","ssize_t","int","int","FAR off_t *","size_t"
"sendfile","sys/sendfile.h","","ssize_t","int","int","FAR off_t *","size_t"
"sendmsg","sys/socket.h","defined(CONFIG_NET)","ssize_t","int","FAR struct msghdr *","int"
"sendto","sys/socket.h","defined(CONFIG_NET)","ssize_t","int","FAR const void *","size_t","int","FAR const struct sockaddr *","socklen_t"
"setenv","stdlib.h","!defined(CONFIG_DISABLE_ENVIRON)","int","FAR const char *","FAR const char *","int"
1 _exit unistd.h noreturn int
139 sem_unlink semaphore.h defined(CONFIG_FS_NAMED_SEMAPHORES) int FAR const char *
140 sem_wait semaphore.h int FAR sem_t *
141 send sys/socket.h defined(CONFIG_NET) ssize_t int
142 sendfile sys/sendfile.h defined(CONFIG_NET_SENDFILE) ssize_t int
143 sendmsg sys/socket.h defined(CONFIG_NET) ssize_t int
144 sendto sys/socket.h defined(CONFIG_NET) ssize_t int
145 setenv stdlib.h !defined(CONFIG_DISABLE_ENVIRON) int FAR const char *