diff --git a/include/sys/syscall.h b/include/sys/syscall.h index 1aca056143..a3dadd9eec 100644 --- a/include/sys/syscall.h +++ b/include/sys/syscall.h @@ -322,7 +322,8 @@ # define SYS_stat (__SYS_filedesc+11) # define SYS_fstat (__SYS_filedesc+12) # define SYS_statfs (__SYS_filedesc+13) -# define SYS_telldir (__SYS_filedesc+14) +# define SYS_fstatfs (__SYS_filedesc+14) +# define SYS_telldir (__SYS_filedesc+15) # if defined(CONFIG_PSEUDOFS_SOFTLINKS) # define SYS_link (__SYS_filedesc+15) diff --git a/syscall/syscall.csv b/syscall/syscall.csv index 56620d82ea..18ff94fdc7 100644 --- a/syscall/syscall.csv +++ b/syscall/syscall.csv @@ -24,6 +24,7 @@ "fs_fdopen","nuttx/fs/fs.h","CONFIG_NFILE_DESCRIPTORS > 0 && CONFIG_NFILE_STREAMS > 0","FAR struct file_struct*","int","int","FAR struct tcb_s*" "fs_ioctl","nuttx/fs/fs.h","defined(CONFIG_LIBC_IOCTL_VARIADIC) && (CONFIG_NSOCKET_DESCRIPTORS > 0 || CONFIG_NFILE_DESCRIPTORS > 0)","int","int","int","unsigned long" "fstat","sys/stat.h","CONFIG_NFILE_DESCRIPTORS > 0","int","int","FAR struct stat*" +"fstatfs","sys/statfs.h","CONFIG_NFILE_DESCRIPTORS > 0","int","int","FAR struct statfs*" "fsync","unistd.h","CONFIG_NFILE_DESCRIPTORS > 0 && !defined(CONFIG_DISABLE_MOUNTPOINT)","int","int" "get_errno","errno.h","!defined(__DIRECT_ERRNO_ACCESS)","int" "get_errno_ptr","errno.h","defined(__DIRECT_ERRNO_ACCESS)","FAR int*" diff --git a/syscall/syscall_lookup.h b/syscall/syscall_lookup.h index 9151e92f1b..f7f87487c6 100644 --- a/syscall/syscall_lookup.h +++ b/syscall/syscall_lookup.h @@ -231,6 +231,7 @@ SYSCALL_LOOKUP(up_assert, 2, STUB_up_assert) SYSCALL_LOOKUP(stat, 2, STUB_stat) SYSCALL_LOOKUP(fstat, 2, STUB_fstat) SYSCALL_LOOKUP(statfs, 2, STUB_statfs) + SYSCALL_LOOKUP(fstatfs, 2, STUB_fstatfs) SYSCALL_LOOKUP(telldir, 1, STUB_telldir) # if defined(CONFIG_PSEUDOFS_SOFTLINKS) diff --git a/syscall/syscall_stublookup.c b/syscall/syscall_stublookup.c index 5ea3939f19..ab18f82878 100644 --- a/syscall/syscall_stublookup.c +++ b/syscall/syscall_stublookup.c @@ -237,6 +237,7 @@ uintptr_t STUB_seekdir(int nbr, uintptr_t parm1, uintptr_t parm2); uintptr_t STUB_stat(int nbr, uintptr_t parm1, uintptr_t parm2); uintptr_t STUB_fstat(int nbr, uintptr_t parm1, uintptr_t parm2); uintptr_t STUB_statfs(int nbr, uintptr_t parm1, uintptr_t parm2); +uintptr_t STUB_fstatfs(int nbr, uintptr_t parm1, uintptr_t parm2); uintptr_t STUB_telldir(int nbr, uintptr_t parm1); uintptr_t STUB_link(int nbr, uintptr_t parm1, uintptr_t parm2);