Thread View: comp.sys.amiga.tech
1 messages
1 total messages
Started by Mark Moore
Fri, 11 Jan 1991 21:16
What's wrong with this Open()?
Author: Mark Moore
Date: Fri, 11 Jan 1991 21:16
Date: Fri, 11 Jan 1991 21:16
30 lines
1273 bytes
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. |
-------------------------------------------------------------------------------
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads