summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-02-06 08:41:48 +0000
committerMiles Bader <miles@gnu.org>1997-02-06 08:41:48 +0000
commitcbcd397ee493998e46b8c46b606b7adfb738e8d6 (patch)
treec4500c5ddbb027e5e13a86a8f587e98be2e02af5 /libdiskfs
parentc1ee75403178dcffeb1aa5f8a4576b24ed13a48f (diff)
(diskfs_make_peropen):
Add & use DEPTH argument.
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/peropen-make.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libdiskfs/peropen-make.c b/libdiskfs/peropen-make.c
index de483f26..0fd32563 100644
--- a/libdiskfs/peropen-make.c
+++ b/libdiskfs/peropen-make.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1994 Free Software Foundation
+ Copyright (C) 1994, 1997 Free Software Foundation
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@@ -21,7 +21,8 @@
/* Create and return a new peropen structure on node NP with open
flags FLAGS. */
struct peropen *
-diskfs_make_peropen (struct node *np, int flags, mach_port_t dotdotport)
+diskfs_make_peropen (struct node *np, int flags,
+ mach_port_t dotdotport, unsigned depth)
{
struct peropen *po = malloc (sizeof (struct peropen));
po->filepointer = 0;
@@ -30,6 +31,7 @@ diskfs_make_peropen (struct node *np, int flags, mach_port_t dotdotport)
po->openstat = flags;
po->np = np;
po->dotdotport = dotdotport;
+ po->depth = depth;
if (dotdotport != MACH_PORT_NULL)
mach_port_mod_refs (mach_task_self (), dotdotport,
MACH_PORT_RIGHT_SEND, 1);