X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb2%2Flock.c;h=b1799a7e1b9aa0ca9ec5652f573ba74ac7019761;hp=b57c53449466437c7cdd16cdc21ff4c67866b8a9;hb=2b5cb9bd6be4e61870ba7a400d1a9d91c5933371;hpb=a39bf3aca1b60365efaf8b1eeb2b2c58b09ffab6 diff --git a/ccan/tdb2/lock.c b/ccan/tdb2/lock.c index b57c5344..b1799a7e 100644 --- a/ccan/tdb2/lock.c +++ b/ccan/tdb2/lock.c @@ -120,7 +120,7 @@ static int fcntl_unlock(struct tdb_context *tdb, int rw, off_t off, off_t len) } /* a byte range locking function - return 0 on success - this functions locks/unlocks 1 byte at the specified offset. + this functions locks len bytes at the specified offset. note that a len of zero means lock to end of file */