This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Perl and File Locking


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]