Module Fd.Kind

type t =
| Char

a terminal

| Fifo

a pipe

| File

a regular file

| Socket of [ `Unconnected | `Bound | `Passive | `Active ]
val infer_using_stat : Core.Unix.File_descr.t -> t Async_unix__.Import.Deferred.t