2 * (c) The GRASP/AQUA Project, Glasgow University, 1994-1998
4 * $Id: filePosn.c,v 1.1 1998/04/10 10:54:25 simonm Exp $
6 * hGetPosn and hSetPosn Runtime Support
13 getFilePosn(StgAddr fp)
17 while ((posn = ftell((FILE *) fp)) == -1) {
18 /* the possibility seems awfully remote */
28 /* The following is only called with a position that we've already visited */
31 setFilePosn(StgAddr fp, I_ posn)
33 while (fseek((FILE *) fp, posn, SEEK_SET) != 0) {