version 1.83, 2006/09/27 19:09:14 |
version 1.84, 2006/09/27 21:02:38 |
|
|
/* $NetBSD$ */ |
/* $NetBSD$ */ |
|
|
/* |
/* |
* Copyright (c) 1997, 1998, 2003, 2004 Matthew R. Green |
* Copyright (c) 1997, 1998, 2003, 2004, 2006 Matthew R. Green |
* All rights reserved. |
* All rights reserved. |
* |
* |
* Redistribution and use in source and binary forms, with or without |
* Redistribution and use in source and binary forms, with or without |
|
|
|
|
#include <sys/cdefs.h> |
#include <sys/cdefs.h> |
#ifndef lint |
#ifndef lint |
__COPYRIGHT("@(#) Copyright (c) 1997, 1998, 2003, 2004 Matthew R. Green\n\ |
__COPYRIGHT("@(#) Copyright (c) 1997, 1998, 2003, 2004, 2006 Matthew R. Green\n\ |
All rights reserved.\n"); |
All rights reserved.\n"); |
__RCSID("$NetBSD$"); |
__RCSID("$NetBSD$"); |
#endif /* not lint */ |
#endif /* not lint */ |
Line 142 static suffixes_t suffixes[] = { |
|
Line 142 static suffixes_t suffixes[] = { |
|
}; |
}; |
#define NUM_SUFFIXES (sizeof suffixes / sizeof suffixes[0]) |
#define NUM_SUFFIXES (sizeof suffixes / sizeof suffixes[0]) |
|
|
static const char gzip_version[] = "NetBSD gzip 20040830"; |
static const char gzip_version[] = "NetBSD gzip 20060927"; |
|
|
static int cflag; /* stdout mode */ |
static int cflag; /* stdout mode */ |
static int dflag; /* decompress mode */ |
static int dflag; /* decompress mode */ |
Line 1306 file_uncompress(char *file, char *outfil |
|
Line 1306 file_uncompress(char *file, char *outfil |
|
|
|
if ((rv = pread(fd, ts, sizeof ts, GZIP_TIMESTAMP)) != |
if ((rv = pread(fd, ts, sizeof ts, GZIP_TIMESTAMP)) != |
sizeof ts) { |
sizeof ts) { |
|
if (rv == 0) |
|
goto unexpected_EOF; |
if (rv == -1 && !fflag) |
if (rv == -1 && !fflag) |
maybe_warn("can't read %s", file); |
maybe_warn("can't read %s", file); |
goto lose; |
goto lose; |