Lines Matching defs:fp

249 	FILE * fp;
332 if ( (fp = fopen(Dfile, "r")) == NULL) {
333 if ( (fp = fopen(filename, "r")) == NULL) {
345 if ( !F_READANY(fileno(fp)) ) {
357 if (Restart && !(fstat(fileno(fp), &stbuf))) {
371 (void) fclose(fp);
462 if ( ((fp = fopen(Dfile, "a+")) == NULL)
482 if (fstat (fileno(fp), &stbuf)) {
509 if (lseek(fileno(fp), startp, 0) == -1) {
516 fp->_cnt = 0;
517 fp->_ptr = fp->_base;
632 (void) fclose(fp);
648 if (fstat(fileno(fp), &stbuf)) /* never fail but .. */
672 if (lseek(fileno(fp), startp, 0) == -1) {
674 (void) fclose(fp);
679 fp->_cnt = 0;
680 fp->_ptr = fp->_base;
692 ret = (*Wrdata)(fp, Ofn);
706 (void) fclose(fp);
823 if ( ((fp = fopen(Dfile, "a+")) == NULL) || nospace(Dfile) ) {
833 if(fstat(fileno(fp), &stbuf)) {
862 if (lseek(fileno(fp), startp, 0) == -1) {
870 fp->_cnt = 0;
871 fp->_ptr = fp->_base;
886 ret = (*Rddata)(Ifn, fp);
903 (void) fclose(fp);
915 if (fstat(fileno(fp), &stbuf)) {
916 (void) fclose(fp);
923 (void) fclose(fp);
932 (void) fclose(fp);
1018 (void) fclose(fp);
1053 ret = (*Rddata)(Ifn, fp);
1066 (void) fclose(fp);
1078 if (fstat(fileno(fp), &stbuf)) {
1079 (void) fclose(fp);
1086 (void) fclose(fp);
1095 (void) fclose(fp);
1212 if ((fp = fopen(filename, "r")) == NULL) {
1221 if (chkpth(filename, CK_READ) || !F_READANY(fileno(fp))) {
1227 fclose(fp);
1232 ASSERT(fstat(fileno(fp), &stbuf) == 0, Ct_STAT,
1243 (void) fclose(fp);
1256 if (lseek(fileno(fp), startp, 0) == -1) {
1259 (void) fclose(fp);
1262 fp->_cnt = 0;
1263 fp->_ptr = fp->_base;
1295 ret = (*Wrdata)(fp, Ofn);
1307 (void) fclose(fp);