home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / amiga / programm / 12606 < prev    next >
Encoding:
Internet Message Format  |  1992-08-23  |  824 b 

  1. Path: sparky!uunet!decwrl!csus.edu!netcom.com!netcomsv!terapin!paulk
  2. From: paulk@terapin.com (Paul Kienitz)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: compress for amiga-FOUND! Where is uncompress?
  5. References: <mbs.0vkh@adastra.cvl.va.us>
  6. Message-ID: <paulk.18lc@terapin.com>
  7. Date: 23 Aug 92 16:00:47 PST
  8. Organization: BBS
  9. Lines: 12
  10.  
  11. > compress.c tries to do the unlink() while the file is still open.
  12. > AmigaDOS declares this function illegal (object is in use, is the
  13. > specific error).
  14. > Later versions of ixemul.library try to deal with this more
  15. > intelligently (if the file is open, it closes it under many
  16. > circumstances).
  17.  
  18. Wouldn't it be safer and more Unix-like to have unlink() set a flag
  19. which would cause close() to delete the file?
  20.  
  21. Hm, you'd have to somehow prevent other things from opening it.
  22.