From a4dcd0ef22f5a456d5a690c5bff89073dec938e4 Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Thu, 15 Feb 2018 18:31:43 +0000 Subject: [PATCH] Remove freebsd32_getdirentries(), it will be unused after the next commit. --- sys/compat/freebsd32/freebsd32_misc.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/sys/compat/freebsd32/freebsd32_misc.c b/sys/compat/freebsd32/freebsd32_misc.c index 4849b80f421..beff5fb6424 100644 --- a/sys/compat/freebsd32/freebsd32_misc.c +++ b/sys/compat/freebsd32/freebsd32_misc.c @@ -1786,25 +1786,6 @@ freebsd11_freebsd32_getdents(struct thread *td, } #endif /* COMPAT_FREEBSD11 */ -int -freebsd32_getdirentries(struct thread *td, - struct freebsd32_getdirentries_args *uap) -{ - long base; - int32_t base32; - int error; - - error = kern_getdirentries(td, uap->fd, uap->buf, uap->count, &base, - NULL, UIO_USERSPACE); - if (error) - return (error); - if (uap->basep != NULL) { - base32 = base; - error = copyout(&base32, uap->basep, sizeof(int32_t)); - } - return (error); -} - #ifdef COMPAT_FREEBSD6 /* versions with the 'int pad' argument */ int