Date: Thu, 15 Feb 2018 17:26:30 +0000 (UTC) From: Brooks Davis <brooks@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r329322 - head/sys/compat/freebsd32 Message-ID: <201802151726.w1FHQUqW059729@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: brooks Date: Thu Feb 15 17:26:30 2018 New Revision: 329322 URL: https://svnweb.freebsd.org/changeset/base/329322 Log: Fix getdirentries(2) under 32-bit compat. The latest version of getdirentries (syscall 554) takes a pointer an an off_t as the last argument. The old version which copies out an int32_t was being used instead. Use the standard sys_getdirentries() implementation instead. Reviewed by: kib Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D14379 Modified: head/sys/compat/freebsd32/syscalls.master Modified: head/sys/compat/freebsd32/syscalls.master ============================================================================== --- head/sys/compat/freebsd32/syscalls.master Thu Feb 15 17:10:42 2018 (r329321) +++ head/sys/compat/freebsd32/syscalls.master Thu Feb 15 17:26:30 2018 (r329322) @@ -1097,9 +1097,9 @@ 553 AUE_FHSTAT STD { int freebsd32_fhstat( \ const struct fhandle *u_fhp, \ struct stat32 *sb); } -554 AUE_GETDIRENTRIES STD { ssize_t freebsd32_getdirentries( \ +554 AUE_GETDIRENTRIES NOPROTO { ssize_t getdirentries( \ int fd, char *buf, size_t count, \ - int32_t *basep); } + off_t *basep); } 555 AUE_STATFS NOPROTO { int statfs(char *path, \ struct statfs32 *buf); } 556 AUE_FSTATFS NOPROTO { int fstatfs(int fd, struct statfs32 *buf); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802151726.w1FHQUqW059729>