🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Help with Lattice C please!

#13675
From: BAXTER_A
Date: Tue, 13 Feb 1990 13:30
18 lines
1275 bytes
QUESTION 1:

Is it possible to mount a device (has a handler, but no *.device in devs:) with
C code. I am currently using Execute("c:failat >Nil: <Nil:\n c:mount >Nil:
<Nil: Plt:",0,0); but this has some problems (see below) so I was wondering if there
is some other way that I've overlooked.

QUESTION 2:

Could someone please send be example code to replace _main() in Lattice
so that it doesn't open the window on Workbench, but does set up a process to
reply to messages. Although none of my code produces error messages, I have
found that the use of Execute() requires that a parent process exist, even if
it is not used. I have tried using Open("Nil:",MODE_WHATEVER); and although
this doesn't crash, it eats 48 bytes every time the program is run- presumably
this is the unreplied messages.
Please don't suggest I use the NULL: device, as I would like this to be
stand-alone, however, the source code to NULL: may be very useful.
Technical Details
Message-ID: <4897@wehi.dn.mu.oz>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uunet!munnari.oz.au!murdu!ucsvc!wehi!baxter_a

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uunet!munnari.oz.au!murdu!ucsvc!wehi!baxter_a
From: BAXTER_A@wehi.dn.mu.oz
Newsgroups: comp.sys.amiga.tech
Subject: Help with Lattice C please!
Message-ID: <4897@wehi.dn.mu.oz>
Date: 13 Feb 90 13:30:48 GMT
Organization: Walter & Eliza Hall Institute
Lines: 18