[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



>After a discussion in the perl.misc newsgroup, everyone agreed that the
>operation should be a logical OR, not an ADD.  I'm submitting this as a
>documentation bug, in hopes that this is the appropriate channel to get the
>document changed.  In conjunction with the bug in the definition of the
>constants themselves (reported in my previous Email), this caused me
>tremendous problems.

One "adds in" a bit using bitwise OR, not logical OR.
Note also that flock bits are powers of two, which means integer add
and bitwise OR are the same for the domain involved.

--tom


Follow-Ups from:
"Warren Odom" <warren-odom@stenocall.com>

[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]