208 lines
3.2 KiB
HTML
208 lines
3.2 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of UnixLabels.LargeFile</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>UnixLabels.LargeFile</H1>
|
|
Section: OCaml library (3o)<BR>Updated: 2020-01-30<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
UnixLabels.LargeFile - File operations on large files.
|
|
<A NAME="lbAC"> </A>
|
|
<H2>Module</H2>
|
|
|
|
Module UnixLabels.LargeFile
|
|
<A NAME="lbAD"> </A>
|
|
<H2>Documentation</H2>
|
|
|
|
<P>
|
|
Module
|
|
<B>LargeFile</B>
|
|
|
|
<BR> :
|
|
<B>sig end</B>
|
|
|
|
<P>
|
|
<P>
|
|
File operations on large files.
|
|
This sub-module provides 64-bit variants of the functions
|
|
<B>UnixLabels.lseek</B>
|
|
|
|
(for positioning a file descriptor),
|
|
<B>UnixLabels.truncate</B>
|
|
|
|
and
|
|
<B>UnixLabels.ftruncate</B>
|
|
|
|
(for changing the size of a file),
|
|
and
|
|
<B>UnixLabels.stat</B>
|
|
|
|
,
|
|
<B>UnixLabels.lstat</B>
|
|
|
|
and
|
|
<B>UnixLabels.fstat</B>
|
|
|
|
(for obtaining information on files). These alternate functions represent
|
|
positions and sizes by 64-bit integers (type
|
|
<B>int64</B>
|
|
|
|
) instead of
|
|
regular integers (type
|
|
<B>int</B>
|
|
|
|
), thus allowing operating on files
|
|
whose sizes are greater than
|
|
<B>max_int</B>
|
|
|
|
.
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>val lseek </I>
|
|
|
|
:
|
|
<B>UnixLabels.file_descr -> int64 -> mode:UnixLabels.seek_command -> int64</B>
|
|
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>val truncate </I>
|
|
|
|
:
|
|
<B>string -> len:int64 -> unit</B>
|
|
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>val ftruncate </I>
|
|
|
|
:
|
|
<B>UnixLabels.file_descr -> len:int64 -> unit</B>
|
|
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>type stats </I>
|
|
|
|
=
|
|
<B>Unix.LargeFile.stats</B>
|
|
|
|
= {
|
|
<BR> st_dev :
|
|
<B>int</B>
|
|
|
|
; (* Device number
|
|
<BR> *)
|
|
<BR> st_ino :
|
|
<B>int</B>
|
|
|
|
; (* Inode number
|
|
<BR> *)
|
|
<BR> st_kind :
|
|
<B>UnixLabels.file_kind</B>
|
|
|
|
; (* Kind of the file
|
|
<BR> *)
|
|
<BR> st_perm :
|
|
<B>UnixLabels.file_perm</B>
|
|
|
|
; (* Access rights
|
|
<BR> *)
|
|
<BR> st_nlink :
|
|
<B>int</B>
|
|
|
|
; (* Number of links
|
|
<BR> *)
|
|
<BR> st_uid :
|
|
<B>int</B>
|
|
|
|
; (* User id of the owner
|
|
<BR> *)
|
|
<BR> st_gid :
|
|
<B>int</B>
|
|
|
|
; (* Group ID of the file's group
|
|
<BR> *)
|
|
<BR> st_rdev :
|
|
<B>int</B>
|
|
|
|
; (* Device ID (if special file)
|
|
<BR> *)
|
|
<BR> st_size :
|
|
<B>int64</B>
|
|
|
|
; (* Size in bytes
|
|
<BR> *)
|
|
<BR> st_atime :
|
|
<B>float</B>
|
|
|
|
; (* Last access time
|
|
<BR> *)
|
|
<BR> st_mtime :
|
|
<B>float</B>
|
|
|
|
; (* Last modification time
|
|
<BR> *)
|
|
<BR> st_ctime :
|
|
<B>float</B>
|
|
|
|
; (* Last status change time
|
|
<BR> *)
|
|
<BR> }
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>val stat </I>
|
|
|
|
:
|
|
<B>string -> stats</B>
|
|
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>val lstat </I>
|
|
|
|
:
|
|
<B>string -> stats</B>
|
|
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<I>val fstat </I>
|
|
|
|
:
|
|
<B>UnixLabels.file_descr -> stats</B>
|
|
|
|
<P>
|
|
<P>
|
|
<P>
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="1"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="2"><A HREF="#lbAC">Module</A><DD>
|
|
<DT id="3"><A HREF="#lbAD">Documentation</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:59 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|