🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Tags - How do they work.

#6223
From: Ken Farinsky - CATS
Date: Wed, 31 Oct 1990 15:45
40 lines
1730 bytes
I posted this the other day, which turned out to be wrong (as System()
will not handle tags on the stack...)

>>rc = System(argv[1],
>>            SYS_Input, infile,
>>            SYS_Output, outfile,
>>            SYS_Asynch, FALSE,    
>>            TAG_DONE
>>            );

Ewout sent me some mail, as follows:

>>Ken, System() is tag, not stack based. So he'd have to do something like
>>
>>struct TagItem tag[5];
>>
>>tag[0].ti_Tag = SYS_Input;
>>tag[0].ti_Data = infile;
>>	.
>>	.
>>tag[4].ti_Tag = TAG_END;
>>
>>But the whole thing that guy is trying to do is wrong anyway since you cannot
>>use a level 2 filehandle as an AmigaDOS BPTR filehandle.
>>---
>>Ewout Walraven - CATS			Commodore Business Machines, Inc.
>>215-431-9426				{uunet|rutgers}!cbmvax!ewout

So, you have to put the tags into an array, then call System() with a
pointer to the name of the command and a pointer to the tag array.
Live and learn.

>  Russell McOrmond   rwm@atronx.UUCP   {fts1,alzabo}!atronx!rwm 
>  FidoNet 1:163/109  Net Support: (613) 230-2282
>  Amiga-Fidonet Support  1:1/109
-- 
--
Ken Farinsky - CATS - (215) 431-9421 - Commodore Business Machines
uucp: ken@cbmvax.commodore.com   or  ...{uunet,rutgers}!cbmvax!ken
bix:  kfarinsky
Technical Details
Message-ID: <15486@cbmvax.commodore.com>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!bu.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!mit-eddie!rutgers!cbmvax!ken
References: <53246.657345554@atronx.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!bu.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!mit-eddie!rutgers!cbmvax!ken
From: ken@cbmvax.commodore.com (Ken Farinsky - CATS)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Tags - How do they work.
Message-ID: <15486@cbmvax.commodore.com>
Date: 31 Oct 90 15:45:05 GMT
References: <53246.657345554@atronx.UUCP>
Reply-To: ken@cbmvax.commodore.com (Ken Farinsky - CATS)
Organization: Commodore, West Chester, PA
Lines: 40