summaryrefslogtreecommitdiff
path: root/libnetfs
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1999-10-11 09:02:59 +0000
committerRoland McGrath <roland@gnu.org>1999-10-11 09:02:59 +0000
commit57b3ab48dbb8e5097368a0cbe2410cb52be9333d (patch)
tree8c06d99bd5ae85682c0915a7b605259c9edc7921 /libnetfs
parent283560887299b25c1b7ba2dfa8b7ed7ac8425eab (diff)
1999-10-11 Roland McGrath <roland@baalperazim.frob.com>
* dir-readdir.c (netfs_S_dir_readdir): Take new DATA_DEALLOC parameter.
Diffstat (limited to 'libnetfs')
-rw-r--r--libnetfs/dir-readdir.c12
1 files 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;
}