]> git.sur5r.net Git - openldap/commit
Update lutil_lockf (aka: ldap_lockf) to hide implementation in
authorKurt Zeilenga <kurt@openldap.org>
Sun, 28 Mar 1999 21:39:02 +0000 (21:39 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sun, 28 Mar 1999 21:39:02 +0000 (21:39 +0000)
commit7adc0a65d0a3c10daca4352002baadeb76afc7e5
tree34e34497022c5ae3e1c79c73875acf76c3dd86a9
parenta45bbea505288849f3bc01f19a828143d9679967
Update lutil_lockf (aka: ldap_lockf) to hide implementation in
library, not header.  Eliminate need for <ac/unistd.h> to sometimes
include <fcntl.h> and/or <sys/file.h>.  Change lock API to expect
fd not FILE*.  Allows wider use and eliminates requirement that
lutil_lockf.h depencency on stdio.h.
Implemented lockf, fcntl, and flock locking in lutil/lockf.c.
Additional implementations (including no-op) may be needed.
Update slapd/lock.c and slurpd/lock.c to use new API.
include/ac/unistd.h
include/lutil_lockf.h
libraries/liblutil/lockf.c
servers/slapd/lock.c
servers/slurpd/lock.c