diff options
Diffstat (limited to 'usr.sbin/syslogd/syslogd.h')
-rw-r--r-- | usr.sbin/syslogd/syslogd.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/usr.sbin/syslogd/syslogd.h b/usr.sbin/syslogd/syslogd.h index 567ac8019e6..49b9aa4ee12 100644 --- a/usr.sbin/syslogd/syslogd.h +++ b/usr.sbin/syslogd/syslogd.h @@ -36,10 +36,13 @@ int receive_fd(int); #define MAXFUNIX 21 extern int nfunix; extern char *funixn[MAXFUNIX]; -extern int funix[MAXFUNIX]; -extern int finet; -extern int fklog; - #define dprintf if (Debug) printf extern int Debug; extern int Startup; + +/* fds to poll */ +#define PFD_KLOG 0 /* Offset of /dev/klog entry */ +#define PFD_INET 1 /* Offset of inet socket entry */ +#define PFD_UNIX_0 2 /* Start of Unix socket entries */ +#define N_PFD (PFD_UNIX_0 + MAXFUNIX) /* # of pollfd entries */ +extern struct pollfd pfd[N_PFD]; |