Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/gzip - document --list
details: https://anonhg.NetBSD.org/src/rev/89bf5e533fb6
branches: trunk
changeset: 556751:89bf5e533fb6
user: mrg <mrg%NetBSD.org@localhost>
date: Fri Dec 26 15:15:49 2003 +0000
description:
- document --list
- use unsigned char's that are used in unsigned calculations later.
diffstat:
usr.bin/gzip/gzip.1 | 10 ++++++++--
usr.bin/gzip/gzip.c | 6 +++---
2 files changed, 11 insertions(+), 5 deletions(-)
diffs (58 lines):
diff -r 13140e45516c -r 89bf5e533fb6 usr.bin/gzip/gzip.1
--- a/usr.bin/gzip/gzip.1 Fri Dec 26 15:06:16 2003 +0000
+++ b/usr.bin/gzip/gzip.1 Fri Dec 26 15:15:49 2003 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: gzip.1,v 1.4 2003/12/23 23:20:37 wiz Exp $
+.\" $NetBSD: gzip.1,v 1.5 2003/12/26 15:15:49 mrg Exp $
.\"
.\" Copyright (c) 1997, 2003 Matthew R. Green
.\" All rights reserved.
@@ -34,7 +34,7 @@
.Nd compression/decompression tool using Lempel-Ziv coding (LZ77)
.Sh SYNOPSIS
.Nm
-.Op Fl cdfhNnqrtVv
+.Op Fl cdfhlNnqrtVv
.Op Fl S Ar suffix
.Ar file
.Oo
@@ -121,6 +121,12 @@
option, allowing non-compressed data to pass through unchanged.
.It Fl h , -help
This option prints a usage summary and exits.
+.It Fl l , -list
+This option displays information about the file's compressed and
+uncompressed size, ratio, uncompressed name. With the
+.Fl v
+option, it also displays the compression method, crc, data & time
+embedded in the file.
.It Fl N , -name
This option causes the stored filename in the input file to be used
as the output file.
diff -r 13140e45516c -r 89bf5e533fb6 usr.bin/gzip/gzip.c
--- a/usr.bin/gzip/gzip.c Fri Dec 26 15:06:16 2003 +0000
+++ b/usr.bin/gzip/gzip.c Fri Dec 26 15:15:49 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gzip.c,v 1.7 2003/12/26 15:06:16 mrg Exp $ */
+/* $NetBSD: gzip.c,v 1.8 2003/12/26 15:15:49 mrg Exp $ */
/*
* Copyright (c) 1997, 1998, 2003 Matthew R. Green
@@ -32,7 +32,7 @@
#ifndef lint
__COPYRIGHT("@(#) Copyright (c) 1997, 1998, 2003 Matthew R. Green\n\
All rights reserved.\n");
-__RCSID("$NetBSD: gzip.c,v 1.7 2003/12/26 15:06:16 mrg Exp $");
+__RCSID("$NetBSD: gzip.c,v 1.8 2003/12/26 15:15:49 mrg Exp $");
#endif /* not lint */
/*
@@ -497,7 +497,7 @@
/* gather the old name info */
if (Nflag || lflag) {
int fd;
- char header1[10], name[PATH_MAX + 1];
+ unsigned char header1[10], name[PATH_MAX + 1];
fd = open(file, O_RDONLY);
if (fd < 0)
Home |
Main Index |
Thread Index |
Old Index