Article View: comp.sys.amiga.tech
Article #6073FileInfoBlock
From: Phil Kernick
Date: Fri, 26 Oct 1990 01:27
Date: Fri, 26 Oct 1990 01:27
31 lines
1489 bytes
1489 bytes
If I use the following stub of code:
getinfo()
{
BPTR fred;
struct FileInfoBlock *fib;
lock = Lock("fred", ACCESS_READ);
Examine(lock, fib);
}
I can get information on the file protection from fib->fib_Protection and
date from fib->fib_FileDate (this is from my memory, ie don't tell me that
I have the structure members wrong :-), but how can I set them?
I wan't to know how the programs "protect" from WB 1.3.2 and "touch"
from the SAS C 5.05 work. It would seem that they simply change the
fields that they want in the fib and then write it back. How is this
done? I have the RKM but it is *very* old (only deals with KS 1.1).
Thanks,
Phil.
--
Phil Kernick EMail: phil@adam.adelaide.edu.au
Departmental Engineer Phone: +618 228 5914
Dept. of Psychology Fax: +618 224 0464
University of Adelaide Mail: GPO Box 498 Adelaide SA 5001
Technical Details
Message-ID:
<phil.656904446@adam.adelaide.edu.au>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!munnari.oz.au!sirius.ucs.adelaide.edu.au!adam.adelaide.edu.au!philShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!munnari.oz.au!sirius.ucs.adelaide.edu.au!adam.adelaide.edu.au!phil From: phil@adam.adelaide.edu.au (Phil Kernick) Newsgroups: comp.sys.amiga.tech Subject: FileInfoBlock Summary: How do I write a FileInfoBlock Keywords: FileInfoBlock write protection date Message-ID: <phil.656904446@adam.adelaide.edu.au> Date: 26 Oct 90 01:27:26 GMT Sender: news@ucs.adelaide.edu.au Distribution: comp Organization: University of Adelaide Lines: 31 Nntp-Posting-Host: adam.adelaide.edu.au