Skip to content

Commit

Permalink
Merge pull request #621 from talex5/stat-docs
Browse files Browse the repository at this point in the history
Document File.Stat record fields
  • Loading branch information
talex5 authored Sep 26, 2023
2 parents afb83bf + 9e445f1 commit 9256754
Showing 1 changed file with 13 additions and 13 deletions.
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

0 comments on commit 9256754

Please sign in to comment.