[hackers] [ubase] Add truncate manpage || sin

From: <git_AT_suckless.org>
Date: Sun, 13 Apr 2014 15:45:59 +0200

commit 12145b33e8b75ce5c9d821ce111355099c952307
Author: sin <sin_AT_2f30.org>
Date: Sun Apr 13 14:45:15 2014 +0100

    Add truncate manpage

diff --git a/truncate.1 b/truncate.1
new file mode 100644
index 0000000..ffdcad5
--- /dev/null
+++ b/truncate.1
_AT_@ -0,0 +1,18 @@
+.TH TRUNCATE 1 ubase-VERSION
+.SH NAME
+ Btruncate R - Shrink or extend the size of a file to the specified size
+.SH SYNOPSIS
+ Btruncate R [ B-c R] B-s I size file... R
+.SH DESCRIPTION
+ Btruncate R shrinks or extends the size of each Ifile R to the
+specified size. A Ifile R argument that does not exist is created.
+If a Ifile R is larger than the specified size, the extra data is lost.
+If a Ifile R is shorter, it is extended and the extended part (hole) reads
+as zero bytes.
+.SH OPTIONS
+.TP
+ B-c R Do not create any files.
+.TP
+ B-s R Set or adjust the file size by Isize R bytes.
+.SH SEE ALSO
+truncate(2), ftruncate(2)
Received on Sun Apr 13 2014 - 15:45:59 CEST

This archive was generated by hypermail 2.3.0 : Sun Apr 13 2014 - 15:48:11 CEST