Source file hermetic.ml

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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
(* Generated by lib/gen from lib/gen/policy.ml and the standard library of
   OCaml 5.5.2. Do not edit. *)

type ambient = Hermetic__Refused.ambient
type unsafe = Hermetic__Refused.unsafe
type unreviewed = Hermetic__Refused.unreviewed

module Unsafe = Stdlib
module Arg = Hermetic__Arg
module Array = Hermetic__Array
module ArrayLabels = Hermetic__ArrayLabels
module Bigarray = Hermetic__Bigarray
module Bytes = Hermetic__Bytes
module BytesLabels = Hermetic__BytesLabels
module Char = Hermetic__Char
module Digest = Hermetic__Digest
module Domain = Hermetic__Domain
module Dynarray = Hermetic__Dynarray
module Ephemeron = Hermetic__Ephemeron
module Filename = Hermetic__Filename
module Float = Hermetic__Float
module Format = Hermetic__Format
module Gc = Hermetic__Gc
module Hashtbl = Hermetic__Hashtbl
module Iarray = Hermetic__Iarray
module In_channel = Hermetic__In_channel
module Lexing = Hermetic__Lexing
module Marshal = Hermetic__Marshal
module MoreLabels = Hermetic__MoreLabels
module Obj = Hermetic__Obj
module Out_channel = Hermetic__Out_channel
module Parsing = Hermetic__Parsing
module Printexc = Hermetic__Printexc
module Printf = Hermetic__Printf
module Random = Hermetic__Random
module Scanf = Hermetic__Scanf
module StdLabels = Hermetic__StdLabels
module String = Hermetic__String
module StringLabels = Hermetic__StringLabels
module Sys = Hermetic__Sys
module Uchar = Hermetic__Uchar
module CamlinternalFormat = Hermetic__CamlinternalFormat
module CamlinternalFormatBasics = Hermetic__CamlinternalFormatBasics
module CamlinternalLazy = Hermetic__CamlinternalLazy
module CamlinternalMod = Hermetic__CamlinternalMod
module CamlinternalOO = Hermetic__CamlinternalOO
module Unix = Hermetic__Unix
module UnixLabels = Hermetic__UnixLabels
module Thread = Hermetic__Thread
let stdin = Hermetic__Refused.ambient
let stdout = Hermetic__Refused.ambient
let stderr = Hermetic__Refused.ambient
let print_char = Hermetic__Refused.ambient
let print_string = Hermetic__Refused.ambient
let print_bytes = Hermetic__Refused.ambient
let print_int = Hermetic__Refused.ambient
let print_float = Hermetic__Refused.ambient
let print_endline = Hermetic__Refused.ambient
let print_newline = Hermetic__Refused.ambient
let prerr_char = Hermetic__Refused.ambient
let prerr_string = Hermetic__Refused.ambient
let prerr_bytes = Hermetic__Refused.ambient
let prerr_int = Hermetic__Refused.ambient
let prerr_float = Hermetic__Refused.ambient
let prerr_endline = Hermetic__Refused.ambient
let prerr_newline = Hermetic__Refused.ambient
let read_line = Hermetic__Refused.ambient
let read_int_opt = Hermetic__Refused.ambient
let read_int = Hermetic__Refused.ambient
let read_float_opt = Hermetic__Refused.ambient
let read_float = Hermetic__Refused.ambient
let open_out = Hermetic__Refused.ambient
let open_out_bin = Hermetic__Refused.ambient
let open_out_gen = Hermetic__Refused.ambient
let flush_all = Hermetic__Refused.ambient
let open_in = Hermetic__Refused.ambient
let open_in_bin = Hermetic__Refused.ambient
let open_in_gen = Hermetic__Refused.ambient
let input_value = Hermetic__Refused.unsafe
let unsafe_really_input = Hermetic__Refused.unsafe
let do_at_exit = Hermetic__Refused.ambient
let do_domain_local_at_exit = Hermetic__Refused.ambient
module Runtime_events = struct end
module Dynlink = struct end
module Eio_unix = struct end
module Eio_unix__ = struct end
module Eio_unix__Cap = struct end
module Eio_unix__Config = struct end
module Eio_unix__Err = struct end
module Eio_unix__Fd = struct end
module Eio_unix__File = struct end
module Eio_unix__Fork_action = struct end
module Eio_unix__Inherit_fds = struct end
module Eio_unix__Net = struct end
module Eio_unix__Pi = struct end
module Eio_unix__Private = struct end
module Eio_unix__Process = struct end
module Eio_unix__Pty = struct end
module Eio_unix__Rcfd = struct end
module Eio_unix__Resource = struct end
module Eio_unix__System_info = struct end
module Eio_unix__Thread_pool = struct end
module Eio_unix__Types = struct end
module Eio_posix = struct end
module Eio_posix__ = struct end
module Eio_posix__Config = struct end
module Eio_posix__Domain_mgr = struct end
module Eio_posix__Err = struct end
module Eio_posix__Flow = struct end
module Eio_posix__Fs = struct end
module Eio_posix__Low_level = struct end
module Eio_posix__Net = struct end
module Eio_posix__Path = struct end
module Eio_posix__Process = struct end
module Eio_posix__Sched = struct end
module Eio_posix__Time = struct end
module Eio_linux = struct end
module Eio_linux__ = struct end
module Eio_linux__Err = struct end
module Eio_linux__Fixed = struct end
module Eio_linux__Flow = struct end
module Eio_linux__Fs = struct end
module Eio_linux__Low_level = struct end
module Eio_linux__Net = struct end
module Eio_linux__Process = struct end
module Eio_linux__Sched = struct end
module Eio_linux__Time = struct end
module Eio_windows = struct end
module Eio_windows__ = struct end
module Eio_windows__Config = struct end
module Eio_windows__Domain_mgr = struct end
module Eio_windows__Err = struct end
module Eio_windows__Flow = struct end
module Eio_windows__Fs = struct end
module Eio_windows__Low_level = struct end
module Eio_windows__Net = struct end
module Eio_windows__Process = struct end
module Eio_windows__Sched = struct end
module Eio_windows__Time = struct end
module Eio_main = struct end
module Eio_main__ = struct end
module Eio_main__Linux_backend = struct end
module Eio_main__Posix_backend = struct end
module Eio_main__Windows_backend = struct end
module Iomux = struct end
module Iomux__ = struct end
module Iomux__Config = struct end
module Iomux__Poll = struct end
module Iomux__Util = struct end
module Uring = struct end
module Uring__ = struct end
module Uring__Config = struct end
module Uring__Heap = struct end
module Uring__Region = struct end
module Eio__core__ = struct end
module Eio__core__Debug = struct end
module Eio__core__Cancel = struct end
module Mtime_clock = struct end
module Ptime_clock = struct end
module Bytesrw_sysrandom = struct end
module Fmt_tty = struct end
module Console_tty = struct end
module Console_tty__ = struct end
module Console_tty__Colour = struct end
module Console__ = struct end
module Console__Recording = struct end
module Base__ = struct end
module Base__Import0 = struct end
module Base__Import = struct end
module Shadow_stdlib = struct end
module Odoc_document__Compat = struct end
module Base__Obj_local = struct end
module Ocamlformat_format = struct end
module Ocamlformat_format__Format_ = struct end

