gzipfs.c (200919) | gzipfs.c (205273) |
---|---|
1/* 2 * Copyright (c) 1998 Michael Smith. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/* 2 * Copyright (c) 1998 Michael Smith. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/lib/libstand/gzipfs.c 200919 2009-12-23 21:11:03Z jhb $"); | 28__FBSDID("$FreeBSD: head/lib/libstand/gzipfs.c 205273 2010-03-18 00:27:17Z delphij $"); |
29 30#include "stand.h" 31 32#include <sys/stat.h> 33#include <string.h> 34#include <zlib.h> 35 36#define Z_BUFSIZE 2048 /* XXX larger? */ --- 20 unchanged lines hidden (view full) --- 57 zf_close, 58 zf_read, 59 null_write, 60 zf_seek, 61 zf_stat, 62 null_readdir 63}; 64 | 29 30#include "stand.h" 31 32#include <sys/stat.h> 33#include <string.h> 34#include <zlib.h> 35 36#define Z_BUFSIZE 2048 /* XXX larger? */ --- 20 unchanged lines hidden (view full) --- 57 zf_close, 58 zf_read, 59 null_write, 60 zf_seek, 61 zf_stat, 62 null_readdir 63}; 64 |
65#if 0 66void * 67calloc(int items, size_t size) 68{ 69 return(malloc(items * size)); 70} 71#endif 72 | |
73static int 74zf_fill(struct z_file *zf) 75{ 76 int result; 77 int req; 78 79 req = Z_BUFSIZE - zf->zf_zstream.avail_in; 80 result = 0; --- 267 unchanged lines hidden --- | 65static int 66zf_fill(struct z_file *zf) 67{ 68 int result; 69 int req; 70 71 req = Z_BUFSIZE - zf->zf_zstream.avail_in; 72 result = 0; --- 267 unchanged lines hidden --- |