1996-11-02 10:04:50 -08:00
|
|
|
/***********************************************************************/
|
|
|
|
/* */
|
|
|
|
/* Objective Caml */
|
|
|
|
/* */
|
2000-04-05 11:30:22 -07:00
|
|
|
/* Damien Doligez, projet Moscova, INRIA Rocquencourt */
|
1996-11-02 10:04:50 -08:00
|
|
|
/* */
|
2000-04-05 11:30:22 -07:00
|
|
|
/* Copyright 1999 Institut National de Recherche en Informatique et */
|
1999-11-17 10:59:06 -08:00
|
|
|
/* en Automatique. All rights reserved. This file is distributed */
|
2001-12-07 05:41:02 -08:00
|
|
|
/* under the terms of the GNU Library General Public License, with */
|
|
|
|
/* the special exception on linking described in file ../../LICENSE. */
|
1996-11-02 10:04:50 -08:00
|
|
|
/* */
|
|
|
|
/***********************************************************************/
|
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
2000-04-05 11:30:22 -07:00
|
|
|
#define POSIX_SIGNALS
|
1996-11-02 10:04:50 -08:00
|
|
|
#define HAS_MEMMOVE
|
|
|
|
#define HAS_STRERROR
|
2000-04-05 11:30:22 -07:00
|
|
|
#define HAS_SOCKETS
|
|
|
|
#define HAS_SOCKLEN_T
|
|
|
|
#define HAS_UNISTD
|
|
|
|
#define HAS_DIRENT
|
|
|
|
#define HAS_REWINDDIR
|
1996-11-02 10:04:50 -08:00
|
|
|
#define HAS_GETCWD
|
2000-04-05 11:30:22 -07:00
|
|
|
#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 <unistd.h>
|
|
|
|
#endif
|
1996-11-02 10:04:50 -08:00
|
|
|
|
2000-04-05 11:30:22 -07:00
|
|
|
#define Nothing ((value) 0)
|
1998-07-04 09:51:51 -07:00
|
|
|
|
2000-04-05 11:30:22 -07:00
|
|
|
extern void unix_error (int errcode, char * cmdname, value arg) Noreturn;
|
|
|
|
extern void uerror (char * cmdname, value arg) Noreturn;
|
2000-03-01 05:01:44 -08:00
|
|
|
|
2000-04-05 11:30:22 -07:00
|
|
|
#define UNIX_BUFFER_SIZE 2048
|