home *** CD-ROM | disk | FTP | other *** search
- Path: informatik.tu-muenchen.de!fischerj
- From: fischerj@Informatik.TU-Muenchen.DE (Juergen "Rally" Fischer)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: File system access
- Date: 26 Jan 1996 02:59:36 GMT
- Organization: Technische Universitaet Muenchen, Germany
- Distribution: world
- Message-ID: <4e9g2o$ron@sunsystem5.informatik.tu-muenchen.de>
- References: <1996Jan12.145401.22978@ludens> <2369.6586T119T2041@wvlink.mpl.com>
- NNTP-Posting-Host: hphalle5.informatik.tu-muenchen.de
- X-Newsreader: TIN [version 1.2 PL2]
-
- Gene Heskett (gene_heskett@wvlink.mpl.com) wrote:
- : g> cs321702@student.uq.edu.au (Rod Jackson) wrote:
-
- : >> Does anyone know of a way to access a file that is already 'used' by
- : >> another program. [...]
-
- : g> This must be a sort of hack.
- : g> As I know SHARED and EXCLUSIVE file accesses have been created because
- : g> of safety considerations. Just imagine that you let two programs write
- : g> into the same file at the same time... And guess what the result will
- : g> be. Is this rule really worth hacking?
-
- : g> Genie
-
- : Gene Heskett replies:
-
- : Unforch, not that I know of in AmigaDos. Which BTW, I *do* consider to be a
- : semi-major shortcoming of it. I have, sitting on the next table, a machine
- : which can run its assembler which is generating a listing of an assembly in
- : progress. I can go to another window or monitor (doesn't matter) and start
- : the text lister *on that same listing file*, it will catch up with the
- : assembler and play follow the leader to the end of the listing.
-
- my amiga is currently typing same file in 2 shells. So what ?
- only writing will cause a lock.
-
- : I can also copy a transient file used by the compiler to another filename
- : so that I can see if the compiler is doing what I told it to, without
- : bothering the compiler. Since I'm in the process of copying said file,
- : when the compiler attempts to delete it cause its done with it, the delete
- : only reduces the link count, which since I have it open is still one. When
- : I close out the copy, the opsys finds the link count is now zero and
- : deletes it. The compilers progress is *not* held till my copy is done.
-
- well, amiga won't lock. The message "in use" is given when trying to delete
- the currently read file, but you could make a "retry delete until it's
- unlocked" of it.
-
- : These are *very handy* functions IMHO, comparable to the invention of
- : sliced bread or bottles to put beer in!
- ;)
-
- : Once in 50 blue moons, the list maker will write to exactly the end of a
- : sector, dump it to disk, and release the "lock" *on that sector* without
- : first issueing a lock on the next sector. The lister then will fall by the
- : generator, see an apparent eof and exit. Normally it just sleeps till the
- : lock on the next sector it wants to read has been released.
-
- : I'll leave it to you to guess which machine and operating system that is.
-
- Talking about big inventions, you don't talk about Amiga ?
- Can't be, paradoxon :)
-
- : Hint: Not PC or Mac. Normally shipped with Motorola cpu, often replaced
- : with a Hitachi. Production and sales discontinued for 9 years now.
-
- ??? 9 years. mhmhm 96-9=87. 87 ? with motorola ? never heard of it.
- what is it ?
-
- : Cheers
-
- : /* Gene Heskett | These opinions are NOT to be */
- : /* CE @ WDTV Weston/Clarksburg WV | confused with the official */
- : /* <gene_heskett@wvlink.mpl.com> | WDTV managment views */
- : #include <std.disclaimer>
- ------------------------------------------------------------------------
- fischerj@Informatik.TU-Muenchen.DE (Juergen "Rally" Fischer) =:)
-
-
-