From 47362a147d3e37d7ce5d4d219912097d2312bc9e Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Wed, 13 Jul 1994 20:07:26 +0000 Subject: Formerly peropen-make.c.~7~ --- libdiskfs/peropen-make.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libdiskfs') 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; } -- cgit v1.2.3