Article View: comp.sys.amiga.tech
Article #11590Re: A little help please...
From: Peter da Silva
Date: Sat, 25 Feb 1989 15:38
Date: Sat, 25 Feb 1989 15:38
20 lines
896 bytes
896 bytes
This is the code I use to find the stack size for launch...
---------[from launch.shar]---------
Xstruct Process *FindTask();
...
X struct Process *me;
X struct CommandLineInterface *cli;
X long stack;
...
X if(stack == 0) {
X me = FindTask(0);
X if(me->pr_CLI) {
X cli = (struct CommandLineInterface *)(me->pr_CLI<<2);
X stack = cli->cli_DefaultStack<<2; /* DefaultStack is in Longwords */
X } else
X stack = me->pr_StackSize;
X }
--
Peter "Have you hugged your wolf today" da Silva `-_-' Hackercorp.
...texbell!sugar!peter, or peter@sugar.uu.net 'U`
Technical Details
Message-ID:
<3513@sugar.uu.net>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!sugar!peterReferences:
<12492@gryphon.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!sugar!peter From: peter@sugar.uu.net (Peter da Silva) Newsgroups: comp.sys.amiga.tech Subject: Re: A little help please... Message-ID: <3513@sugar.uu.net> Date: 25 Feb 89 15:38:43 GMT References: <12492@gryphon.COM> Organization: Sugar Land Unix - Houston, TX Lines: 20