login-proxy-state.c revision 7cb128dc4cae2a03a742f63ba7afee23c78e3af0
/* Copyright (c) 2009-2015 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "net.h"
#include "ioloop.h"
#include "hash.h"
#include "strescape.h"
#include "fd-set-nonblock.h"
#include "login-proxy-state.h"
#include <unistd.h>
#include <fcntl.h>
struct login_proxy_state {
HASH_TABLE(struct login_proxy_record *,
struct login_proxy_record *) hash;
const char *notify_path;
int notify_fd;
};
static unsigned int
{
}
struct login_proxy_record *rec2)
{
return 1;
}
{
struct login_proxy_state *state;
return state;
}
{
}
}
{
}
struct login_proxy_record *
{
}
return rec;
}
{
(void)login_proxy_state_notify_open(state);
}
{
/* reopen later */
return -1;
}
return -1;
}
return 0;
}
const char *user)
{
unsigned int len;
if (login_proxy_state_notify_open(state) < 0)
return TRUE;
}
T_BEGIN {
const char *cmd;
} T_END;
if (ret < 0)
else {
i_error("write(%s) wrote partial update",
state->notify_path);
}
/* retry sending */
return FALSE;
}
return TRUE;
}
const char *user)
{
}