Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Subject: Locking file in cygwin Date: Tue, 26 Apr 2005 09:21:40 -0400 Message-ID: <6BD989BB73712F41B1EDD1B8A32EA4C385F3DC@EXCHANGEVS1.comtechtel.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Vladislav Grinchenko" To: X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j3QDWv6c007806 Hi, I am new to cygwin (and win32 programming in general), so if the answer to my question is covered somewhere else, please point me in the right direction. While porting one of my c++ libraries to cygwin, I stumbled over this: Calling fcntl (fd, F_GETLK, ...) returns ENOSYS (function not implemented). I searched the archive and couldn't find anything appropriate to explain why. In short, this happens when I try to handle PID file locking to preclude multiple instances of the same program simultaneously running on a host. If there is a more preferable way of handling this task in cygwin/win32, I wouldn't mind implementing it. One more thing, I don't need backward compatability if that is the case. My target platforms are WinXP and Win2000. Thanks in advance, -Vlad -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/