home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.lang.c:11769 comp.unix.programmer:4020 comp.unix.questions:9587
- Path: sparky!uunet!gatech!rutgers!network.ucsd.edu!mvb.saic.com!unogate!stsshol
- From: stsshol@st.unocal.com (Herb Lam)
- Newsgroups: comp.lang.c,comp.unix.programmer,comp.unix.questions
- Subject: How to test if device is busy?
- Message-ID: <1992Jul30.171438.11887@unocal.com>
- Date: 30 Jul 92 17:14:38 GMT
- Sender: news@unocal.com (Unocal USENET News)
- Distribution: usa
- Organization: Unocal Corporation
- Lines: 8
- Originator: stsshol@anteater
-
- I need to find out how to test whether a tape device is busy
- (i.e. if it is performing some read or write operation) before
- I try to unmount the tape drive. Is there some general function
- that can accomplish this? I looked into ioctl under the mag
- tape category and mtio.h but I couldn't find anything that could
- do this. Any suggestions?
-
- Thanks.
-