summaryrefslogtreecommitdiff
path: root/system.h
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2006-08-23 21:50:29 +0000
committerRuss Allbery <rra@stanford.edu>2006-08-23 21:50:29 +0000
commit06f652577d54e4a2b7d2724a1f9201e220d78159 (patch)
tree3861fb3c601ff240d3819112c37a77e2225b71d2 /system.h
parent4718fc31896a0cc73ce93647b02bca4fb37754bd (diff)
Add a test infrastructure and a very basic test for the client
functionality so far.
Diffstat (limited to 'system.h')
-rw-r--r--system.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/system.h b/system.h
new file mode 100644
index 0000000..4a8023e
--- /dev/null
+++ b/system.h
@@ -0,0 +1,43 @@
+/* $Id: clibrary.h 7121 2005-01-06 00:40:37Z rra $
+**
+** Declarations of routines and variables in the C library. Including this
+** file is the equivalent of including all of the following headers,
+** portably:
+**
+** #include <sys/types.h>
+** #include <stdarg.h>
+** #include <stdio.h>
+** #include <stdlib.h>
+** #include <stddef.h>
+** #include <string.h>
+** #include <unistd.h>
+**
+** Missing functions are provided via #define or prototyped if available from
+** the util helper library. Also provides some standard #defines.
+*/
+
+#ifndef SYSTEM_H
+#define SYSTEM_H 1
+
+/* Make sure we have our configuration information. */
+#include <config.h>
+
+/* A set of standard ANSI C headers. We don't care about pre-ANSI systems. */
+#include <stdarg.h>
+#include <stddef.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <sys/types.h>
+#include <string.h>
+#include <unistd.h>
+
+/* __attribute__ is available in gcc 2.5 and later, but only with gcc 2.7
+ could you use the __format__ form of the attributes, which is what we use
+ (to avoid confusion with other macros). */
+#ifndef __attribute__
+# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7)
+# define __attribute__(spec) /* empty */
+# endif
+#endif
+
+#endif /* !CLIBRARY_H */