🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: AmigaDOS questions!!

#6124
From: Mike Oliphant
Date: Fri, 26 Oct 1990 14:28
28 lines
1743 bytes
In article <15327@cbmvax.commodore.com> jesup@cbmvax.commodore.com (Randell Jesup) writes:

>	Where is the lock coming from?  When was the original Examine() done?
>(You of course know that you must Examine() a directory lock before
>ExNext()ing...)  Every time you do Examine(), you reset and ExNext will
>take you through all the files in the directory.  Note that changing a
>directory while examining it will have, at best, "funny" effects.  Deleting
>files causes the worst problems, since the file being examined with ExNext
>might be deleted, leaving no way to find the next file in the directory, or
>worse yet, it might have been reallocated for a new file header in a different
>directory.  In the ram disk, it might end up referencing deallocated memory,
>leading to a guru or other very bad result.

What is the "accepted" way of scanning through a directory using Examine(),
ExNext() while deleting the files as you go?  Is there an alternative to
having to restart the scan each time you delete a file?

--
Mike Oliphant		    UUCP: alberta!herald!telepro!oliphant
			Internet: oliphant@telepro.uucp
			 FidoNet: (1:140/91) - ZMH only
*
* Call TelePro, the development system for DIALOG Professional
*
*   Phone: +1 306 249 2352	2400/9600/14400 bps HST
*	   +1 306 652 2084	300/1200/2400 bps
* FidoNet: (1:140/90)
*
Technical Details
Message-ID: <oliphant.4664@telepro.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!zaphod.mps.ohio-state.edu!van-bc!ubc-cs!alberta!herald.usask.ca!telepro!oliphant
References: <1990Oct11.212541.18365@hoss.unl.edu> <15327@cbmvax.commodore.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!zaphod.mps.ohio-state.edu!van-bc!ubc-cs!alberta!herald.usask.ca!telepro!oliphant
From: oliphant@telepro.UUCP (Mike Oliphant)
Newsgroups: comp.sys.amiga.tech
Subject: Re:  AmigaDOS questions!!
Message-ID: <oliphant.4664@telepro.UUCP>
Date: 26 Oct 90 14:28:54 GMT
References: <1990Oct11.212541.18365@hoss.unl.edu> <15327@cbmvax.commodore.com>
Lines: 28