Path: utzoo!utgpu!attcan!uunet!tut.cis.ohio-state.edu!brutus.cs.uiuc.edu!apple!sticks!dwb
From: dwb@sticks.apple.com (David W. Berry)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Inits & Boot Time
Message-ID: <3516@internal.Apple.COM>
Date: 12 Aug 89 02:06:23 GMT
References: <1179@snjsn1.SJ.ATE.SLB.COM> <451@asterix.drev.dnd.ca> <20731@cup.portal.com> <4430@uhccux.uhcc.hawaii.edu>
Sender: usenet@Apple.COM
Organization: Apple Computer
Lines: 27

In article <4430@uhccux.uhcc.hawaii.edu> mikem@uhccux.UUCP (Mike Morton) writes:
>In article <20731@cup.portal.com> ts@cup.portal.com (Tim W Smith) writes:
>>I would guess that most INITs would not be bothered by
>>having their resource ID changed.
>
>What about folks who get their own code by:
>    GetResource ('INIT', 0);
>so they can then do a DetachResource on themselves?

The preferred method is:

_start:		bra.s		Entry
		dc.l		'INIT'
		dc.w		0
		dc.w		0
Entry:		lea		_start,a0
		_RecoverHandle
		_DetachResource

It's portable and doesn't depend on you knowing what id you were
installed as.


Opinions:  MINE, ALL MINE! (greedy evil chuckle)

David W. Berry		(A/UX Toolbox Engineer)
dwb@apple.com		973-5168@408.MaBell		AppleLink: berry1