diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2004-03-02 16:07:47 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2004-03-02 16:07:47 +0300 |
commit | 7cdd029300f70e30295ad0d06557c73ea121c339 (patch) | |
tree | 2cd244e5c6273be2718886f616391e7fba1ffed1 /winsup/cygwin/fhandler_tape.cc | |
parent | ddb1a4c10afbf2e9af6047d7e844c9d0330dbaa0 (diff) |
* fhandler_raw.cc (fhandler_dev_raw::raw_read): When reading with
variable block size, read only one block, read directly into user
supplied buffer, return ENOMEM if user supplied buffer is smaller
than size of next block to read. Use read2 instead of bytes_to_read
to count number of bytes read.
* fhandler_tape.cc (fhandler_dev_tape::open): Add debug output.
Diffstat (limited to 'winsup/cygwin/fhandler_tape.cc')
-rw-r--r-- | winsup/cygwin/fhandler_tape.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler_tape.cc b/winsup/cygwin/fhandler_tape.cc index e63a1ba99..7d159dc66 100644 --- a/winsup/cygwin/fhandler_tape.cc +++ b/winsup/cygwin/fhandler_tape.cc @@ -90,6 +90,7 @@ fhandler_dev_tape::open (int flags, mode_t) * The call to tape_set_pos seems to reset some internal flags. */ if ((!ioctl (MTIOCPOS, &pos)) && (!pos.mt_blkno)) { + debug_printf ("rewinding"); op.mt_op = MTREW; ioctl (MTIOCTOP, &op); } |