summaryrefslogtreecommitdiffstats
path: root/usr.bin/truncate
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>2000-07-24 08:56:42 +0000
committersheldonh <sheldonh@FreeBSD.org>2000-07-24 08:56:42 +0000
commit04a5c2bdc28764b20c1c640156c311a76bb26540 (patch)
tree742e7961297ca31087ca5b1cb13841189f99af19 /usr.bin/truncate
parent78de2a5609da41a8912ba2871a611e139cee265a (diff)
downloadFreeBSD-src-04a5c2bdc28764b20c1c640156c311a76bb26540.zip
FreeBSD-src-04a5c2bdc28764b20c1c640156c311a76bb26540.tar.gz
truncate.c:
Do not include unused header files. Add rcsid. Change copyright. truncate.1: Add AUTHORS section. Submitted by: charnier
Diffstat (limited to 'usr.bin/truncate')
-rw-r--r--usr.bin/truncate/truncate.16
-rw-r--r--usr.bin/truncate/truncate.c11
2 files changed, 13 insertions, 4 deletions
diff --git a/usr.bin/truncate/truncate.1 b/usr.bin/truncate/truncate.1
index dc05da6..f9f2ab6 100644
--- a/usr.bin/truncate/truncate.1
+++ b/usr.bin/truncate/truncate.1
@@ -146,3 +146,9 @@ The
.Nm
utility first appeared in
.Fx 5.0 .
+.Sh AUTHORS
+The
+.Nm
+utility and this manual page were written by
+.An Sheldon Hearn
+.Aq sheldonh@uunet.co.za .
diff --git a/usr.bin/truncate/truncate.c b/usr.bin/truncate/truncate.c
index 86c92f4..6a16749 100644
--- a/usr.bin/truncate/truncate.c
+++ b/usr.bin/truncate/truncate.c
@@ -1,5 +1,6 @@
/*
- * Copyright (c) 2000 FreeBSD, Inc. All rights reserved.
+ * Copyright (c) 2000 Sheldon Hearn <sheldonh@FreeBSD.org>.
+ * All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -22,17 +23,19 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $FreeBSD$
*/
+#ifndef lint
+static const char rcsid[] =
+ "$FreeBSD$";
+#endif
+
#include <sys/stat.h>
-#include <sys/types.h>
#include <ctype.h>
#include <err.h>
#include <errno.h>
#include <fcntl.h>
-#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
OpenPOWER on IntegriCloud