module Stdlib = struct
  include (
    Stdlib :
      module type of struct
        include Stdlib
      end
      with module Arg := Stdlib.Arg
        and module Array := Stdlib.Array
        and module ArrayLabels := Stdlib.ArrayLabels
        and module Bigarray := Stdlib.Bigarray
        and module Bytes := Stdlib.Bytes
        and module BytesLabels := Stdlib.BytesLabels
        and module Char := Stdlib.Char
        and module Digest := Stdlib.Digest
        and module Domain := Stdlib.Domain
        and module Dynarray := Stdlib.Dynarray
        and module Ephemeron := Stdlib.Ephemeron
        and module Filename := Stdlib.Filename
        and module Float := Stdlib.Float
        and module Format := Stdlib.Format
        and module Gc := Stdlib.Gc
        and module Hashtbl := Stdlib.Hashtbl
        and module Iarray := Stdlib.Iarray
        and module In_channel := Stdlib.In_channel
        and module Lexing := Stdlib.Lexing
        and module Marshal := Stdlib.Marshal
        and module MoreLabels := Stdlib.MoreLabels
        and module Obj := Stdlib.Obj
        and module Out_channel := Stdlib.Out_channel
        and module Parsing := Stdlib.Parsing
        and module Printexc := Stdlib.Printexc
        and module Printf := Stdlib.Printf
        and module Random := Stdlib.Random
        and module Scanf := Stdlib.Scanf
        and module StdLabels := Stdlib.StdLabels
        and module String := Stdlib.String
        and module StringLabels := Stdlib.StringLabels
        and module Sys := Stdlib.Sys
        and module Uchar := Stdlib.Uchar
  )
  let stdin = Hermetic__Refused.ambient
  let stdout = Hermetic__Refused.ambient
  let stderr = Hermetic__Refused.ambient
  let print_char = Hermetic__Refused.ambient
  let print_string = Hermetic__Refused.ambient
  let print_bytes = Hermetic__Refused.ambient
  let print_int = Hermetic__Refused.ambient
  let print_float = Hermetic__Refused.ambient
  let print_endline = Hermetic__Refused.ambient
  let print_newline = Hermetic__Refused.ambient
  let prerr_char = Hermetic__Refused.ambient
  let prerr_string = Hermetic__Refused.ambient
  let prerr_bytes = Hermetic__Refused.ambient
  let prerr_int = Hermetic__Refused.ambient
  let prerr_float = Hermetic__Refused.ambient
  let prerr_endline = Hermetic__Refused.ambient
  let prerr_newline = Hermetic__Refused.ambient
  let read_line = Hermetic__Refused.ambient
  let read_int_opt = Hermetic__Refused.ambient
  let read_int = Hermetic__Refused.ambient
  let read_float_opt = Hermetic__Refused.ambient
  let read_float = Hermetic__Refused.ambient
  let open_out = Hermetic__Refused.ambient
  let open_out_bin = Hermetic__Refused.ambient
  let open_out_gen = Hermetic__Refused.ambient
  let flush_all = Hermetic__Refused.ambient
  let open_in = Hermetic__Refused.ambient
  let open_in_bin = Hermetic__Refused.ambient
  let open_in_gen = Hermetic__Refused.ambient
  let input_value = Hermetic__Refused.unsafe
  let unsafe_really_input = Hermetic__Refused.unsafe
  let do_at_exit = Hermetic__Refused.ambient
  let do_domain_local_at_exit = Hermetic__Refused.ambient
  module Arg = Hermetic__Arg
  module Array = Hermetic__Array
  module ArrayLabels = Hermetic__ArrayLabels
  module Bigarray = Hermetic__Bigarray
  module Bytes = Hermetic__Bytes
  module BytesLabels = Hermetic__BytesLabels
  module Char = Hermetic__Char
  module Digest = Hermetic__Digest
  module Domain = Hermetic__Domain
  module Dynarray = Hermetic__Dynarray
  module Ephemeron = Hermetic__Ephemeron
  module Filename = Hermetic__Filename
  module Float = Hermetic__Float
  module Format = Hermetic__Format
  module Gc = Hermetic__Gc
  module Hashtbl = Hermetic__Hashtbl
  module Iarray = Hermetic__Iarray
  module In_channel = Hermetic__In_channel
  module Lexing = Hermetic__Lexing
  module Marshal = Hermetic__Marshal
  module MoreLabels = Hermetic__MoreLabels
  module Obj = Hermetic__Obj
  module Out_channel = Hermetic__Out_channel
  module Parsing = Hermetic__Parsing
  module Printexc = Hermetic__Printexc
  module Printf = Hermetic__Printf
  module Random = Hermetic__Random
  module Scanf = Hermetic__Scanf
  module StdLabels = Hermetic__StdLabels
  module String = Hermetic__String
  module StringLabels = Hermetic__StringLabels
  module Sys = Hermetic__Sys
  module Uchar = Hermetic__Uchar
