🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #7925

What's wrong with this Open()?

#7925
From: Mark Moore
Date: Fri, 11 Jan 1991 21:16
30 lines
1273 bytes
#include <libraries/dos.h>
#include <libraries/dosextens.h>

extern struct FileHandle *Open();

main()
{
  struct FileHandle *fd;

  if (!(fd = Open(SERIAL_DEVICE, MODE_READWRITE)))
    printf("Can't open serial device: write\n");
  else
    Close(fdread);

}

I'm trying to avoid coding at a lower level than this.
I mostly want to be able to use WaitForChar().
I would like to avoid using UUSER: (Which I've been using.)
MODE_OLDFILE seems to work.

Please send mail.  I don't get these groups at home.  Thanks.

Mark

-------------------------------------------------------------------------------
| Mark Moore                           | "Well, what about Captain Zero?"     |
| marko@sinanju.uucp                   | -Sam Donaldson on the David Brinkley |
| ..!harvard!m2c!jjmhome!sinanju!marko |  show discussing terrorism.          |
-------------------------------------------------------------------------------
Technical Details
Message-ID: <marko.2564@sinanju.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!crackers!jjmhome!sinanju!marko

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!crackers!jjmhome!sinanju!marko
From: marko@sinanju.UUCP (Mark Moore)
Newsgroups: comp.sys.amiga.tech,comp.sys.amiga.programmer
Subject: What's wrong with this Open()?
Message-ID: <marko.2564@sinanju.UUCP>
Date: 11 Jan 91 21:16:27 GMT
Lines: 30