fileref 847 src/dps8/dps8_disk.c if (! unitp->fileref) { fileref 870 src/dps8/dps8_disk.c int rc = fseek (unitp->fileref, fileref 898 src/dps8/dps8_disk.c (void)fflush (unitp->fileref); fileref 901 src/dps8/dps8_disk.c unitp->fileref); fileref 905 src/dps8/dps8_disk.c if (ferror (unitp->fileref)) fileref 949 src/dps8/dps8_disk.c if (! unitp->fileref) { fileref 967 src/dps8/dps8_disk.c int rc = fseek (unitp->fileref, fileref 1003 src/dps8/dps8_disk.c unitp->fileref); fileref 1004 src/dps8/dps8_disk.c (void)fflush (unitp->fileref); fileref 1053 src/dps8/dps8_disk.c if (! unitp->fileref) fileref 1063 src/dps8/dps8_disk.c if (! unitp->fileref) fileref 1175 src/dps8/dps8_disk.c if (! unitp->fileref) fileref 1192 src/dps8/dps8_disk.c if (! unitp->fileref) fileref 1252 src/dps8/dps8_disk.c if (! unitp->fileref) fileref 1266 src/dps8/dps8_disk.c if (! unitp->fileref) fileref 1280 src/dps8/dps8_disk.c if (! unitp->fileref) fileref 1294 src/dps8/dps8_disk.c if (! unitp->fileref) fileref 1308 src/dps8/dps8_disk.c if (! unitp->fileref) fileref 1322 src/dps8/dps8_disk.c if (! unitp->fileref) fileref 1336 src/dps8/dps8_disk.c if (! unitp->fileref) fileref 1351 src/dps8/dps8_disk.c if (! unitp->fileref) fileref 1365 src/dps8/dps8_disk.c if (! unitp->fileref) fileref 1380 src/dps8/dps8_disk.c if (! unitp->fileref) fileref 1404 src/dps8/dps8_disk.c if (! unitp->fileref) fileref 1419 src/dps8/dps8_disk.c if (! unitp->fileref) fileref 1434 src/dps8/dps8_disk.c if (! unitp->fileref) fileref 2361 src/dps8/dps8_fnp2.c fileref 2362 src/dps8/dps8_fnp2.c fileref 2372 src/dps8/dps8_fnp2.c fileref 2453 src/dps8/dps8_fnp2.c fileref 5992 src/simh/scp.c uptr->fileref = sim_fopen (cptr, "rb"); /* open rd only */ fileref 5993 src/simh/scp.c if (uptr->fileref == NULL) /* open fail? */ fileref 6002 src/simh/scp.c uptr->fileref = sim_fopen (cptr, "wb+"); /* open new file */ fileref 6003 src/simh/scp.c if (uptr->fileref == NULL) /* open fail? */ fileref 6010 src/simh/scp.c uptr->fileref = sim_fopen (cptr, "rb+"); /* open r/w */ fileref 6011 src/simh/scp.c if (uptr->fileref == NULL) { /* open fail? */ fileref 6026 src/simh/scp.c uptr->fileref = sim_fopen (cptr, "rb"); /* open rd only */ fileref 6027 src/simh/scp.c if (uptr->fileref == NULL) /* open fail? */ fileref 6037 src/simh/scp.c uptr->fileref = sim_fopen (cptr, "wb+");/* open new file */ fileref 6038 src/simh/scp.c if (uptr->fileref == NULL) /* open fail? */ fileref 6057 src/simh/scp.c SZ_D (dptr), cap, uptr->fileref); fileref 6169 src/simh/scp.c rewind (uptr->fileref); fileref 6170 src/simh/scp.c sim_fwrite (uptr->filebuf, SZ_D (dptr), cap, uptr->fileref); fileref 6171 src/simh/scp.c if (ferror (uptr->fileref)) fileref 6184 src/simh/scp.c if (fclose (uptr->fileref) == EOF) fileref 6353 src/simh/scp.c sim_fseek (uptr->fileref, uptr->pos, SEEK_SET); fileref 6467 src/simh/scp.c (uptr->fileref) && /* real file, */ fileref 6470 src/simh/scp.c (void)fflush (uptr->fileref); fileref 7114 src/simh/scp.c sim_fseek (uptr->fileref, (t_addr)(sz * loc), SEEK_SET); fileref 7115 src/simh/scp.c sim_fread (&sim_eval[i], sz, 1, uptr->fileref); fileref 7116 src/simh/scp.c if ((feof (uptr->fileref)) && fileref 7121 src/simh/scp.c else if (ferror (uptr->fileref)) { fileref 7122 src/simh/scp.c clearerr (uptr->fileref); fileref 7205 src/simh/scp.c sim_fseek (uptr->fileref, (t_addr)(sz * loc), SEEK_SET); fileref 7206 src/simh/scp.c sim_fwrite (&sim_eval[i], sz, 1, uptr->fileref); fileref 7207 src/simh/scp.c if (ferror (uptr->fileref)) { fileref 7208 src/simh/scp.c clearerr (uptr->fileref); fileref 426 src/simh/sim_defs.h FILE *fileref; /* file reference */ fileref 230 src/simh/sim_disk.c return sim_fsize_ex (uptr->fileref); fileref 254 src/simh/sim_disk.c err = sim_fseeko (uptr->fileref, da, SEEK_SET); /* set pos */ fileref 256 src/simh/sim_disk.c i = sim_fread (buf, ctx->xfer_element_size, tbc/ctx->xfer_element_size, uptr->fileref); fileref 259 src/simh/sim_disk.c err = ferror (uptr->fileref); fileref 356 src/simh/sim_disk.c err = sim_fseeko (uptr->fileref, da, SEEK_SET); /* set pos */ fileref 358 src/simh/sim_disk.c i = sim_fwrite (buf, ctx->xfer_element_size, tbc/ctx->xfer_element_size, uptr->fileref); fileref 359 src/simh/sim_disk.c err = ferror (uptr->fileref); fileref 497 src/simh/sim_disk.c (void)fflush (uptr->fileref); fileref 831 src/simh/sim_disk.c uptr->fileref = open_function (cptr, "rb"); /* open rd only */ fileref 832 src/simh/sim_disk.c if (uptr->fileref == NULL) /* open fail? */ fileref 841 src/simh/sim_disk.c uptr->fileref = open_function (cptr, "rb+"); /* open r/w */ fileref 842 src/simh/sim_disk.c if (uptr->fileref == NULL) { /* open fail? */ fileref 846 src/simh/sim_disk.c uptr->fileref = open_function (cptr, "rb"); /* open rd only */ fileref 847 src/simh/sim_disk.c if (uptr->fileref == NULL) /* open fail? */ fileref 858 src/simh/sim_disk.c uptr->fileref = create_function (cptr, /* create new file */ fileref 861 src/simh/sim_disk.c uptr->fileref = open_function (cptr, "wb+");/* open new file */ fileref 862 src/simh/sim_disk.c if (uptr->fileref == NULL) /* open fail? */ fileref 876 src/simh/sim_disk.c storage_function (uptr->fileref, &ctx->storage_sector_size, &ctx->removable); fileref 1001 src/simh/sim_disk.c capac = size_function (uptr->fileref); fileref 1050 src/simh/sim_disk.c FILE *fileref; fileref 1056 src/simh/sim_disk.c fileref = uptr->fileref; fileref 1082 src/simh/sim_disk.c uptr->fileref = NULL; fileref 1090 src/simh/sim_disk.c if (close_function (fileref) == EOF) fileref 1169 src/simh/sim_disk.c clearerr (uptr->fileref); fileref 130 src/simh/sim_tape.c (void)fflush (uptr->fileref); fileref 416 src/simh/sim_tape.c sim_fseek (uptr->fileref, uptr->pos, SEEK_SET); /* set the initial tape position */ fileref 436 src/simh/sim_tape.c if (feof (uptr->fileref)) { /* if we hit the EOF while reading a gap */ fileref 454 src/simh/sim_tape.c uptr->fileref); fileref 456 src/simh/sim_tape.c if (ferror (uptr->fileref)) { /* if a file I/O error occurred */ fileref 506 src/simh/sim_tape.c (void)sim_fseek (uptr->fileref, uptr->pos, SEEK_SET); /* to resync */ fileref 515 src/simh/sim_tape.c (void)sim_fseek (uptr->fileref, uptr->pos, SEEK_SET); /* then seek to the data area */ fileref 530 src/simh/sim_tape.c (void)sim_fread (&tpcbc, sizeof (t_tpclnt), 1, uptr->fileref); fileref 532 src/simh/sim_tape.c if (ferror (uptr->fileref)) { /* error? */ fileref 536 src/simh/sim_tape.c if (feof (uptr->fileref)) { /* eof? */ fileref 549 src/simh/sim_tape.c (void)sim_fread (&c, sizeof (uint8), 1, uptr->fileref); fileref 550 src/simh/sim_tape.c if (ferror (uptr->fileref)) { /* error? */ fileref 554 src/simh/sim_tape.c if (feof (uptr->fileref)) { /* eof? */ fileref 565 src/simh/sim_tape.c (void)sim_fseek (uptr->fileref, uptr->pos, SEEK_SET); /* for read */ fileref 663 src/simh/sim_tape.c (void)sim_fseek (uptr->fileref, /* seek back to the location */ fileref 668 src/simh/sim_tape.c bufcap, uptr->fileref); /* with tape metadata */ fileref 670 src/simh/sim_tape.c if (ferror (uptr->fileref)) { /* if a file I/O error occurred */ fileref 706 src/simh/sim_tape.c (void)sim_fseek (uptr->fileref, /* seek to the data area */ fileref 719 src/simh/sim_tape.c (void)sim_fseek (uptr->fileref, ppos, SEEK_SET); /* position */ fileref 720 src/simh/sim_tape.c (void)sim_fread (&tpcbc, sizeof (t_tpclnt), 1, uptr->fileref); fileref 722 src/simh/sim_tape.c if (ferror (uptr->fileref)) /* error? */ fileref 724 src/simh/sim_tape.c if (feof (uptr->fileref)) { /* eof? */ fileref 733 src/simh/sim_tape.c (void)sim_fseek (uptr->fileref, uptr->pos + sizeof (t_tpclnt), SEEK_SET); fileref 738 src/simh/sim_tape.c (void)sim_fseek (uptr->fileref, uptr->pos - sbc, SEEK_SET); fileref 739 src/simh/sim_tape.c (void)sim_fread (&c, sizeof (uint8), 1, uptr->fileref); fileref 740 src/simh/sim_tape.c if (ferror (uptr->fileref)) /* error? */ fileref 742 src/simh/sim_tape.c if (feof (uptr->fileref)) { /* eof? */ fileref 753 src/simh/sim_tape.c (void)sim_fseek (uptr->fileref, uptr->pos, SEEK_SET); /* for read */ fileref 809 src/simh/sim_tape.c i = (t_mtrlnt)sim_fread (buf, sizeof (uint8), rbc, uptr->fileref);/* read record */ fileref 810 src/simh/sim_tape.c if (ferror (uptr->fileref)) { /* error? */ fileref 869 src/simh/sim_tape.c i = (t_mtrlnt)sim_fread (buf, sizeof (uint8), rbc, uptr->fileref);/* read record */ fileref 870 src/simh/sim_tape.c if (ferror (uptr->fileref)) /* error? */ fileref 924 src/simh/sim_tape.c (void)sim_fseek (uptr->fileref, uptr->pos, SEEK_SET); /* set pos */ fileref 931 src/simh/sim_tape.c (void)sim_fwrite (&bc, sizeof (t_mtrlnt), 1, uptr->fileref); fileref 932 src/simh/sim_tape.c (void)sim_fwrite (buf, sizeof (uint8), sbc, uptr->fileref); fileref 933 src/simh/sim_tape.c (void)sim_fwrite (&bc, sizeof (t_mtrlnt), 1, uptr->fileref); fileref 934 src/simh/sim_tape.c if (ferror (uptr->fileref)) { /* error? */ fileref 943 src/simh/sim_tape.c (void)sim_fwrite (buf, sizeof (uint8), sbc, uptr->fileref); fileref 944 src/simh/sim_tape.c (void)sim_fwrite (buf, sizeof (uint8), 1, uptr->fileref); /* delimit rec */ fileref 945 src/simh/sim_tape.c if (ferror (uptr->fileref)) { /* error? */ fileref 976 src/simh/sim_tape.c (void)sim_fseek (uptr->fileref, uptr->pos, SEEK_SET); /* set pos */ fileref 977 src/simh/sim_tape.c (void)sim_fwrite (&dat, sizeof (uint32_t), 1, uptr->fileref); fileref 978 src/simh/sim_tape.c if (ferror (uptr->fileref)) { /* error? */ fileref 1198 src/simh/sim_tape.c file_size = sim_fsize (uptr->fileref); /* get file size */ fileref 1199 src/simh/sim_tape.c sim_fseek (uptr->fileref, uptr->pos, SEEK_SET); /* position tape */ fileref 1213 src/simh/sim_tape.c (void)sim_fread (&meta, meta_size, 1, uptr->fileref); /* read metadatum */ fileref 1215 src/simh/sim_tape.c if (ferror (uptr->fileref)) { /* read error? */ fileref 1223 src/simh/sim_tape.c if (feof (uptr->fileref) || (meta == MTR_EOM)) { /* at eof or eom? */ fileref 1235 src/simh/sim_tape.c sim_fseek (uptr->fileref, uptr->pos, SEEK_SET); /* position tape */ fileref 1258 src/simh/sim_tape.c sim_fseek (uptr->fileref, uptr->pos, SEEK_SET); /* move tape */ fileref 1844 src/simh/sim_tape.c clearerr (uptr->fileref); fileref 1896 src/simh/sim_tape.c if ((uptr == NULL) || (uptr->fileref == NULL)) fileref 1924 src/simh/sim_tape.c tape_size = (t_addr)sim_fsize (uptr->fileref); fileref 1927 src/simh/sim_tape.c sim_fseek (uptr->fileref, tpos, SEEK_SET); fileref 1928 src/simh/sim_tape.c i = sim_fread (&bc, sizeof (t_tpclnt), 1, uptr->fileref); fileref 1940 src/simh/sim_tape.c (void)sim_fread (recbuf, 1, bc, uptr->fileref);