end

module Stdlib__Arg = Hermetic__Arg
module Stdlib__Array = Hermetic__Array
module Stdlib__ArrayLabels = Hermetic__ArrayLabels
module Stdlib__Bigarray = Hermetic__Bigarray
module Stdlib__Bytes = Hermetic__Bytes
module Stdlib__BytesLabels = Hermetic__BytesLabels
module Stdlib__Char = Hermetic__Char
module Stdlib__Digest = Hermetic__Digest
module Stdlib__Domain = Hermetic__Domain
module Stdlib__Dynarray = Hermetic__Dynarray
module Stdlib__Ephemeron = Hermetic__Ephemeron
module Stdlib__Filename = Hermetic__Filename
module Stdlib__Float = Hermetic__Float
module Stdlib__Format = Hermetic__Format
module Stdlib__Gc = Hermetic__Gc
module Stdlib__Hashtbl = Hermetic__Hashtbl
module Stdlib__Iarray = Hermetic__Iarray
module Stdlib__In_channel = Hermetic__In_channel
module Stdlib__Lexing = Hermetic__Lexing
module Stdlib__Marshal = Hermetic__Marshal
module Stdlib__MoreLabels = Hermetic__MoreLabels
module Stdlib__Obj = Hermetic__Obj
module Stdlib__Out_channel = Hermetic__Out_channel
module Stdlib__Parsing = Hermetic__Parsing
module Stdlib__Printexc = Hermetic__Printexc
module Stdlib__Printf = Hermetic__Printf
module Stdlib__Random = Hermetic__Random
module Stdlib__Scanf = Hermetic__Scanf
module Stdlib__StdLabels = Hermetic__StdLabels
module Stdlib__String = Hermetic__String
module Stdlib__StringLabels = Hermetic__StringLabels
module Stdlib__Sys = Hermetic__Sys
module Stdlib__Uchar = Hermetic__Uchar