apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Stoddard" <b...@wstoddard.com>
Subject RE: [PATCH] Support APR_APPEND (O_APPEND) with apr_file_write on Windows
Date Fri, 25 Oct 2002 18:30:02 GMT

>
> You can't flock SHARED... that denies everyone (including yourself)
> write access to the file.  Please review the FileLockEx docs.
>

I did. APR_FLOCK_EXCLUSIVE maps to LOCKFILE_EXCLUSIVE_LOCK which locks out
all reads and writes. APR_FLOCK_SHARED is what you are calling
APR_FLOCK_WRITE (which does not exist) and allows multiple readers but only
one writer.

Bill


Mime
View raw message