home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / c / 11769 < prev    next >
Encoding:
Internet Message Format  |  1992-07-30  |  874 b 

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