Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lukas However
OpenLDAP
Commits
5c931bdf
Commit
5c931bdf
authored
26 years ago
by
Ben Collins
Browse files
Options
Downloads
Patches
Plain Diff
If we are using lutil_lock functions then define NEED_SIMPLE_LOCKING or
liblutil/lockf.c wont be compiled.
parent
3f6dc76a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/ac/unistd.h
+1
-0
1 addition, 0 deletions
include/ac/unistd.h
libraries/liblutil/lockf.c
+3
-3
3 additions, 3 deletions
libraries/liblutil/lockf.c
with
4 additions
and
3 deletions
include/ac/unistd.h
+
1
−
0
View file @
5c931bdf
...
...
@@ -85,6 +85,7 @@ extern char* getpass LDAP_P((const char *getpass));
#if !defined( ldap_lockf )
/* use some simplistic locking method */
# define NEED_SIMPLE_LOCKING
# include <lutil_lockf.h>
# define ldap_lockf(x) lutil_lockf(x)
# define ldap_unlockf(x) lutil_unlockf(x)
...
...
This diff is collapsed.
Click to expand it.
libraries/liblutil/lockf.c
+
3
−
3
View file @
5c931bdf
...
...
@@ -7,14 +7,14 @@
* license is available at http://www.OpenLDAP.org/license.html or
* in file LICENSE in the top-level directory of the distribution.
*/
/*
F
ile locking method
s
*/
/*
Simple f
ile locking method
for systems without
*/
#include
"portable.h"
#include
<stdio.h>
#include
<ac/unistd.h>
#if
def
ined(NEED_FCNTL
_LOCKING
)
#ifdef
NEED_SIMPLE
_LOCKING
int
lutil_lockf
(
FILE
*
fp
)
{
struct
flock
file_lock
;
...
...
@@ -36,4 +36,4 @@ int lutil_unlockf ( FILE *fp ) {
return
(
fcntl
(
fileno
(
fp
),
F_SETLK
,
&
file_lock
)
);
}
#endif
/*
!HAVE_FI
LE_LOCKING */
#endif
/*
NEED_SIMP
LE_LOCKING */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment