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