]> git.sur5r.net Git - openldap/commitdiff
Add generic headers
authorKurt Zeilenga <kurt@openldap.org>
Tue, 20 Oct 1998 23:40:36 +0000 (23:40 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 20 Oct 1998 23:40:36 +0000 (23:40 +0000)
include/ac/krb.h [new file with mode: 0644]
include/ac/syslog.h [new file with mode: 0644]
include/ac/termios.h [new file with mode: 0644]

diff --git a/include/ac/krb.h b/include/ac/krb.h
new file mode 100644 (file)
index 0000000..d371350
--- /dev/null
@@ -0,0 +1,21 @@
+/* Generic krb.h */
+
+#ifndef _AC_KRB_H
+#define _AC_KRB_H
+
+#if defined( HAVE_KERBEROS )
+
+#if defined( HAVE_KERBEROSIV_KRB_H )
+#include <kerberosIV/krb.h>
+#elif defined( HAVE_KRB_H )
+#include <krb.h>
+#endif
+
+#if defined( HAVE_KERBEROSIV_DES_H )
+#include <kerberosIV/des.h>
+#elif defined( HAVE_DES_H )
+#include <des.h>
+#endif
+
+#endif /* HAVE_KERBEROS */
+#endif /* _AC_KRB_H */
diff --git a/include/ac/syslog.h b/include/ac/syslog.h
new file mode 100644 (file)
index 0000000..76f8b35
--- /dev/null
@@ -0,0 +1,20 @@
+/*
+ * Generic syslog.h
+ */
+#ifndef _AC_SYSLOG_H_
+#define _AC_SYSLOG_H_
+
+#ifdef HAVE_SYSLOG_H
+#include <syslog.h>
+
+#if defined( LOG_NDELAY )
+#      define OPENLOG_OPTIONS ( LOG_PID | LOG_NDELAY )
+#elif defined( LOG_NOWAIT )
+#      define OPENLOG_OPTIONS ( LOG_PID | LOG_NOWAIT )
+#else
+#      define OPENLOG_OPTIONS ( LOG_PID )
+#endif
+
+#endif /* syslog.h */
+
+#endif /* _AC_SYSLOG_H_ */
diff --git a/include/ac/termios.h b/include/ac/termios.h
new file mode 100644 (file)
index 0000000..f1d2118
--- /dev/null
@@ -0,0 +1,32 @@
+/* Generic termios.h */
+
+#ifndef _AC_TERMIOS_H
+#define _AC_TERMIOS_H
+
+#ifdef HAVE_SGTTY_H
+#include <sgtty.h>
+
+#ifdef HAVE_SYS_IOCTL_H
+#include <sys/ioctl.h>
+#endif
+
+#define TERMIO_TYPE    struct sgttyb
+#define TERMFLAG_TYPE  int
+#define GETATTR( fd, tiop )    ioctl((fd), TIOCGETP, (caddr_t)(tiop))
+#define SETATTR( fd, tiop )    ioctl((fd), TIOCSETP, (caddr_t)(tiop))
+#define GETFLAGS( tio )     ((tio).sg_flags)
+#define SETFLAGS( tio, flags )  ((tio).sg_flags = (flags))
+
+#elif HAVE_TERMIOS_H
+#include <termios.h>
+
+#define TERMIO_TYPE    struct termios
+#define TERMFLAG_TYPE  tcflag_t
+#define GETATTR( fd, tiop )    tcgetattr((fd), (tiop))
+#define SETATTR( fd, tiop )    tcsetattr((fd), TCSANOW /* 0 */, (tiop))
+#define GETFLAGS( tio )                ((tio).c_lflag)
+#define SETFLAGS( tio, flags ) ((tio).c_lflag = (flags))
+
+#endif /* HAVE_TERMIOS_H */
+
+#endif /* _AC_TERMIOS_H */