From dc28ad2b6526faf697346e3ef8bc34e02c199758 Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Mon, 7 Nov 2005 23:42:02 +0000 Subject: [PATCH] hpux-store-fd-sooner-in-iopen-20051107 do this a little differently, it may change out from under us --- src/afs/HPUX/osi_inode.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/afs/HPUX/osi_inode.c b/src/afs/HPUX/osi_inode.c index 44f3c49e5c..4c93e088a1 100644 --- a/src/afs/HPUX/osi_inode.c +++ b/src/afs/HPUX/osi_inode.c @@ -128,6 +128,7 @@ afs_syscall_iopen(dev, inode, usrmod) int dummy; extern struct fileops vnodefops; register int code; + int fd; AFS_STATCNT(afs_syscall_iopen); @@ -144,6 +145,9 @@ afs_syscall_iopen(dev, inode, usrmod) iput(ip); goto out; } +#ifdef AFS_HPUX1111_ENV + fd = u.u_r.r_val1; +#endif iunlock(ip); fp->f_ops = &vnodefops; @@ -175,7 +179,9 @@ afs_syscall_iopen(dev, inode, usrmod) * called by falloc(), which is called above. */ if (is_multithreaded(u.u_procp)) { - int fd = (int)u.u_r.r_val1; +#ifndef AFS_HPUX1111_ENV + fd = (int)u.u_r.r_val1; +#endif putf(fd); }