diff options
author | Brooks Davis <brooks@FreeBSD.org> | 2021-11-22 22:36:56 +0000 |
---|---|---|
committer | Brooks Davis <brooks@FreeBSD.org> | 2021-11-22 22:36:56 +0000 |
commit | 6eefabd4ca40348f0bc0ab829bceb3a308e577b7 (patch) | |
tree | e3859170b99f3b7d17959d33a2d68008f644901a /sys/compat/freebsd32/syscalls.master | |
parent | 8460d3e9e6cbc78f4ae363b7894d765189b2ad44 (diff) | |
download | src-6eefabd4ca40348f0bc0ab829bceb3a308e577b7.tar.gz src-6eefabd4ca40348f0bc0ab829bceb3a308e577b7.zip |
syscalls: improve nstat, nfstat, nlstat
Optionally return errors when truncating dev_t, ino_t, and nlink_t.
In the interest of code reuse, use freebsd11_cvtstat() to perform the
truncation and error handling and then convert the resulting struct
freebsd11_stat to struct nstat.
Add missing freebsd32 compat syscalls. These syscalls require
translation because struct nstat contains four instances of struct
timespec which in turn contains a time_t and a long.
Reviewed by: kib
Diffstat (limited to 'sys/compat/freebsd32/syscalls.master')
-rw-r--r-- | sys/compat/freebsd32/syscalls.master | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/compat/freebsd32/syscalls.master b/sys/compat/freebsd32/syscalls.master index 2e11fdb03a17..4fd7b2235d99 100644 --- a/sys/compat/freebsd32/syscalls.master +++ b/sys/compat/freebsd32/syscalls.master @@ -525,11 +525,11 @@ 276 AUE_LUTIMES STD { int freebsd32_lutimes(const char *path, \ const struct timeval32 *tptr); } 277 AUE_NULL OBSOL netbsd_msync -278 AUE_STAT COMPAT11|NOPROTO { int nstat(const char *path, \ - struct nstat *ub); } -279 AUE_FSTAT COMPAT11|NOPROTO { int nfstat(int fd, struct nstat *sb); } -280 AUE_LSTAT COMPAT11|NOPROTO { int nlstat(const char *path, \ - struct nstat *ub); } +278 AUE_STAT COMPAT11 { int freebsd32_nstat(const char *path, \ + struct nstat32 *ub); } +279 AUE_FSTAT COMPAT11 { int freebsd32_nfstat(int fd, struct nstat32 *sb); } +280 AUE_LSTAT COMPAT11 { int freebsd32_nlstat(const char *path, \ + struct nstat32 *ub); } 281 AUE_NULL RESERVED 282 AUE_NULL RESERVED 283 AUE_NULL RESERVED |