mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
Move pipe() and mkpipe() to nuttx/libc. Change syscalls to pipe2() and mkfifo2()
This commit is contained in:
+2
-2
@@ -34,7 +34,7 @@
|
||||
"listen","sys/socket.h","CONFIG_NSOCKET_DESCRIPTORS > 0 && defined(CONFIG_NET)","int","int","int"
|
||||
"lseek","unistd.h","CONFIG_NFILE_DESCRIPTORS > 0","off_t","int","off_t","int"
|
||||
"mkdir","sys/stat.h","CONFIG_NFILE_DESCRIPTORS > 0 && !defined(CONFIG_DISABLE_MOUNTPOINT)","int","FAR const char*","mode_t"
|
||||
"mkfifo","sys/stat.h","CONFIG_NFILE_DESCRIPTORS > 0","int","FAR const char*","mode_t"
|
||||
"mkfifo2","sys/stat.h","CONFIG_NFILE_DESCRIPTORS > 0","int","FAR const char*","mode_t","size_t"
|
||||
"mmap","sys/mman.h","CONFIG_NFILE_DESCRIPTORS > 0","FAR void*","FAR void*","size_t","int","int","int","off_t"
|
||||
"mount","sys/mount.h","CONFIG_NFILE_DESCRIPTORS > 0 && !defined(CONFIG_DISABLE_MOUNTPOINT) && defined(CONFIG_FS_READABLE)","int","const char*","const char*","const char*","unsigned long","const void*"
|
||||
"mq_close","mqueue.h","!defined(CONFIG_DISABLE_MQUEUE)","int","mqd_t"
|
||||
@@ -52,7 +52,7 @@
|
||||
"open","fcntl.h","CONFIG_NFILE_DESCRIPTORS > 0","int","const char*","int","..."
|
||||
"opendir","dirent.h","CONFIG_NFILE_DESCRIPTORS > 0","FAR DIR*","FAR const char*"
|
||||
"pgalloc", "nuttx/arch.h", "defined(CONFIG_BUILD_KERNEL)", "uintptr_t", "uintptr_t", "unsigned int"
|
||||
"pipe","unistd.h","CONFIG_NFILE_DESCRIPTORS > 0","int","int [2]|int*"
|
||||
"pipe2","unistd.h","CONFIG_NFILE_DESCRIPTORS > 0","int","int [2]|int*","size_t"
|
||||
"poll","poll.h","!defined(CONFIG_DISABLE_POLL) && (CONFIG_NSOCKET_DESCRIPTORS > 0 || CONFIG_NFILE_DESCRIPTORS > 0)","int","FAR struct pollfd*","nfds_t","int"
|
||||
"prctl","sys/prctl.h", "CONFIG_TASK_NAME_SIZE > 0","int","int","..."
|
||||
"pread","unistd.h","CONFIG_NSOCKET_DESCRIPTORS > 0 || CONFIG_NFILE_DESCRIPTORS > 0","ssize_t","int","FAR void*","size_t","off_t"
|
||||
|
||||
|
@@ -183,10 +183,10 @@ SYSCALL_LOOKUP(up_assert, 2, STUB_up_assert)
|
||||
SYSCALL_LOOKUP(pread, 4, STUB_pread)
|
||||
SYSCALL_LOOKUP(pwrite, 4, STUB_pwrite)
|
||||
# ifdef CONFIG_FS_AIO
|
||||
SYSCALL_LOOKUP(aio_read, 1, SYS_aio_read)
|
||||
SYSCALL_LOOKUP(aio_write, 1, SYS_aio_write)
|
||||
SYSCALL_LOOKUP(aio_fsync, 2, SYS_aio_fsync)
|
||||
SYSCALL_LOOKUP(aio_cancel, 2, SYS_aio_cancel)
|
||||
SYSCALL_LOOKUP(aio_read, 1, STUB_aio_read)
|
||||
SYSCALL_LOOKUP(aio_write, 1, STUB_aio_write)
|
||||
SYSCALL_LOOKUP(aio_fsync, 2, STUB_aio_fsync)
|
||||
SYSCALL_LOOKUP(aio_cancel, 2, STUB_aio_cancel)
|
||||
# endif
|
||||
# ifndef CONFIG_DISABLE_POLL
|
||||
SYSCALL_LOOKUP(poll, 3, STUB_poll)
|
||||
@@ -208,11 +208,11 @@ SYSCALL_LOOKUP(up_assert, 2, STUB_up_assert)
|
||||
SYSCALL_LOOKUP(dup2, 2, STUB_dup2)
|
||||
SYSCALL_LOOKUP(fcntl, 6, STUB_fcntl)
|
||||
SYSCALL_LOOKUP(lseek, 3, STUB_lseek)
|
||||
SYSCALL_LOOKUP(mkfifo, 2, STUB_mkfifo)
|
||||
SYSCALL_LOOKUP(mkfifo2, 3, STUB_mkfifo2)
|
||||
SYSCALL_LOOKUP(mmap, 6, STUB_mmap)
|
||||
SYSCALL_LOOKUP(open, 6, STUB_open)
|
||||
SYSCALL_LOOKUP(opendir, 1, STUB_opendir)
|
||||
SYSCALL_LOOKUP(pipe, 1, STUB_pipe)
|
||||
SYSCALL_LOOKUP(pipe2, 2, STUB_pipe2)
|
||||
SYSCALL_LOOKUP(readdir, 1, STUB_readdir)
|
||||
SYSCALL_LOOKUP(rewinddir, 1, STUB_rewinddir)
|
||||
SYSCALL_LOOKUP(seekdir, 2, STUB_seekdir)
|
||||
|
||||
@@ -214,7 +214,8 @@ uintptr_t STUB_fcntl(int nbr, uintptr_t parm1, uintptr_t parm2,
|
||||
uintptr_t parm6);
|
||||
uintptr_t STUB_lseek(int nbr, uintptr_t parm1, uintptr_t parm2,
|
||||
uintptr_t parm3);
|
||||
uintptr_t STUB_mkfifo(int nbr, uintptr_t parm1, uintptr_t parm2);
|
||||
uintptr_t STUB_mkfifo2(int nbr, uintptr_t parm1, uintptr_t parm2,
|
||||
uintptr_t parm3);
|
||||
uintptr_t STUB_mmap(int nbr, uintptr_t parm1, uintptr_t parm2,
|
||||
uintptr_t parm3, uintptr_t parm4, uintptr_t parm5,
|
||||
uintptr_t parm6);
|
||||
@@ -222,7 +223,7 @@ uintptr_t STUB_open(int nbr, uintptr_t parm1, uintptr_t parm2,
|
||||
uintptr_t parm3, uintptr_t parm4, uintptr_t parm5,
|
||||
uintptr_t parm6);
|
||||
uintptr_t STUB_opendir(int nbr, uintptr_t parm1);
|
||||
uintptr_t STUB_pipe(int nbr, uintptr_t parm1);
|
||||
uintptr_t STUB_pipe2(int nbr, uintptr_t parm1, uinptr_t parm2);
|
||||
uintptr_t STUB_readdir(int nbr, uintptr_t parm1);
|
||||
uintptr_t STUB_rewinddir(int nbr, uintptr_t parm1);
|
||||
uintptr_t STUB_seekdir(int nbr, uintptr_t parm1, uintptr_t parm2);
|
||||
|
||||
Reference in New Issue
Block a user