From 3f6a493b87dcfb9b49e22313fd5f7c321c3f77d1 Mon Sep 17 00:00:00 2001 From: Damien Doligez Date: Wed, 5 Apr 2000 18:30:22 +0000 Subject: MacOS: ajout macosunix; portage bigarray et systhreads; tabs git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3042 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02 --- otherlibs/macosunix/unixsupport.h | 42 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 otherlibs/macosunix/unixsupport.h (limited to 'otherlibs/macosunix/unixsupport.h') diff --git a/otherlibs/macosunix/unixsupport.h b/otherlibs/macosunix/unixsupport.h new file mode 100644 index 000000000..29545a859 --- /dev/null +++ b/otherlibs/macosunix/unixsupport.h @@ -0,0 +1,42 @@ +/***********************************************************************/ +/* */ +/* Objective Caml */ +/* */ +/* Damien Doligez, projet Moscova, INRIA Rocquencourt */ +/* */ +/* Copyright 1999 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. */ +/* */ +/***********************************************************************/ + +/* $Id$ */ + +#define POSIX_SIGNALS +#define HAS_MEMMOVE +#define HAS_STRERROR +#define HAS_SOCKETS +#define HAS_SOCKLEN_T +#define HAS_UNISTD +#define HAS_DIRENT +#define HAS_REWINDDIR +#define HAS_GETCWD +#define HAS_UTIME +#define HAS_DUP2 +#define HAS_TRUNCATE +#define HAS_SELECT +#define HAS_SYMLINK +#define HAS_GETHOSTNAME +#define HAS_GETTIMEOFDAY +#define HAS_MKTIME + +#ifdef HAS_UNISTD +#include +#endif + +#define Nothing ((value) 0) + +extern void unix_error (int errcode, char * cmdname, value arg) Noreturn; +extern void uerror (char * cmdname, value arg) Noreturn; + +#define UNIX_BUFFER_SIZE 2048 -- cgit v1.2.3-70-g09d2