home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2032 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  3.5 KB

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