svn commit: r329322 - head/sys/compat/freebsd32

Brooks Davis brooks at FreeBSD.org
Thu Feb 15 17:26:30 UTC 2018


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); }


More information about the svn-src-all mailing list