git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1753 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-05-20 20:37:48 +00:00
parent d781a5536f
commit df507197af
3 changed files with 55 additions and 34 deletions

View File

@@ -10,8 +10,7 @@ RCSID("$Id$");
int utmpx_login(char *line, char *user, char *host) { return 0; } int utmpx_login(char *line, char *user, char *host) { return 0; }
#else #else
static static void
void
utmpx_update(struct utmpx *ut, char *line, char *user, char *host) utmpx_update(struct utmpx *ut, char *line, char *user, char *host)
{ {
struct timeval tmp; struct timeval tmp;

View File

@@ -66,17 +66,6 @@
#define TIOCPKT_DOSTOP 0x20 #define TIOCPKT_DOSTOP 0x20
#endif #endif
#ifndef FD_SET
#ifndef HAVE_fd_set
typedef struct fd_set { int fds_bits[1]; } fd_set;
#endif
#define FD_SET(n, p) ((p)->fds_bits[0] |= (1<<(n)))
#define FD_CLR(n, p) ((p)->fds_bits[0] &= ~(1<<(n)))
#define FD_ISSET(n, p) ((p)->fds_bits[0] & (1<<(n)))
#define FD_ZERO(p) ((p)->fds_bits[0] = 0)
#endif /* FD_SET */
/* /*
* I/O data buffers defines * I/O data buffers defines
*/ */

View File

@@ -41,10 +41,16 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h> #include <sys/types.h>
#endif
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h> #include <sys/param.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h> #include <sys/socket.h>
#endif
#ifdef TIME_WITH_SYS_TIME #ifdef TIME_WITH_SYS_TIME
#include <sys/time.h> #include <sys/time.h>
#include <time.h> #include <time.h>
@@ -53,15 +59,24 @@
#else #else
#include <time.h> #include <time.h>
#endif #endif
#ifdef HAVE_SYS_RESOURCE_H #ifdef HAVE_SYS_RESOURCE_H
#include <sys/resource.h> #include <sys/resource.h>
#endif /* HAVE_SYS_RESOURCE_H */ #endif /* HAVE_SYS_RESOURCE_H */
#ifndef _CRAY
#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h> #include <sys/wait.h>
#endif /* CRAY */ #endif
#ifdef HAVE_FCNTL_H
#include <fcntl.h> #include <fcntl.h>
#endif
#ifdef HAVE_SYS_FILE_H
#include <sys/file.h> #include <sys/file.h>
#endif
#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h> #include <sys/stat.h>
#endif
/* including both <sys/ioctl.h> and <termios.h> in SunOS 4 generates a /* including both <sys/ioctl.h> and <termios.h> in SunOS 4 generates a
lot of warnings */ lot of warnings */
@@ -73,18 +88,20 @@
#include <sys/filio.h> #include <sys/filio.h>
#endif #endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h> #include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h> #include <arpa/inet.h>
#endif
#include <signal.h> #include <signal.h>
#include <errno.h> #include <errno.h>
#ifdef HAVE_NETDB_H
#include <netdb.h> #include <netdb.h>
#include <syslog.h>
#ifndef LOG_DAEMON
#define LOG_DAEMON 0
#endif #endif
#ifndef LOG_ODELAY #ifdef HAVE_SYSLOG_H
#define LOG_ODELAY 0 #include <syslog.h>
#endif #endif
#include <ctype.h> #include <ctype.h>
@@ -100,7 +117,9 @@
#include "defs.h" #include "defs.h"
#ifdef HAVE_ARPA_TELNET_H
#include <arpa/telnet.h> #include <arpa/telnet.h>
#endif
#ifndef _POSIX_VDISABLE #ifndef _POSIX_VDISABLE
# ifdef VDISABLE # ifdef VDISABLE
@@ -111,27 +130,42 @@
#endif #endif
#ifdef _CRAY #ifdef HAVE_SYS_PTY_H
# ifdef CRAY1 #include <sys/pty.h>
# include <sys/pty.h> #endif
# ifndef FD_ZERO #ifdef HAVE_SYS_SELECT_H
# include <sys/select.h> #include <sys/select.h>
# endif /* FD_ZERO */ #endif
# endif /* CRAY1 */
#include <memory.h> #ifdef HAVE_SYS_PTYIO_H
#endif /* _CRAY */
#ifdef __hpux
#include <sys/ptyio.h> #include <sys/ptyio.h>
#endif #endif
#ifdef HAVE_UNAME #ifdef HAVE_SYS_UTSNAME_H
#include <sys/utsname.h> #include <sys/utsname.h>
#endif #endif
#include "ext.h" #include "ext.h"
#include "pathnames.h"
#ifdef HAVE_PATHS_H
#include <paths.h>
#endif
/* Don't use the system login, use our version instead */
#undef _PATH_LOGIN
#define _PATH_LOGIN BINDIR "/login"
/* fallbacks */
#ifndef _PATH_DEV
#define _PATH_DEV "/dev/"
#endif
#ifndef _PATH_TTY
#define _PATH_TTY "/dev/tty"
#endif /* _PATH_TTY */
#include <protos.h> #include <protos.h>
#ifdef SOCKS #ifdef SOCKS
@@ -161,7 +195,6 @@
/* other external variables */ /* other external variables */
extern char **environ; extern char **environ;
extern int errno;
/* prototypes */ /* prototypes */