fileref 849 src/dps8/dps8_disk.c if (! unitp->fileref) { fileref 872 src/dps8/dps8_disk.c int rc = fseek (unitp->fileref, fileref 900 src/dps8/dps8_disk.c fflush (unitp->fileref); fileref 903 src/dps8/dps8_disk.c unitp->fileref); fileref 907 src/dps8/dps8_disk.c if (ferror (unitp->fileref)) fileref 951 src/dps8/dps8_disk.c if (! unitp->fileref) { fileref 969 src/dps8/dps8_disk.c int rc = fseek (unitp->fileref, fileref 1005 src/dps8/dps8_disk.c unitp->fileref); fileref 1006 src/dps8/dps8_disk.c fflush (unitp->fileref); fileref 1055 src/dps8/dps8_disk.c if (! unitp->fileref) fileref 1065 src/dps8/dps8_disk.c if (! unitp->fileref) fileref 1177 src/dps8/dps8_disk.c if (! unitp->fileref) fileref 1191 src/dps8/dps8_disk.c if (! unitp->fileref) fileref 1248 src/dps8/dps8_disk.c if (! unitp->fileref) fileref 1262 src/dps8/dps8_disk.c if (! unitp->fileref) fileref 1276 src/dps8/dps8_disk.c if (! unitp->fileref) fileref 1290 src/dps8/dps8_disk.c if (! unitp->fileref) fileref 1304 src/dps8/dps8_disk.c if (! unitp->fileref) fileref 1318 src/dps8/dps8_disk.c if (! unitp->fileref) fileref 1332 src/dps8/dps8_disk.c if (! unitp->fileref) fileref 1347 src/dps8/dps8_disk.c if (! unitp->fileref) fileref 1361 src/dps8/dps8_disk.c if (! unitp->fileref) fileref 1376 src/dps8/dps8_disk.c if (! unitp->fileref) fileref 1400 src/dps8/dps8_disk.c if (! unitp->fileref) fileref 1415 src/dps8/dps8_disk.c if (! unitp->fileref) fileref 1430 src/dps8/dps8_disk.c if (! unitp->fileref) fileref 2275 src/dps8/dps8_fnp2.c fileref 2276 src/dps8/dps8_fnp2.c fileref 2286 src/dps8/dps8_fnp2.c fileref 2367 src/dps8/dps8_fnp2.c fileref 5447 src/simh/scp.c uptr->fileref = sim_fopen (cptr, "rb"); /* open rd only */ fileref 5448 src/simh/scp.c if (uptr->fileref == NULL) /* open fail? */ fileref 5457 src/simh/scp.c uptr->fileref = sim_fopen (cptr, "wb+"); /* open new file */ fileref 5458 src/simh/scp.c if (uptr->fileref == NULL) /* open fail? */ fileref 5465 src/simh/scp.c uptr->fileref = sim_fopen (cptr, "rb+"); /* open r/w */ fileref 5466 src/simh/scp.c if (uptr->fileref == NULL) { /* open fail? */ fileref 5481 src/simh/scp.c uptr->fileref = sim_fopen (cptr, "rb"); /* open rd only */ fileref 5482 src/simh/scp.c if (uptr->fileref == NULL) /* open fail? */ fileref 5492 src/simh/scp.c uptr->fileref = sim_fopen (cptr, "wb+");/* open new file */ fileref 5493 src/simh/scp.c if (uptr->fileref == NULL) /* open fail? */ fileref 5512 src/simh/scp.c SZ_D (dptr), cap, uptr->fileref); fileref 5624 src/simh/scp.c rewind (uptr->fileref); fileref 5625 src/simh/scp.c sim_fwrite (uptr->filebuf, SZ_D (dptr), cap, uptr->fileref); fileref 5626 src/simh/scp.c if (ferror (uptr->fileref)) fileref 5638 src/simh/scp.c if (fclose (uptr->fileref) == EOF) fileref 5807 src/simh/scp.c sim_fseek (uptr->fileref, uptr->pos, SEEK_SET); fileref 5921 src/simh/scp.c (uptr->fileref) && /* real file, */ fileref 5924 src/simh/scp.c fflush (uptr->fileref); fileref 6565 src/simh/scp.c sim_fseek (uptr->fileref, (t_addr)(sz * loc), SEEK_SET); fileref 6566 src/simh/scp.c sim_fread (&sim_eval[i], sz, 1, uptr->fileref); fileref 6567 src/simh/scp.c if ((feof (uptr->fileref)) && fileref 6572 src/simh/scp.c else if (ferror (uptr->fileref)) { fileref 6573 src/simh/scp.c clearerr (uptr->fileref); fileref 6656 src/simh/scp.c sim_fseek (uptr->fileref, (t_addr)(sz * loc), SEEK_SET); fileref 6657 src/simh/scp.c sim_fwrite (&sim_eval[i], sz, 1, uptr->fileref); fileref 6658 src/simh/scp.c if (ferror (uptr->fileref)) { fileref 6659 src/simh/scp.c clearerr (uptr->fileref); fileref 414 src/simh/sim_defs.h FILE *fileref; /* file reference */ fileref 226 src/simh/sim_disk.c return sim_fsize_ex (uptr->fileref); fileref 249 src/simh/sim_disk.c err = sim_fseeko (uptr->fileref, da, SEEK_SET); /* set pos */ fileref 251 src/simh/sim_disk.c i = sim_fread (buf, ctx->xfer_element_size, tbc/ctx->xfer_element_size, uptr->fileref); fileref 254 src/simh/sim_disk.c err = ferror (uptr->fileref); fileref 349 src/simh/sim_disk.c err = sim_fseeko (uptr->fileref, da, SEEK_SET); /* set pos */ fileref 351 src/simh/sim_disk.c i = sim_fwrite (buf, ctx->xfer_element_size, tbc/ctx->xfer_element_size, uptr->fileref); fileref 352 src/simh/sim_disk.c err = ferror (uptr->fileref); fileref 487 src/simh/sim_disk.c fflush (uptr->fileref); fileref 816 src/simh/sim_disk.c uptr->fileref = open_function (cptr, "rb"); /* open rd only */ fileref 817 src/simh/sim_disk.c if (uptr->fileref == NULL) /* open fail? */ fileref 825 src/simh/sim_disk.c uptr->fileref = open_function (cptr, "rb+"); /* open r/w */ fileref 826 src/simh/sim_disk.c if (uptr->fileref == NULL) { /* open fail? */ fileref 830 src/simh/sim_disk.c uptr->fileref = open_function (cptr, "rb"); /* open rd only */ fileref 831 src/simh/sim_disk.c if (uptr->fileref == NULL) /* open fail? */ fileref 841 src/simh/sim_disk.c uptr->fileref = create_function (cptr, ((t_offset)uptr->capac)*ctx->capac_factor*((dptr->flags & DEV_SECTORS) ? 512 : 1));/* create new file */ fileref 843 src/simh/sim_disk.c uptr->fileref = open_function (cptr, "wb+");/* open new file */ fileref 844 src/simh/sim_disk.c if (uptr->fileref == NULL) /* open fail? */ fileref 857 src/simh/sim_disk.c storage_function (uptr->fileref, &ctx->storage_sector_size, &ctx->removable); fileref 964 src/simh/sim_disk.c capac = size_function (uptr->fileref); fileref 1010 src/simh/sim_disk.c FILE *fileref; fileref 1016 src/simh/sim_disk.c fileref = uptr->fileref; fileref 1041 src/simh/sim_disk.c uptr->fileref = NULL; fileref 1049 src/simh/sim_disk.c if (close_function (fileref) == EOF) fileref 1128 src/simh/sim_disk.c clearerr (uptr->fileref); fileref 129 src/simh/sim_tape.c fflush (uptr->fileref); fileref 415 src/simh/sim_tape.c sim_fseek (uptr->fileref, uptr->pos, SEEK_SET); /* set the initial tape position */ fileref 435 src/simh/sim_tape.c if (feof (uptr->fileref)) { /* if we hit the EOF while reading a gap */ fileref 453 src/simh/sim_tape.c uptr->fileref); fileref 455 src/simh/sim_tape.c if (ferror (uptr->fileref)) { /* if a file I/O error occurred */ fileref 505 src/simh/sim_tape.c (void)sim_fseek (uptr->fileref, uptr->pos, SEEK_SET); /* to resync */ fileref 514 src/simh/sim_tape.c (void)sim_fseek (uptr->fileref, uptr->pos, SEEK_SET); /* then seek to the data area */ fileref 529 src/simh/sim_tape.c (void)sim_fread (&tpcbc, sizeof (t_tpclnt), 1, uptr->fileref); fileref 531 src/simh/sim_tape.c if (ferror (uptr->fileref)) { /* error? */ fileref 535 src/simh/sim_tape.c if (feof (uptr->fileref)) { /* eof? */ fileref 548 src/simh/sim_tape.c (void)sim_fread (&c, sizeof (uint8), 1, uptr->fileref); fileref 549 src/simh/sim_tape.c if (ferror (uptr->fileref)) { /* error? */ fileref 553 src/simh/sim_tape.c if (feof (uptr->fileref)) { /* eof? */ fileref 564 src/simh/sim_tape.c (void)sim_fseek (uptr->fileref, uptr->pos, SEEK_SET); /* for read */ fileref 661 src/simh/sim_tape.c (void)sim_fseek (uptr->fileref, /* seek back to the location */ fileref 666 src/simh/sim_tape.c bufcap, uptr->fileref); /* with tape metadata */ fileref 668 src/simh/sim_tape.c if (ferror (uptr->fileref)) { /* if a file I/O error occurred */ fileref 704 src/simh/sim_tape.c (void)sim_fseek (uptr->fileref, /* seek to the data area */ fileref 717 src/simh/sim_tape.c (void)sim_fseek (uptr->fileref, ppos, SEEK_SET); /* position */ fileref 718 src/simh/sim_tape.c (void)sim_fread (&tpcbc, sizeof (t_tpclnt), 1, uptr->fileref); fileref 720 src/simh/sim_tape.c if (ferror (uptr->fileref)) /* error? */ fileref 722 src/simh/sim_tape.c if (feof (uptr->fileref)) { /* eof? */ fileref 731 src/simh/sim_tape.c (void)sim_fseek (uptr->fileref, uptr->pos + sizeof (t_tpclnt), SEEK_SET); fileref 736 src/simh/sim_tape.c (void)sim_fseek (uptr->fileref, uptr->pos - sbc, SEEK_SET); fileref 737 src/simh/sim_tape.c (void)sim_fread (&c, sizeof (uint8), 1, uptr->fileref); fileref 738 src/simh/sim_tape.c if (ferror (uptr->fileref)) /* error? */ fileref 740 src/simh/sim_tape.c if (feof (uptr->fileref)) { /* eof? */ fileref 751 src/simh/sim_tape.c (void)sim_fseek (uptr->fileref, uptr->pos, SEEK_SET); /* for read */ fileref 805 src/simh/sim_tape.c i = (t_mtrlnt)sim_fread (buf, sizeof (uint8), rbc, uptr->fileref);/* read record */ fileref 806 src/simh/sim_tape.c if (ferror (uptr->fileref)) { /* error? */ fileref 864 src/simh/sim_tape.c i = (t_mtrlnt)sim_fread (buf, sizeof (uint8), rbc, uptr->fileref);/* read record */ fileref 865 src/simh/sim_tape.c if (ferror (uptr->fileref)) /* error? */ fileref 918 src/simh/sim_tape.c (void)sim_fseek (uptr->fileref, uptr->pos, SEEK_SET); /* set pos */ fileref 925 src/simh/sim_tape.c (void)sim_fwrite (&bc, sizeof (t_mtrlnt), 1, uptr->fileref); fileref 926 src/simh/sim_tape.c (void)sim_fwrite (buf, sizeof (uint8), sbc, uptr->fileref); fileref 927 src/simh/sim_tape.c (void)sim_fwrite (&bc, sizeof (t_mtrlnt), 1, uptr->fileref); fileref 928 src/simh/sim_tape.c if (ferror (uptr->fileref)) { /* error? */ fileref 937 src/simh/sim_tape.c (void)sim_fwrite (buf, sizeof (uint8), sbc, uptr->fileref); fileref 938 src/simh/sim_tape.c (void)sim_fwrite (buf, sizeof (uint8), 1, uptr->fileref); /* delimit rec */ fileref 939 src/simh/sim_tape.c if (ferror (uptr->fileref)) { /* error? */ fileref 970 src/simh/sim_tape.c (void)sim_fseek (uptr->fileref, uptr->pos, SEEK_SET); /* set pos */ fileref 971 src/simh/sim_tape.c (void)sim_fwrite (&dat, sizeof (t_mtrlnt), 1, uptr->fileref); fileref 972 src/simh/sim_tape.c if (ferror (uptr->fileref)) { /* error? */ fileref 1191 src/simh/sim_tape.c file_size = sim_fsize (uptr->fileref); /* get file size */ fileref 1192 src/simh/sim_tape.c sim_fseek (uptr->fileref, uptr->pos, SEEK_SET); /* position tape */ fileref 1206 src/simh/sim_tape.c (void)sim_fread (&meta, meta_size, 1, uptr->fileref); /* read metadatum */ fileref 1208 src/simh/sim_tape.c if (ferror (uptr->fileref)) { /* read error? */ fileref 1216 src/simh/sim_tape.c if (feof (uptr->fileref) || (meta == MTR_EOM)) { /* at eof or eom? */ fileref 1228 src/simh/sim_tape.c sim_fseek (uptr->fileref, uptr->pos, SEEK_SET); /* position tape */ fileref 1251 src/simh/sim_tape.c sim_fseek (uptr->fileref, uptr->pos, SEEK_SET); /* move tape */ fileref 1825 src/simh/sim_tape.c clearerr (uptr->fileref); fileref 1877 src/simh/sim_tape.c if ((uptr == NULL) || (uptr->fileref == NULL)) fileref 1905 src/simh/sim_tape.c tape_size = (t_addr)sim_fsize (uptr->fileref); fileref 1908 src/simh/sim_tape.c sim_fseek (uptr->fileref, tpos, SEEK_SET); fileref 1909 src/simh/sim_tape.c i = sim_fread (&bc, sizeof (t_tpclnt), 1, uptr->fileref); fileref 1920 src/simh/sim_tape.c (void)sim_fread (recbuf, 1, bc, uptr->fileref);