Deleted Added
full compact
bzipfs.c (202585) bzipfs.c (205273)
1/*
2 * Copyright (c) 1998 Michael Smith.
3 * Copyright (c) 2000 Maxim Sobolev
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
1/*
2 * Copyright (c) 1998 Michael Smith.
3 * Copyright (c) 2000 Maxim Sobolev
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
29__FBSDID("$FreeBSD: head/lib/libstand/bzipfs.c 202585 2010-01-18 19:10:14Z avg $");
29__FBSDID("$FreeBSD: head/lib/libstand/bzipfs.c 205273 2010-03-18 00:27:17Z delphij $");
30
31#ifndef REGRESSION
32#include "stand.h"
33#else
34#include <stdlib.h>
35#include <sys/errno.h>
36#include <sys/fcntl.h>
37#include <sys/types.h>

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

76 bzf_read,
77 null_write,
78 bzf_seek,
79 bzf_stat,
80 null_readdir
81};
82#endif
83
30
31#ifndef REGRESSION
32#include "stand.h"
33#else
34#include <stdlib.h>
35#include <sys/errno.h>
36#include <sys/fcntl.h>
37#include <sys/types.h>

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

76 bzf_read,
77 null_write,
78 bzf_seek,
79 bzf_stat,
80 null_readdir
81};
82#endif
83
84#if 0
85void *
86calloc(int items, size_t size)
87{
88 return(malloc(items * size));
89}
90#endif
91
92static int
93bzf_fill(struct bz_file *bzf)
94{
95 int result;
96 int req;
97
98 req = BZ_BUFSIZE - bzf->bzf_bzstream.avail_in;
99 result = 0;

--- 299 unchanged lines hidden ---
84static int
85bzf_fill(struct bz_file *bzf)
86{
87 int result;
88 int req;
89
90 req = BZ_BUFSIZE - bzf->bzf_bzstream.avail_in;
91 result = 0;

--- 299 unchanged lines hidden ---