version 1.16, 2009/10/27 23:59:49 |
version 1.17, 2015/11/05 22:20:11 |
|
|
*/ |
*/ |
|
|
#include <sys/types.h> |
#include <sys/types.h> |
|
#include <sys/stat.h> |
#include <sys/uio.h> |
#include <sys/uio.h> |
#include <signal.h> |
#include <signal.h> |
#include <fcntl.h> |
#include <fcntl.h> |
|
|
#include <stdio.h> |
#include <stdio.h> |
#include <string.h> |
#include <string.h> |
#include <stdlib.h> |
#include <stdlib.h> |
#include <sys/stat.h> |
#include <err.h> |
|
|
char *ttymsg(struct iovec *, int, char *, int); |
char *ttymsg(struct iovec *, int, char *, int); |
|
|
|
|
(void) close(fd); |
(void) close(fd); |
return (NULL); |
return (NULL); |
} |
} |
|
|
|
if (pledge("stdio", NULL) == -1) |
|
err(1, "pledge"); |
|
|
forked++; |
forked++; |
/* wait at most tmout seconds */ |
/* wait at most tmout seconds */ |
(void) signal(SIGALRM, SIG_DFL); |
(void) signal(SIGALRM, SIG_DFL); |