1 |
/* Decompressing store backend |
/* Decompressing store backend |
2 |
|
|
3 |
Copyright (C) 1998, 1999 Free Software Foundation, Inc. |
Copyright (C) 1998, 1999, 2002 Free Software Foundation, Inc. |
4 |
Written by okuji@kuicr.kyoto-u.ac.jp <okuji@kuicr.kyoto-u.ac.jp> |
Written by okuji@kuicr.kyoto-u.ac.jp <okuji@kuicr.kyoto-u.ac.jp> |
5 |
This file is part of the GNU Hurd. |
This file is part of the GNU Hurd. |
6 |
|
|
135 |
if (zerr) |
if (zerr) |
136 |
/* Can't do that, try to make a bigger buffer elsewhere. */ |
/* Can't do that, try to make a bigger buffer elsewhere. */ |
137 |
{ |
{ |
138 |
new_buf = mmap (0, new_buf_len, PROT_READ|PROT_WRITE, |
new_buf = mmap (0, new_buf_len, PROT_READ|PROT_WRITE, |
139 |
MAP_ANON, 0, 0); |
MAP_ANON, 0, 0); |
140 |
zerr = (new_buf == (void *) -1) ? errno : 0; |
zerr = (new_buf == (void *) -1) ? errno : 0; |
141 |
if (zerr) |
if (zerr) |
257 |
|
|
258 |
const struct store_class |
const struct store_class |
259 |
store_bunzip2_class = { -1, "bunzip2", open: store_bunzip2_open }; |
store_bunzip2_class = { -1, "bunzip2", open: store_bunzip2_open }; |
260 |
|
STORE_STD_CLASS (bunzip2); |