summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-07-13 20:07:26 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-07-13 20:07:26 +0000
commit47362a147d3e37d7ce5d4d219912097d2312bc9e (patch)
treef1bb5031882245bf404e82c85801220bf60ef90c
parent38c4e839b15846ca3156f445350f650ee3bec5de (diff)
Formerly peropen-make.c.~7~
-rw-r--r--libdiskfs/peropen-make.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libdiskfs/peropen-make.c b/libdiskfs/peropen-make.c
index aea909ec..de483f26 100644
--- a/libdiskfs/peropen-make.c
+++ b/libdiskfs/peropen-make.c
@@ -21,7 +21,7 @@
/* Create and return a new peropen structure on node NP with open
flags FLAGS. */
struct peropen *
-diskfs_make_peropen (struct node *np, int flags)
+diskfs_make_peropen (struct node *np, int flags, mach_port_t dotdotport)
{
struct peropen *po = malloc (sizeof (struct peropen));
po->filepointer = 0;
@@ -29,6 +29,10 @@ diskfs_make_peropen (struct node *np, int flags)
po->refcnt = 0;
po->openstat = flags;
po->np = np;
+ po->dotdotport = dotdotport;
+ if (dotdotport != MACH_PORT_NULL)
+ mach_port_mod_refs (mach_task_self (), dotdotport,
+ MACH_PORT_RIGHT_SEND, 1);
diskfs_nref (np);
return po;
}