• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
re: open file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re: open file


  • Subject: re: open file
  • From: Alex Reynolds <email@hidden>
  • Date: Fri, 29 Nov 2002 16:30:15 -0500

Message: 10
Date: Fri, 29 Nov 2002 14:23:06 +0000
Subject: Re: open file
From: Chris Ridd <email@hidden>
To: <email@hidden>

...As Jeff says, Unix can do advisory locking of files using flock and fcntl,
but if a program wants to ignore advisory locks it can..

May one ask why one wanted to know this? The last person asking this turned
out to want to prevent multiple users from opening the same file so that one
user couldn't accidentally overwrite changes saved by another user. This
sparked a bit of a discussion here ;-)

I am working on an application that creates, destroys, and archives RAM-based disks. I am now working on the archival part and I don't want to destroy or archive a disk which contains a file that is currently open by another application.

I don't want to spark a flame war, but why would wanting to know how to do this be a bad thing?

-Alex
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: open file
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: Re: When does a Prefs file get created by the NSUserDefaults defaults system?
  • Next by Date: Re: When does a Prefs file get created by the NSUserDefaults defaults system?
  • Previous by thread: Re: open file
  • Next by thread: Re: open file
  • Index(es):
    • Date
    • Thread