version 1.27, 2011/09/22 10:41:04 |
version 1.28, 2015/01/16 06:40:06 |
|
|
(zlib format), rfc1951.txt (deflate format) and rfc1952.txt (gzip format). |
(zlib format), rfc1951.txt (deflate format) and rfc1952.txt (gzip format). |
*/ |
*/ |
|
|
#include <sys/param.h> |
|
#include <sys/stat.h> |
#include <sys/stat.h> |
#include <sys/uio.h> |
#include <sys/uio.h> |
#include <stdio.h> |
#include <stdio.h> |
|
|
#include <string.h> |
#include <string.h> |
#include <errno.h> |
#include <errno.h> |
#include <unistd.h> |
#include <unistd.h> |
|
#include <limits.h> |
#include <zlib.h> |
#include <zlib.h> |
#include "compress.h" |
#include "compress.h" |
|
|
|
|
|
|
if ((flags & ORIG_NAME) != 0) { /* read/save the original file name */ |
if ((flags & ORIG_NAME) != 0) { /* read/save the original file name */ |
if ((ep = name) != NULL) |
if ((ep = name) != NULL) |
ep += MAXPATHLEN - 1; |
ep += PATH_MAX - 1; |
while ((c = get_byte(s)) != EOF) { |
while ((c = get_byte(s)) != EOF) { |
s->z_hlen++; |
s->z_hlen++; |
if (c == '\0') |
if (c == '\0') |