home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.aix:8342 bit.listserv.aix-l:1282
- Path: sparky!uunet!olivea!news.bbn.com!mips2!fhr.ma30.bull.com!mkubi
- From: mkubi@fhr.ma30.bull.com (Matt Kubik)
- Newsgroups: comp.unix.aix,bit.listserv.aix-l,bull.sys.aix
- Subject: Tape marks and end-of-data on QIC tapes
- Message-ID: <1992Jul30.203535.5360@mips2.ma30.bull.com>
- Date: 30 Jul 92 20:35:35 GMT
- Sender: news@mips2.ma30.bull.com (Usenet News Manager)
- Organization: Bull HN Information Systems Inc.
- Lines: 21
-
- Hi,
-
- I'm writing an application that reads data from
- QIC tapes using the read() system call. I've noticed
- that when I encounter either a tape mark (EOF condition)
- or an end-of-data condition, the read simply returns 0 bytes.
-
- At this point, is there any way to determine which
- of the two events actually occurred?
-
- I've noticed that with 8mm tapes, read returns -1
- and errno is set to EIO when the end-of-data is reached,
- while running into a tape mark causes read to return 0.
- This is nice since I know what was found on the tape.
- But I haven't found a way to distinguish between
- tape marks and end-of-data on QIC tapes. The rmt man
- pages don't seem to help.
-
- I would appreciate any help. Thanks.
-
- M.Kubik@bull.com
-