blob: 1ab9793f9f9d6747730e245c32e5020e5f978f97 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
/***********************************************************************/
/* */
/* OCaml */
/* */
/* 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. */
/* */
/***********************************************************************/
#ifndef CAML_UNIXSUPPORT_H
#define CAML_UNIXSUPPORT_H
#ifdef HAS_UNISTD
#include <unistd.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
#define Nothing ((value) 0)
extern value unix_error_of_code (int errcode);
extern int code_of_unix_error (value error);
CAMLnoreturn_start
extern void unix_error (int errcode, char * cmdname, value arg)
CAMLnoreturn_end;
CAMLnoreturn_start
extern void uerror (char * cmdname, value arg)
CAMLnoreturn_end;
extern void caml_unix_check_path(value path, char * cmdname);
#define UNIX_BUFFER_SIZE 65536
#define DIR_Val(v) *((DIR **) &Field(v, 0))
extern char ** cstringvect(value arg, char * cmdname);
#ifdef __cplusplus
}
#endif
#endif /* CAML_UNIXSUPPORT_H */
|