diff --git a/include/sys/syscall.h b/include/sys/syscall.h index 6123c6822a..e3f0a78e51 100644 --- a/include/sys/syscall.h +++ b/include/sys/syscall.h @@ -315,7 +315,6 @@ # else # define __SYS_fs_fdopen (__SYS_mkfifo2+0) # endif -# endif # if CONFIG_NFILE_STREAMS > 0 # define SYS_fs_fdopen (__SYS_fs_fdopen+0) diff --git a/syscall/syscall_lookup.h b/syscall/syscall_lookup.h index 5a6742d6a7..d625f7e19a 100644 --- a/syscall/syscall_lookup.h +++ b/syscall/syscall_lookup.h @@ -219,11 +219,11 @@ SYSCALL_LOOKUP(up_assert, 2, STUB_up_assert) SYSCALL_LOOKUP(telldir, 1, STUB_telldir) # if defined(CONFIG_PIPES) && ONFIG_DEV_PIPE_SIZE > 0 - SYSCALL_LOOKUP(mkfifo2, 3, STUB_mkfifo2) + SYSCALL_LOOKUP(pipe2, 2, STUB_pipe2) # endif # if defined(CONFIG_PIPES) && ONFIG_DEV_FIFO_SIZE > 0 - SYSCALL_LOOKUP(pipe2, 2, STUB_pipe2) + SYSCALL_LOOKUP(mkfifo2, 3, STUB_mkfifo2) # endif # if CONFIG_NFILE_STREAMS > 0 diff --git a/syscall/syscall_stublookup.c b/syscall/syscall_stublookup.c index 298ecc1a8e..a5cace0e37 100644 --- a/syscall/syscall_stublookup.c +++ b/syscall/syscall_stublookup.c @@ -228,9 +228,9 @@ uintptr_t STUB_stat(int nbr, uintptr_t parm1, uintptr_t parm2); uintptr_t STUB_statfs(int nbr, uintptr_t parm1, uintptr_t parm2); uintptr_t STUB_telldir(int nbr, uintptr_t parm1); +uintptr_t STUB_pipe2(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_pipe2(int nbr, uintptr_t parm1, uintptr_t parm2); uintptr_t STUB_fs_fdopen(int nbr, uintptr_t parm1, uintptr_t parm2, uintptr_t parm3);