X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:to:cc:subject; q=dns; s=
	default; b=VHTSGi70DOk+w4VlgbPhPn4q1Pxh1+gb1qC+XUbLbulH4yuTwGhEo
	3IVTGbUdzObtMHBc7nKTYuNlLbzY2Cs4uS6pzlmuCD/m9wDOUFFR29IMfgl2LD/x
	/JVd80qykMSLV59je6Fw6IX1qHGMWoHWK48cHQFq1ldgYkDaTKztQU=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:to:cc:subject; s=default;
	 bh=gPSC2iRs7Zuhg2sEIWOE+YZAWa0=; b=IIkQZj8x9xVR4yOFb2M1NYBKEWEk
	a/fXlEkkxR3eKJrO0Z6Dl3jEpwlE1egc3AI/w7kxBXSRZ71zRuKYh4tDxfMv307G
	+lz6NYC9fDVZN45+QttNC3kxa7reRL6bE2RBsE6XtZH7XKg9w+3KelhkM/sknrgt
	QG/E2RnhrzuxtGI=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=3.6 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,FSL_HELO_NON_FQDN_1,RCVD_IN_PBL,RDNS_DYNAMIC,SPF_SOFTFAIL autolearn=no version=3.3.2
X-HELO: mail2.asahi-net.or.jp
Message-ID: <20130925172435.320@binki>
Date: Wed, 25 Sep 2013 17:24:35 +0900
From: wynfield@gmail.com
To: <cygwin@cygwin.com>
cc:
Subject: Perl and File Locking
X-IsSubscribed: yes


Re: Perl 5, version 14, subversion 2 (v5.14.2) 
    Cygwin: CYGWIN_NT-5.1  1.7.25(0.270/5/3

In Perl (I am attempting to open a file and put an exclusive lock on it to update
it like this:

###########################################

use Fcntl qw( O_RDWR  O_CREAT  O_NONBLOCK  O_EXLOCK );


     sysopen($FH, $fname, O_RDWR | O_CREAT | O_NONBLOCK |  O_EXLOCK, 0664)


############################################

Result on a test run give me the following error message:

"Your vendor has not defined Fcntl macro O_EXLOCK,"

Is it possible to develope perl code on cygwin that can use file locking to update data in a file from within perl?

Thank you.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

