From 57b3ab48dbb8e5097368a0cbe2410cb52be9333d Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 11 Oct 1999 09:02:59 +0000 Subject: 1999-10-11 Roland McGrath * dir-readdir.c (netfs_S_dir_readdir): Take new DATA_DEALLOC parameter. --- libnetfs/dir-readdir.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/libnetfs/dir-readdir.c b/libnetfs/dir-readdir.c index e7313428..36f934e8 100644 --- a/libnetfs/dir-readdir.c +++ b/libnetfs/dir-readdir.c @@ -1,5 +1,5 @@ -/* - Copyright (C) 1996 Free Software Foundation, Inc. +/* + Copyright (C) 1996, 1999 Free Software Foundation, Inc. Written by Michael I. Bushnell, p/BSG. This file is part of the GNU Hurd. @@ -27,6 +27,7 @@ error_t netfs_S_dir_readdir (struct protid *user, char **data, mach_msg_type_number_t *datacnt, + boolean_t *data_dealloc, int entry, int nentries, vm_size_t bufsiz, @@ -34,13 +35,13 @@ netfs_S_dir_readdir (struct protid *user, { error_t err; struct node *np; - + if (!user) return EOPNOTSUPP; - + np = user->po->np; mutex_lock (&np->lock); - + err = 0; if ((user->po->openstat & O_READ) == 0) err = EBADF; @@ -51,6 +52,7 @@ netfs_S_dir_readdir (struct protid *user, if (!err) err = netfs_get_dirents (user->user, np, entry, nentries, data, datacnt, bufsiz, amt); + *data_dealloc = 1; /* XXX */ mutex_unlock (&np->lock); return err; } -- cgit v1.2.3