home *** CD-ROM | disk | FTP | other *** search
- *** d:/os2/tmp/readcd.c_a00037 Sun Aug 22 11:21:12 1999
- --- d:/os2/tmp/readcd.c_b00037 Sun Aug 22 11:21:12 1999
- ***************
- *** 563,569 ****
- f = stdout;
- else if ((f = fileopen(filename, "wcu")) == NULL)
- comerr("Cannot open '%s'.\n", filename);
- !
- printf("end: %8ld\n", end);
- flush();
- if (gettimeofday(&starttime, (struct timezone *)0) < 0)
- --- 563,572 ----
- f = stdout;
- else if ((f = fileopen(filename, "wcu")) == NULL)
- comerr("Cannot open '%s'.\n", filename);
- ! #ifdef __EMX__
- ! if(setmode(fileno(f), O_BINARY)==-1)
- ! comerr("Cannot switch output to binary.\n");
- ! #endif
- printf("end: %8ld\n", end);
- flush();
- if (gettimeofday(&starttime, (struct timezone *)0) < 0)
- ***************
- *** 637,643 ****
- f = stdout;
- else if ((f = fileopen(filename, "rcu")) == NULL)
- comerr("Cannot open '%s'.\n", filename);
- !
- printf("Notice: reading from file always starts at offset 0.\n");
-
- getlong("Enter starting sector for copy:", &addr, 0L, end-1);
- --- 640,649 ----
- f = stdout;
- else if ((f = fileopen(filename, "rcu")) == NULL)
- comerr("Cannot open '%s'.\n", filename);
- ! #ifdef __EMX__
- ! if(setmode(fileno(f), O_BINARY)==-1)
- ! comerr("Cannot switch input to binary.\n");
- ! #endif
- printf("Notice: reading from file always starts at offset 0.\n");
-
- getlong("Enter starting sector for copy:", &addr, 0L, end-1);
- ***************
- *** 707,713 ****
- fillbytes(Sbuf, 50*2352, 0);
- if (read_g1(scgp, Sbuf, 0, 50) < 0)
- errmsg("read CD\n");
- ! f = fileopen("DDA", "wct");
- /* filewrite(f, Sbuf, 50 * 2352 - scsigetresid(scgp));*/
- filewrite(f, Sbuf, 50 * 2352 );
- fclose(f);
- --- 713,719 ----
- fillbytes(Sbuf, 50*2352, 0);
- if (read_g1(scgp, Sbuf, 0, 50) < 0)
- errmsg("read CD\n");
- ! f = fileopen("DDA", "wctb");
- /* filewrite(f, Sbuf, 50 * 2352 - scsigetresid(scgp));*/
- filewrite(f, Sbuf, 50 * 2352 );
- fclose(f);
-