Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!gradient!ddj From: ddj@gradient.gradient.com (david johnson) Newsgroups: comp.sys.next Subject: Re: NeXT answer to tape drive problems Message-ID: <274@gradient.gradient.com> Date: 26 Feb 91 17:54:07 GMT References: <1991Feb20.202553.21798@cbnewse.att.com> <272@gradient.gradient.com> Organization: Gradient Technologies Inc., Hudson MA Lines: 12 ddj@gradient.gradient.com (david johnson) writes: > perror(RSTDEVICE); Le Oops! Correct code fragment for opening named device should be if ((fd = open(name, O_RDWR)) < 0) { perror(name); exit(1); } Sigh... Brought to you by Super Global Mega Corp .com