login-proxy-state.c revision dc1bc1685e4a0d58ae7bacaecc282d0ebde2d7da
/* Copyright (c) 2009-2010 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "network.h"
#include "hash.h"
#include "strescape.h"
#include "login-proxy-state.h"
#include <unistd.h>
#include <fcntl.h>
struct login_proxy_state {
struct hash_table *hash;
const char *notify_path;
int notify_fd;
unsigned int notify_fd_broken:1;
};
static unsigned int login_proxy_record_hash(const void *p)
{
const struct login_proxy_record *rec = p;
}
{
return 1;
}
{
struct login_proxy_state *state;
return state;
}
{
}
}
struct login_proxy_record *
{
}
return rec;
}
{
if (state->notify_fd_broken)
return -1;
return -1;
}
return 0;
}
const char *user)
{
unsigned int len;
if (login_proxy_state_notify_open(state) < 0)
return;
}
T_BEGIN {
const char *cmd;
} T_END;
if (ret < 0)
else {
i_error("write(%s) wrote partial update",
state->notify_path);
}
}
}