Source file posixat.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
include Types

external at_fdcwd : unit -> Fd.t @@ portable = "shexp_at_fdcwd"

external fstatat
  :  dir:Fd.t
  -> path:string @ local
  -> flags:At_flag.t list @ local
  -> Stats.t
  @@ portable
  = "shexp_fstatat"

external readlinkat
  :  dir:Fd.t
  -> path:string @ local
  -> string
  @@ portable
  = "shexp_readlinkat"

include Posixat_generated

external fdopendir : Fd.t -> Unix.dir_handle @@ portable = "shexp_fdopendir"

external openat2
  :  dir:Fd.t
  -> path:string @ local
  -> Open_how.t @ local
  -> Fd.t
  @@ portable
  = "shexp_openat2"