Patch #: 26 Type: update Priority: low Affects: OS without obsoleted tell() Reported: Robert Elz Reported: Heather Ebey Archived: munnari.OZ.AU mac/cap.patches/cap60.patch026 Summary: "tell() is very very obsolete", replace with lseek() File: cap60/applications/aufs/afpdt.c *** applications/aufs/afpdt.c.orig Wed Mar 13 21:21:03 1991 --- applications/aufs/afpdt.c Thu Jun 13 20:45:38 1991 *************** *** 1,7 **** /* ! * $Author: djh $ $Date: 91/03/13 20:19:13 $ ! * $Header: afpdt.c,v 2.2 91/03/13 20:19:13 djh Exp $ ! * $Revision: 2.2 $ */ /* --- 1,7 ---- /* ! * $Author: djh $ $Date: 1991/06/13 10:45:20 $ ! * $Header: /mac/src/cap60/applications/aufs/RCS/afpdt.c,v 2.3 1991/06/13 10:45:20 djh Rel djh $ ! * $Revision: 2.3 $ */ /* *************** *** 359,365 **** } return(-1); } ! floc = tell(dt->dt_afd) - ((off_t)sizeof(afr)); /* remember where we are */ afr.afr_pdirlen = ntohl(afr.afr_pdirlen); afr.afr_fnamlen = ntohl(afr.afr_fnamlen); --- 359,366 ---- } return(-1); } ! /* remember where we are */ ! floc = lseek(dt->dt_afd, 0L, 1) - ((off_t)sizeof(afr)); afr.afr_pdirlen = ntohl(afr.afr_pdirlen); afr.afr_fnamlen = ntohl(afr.afr_fnamlen); *** README.orig Thu Jun 13 20:49:05 1991 --- README Thu Jun 13 20:49:18 1991 *************** *** 3,9 **** (For use with AppleTalk/Ethernet bridge) o RELEASE NOTES ! o CAP Distribution 6.0, Patch Level 25, May 1991 Introduction ------------ --- 3,9 ---- (For use with AppleTalk/Ethernet bridge) o RELEASE NOTES ! o CAP Distribution 6.0, Patch Level 26, June 1991 Introduction ------------