version 1.111.2.1, 2004/02/28 03:51:34 |
version 1.111.2.2, 2004/08/19 22:37:32 |
|
|
#include "authfd.h" |
#include "authfd.h" |
#include "compat.h" |
#include "compat.h" |
#include "log.h" |
#include "log.h" |
#include "readpass.h" |
|
#include "misc.h" |
#include "misc.h" |
|
|
#ifdef SMARTCARD |
#ifdef SMARTCARD |
|
|
{ |
{ |
u_int i, old_alloc, new_alloc; |
u_int i, old_alloc, new_alloc; |
|
|
if (fcntl(fd, F_SETFL, O_NONBLOCK) < 0) |
set_nonblock(fd); |
error("fcntl O_NONBLOCK: %s", strerror(errno)); |
|
|
|
if (fd > max_fd) |
if (fd > max_fd) |
max_fd = fd; |
max_fd = fd; |
|
|
} |
} |
|
|
static int |
static int |
prepare_select(fd_set **fdrp, fd_set **fdwp, int *fdl, int *nallocp) |
prepare_select(fd_set **fdrp, fd_set **fdwp, int *fdl, u_int *nallocp) |
{ |
{ |
u_int i, sz; |
u_int i, sz; |
int n = 0; |
int n = 0; |
|
|
main(int ac, char **av) |
main(int ac, char **av) |
{ |
{ |
int c_flag = 0, d_flag = 0, k_flag = 0, s_flag = 0; |
int c_flag = 0, d_flag = 0, k_flag = 0, s_flag = 0; |
int sock, fd, ch, nalloc; |
int sock, fd, ch; |
|
u_int nalloc; |
char *shell, *format, *pidstr, *agentsocket = NULL; |
char *shell, *format, *pidstr, *agentsocket = NULL; |
fd_set *readsetp = NULL, *writesetp = NULL; |
fd_set *readsetp = NULL, *writesetp = NULL; |
struct sockaddr_un sunaddr; |
struct sockaddr_un sunaddr; |