Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2004-04-19 17:07:55 +0400
committerCorinna Vinschen <corinna@vinschen.de>2004-04-19 17:07:55 +0400
commit1facc71a35ea02155f53eceee74323bcec736676 (patch)
tree44a3c9edc3abcb5faae2146bddff5ca8007b0994 /winsup/cygwin/fhandler_tape.cc
parent6f3375a5bfd07d53590d64d02c48e39c5f2be8f9 (diff)
* fhandler_tape.cc (mtinfo_drive::_set_pos): Take additional dont_wait
parameter. Use in call to SetTapePosition. (mtinfo_drive::set_pos): Accomodate _set_pos calls to above change. (mtinfo_drive::set_partition): Ditto. * mtinfo.h (mtinfo_drive::_set_pos): Change declaration accordingly.
Diffstat (limited to 'winsup/cygwin/fhandler_tape.cc')
-rw-r--r--winsup/cygwin/fhandler_tape.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/winsup/cygwin/fhandler_tape.cc b/winsup/cygwin/fhandler_tape.cc
index caebaed89..0f3ed0e8f 100644
--- a/winsup/cygwin/fhandler_tape.cc
+++ b/winsup/cygwin/fhandler_tape.cc
@@ -341,11 +341,11 @@ mtinfo_drive::get_pos (HANDLE mt, long *ppartition, long *pblock)
}
int
-mtinfo_drive::_set_pos (HANDLE mt, int mode, long count,
- int partition)
+mtinfo_drive::_set_pos (HANDLE mt, int mode, long count, int partition,
+ BOOL dont_wait)
{
- TAPE_FUNC (SetTapePosition (mt, mode, partition, count,
- count < 0 ? -1 : 0, FALSE));
+ TAPE_FUNC (SetTapePosition (mt, mode, partition, count, count < 0 ? -1 : 0,
+ dont_wait));
dirty = clean;
return lasterr;
}
@@ -378,14 +378,14 @@ mtinfo_drive::set_pos (HANDLE mt, int mode, long count,
if (mode == TAPE_SPACE_FILEMARKS)
{
while (!err && undone > 0)
- if (!(err = _set_pos (mt, mode, 1, 0)) || IS_SM (err))
+ if (!(err = _set_pos (mt, mode, 1, 0, FALSE)) || IS_SM (err))
--undone;
while (!err && undone < 0)
- if (!(err = _set_pos (mt, mode, -1, 0)) || IS_SM (err))
+ if (!(err = _set_pos (mt, mode, -1, 0, FALSE)) || IS_SM (err))
++undone;
}
else
- err = _set_pos (mt, mode, count, dont_wait);
+ err = _set_pos (mt, mode, count, 0, dont_wait);
switch (mode)
{
case TAPE_ABSOLUTE_BLOCK:
@@ -546,7 +546,7 @@ mtinfo_drive::set_partition (HANDLE mt, long count)
else
{
int part_block = part (count)->block >= 0 ? part (count)->block : 0;
- int err = _set_pos (mt, TAPE_LOGICAL_BLOCK, part_block, count + 1);
+ int err = _set_pos (mt, TAPE_LOGICAL_BLOCK, part_block, count + 1, FALSE);
if (err)
{
int sav_block = block;