Article View: comp.sys.amiga.tech
Article #7367Re: Action_Ex_Next
From: markv
Date: Mon, 10 Dec 1990 16:53
Date: Mon, 10 Dec 1990 16:53
28 lines
1924 bytes
1924 bytes
> I have been playing around with device handlers, and have what
> may stupid question. When handling an Examine next, you are passed a
> loc on an object. Is that object a directory always? or can it be
> a file?
Good question. I ran into this problem from the programmers end. I
can tell you that the Amiga drivers ONLY like ExNext on a directory
and ONLY if Examine was called first. You can Examine() a file to get
the FIB, but (with the Amiga drivers) if then call ExNext() you will
crash (maybe only on 2nd ExNext(), can't remember).
> I can invision this working one of two ways... The loc can
> always be a directory, in which case, I have to return the contents
> on object at a time. In this case, if I get a loc on a file, I respond
> with an object_wrong_type error.
Given the behavior of the Amiga drivers, I wouldn't worry about
supporting ExNext() on files, but an error return sure is preferable
to a crash.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mark Gooderum /\ \ | / H a p p y
Academic Computing Services / v\ -- * -- H o l i d a y s ! :-)
University of Kansas /v v\ / | \ ///
/__v___\ Only /// /| __ _
Bitnet: MARKV@UKANVAX || \\\ /// /__| |\/| | | _ /_\ makes it
Internet: markv@kuhub.cc.ukans.edu \/\/ / | | | | |__| / \ possible
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Technical Details
Message-ID:
<27355.2763692b@kuhub.cc.ukans.edu>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!wuarchive!kuhub.cc.ukans.edu!markvReferences:
<Dec.6.09.52.10.1990.3636@elbereth.rutgers.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!wuarchive!kuhub.cc.ukans.edu!markv From: markv@kuhub.cc.ukans.edu Newsgroups: comp.sys.amiga.tech Subject: Re: Action_Ex_Next Message-ID: <27355.2763692b@kuhub.cc.ukans.edu> Date: 10 Dec 90 16:53:31 GMT References: <Dec.6.09.52.10.1990.3636@elbereth.rutgers.edu> Distribution: na Organization: University of Kansas Academic Computing Services Lines: 28