OSDN Git Service

* errno.cc (errmap): Map ERROR_BEGINNING_OF_MEDIA and
authorcorinna <corinna>
Sun, 14 Mar 2004 18:01:45 +0000 (18:01 +0000)
committercorinna <corinna>
Sun, 14 Mar 2004 18:01:45 +0000 (18:01 +0000)
commit142ad78cf74b48a911f953b6250925d6746f078b
treea34f09a7d78de858d13508bdec56b00cf2c3ff4c
parent4c5075b232fdee6c8b23c85bd023a2e15cb40637
* errno.cc (errmap): Map ERROR_BEGINNING_OF_MEDIA and
ERROR_SETMARK_DETECTED to EIO instead of ESPIPE.
Handle ERROR_FILEMARK_DETECTED.
* fhandler_tape.cc (TAPE_FUNC): Add comment that ERROR_BUS_RESET
has still to be handled correctly.
(fhandler_dev_tape::open): Accomodate fact that get.mt_dsreg
also contains density code.
(fhandler_dev_tape::ioctl): Rearrange slightly.  Reset devbuf also on
MTNOP, MTWSM, MTSETBLK, MTSETDRVBUFFER, MTSETPART and MTMKPART.
(fhandler_dev_tape::tape_set_pos): Rearrange.  Match behaviour to
the Linux tape driver.
(fhandler_dev_tape::tape_status): Call IOCTL_STORAGE_GET_MEDIA_TYPES_EX
if available.  Return device type and density code in appropriate
mtget members.
* wincap.h (wincaps::has_ioctl_storage_get_media_types_ex): New element.
* wincap.cc: Implement above element throughout.
* include/cygwin/mtio.h: Add tape device types as returned by
IOCTL_STORAGE_GET_MEDIA_TYPES_EX.
(MT_TAPE_INFO): Use above type codes.
(struct mtget): Change mt_dsreg comment.
winsup/cygwin/ChangeLog
winsup/cygwin/errno.cc
winsup/cygwin/fhandler_tape.cc
winsup/cygwin/include/cygwin/mtio.h
winsup/cygwin/wincap.cc
winsup/cygwin/wincap.h