mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-12 22:30:12 +00:00
Describe borg-pwd better, remove dead code.
This commit is contained in:
parent
b5861b06a6
commit
aeca36379f
@ -2,6 +2,8 @@
|
||||
// Author: Paul Menage
|
||||
|
||||
// An NSS module that extends local user account lookup to the file /etc/passwd.borg
|
||||
// (Despite the suggestive name, passwd.borg is just a second file in the standard
|
||||
// passwd format, separated for various reasons. -sts 2015)
|
||||
|
||||
#include <stdio.h>
|
||||
#include <pwd.h>
|
||||
@ -10,17 +12,10 @@
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifdef NSSBORG_STANDALONE
|
||||
#include <pthread.h>
|
||||
static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
|
||||
#define NSSBORG_LOCK pthread_mutex_lock(&mutex)
|
||||
#define NSSBORG_UNLOCK pthread_mutex_unlock(&mutex)
|
||||
#else
|
||||
#include <libc-lock.h>
|
||||
__libc_lock_define_initialized (static, lock)
|
||||
#define NSSBORG_LOCK __libc_lock_lock (lock)
|
||||
#define NSSBORG_UNLOCK __libc_lock_unlock (lock);
|
||||
#endif
|
||||
|
||||
static FILE *f;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user