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 2362 src/dps8/dps8_fnp2.c fileref 2363 src/dps8/dps8_fnp2.c fileref 2373 src/dps8/dps8_fnp2.c fileref 2454 src/dps8/dps8_fnp2.c fileref 6200 src/simh/scp.c uptr->fileref = sim_fopen (cptr, "rb"); /* open rd only */ fileref 6201 src/simh/scp.c if (uptr->fileref == NULL) /* open fail? */ fileref 6210 src/simh/scp.c uptr->fileref = sim_fopen (cptr, "wb+"); /* open new file */ fileref 6211 src/simh/scp.c if (uptr->fileref == NULL) /* open fail? */ fileref 6218 src/simh/scp.c uptr->fileref = sim_fopen (cptr, "rb+"); /* open r/w */ fileref 6219 src/simh/scp.c if (uptr->fileref == NULL) { /* open fail? */ fileref 6234 src/simh/scp.c uptr->fileref = sim_fopen (cptr, "rb"); /* open rd only */ fileref 6235 src/simh/scp.c if (uptr->fileref == NULL) /* open fail? */ fileref 6245 src/simh/scp.c uptr->fileref = sim_fopen (cptr, "wb+");/* open new file */ fileref 6246 src/simh/scp.c if (uptr->fileref == NULL) /* open fail? */ fileref 6265 src/simh/scp.c SZ_D (dptr), cap, uptr->fileref); fileref 6377 src/simh/scp.c rewind (uptr->fileref); fileref 6378 src/simh/scp.c sim_fwrite (uptr->filebuf, SZ_D (dptr), cap, uptr->fileref); fileref 6379 src/simh/scp.c if (ferror (uptr->fileref)) fileref 6392 src/simh/scp.c if (fclose (uptr->fileref) == EOF) fileref 6561 src/simh/scp.c sim_fseek (uptr->fileref, uptr->pos, SEEK_SET); fileref 6675 src/simh/scp.c (uptr->fileref) && /* real file, */ fileref 6678 src/simh/scp.c (void)fflush (uptr->fileref); fileref 7322 src/simh/scp.c sim_fseek (uptr->fileref, (t_addr)(sz * loc), SEEK_SET); fileref 7323 src/simh/scp.c sim_fread (&sim_eval[i], sz, 1, uptr->fileref); fileref 7324 src/simh/scp.c if ((feof (uptr->fileref)) && fileref 7329 src/simh/scp.c else if (ferror (uptr->fileref)) { fileref 7330 src/simh/scp.c clearerr (uptr->fileref); fileref 7413 src/simh/scp.c sim_fseek (uptr->fileref, (t_addr)(sz * loc), SEEK_SET); fileref 7414 src/simh/scp.c sim_fwrite (&sim_eval[i], sz, 1, uptr->fileref); fileref 7415 src/simh/scp.c if (ferror (uptr->fileref)) { fileref 7416 src/simh/scp.c clearerr (uptr->fileref); fileref 426 src/simh/sim_defs.h FILE *fileref; /* file reference */ fileref 232 src/simh/sim_disk.c return sim_fsize_ex (uptr->fileref); fileref 256 src/simh/sim_disk.c err = sim_fseeko (uptr->fileref, da, SEEK_SET); /* set pos */ fileref 258 src/simh/sim_disk.c i = sim_fread (buf, ctx->xfer_element_size, tbc/ctx->xfer_element_size, uptr->fileref); fileref 261 src/simh/sim_disk.c err = ferror (uptr->fileref); fileref 358 src/simh/sim_disk.c err = sim_fseeko (uptr->fileref, da, SEEK_SET); /* set pos */ fileref 360 src/simh/sim_disk.c i = sim_fwrite (buf, ctx->xfer_element_size, tbc/ctx->xfer_element_size, uptr->fileref); fileref 361 src/simh/sim_disk.c err = ferror (uptr->fileref); fileref 499 src/simh/sim_disk.c (void)fflush (uptr->fileref); fileref 833 src/simh/sim_disk.c uptr->fileref = open_function (cptr, "rb"); /* open rd only */ fileref 834 src/simh/sim_disk.c if (uptr->fileref == NULL) /* open fail? */ fileref 843 src/simh/sim_disk.c uptr->fileref = open_function (cptr, "rb+"); /* open r/w */ fileref 844 src/simh/sim_disk.c if (uptr->fileref == NULL) { /* open fail? */ fileref 848 src/simh/sim_disk.c uptr->fileref = open_function (cptr, "rb"); /* open rd only */ fileref 849 src/simh/sim_disk.c if (uptr->fileref == NULL) /* open fail? */ fileref 860 src/simh/sim_disk.c uptr->fileref = create_function (cptr, /* create new file */ fileref 863 src/simh/sim_disk.c uptr->fileref = open_function (cptr, "wb+");/* open new file */ fileref 864 src/simh/sim_disk.c if (uptr->fileref == NULL) /* open fail? */ fileref 878 src/simh/sim_disk.c storage_function (uptr->fileref, &ctx->storage_sector_size, &ctx->removable); fileref 1003 src/simh/sim_disk.c capac = size_function (uptr->fileref); fileref 1052 src/simh/sim_disk.c FILE *fileref; fileref 1058 src/simh/sim_disk.c fileref = uptr->fileref; fileref 1084 src/simh/sim_disk.c uptr->fileref = NULL; fileref 1092 src/simh/sim_disk.c if (close_function (fileref) == EOF) fileref 1171 src/simh/sim_disk.c clearerr (uptr->fileref); fileref 134 src/simh/sim_tape.c (void)fflush (uptr->fileref); fileref 420 src/simh/sim_tape.c sim_fseek (uptr->fileref, uptr->pos, SEEK_SET); /* set the initial tape position */ fileref 440 src/simh/sim_tape.c if (feof (uptr->fileref)) { /* if we hit the EOF while reading a gap */ fileref 458 src/simh/sim_tape.c uptr->fileref); fileref 460 src/simh/sim_tape.c if (ferror (uptr->fileref)) { /* if a file I/O error occurred */ fileref 510 src/simh/sim_tape.c (void)sim_fseek (uptr->fileref, uptr->pos, SEEK_SET); /* to resync */ fileref 519 src/simh/sim_tape.c (void)sim_fseek (uptr->fileref, uptr->pos, SEEK_SET); /* then seek to the data area */ fileref 534 src/simh/sim_tape.c (void)sim_fread (&tpcbc, sizeof (t_tpclnt), 1, uptr->fileref); fileref 536 src/simh/sim_tape.c if (ferror (uptr->fileref)) { /* error? */ fileref 540 src/simh/sim_tape.c if (feof (uptr->fileref)) { /* eof? */ fileref 553 src/simh/sim_tape.c (void)sim_fread (&c, sizeof (uint8), 1, uptr->fileref); fileref 554 src/simh/sim_tape.c if (ferror (uptr->fileref)) { /* error? */ fileref 558 src/simh/sim_tape.c if (feof (uptr->fileref)) { /* eof? */ fileref 569 src/simh/sim_tape.c (void)sim_fseek (uptr->fileref, uptr->pos, SEEK_SET); /* for read */ fileref 667 src/simh/sim_tape.c (void)sim_fseek (uptr->fileref, /* seek back to the location */ fileref 672 src/simh/sim_tape.c bufcap, uptr->fileref); /* with tape metadata */ fileref 674 src/simh/sim_tape.c if (ferror (uptr->fileref)) { /* if a file I/O error occurred */ fileref 713 src/simh/sim_tape.c (void)sim_fseek (uptr->fileref, /* seek to the data area */ fileref 726 src/simh/sim_tape.c (void)sim_fseek (uptr->fileref, ppos, SEEK_SET); /* position */ fileref 727 src/simh/sim_tape.c (void)sim_fread (&tpcbc, sizeof (t_tpclnt), 1, uptr->fileref); fileref 729 src/simh/sim_tape.c if (ferror (uptr->fileref)) /* error? */ fileref 731 src/simh/sim_tape.c if (feof (uptr->fileref)) { /* eof? */ fileref 740 src/simh/sim_tape.c (void)sim_fseek (uptr->fileref, uptr->pos + sizeof (t_tpclnt), SEEK_SET); fileref 745 src/simh/sim_tape.c (void)sim_fseek (uptr->fileref, uptr->pos - sbc, SEEK_SET); fileref 746 src/simh/sim_tape.c (void)sim_fread (&c, sizeof (uint8), 1, uptr->fileref); fileref 747 src/simh/sim_tape.c if (ferror (uptr->fileref)) /* error? */ fileref 749 src/simh/sim_tape.c if (feof (uptr->fileref)) { /* eof? */ fileref 760 src/simh/sim_tape.c (void)sim_fseek (uptr->fileref, uptr->pos, SEEK_SET); /* for read */ fileref 816 src/simh/sim_tape.c i = (t_mtrlnt)sim_fread (buf, sizeof (uint8), rbc, uptr->fileref);/* read record */ fileref 817 src/simh/sim_tape.c if (ferror (uptr->fileref)) { /* error? */ fileref 876 src/simh/sim_tape.c i = (t_mtrlnt)sim_fread (buf, sizeof (uint8), rbc, uptr->fileref);/* read record */ fileref 877 src/simh/sim_tape.c if (ferror (uptr->fileref)) /* error? */ fileref 931 src/simh/sim_tape.c (void)sim_fseek (uptr->fileref, uptr->pos, SEEK_SET); /* set pos */ fileref 938 src/simh/sim_tape.c (void)sim_fwrite (&bc, sizeof (t_mtrlnt), 1, uptr->fileref); fileref 939 src/simh/sim_tape.c (void)sim_fwrite (buf, sizeof (uint8), sbc, uptr->fileref); fileref 940 src/simh/sim_tape.c (void)sim_fwrite (&bc, sizeof (t_mtrlnt), 1, uptr->fileref); fileref 941 src/simh/sim_tape.c if (ferror (uptr->fileref)) { /* error? */ fileref 950 src/simh/sim_tape.c (void)sim_fwrite (buf, sizeof (uint8), sbc, uptr->fileref); fileref 951 src/simh/sim_tape.c (void)sim_fwrite (buf, sizeof (uint8), 1, uptr->fileref); /* delimit rec */ fileref 952 src/simh/sim_tape.c if (ferror (uptr->fileref)) { /* error? */ fileref 983 src/simh/sim_tape.c (void)sim_fseek (uptr->fileref, uptr->pos, SEEK_SET); /* set pos */ fileref 984 src/simh/sim_tape.c (void)sim_fwrite (&dat, sizeof (uint32_t), 1, uptr->fileref); fileref 985 src/simh/sim_tape.c if (ferror (uptr->fileref)) { /* error? */ fileref 1205 src/simh/sim_tape.c file_size = sim_fsize (uptr->fileref); /* get file size */ fileref 1206 src/simh/sim_tape.c sim_fseek (uptr->fileref, uptr->pos, SEEK_SET); /* position tape */ fileref 1220 src/simh/sim_tape.c (void)sim_fread (&meta, meta_size, 1, uptr->fileref); /* read metadatum */ fileref 1222 src/simh/sim_tape.c if (ferror (uptr->fileref)) { /* read error? */ fileref 1230 src/simh/sim_tape.c if (feof (uptr->fileref) || (meta == MTR_EOM)) { /* at eof or eom? */ fileref 1242 src/simh/sim_tape.c sim_fseek (uptr->fileref, uptr->pos, SEEK_SET); /* position tape */ fileref 1265 src/simh/sim_tape.c sim_fseek (uptr->fileref, uptr->pos, SEEK_SET); /* move tape */ fileref 1851 src/simh/sim_tape.c clearerr (uptr->fileref); fileref 1903 src/simh/sim_tape.c if ((uptr == NULL) || (uptr->fileref == NULL)) fileref 1931 src/simh/sim_tape.c tape_size = (t_addr)sim_fsize (uptr->fileref); fileref 1934 src/simh/sim_tape.c sim_fseek (uptr->fileref, tpos, SEEK_SET); fileref 1935 src/simh/sim_tape.c i = sim_fread (&bc, sizeof (t_tpclnt), 1, uptr->fileref); fileref 1947 src/simh/sim_tape.c (void)sim_fread (recbuf, 1, bc, uptr->fileref);