X-Git-Url: http://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2Fafs%2FSOLARIS%2Fosi_file.c;h=c7709cd9600b205639d00d18392167443ae13885;hp=068c1a70fdef0893a89893558c0f9d388c055ebf;hb=f4b688d9ed75ab429848e2a4cdb7b0f38eae712a;hpb=6583586e4033824cfe9e7bdd424dd1a6cea6e149 diff --git a/src/afs/SOLARIS/osi_file.c b/src/afs/SOLARIS/osi_file.c index 068c1a7..c7709cd 100644 --- a/src/afs/SOLARIS/osi_file.c +++ b/src/afs/SOLARIS/osi_file.c @@ -339,8 +339,13 @@ afs_osi_Write(afile, offset, aptr, asize) osi_Panic("afs_osi_Write called with null param"); if (offset != -1) afile->offset = offset; AFS_GUNLOCK(); +#ifdef AFS_SUN59_ENV + code = gop_rdwr(UIO_WRITE, afile->vnode, (caddr_t) aptr, asize, afile->offset, + AFS_UIOSYS, 0, curproc->p_fsz_ctl.rlim_cur, &afs_osi_cred, &resid); +#else code = gop_rdwr(UIO_WRITE, afile->vnode, (caddr_t) aptr, asize, afile->offset, AFS_UIOSYS, 0, (u.u_rlimit[RLIMIT_FSIZE].rlim_cur), &afs_osi_cred, &resid); +#endif AFS_GLOCK(); if (code == 0) { code = asize - resid;