Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document File.Stat record fields #621

Merged
merged 1 commit into from
Sep 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions lib_eio/file.mli
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
open Std

(** Tranditional Unix permissions. *)
(** Traditional Unix permissions. *)
module Unix_perm : sig
type t = int
(** This is the same as {!Unix.file_perm}, but avoids a dependency on [Unix]. *)
Expand All @@ -25,18 +25,18 @@ module Stat : sig
(** Pretty printer for {! kind}. *)

type t = {
dev : Int64.t;
ino : Int64.t;
kind : kind;
perm : Unix_perm.t;
nlink : Int64.t;
uid : Int64.t;
gid : Int64.t;
rdev : Int64.t;
size : Optint.Int63.t;
atime : float;
mtime : float;
ctime : float;
dev : Int64.t; (** Device containing the filesystem where the file resides. *)
ino : Int64.t; (** Inode number. *)
kind : kind; (** File type. *)
perm : Unix_perm.t; (** Permissions (mode). *)
nlink : Int64.t; (** Number of hard links. *)
uid : Int64.t; (** User ID of owner. *)
gid : Int64.t; (** Group ID of owner. *)
rdev : Int64.t; (** Device's ID (if this is a device). *)
size : Optint.Int63.t; (** Total size in bytes. *)
atime : float; (** Last access time. *)
mtime : float; (** Last modification time. *)
ctime : float; (** Creation time. *)
}
(** Like stat(2). *)

Expand Down
Loading