ipwd.c revision c8555d0f669c5732c8b9f5bece7b41fc65545f33
/* Copyright (c) 2011-2012-2012 Dovecot authors, see the included COPYING file */
#define _POSIX_PTHREAD_SEMANTICS /* for Solaris */
#include "lib.h"
#include "ipwd.h"
#include <unistd.h>
#define PWBUF_MIN_SIZE 128
#define GRBUF_MIN_SIZE 128
static void pw_init(void)
{
if (pwbuf_size < PWBUF_MIN_SIZE)
}
}
static void gr_init(void)
{
if (grbuf_size < PWBUF_MIN_SIZE)
}
}
void ipwd_deinit(void)
{
}
{
errno = 0;
do {
pw_init();
return 1;
return errno == 0 ? 0 : -1;
}
{
errno = 0;
do {
pw_init();
return 1;
return errno == 0 ? 0 : -1;
}
{
errno = 0;
do {
gr_init();
return 1;
return errno == 0 ? 0 : -1;
}
{
errno = 0;
do {
gr_init();
return 1;
return errno == 0 ? 0 : -1;
}