summaryrefslogtreecommitdiff
path: root/ocaml-binary-annot/otherlibs/unix/unixsupport.h
diff options
context:
space:
mode:
Diffstat (limited to 'ocaml-binary-annot/otherlibs/unix/unixsupport.h')
-rw-r--r--ocaml-binary-annot/otherlibs/unix/unixsupport.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/ocaml-binary-annot/otherlibs/unix/unixsupport.h b/ocaml-binary-annot/otherlibs/unix/unixsupport.h
new file mode 100644
index 0000000000..84179f43f3
--- /dev/null
+++ b/ocaml-binary-annot/otherlibs/unix/unixsupport.h
@@ -0,0 +1,28 @@
+/***********************************************************************/
+/* */
+/* Objective Caml */
+/* */
+/* Xavier Leroy, projet Cristal, INRIA Rocquencourt */
+/* */
+/* Copyright 1996 Institut National de Recherche en Informatique et */
+/* en Automatique. All rights reserved. This file is distributed */
+/* under the terms of the GNU Library General Public License, with */
+/* the special exception on linking described in file ../../LICENSE. */
+/* */
+/***********************************************************************/
+
+/* $Id$ */
+
+#ifdef HAS_UNISTD
+#include <unistd.h>
+#endif
+
+#define Nothing ((value) 0)
+
+extern value unix_error_of_code (int errcode);
+extern void unix_error (int errcode, char * cmdname, value arg) Noreturn;
+extern void uerror (char * cmdname, value arg) Noreturn;
+
+#define UNIX_BUFFER_SIZE 16384
+
+#define DIR_Val(v) *((DIR **) &Field(v, 0))