Deleted Added
full compact
gzipfs.c (92494) gzipfs.c (108100)
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 92494 2002-03-17 12:18:05Z sobomax $");
28__FBSDID("$FreeBSD: head/lib/libstand/gzipfs.c 108100 2002-12-19 19:34:59Z jake $");
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? */

--- 7 unchanged lines hidden (view full) ---

44
45static int zf_fill(struct z_file *z);
46static int zf_open(const char *path, struct open_file *f);
47static int zf_close(struct open_file *f);
48static int zf_read(struct open_file *f, void *buf, size_t size, size_t *resid);
49static off_t zf_seek(struct open_file *f, off_t offset, int where);
50static int zf_stat(struct open_file *f, struct stat *sb);
51
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? */

--- 7 unchanged lines hidden (view full) ---

44
45static int zf_fill(struct z_file *z);
46static int zf_open(const char *path, struct open_file *f);
47static int zf_close(struct open_file *f);
48static int zf_read(struct open_file *f, void *buf, size_t size, size_t *resid);
49static off_t zf_seek(struct open_file *f, off_t offset, int where);
50static int zf_stat(struct open_file *f, struct stat *sb);
51
52struct fs_ops zipfs_fsops = {
52struct fs_ops gzipfs_fsops = {
53 "zip",
54 zf_open,
55 zf_close,
56 zf_read,
57 null_write,
58 zf_seek,
59 zf_stat,
60 null_readdir

--- 264 unchanged lines hidden ---
53 "zip",
54 zf_open,
55 zf_close,
56 zf_read,
57 null_write,
58 zf_seek,
59 zf_stat,
60 null_readdir

--- 264 unchanged lines hidden ---