summaryrefslogtreecommitdiff
path: root/Build/source/libs/obsdcompat/includes.h
diff options
context:
space:
mode:
authorMartin Schröder <martin@oneiros.de>2006-12-25 23:52:20 +0000
committerMartin Schröder <martin@oneiros.de>2006-12-25 23:52:20 +0000
commit57379ff68397e601ba3be4ef7f81f30629a43de9 (patch)
treef2bbb30094845b5498de3ca8c989325743df45d6 /Build/source/libs/obsdcompat/includes.h
parentcb7332d3cba75e7e53f19e04d14f1b0e006959eb (diff)
Library with OpenBSD-inspired safe string functions, used by pdftex 1.40
git-svn-id: svn://tug.org/texlive/trunk@2920 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/obsdcompat/includes.h')
-rw-r--r--Build/source/libs/obsdcompat/includes.h73
1 files changed, 73 insertions, 0 deletions
diff --git a/Build/source/libs/obsdcompat/includes.h b/Build/source/libs/obsdcompat/includes.h
new file mode 100644
index 00000000000..32e2b64c2e2
--- /dev/null
+++ b/Build/source/libs/obsdcompat/includes.h
@@ -0,0 +1,73 @@
+/* $OpenBSD: includes.h,v 1.22 2006/01/01 08:59:27 stevesk Exp $ */
+
+/*
+ * Author: Tatu Ylonen <ylo@cs.hut.fi>
+ * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
+ * All rights reserved
+ * This file includes most of the needed system headers.
+ *
+ * As far as I am concerned, the code I have written for this software
+ * can be used freely for any purpose. Any derived versions of this
+ * software must be clearly marked as such, and if the derived work is
+ * incompatible with the protocol description in the RFC file, it must be
+ * called by a name other than "ssh" or "Secure Shell".
+ *
+ * ---------------------------------------------------------------------------
+ *
+ * Modified (butchered) 2006 by Martin Schröder for pdfTeX
+ *
+ */
+
+#ifndef INCLUDES_H
+#define INCLUDES_H
+
+#define RCSID(msg) \
+static /**/const char *const rcsid[] = { (const char *)rcsid, "\100(#)" msg }
+
+#include "obsdcompat/config.h"
+
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE /* activate extra prototypes for glibc */
+#endif
+
+#include <stdarg.h>
+#include <stdio.h>
+#include <ctype.h>
+#include <errno.h>
+#include <fcntl.h> /* For O_NONBLOCK */
+#include <stdlib.h>
+#include <string.h>
+#include <stdarg.h>
+#include <stddef.h>
+
+#ifdef HAVE_LIMITS_H
+# include <limits.h> /* For PATH_MAX */
+#endif
+#ifdef HAVE_ENDIAN_H
+# include <endian.h>
+#endif
+
+/*
+ *-*-nto-qnx needs these headers for strcasecmp and LASTLOG_FILE respectively
+ */
+#ifdef HAVE_STRINGS_H
+# include <strings.h>
+#endif
+
+#include <sys/types.h>
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
+#ifdef HAVE_SYS_BITYPES_H
+# include <sys/bitypes.h> /* For u_intXX_t */
+#endif
+#ifdef HAVE_SYS_CDEFS_H
+# include <sys/cdefs.h> /* For __P() */
+#endif
+#ifdef HAVE_SYS_SYSMACROS_H
+# include <sys/sysmacros.h> /* For MIN, MAX, etc */
+#endif
+
+#include "defines.h"
+
+#endif /* INCLUDES_H */