1 |
/* Decompressing store backend |
/* Decompressing store backend |
2 |
|
|
3 |
Copyright (C) 1997, 1999 Free Software Foundation, Inc. |
Copyright (C) 1997, 1999, 2002 Free Software Foundation, Inc. |
4 |
Written by Miles Bader <miles@gnu.ai.mit.edu> |
Written by Miles Bader <miles@gnu.ai.mit.edu> |
5 |
This file is part of the GNU Hurd. |
This file is part of the GNU Hurd. |
6 |
|
|
142 |
if (zerr) |
if (zerr) |
143 |
/* Can't do that, try to make a bigger buffer elsewhere. */ |
/* Can't do that, try to make a bigger buffer elsewhere. */ |
144 |
{ |
{ |
145 |
new_buf = mmap (0, new_buf_len, PROT_READ|PROT_WRITE, |
new_buf = mmap (0, new_buf_len, PROT_READ|PROT_WRITE, |
146 |
MAP_ANON, 0, 0); |
MAP_ANON, 0, 0); |
147 |
zerr = (new_buf == (void *) -1) ? errno : 0; |
zerr = (new_buf == (void *) -1) ? errno : 0; |
148 |
if (zerr) |
if (zerr) |
273 |
|
|
274 |
const struct store_class |
const struct store_class |
275 |
store_gunzip_class = { -1, "gunzip", open: store_gunzip_open }; |
store_gunzip_class = { -1, "gunzip", open: store_gunzip_open }; |
276 |
|
STORE_STD_CLASS (gunzip); |