hpux-store-fd-sooner-in-iopen-20051107

do this a little differently, it may change out from under us
This commit is contained in:
Derrick Brashear 2005-11-07 23:42:02 +00:00
parent ce80f99d7f
commit dc28ad2b65

View File

@ -128,6 +128,7 @@ afs_syscall_iopen(dev, inode, usrmod)
int dummy; int dummy;
extern struct fileops vnodefops; extern struct fileops vnodefops;
register int code; register int code;
int fd;
AFS_STATCNT(afs_syscall_iopen); AFS_STATCNT(afs_syscall_iopen);
@ -144,6 +145,9 @@ afs_syscall_iopen(dev, inode, usrmod)
iput(ip); iput(ip);
goto out; goto out;
} }
#ifdef AFS_HPUX1111_ENV
fd = u.u_r.r_val1;
#endif
iunlock(ip); iunlock(ip);
fp->f_ops = &vnodefops; fp->f_ops = &vnodefops;
@ -175,7 +179,9 @@ afs_syscall_iopen(dev, inode, usrmod)
* called by falloc(), which is called above. * called by falloc(), which is called above.
*/ */
if (is_multithreaded(u.u_procp)) { 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); putf(fd);
} }