[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
Re: [ID 20000125.002] Problem in documentation of Fcntl constants
I think you are overreaching.
And Perl has historically expected people to use 1, 2, 4, and 8. It's
only recently that the constants were available.
% perl -le 'use Fcntl ":flock"; print LOCK_SH'
1
% perl -le 'use Fcntl ":flock"; print LOCK_EX'
2
% perl -le 'use Fcntl ":flock"; print LOCK_NB'
4
% perl -le 'use Fcntl ":flock"; print LOCK_UN'
8
Sounds like people are too uptight. Perl is well-defined
as to what flock(FH, 6) means. It has to be, because a lot
of cruddy systems don't have a proper flock(2), so it has
to convert.
--tom
- Follow-Ups from:
-
"Warren Odom" <warren-odom@stenocall.com>
Barrie Slaymaker <barries@slaysys.com>
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]