| /netbsd-src/external/public-domain/xz/dist/src/liblzma/common/ |
| H A D | common.c | 166 lzma_strm_init(lzma_stream *strm) in lzma_strm_init() argument 168 if (strm == NULL) in lzma_strm_init() 171 if (strm->internal == NULL) { in lzma_strm_init() 172 strm->internal = lzma_alloc(sizeof(lzma_internal), in lzma_strm_init() 173 strm->allocator); in lzma_strm_init() 174 if (strm->internal == NULL) in lzma_strm_init() 177 strm->internal->next = LZMA_NEXT_CODER_INIT; in lzma_strm_init() 180 memzero(strm->internal->supported_actions, in lzma_strm_init() 181 sizeof(strm->internal->supported_actions)); in lzma_strm_init() 182 strm->internal->sequence = ISEQ_RUN; in lzma_strm_init() [all …]
|
| /netbsd-src/external/gpl3/binutils.old/dist/zlib/test/ |
| H A D | infcover.c | 158 local void mem_setup(z_stream *strm) in mem_setup() argument 170 strm->opaque = zone; in mem_setup() 171 strm->zalloc = mem_alloc; in mem_setup() 172 strm->zfree = mem_free; in mem_setup() 176 local void mem_limit(z_stream *strm, size_t limit) in mem_limit() argument 178 struct mem_zone *zone = strm->opaque; in mem_limit() 184 local void mem_used(z_stream *strm, char *prefix) in mem_used() argument 186 struct mem_zone *zone = strm->opaque; in mem_used() 192 local void mem_high(z_stream *strm, char *prefix) in mem_high() argument 194 struct mem_zone *zone = strm->opaque; in mem_high() [all …]
|
| /netbsd-src/external/gpl3/gdb/dist/zlib/test/ |
| H A D | infcover.c | 158 local void mem_setup(z_stream *strm) in mem_setup() argument 170 strm->opaque = zone; in mem_setup() 171 strm->zalloc = mem_alloc; in mem_setup() 172 strm->zfree = mem_free; in mem_setup() 176 local void mem_limit(z_stream *strm, size_t limit) in mem_limit() argument 178 struct mem_zone *zone = strm->opaque; in mem_limit() 184 local void mem_used(z_stream *strm, char *prefix) in mem_used() argument 186 struct mem_zone *zone = strm->opaque; in mem_used() 192 local void mem_high(z_stream *strm, char *prefix) in mem_high() argument 194 struct mem_zone *zone = strm->opaque; in mem_high() [all …]
|
| /netbsd-src/external/gpl3/gdb.old/dist/zlib/test/ |
| H A D | infcover.c | 158 local void mem_setup(z_stream *strm) in mem_setup() argument 170 strm->opaque = zone; in mem_setup() 171 strm->zalloc = mem_alloc; in mem_setup() 172 strm->zfree = mem_free; in mem_setup() 176 local void mem_limit(z_stream *strm, size_t limit) in mem_limit() argument 178 struct mem_zone *zone = strm->opaque; in mem_limit() 184 local void mem_used(z_stream *strm, char *prefix) in mem_used() argument 186 struct mem_zone *zone = strm->opaque; in mem_used() 192 local void mem_high(z_stream *strm, char *prefix) in mem_high() argument 194 struct mem_zone *zone = strm->opaque; in mem_high() [all …]
|
| /netbsd-src/external/gpl3/binutils/dist/zlib/test/ |
| H A D | infcover.c | 158 local void mem_setup(z_stream *strm) in mem_setup() argument 170 strm->opaque = zone; in mem_setup() 171 strm->zalloc = mem_alloc; in mem_setup() 172 strm->zfree = mem_free; in mem_setup() 176 local void mem_limit(z_stream *strm, size_t limit) in mem_limit() argument 178 struct mem_zone *zone = strm->opaque; in mem_limit() 184 local void mem_used(z_stream *strm, char *prefix) in mem_used() argument 186 struct mem_zone *zone = strm->opaque; in mem_used() 192 local void mem_high(z_stream *strm, char *prefix) in mem_high() argument 194 struct mem_zone *zone = strm->opaque; in mem_high() [all …]
|
| /netbsd-src/external/gpl3/binutils.old/dist/zlib/examples/ |
| H A D | zran.c | 142 z_stream strm; in deflate_index_build() local 147 strm.zalloc = Z_NULL; in deflate_index_build() 148 strm.zfree = Z_NULL; in deflate_index_build() 149 strm.opaque = Z_NULL; in deflate_index_build() 150 strm.avail_in = 0; in deflate_index_build() 151 strm.next_in = Z_NULL; in deflate_index_build() 152 ret = inflateInit2(&strm, 47); /* automatic zlib or gzip decoding */ in deflate_index_build() 161 strm.avail_out = 0; in deflate_index_build() 164 strm.avail_in = fread(input, 1, CHUNK, in); in deflate_index_build() 169 if (strm.avail_in == 0) { in deflate_index_build() [all …]
|
| H A D | zpipe.c | 40 z_stream strm; in def() local 45 strm.zalloc = Z_NULL; in def() 46 strm.zfree = Z_NULL; in def() 47 strm.opaque = Z_NULL; in def() 48 ret = deflateInit(&strm, level); in def() 54 strm.avail_in = fread(in, 1, CHUNK, source); in def() 56 (void)deflateEnd(&strm); in def() 60 strm.next_in = in; in def() 65 strm.avail_out = CHUNK; in def() 66 strm.next_out = out; in def() [all …]
|
| /netbsd-src/external/gpl3/gdb/dist/zlib/examples/ |
| H A D | zran.c | 142 z_stream strm; in deflate_index_build() local 147 strm.zalloc = Z_NULL; in deflate_index_build() 148 strm.zfree = Z_NULL; in deflate_index_build() 149 strm.opaque = Z_NULL; in deflate_index_build() 150 strm.avail_in = 0; in deflate_index_build() 151 strm.next_in = Z_NULL; in deflate_index_build() 152 ret = inflateInit2(&strm, 47); /* automatic zlib or gzip decoding */ in deflate_index_build() 161 strm.avail_out = 0; in deflate_index_build() 164 strm.avail_in = fread(input, 1, CHUNK, in); in deflate_index_build() 169 if (strm.avail_in == 0) { in deflate_index_build() [all …]
|
| H A D | zpipe.c | 40 z_stream strm; in def() local 45 strm.zalloc = Z_NULL; in def() 46 strm.zfree = Z_NULL; in def() 47 strm.opaque = Z_NULL; in def() 48 ret = deflateInit(&strm, level); in def() 54 strm.avail_in = fread(in, 1, CHUNK, source); in def() 56 (void)deflateEnd(&strm); in def() 60 strm.next_in = in; in def() 65 strm.avail_out = CHUNK; in def() 66 strm.next_out = out; in def() [all …]
|
| /netbsd-src/external/gpl3/binutils/dist/zlib/examples/ |
| H A D | zran.c | 142 z_stream strm; in deflate_index_build() local 147 strm.zalloc = Z_NULL; in deflate_index_build() 148 strm.zfree = Z_NULL; in deflate_index_build() 149 strm.opaque = Z_NULL; in deflate_index_build() 150 strm.avail_in = 0; in deflate_index_build() 151 strm.next_in = Z_NULL; in deflate_index_build() 152 ret = inflateInit2(&strm, 47); /* automatic zlib or gzip decoding */ in deflate_index_build() 161 strm.avail_out = 0; in deflate_index_build() 164 strm.avail_in = fread(input, 1, CHUNK, in); in deflate_index_build() 169 if (strm.avail_in == 0) { in deflate_index_build() [all …]
|
| H A D | zpipe.c | 40 z_stream strm; in def() local 45 strm.zalloc = Z_NULL; in def() 46 strm.zfree = Z_NULL; in def() 47 strm.opaque = Z_NULL; in def() 48 ret = deflateInit(&strm, level); in def() 54 strm.avail_in = fread(in, 1, CHUNK, source); in def() 56 (void)deflateEnd(&strm); in def() 60 strm.next_in = in; in def() 65 strm.avail_out = CHUNK; in def() 66 strm.next_out = out; in def() [all …]
|
| /netbsd-src/external/gpl3/binutils.old/dist/gas/ |
| H A D | compress-debug.c | 32 static struct z_stream_s strm; in compress_init() local 34 strm.zalloc = NULL; in compress_init() 35 strm.zfree = NULL; in compress_init() 36 strm.opaque = NULL; in compress_init() 37 deflateInit (&strm, Z_DEFAULT_COMPRESSION); in compress_init() 38 return &strm; in compress_init() 45 compress_data (struct z_stream_s *strm, const char **next_in, in compress_data() argument 51 strm->next_in = (Bytef *) (*next_in); in compress_data() 52 strm->avail_in = *avail_in; in compress_data() 53 strm->next_out = (Bytef *) (*next_out); in compress_data() [all …]
|
| /netbsd-src/external/bsd/bzip2/dist/ |
| H A D | bzlib.c | 151 ( bz_stream* strm, in BZ_API() 161 if (strm == NULL || in BZ_API() 167 if (strm->bzalloc == NULL) strm->bzalloc = default_bzalloc; in BZ_API() 168 if (strm->bzfree == NULL) strm->bzfree = default_bzfree; in BZ_API() 172 s->strm = strm; in BZ_API() 205 strm->state = s; in BZ_API() 206 strm->total_in_lo32 = 0; in BZ_API() 207 strm->total_in_hi32 = 0; in BZ_API() 208 strm->total_out_lo32 = 0; in BZ_API() 209 strm->total_out_hi32 = 0; in BZ_API() [all …]
|
| /netbsd-src/external/gpl3/gdb.old/dist/zlib/examples/ |
| H A D | zpipe.c | 40 z_stream strm; in def() local 45 strm.zalloc = Z_NULL; in def() 46 strm.zfree = Z_NULL; in def() 47 strm.opaque = Z_NULL; in def() 48 ret = deflateInit(&strm, level); in def() 54 strm.avail_in = fread(in, 1, CHUNK, source); in def() 56 (void)deflateEnd(&strm); in def() 60 strm.next_in = in; in def() 65 strm.avail_out = CHUNK; in def() 66 strm.next_out = out; in def() [all …]
|
| /netbsd-src/common/dist/zlib/examples/ |
| H A D | zpipe.c | 40 z_stream strm; in def() local 45 strm.zalloc = Z_NULL; in def() 46 strm.zfree = Z_NULL; in def() 47 strm.opaque = Z_NULL; in def() 48 ret = deflateInit(&strm, level); in def() 54 strm.avail_in = fread(in, 1, CHUNK, source); in def() 56 (void)deflateEnd(&strm); in def() 60 strm.next_in = in; in def() 65 strm.avail_out = CHUNK; in def() 66 strm.next_out = out; in def() [all …]
|
| /netbsd-src/external/cddl/osnet/dist/uts/common/zmod/ |
| H A D | deflate.c | 89 local void flush_pending OF((z_streamp strm)); 90 local int read_buf OF((z_streamp strm, Bytef *buf, unsigned size)); 210 int ZEXPORT deflateInit_(strm, level, version, stream_size) in deflateInit_() argument 211 z_streamp strm; in deflateInit_() 216 return deflateInit2_(strm, level, Z_DEFLATED, MAX_WBITS, DEF_MEM_LEVEL, 222 int ZEXPORT deflateInit2_(strm, level, method, windowBits, memLevel, strategy, in deflateInit2_() argument 224 z_streamp strm; in deflateInit2_() 246 if (strm == Z_NULL) return Z_STREAM_ERROR; 248 strm->msg = Z_NULL; 249 if (strm->zalloc == (alloc_func)0) { [all …]
|
| H A D | inflate.c | 103 local int updatewindow OF((z_streamp strm, unsigned out)); 110 int ZEXPORT inflateReset(strm) in inflateReset() argument 111 z_streamp strm; in inflateReset() 115 if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR; 116 state = (struct inflate_state FAR *)strm->state; 117 strm->total_in = strm->total_out = state->total = 0; 118 strm->msg = Z_NULL; 119 strm->adler = 1; /* to support ill-conceived Java test suite */ 135 int ZEXPORT inflatePrime(strm, bits, value) in inflatePrime() argument 136 z_streamp strm; in inflatePrime() [all …]
|
| /netbsd-src/external/gpl3/binutils.old/dist/zlib/ |
| H A D | inflate.c | 95 local int inflateStateCheck OF((z_streamp strm)); 97 local int updatewindow OF((z_streamp strm, const unsigned char FAR *end, 105 local int inflateStateCheck(strm) in inflateStateCheck() argument 106 z_streamp strm; in inflateStateCheck() 109 if (strm == Z_NULL || 110 strm->zalloc == (alloc_func)0 || strm->zfree == (free_func)0) 112 state = (struct inflate_state FAR *)strm->state; 113 if (state == Z_NULL || state->strm != strm || 119 int ZEXPORT inflateResetKeep(strm) in inflateResetKeep() argument 120 z_streamp strm; in inflateResetKeep() [all …]
|
| H A D | gzwrite.c | 21 z_streamp strm = &(state->strm); local 41 strm->zalloc = Z_NULL; 42 strm->zfree = Z_NULL; 43 strm->opaque = Z_NULL; 44 ret = deflateInit2(strm, state->level, Z_DEFLATED, 52 strm->next_in = NULL; 60 strm->avail_out = state->size; 61 strm->next_out = state->out; 62 state->x.next = strm->next_out; 79 z_streamp strm = &(state->strm); local [all …]
|
| /netbsd-src/external/gpl3/binutils/dist/zlib/ |
| H A D | inflate.c | 95 local int inflateStateCheck OF((z_streamp strm)); 97 local int updatewindow OF((z_streamp strm, const unsigned char FAR *end, 105 local int inflateStateCheck(strm) in inflateStateCheck() argument 106 z_streamp strm; in inflateStateCheck() 109 if (strm == Z_NULL || 110 strm->zalloc == (alloc_func)0 || strm->zfree == (free_func)0) 112 state = (struct inflate_state FAR *)strm->state; 113 if (state == Z_NULL || state->strm != strm || 119 int ZEXPORT inflateResetKeep(strm) in inflateResetKeep() argument 120 z_streamp strm; in inflateResetKeep() [all …]
|
| H A D | gzwrite.c | 21 z_streamp strm = &(state->strm); local 41 strm->zalloc = Z_NULL; 42 strm->zfree = Z_NULL; 43 strm->opaque = Z_NULL; 44 ret = deflateInit2(strm, state->level, Z_DEFLATED, 52 strm->next_in = NULL; 60 strm->avail_out = state->size; 61 strm->next_out = state->out; 62 state->x.next = strm->next_out; 79 z_streamp strm = &(state->strm); local [all …]
|
| H A D | deflate.c | 76 local int deflateStateCheck OF((z_streamp strm)); 88 local void flush_pending OF((z_streamp strm)); 89 local unsigned read_buf OF((z_streamp strm, Bytef *buf, unsigned size)); 231 int ZEXPORT deflateInit_(strm, level, version, stream_size) in deflateInit_() argument 232 z_streamp strm; in deflateInit_() 237 return deflateInit2_(strm, level, Z_DEFLATED, MAX_WBITS, DEF_MEM_LEVEL, 243 int ZEXPORT deflateInit2_(strm, level, method, windowBits, memLevel, strategy, in deflateInit2_() argument 245 z_streamp strm; in deflateInit2_() 262 if (strm == Z_NULL) return Z_STREAM_ERROR; 264 strm->msg = Z_NULL; [all …]
|
| /netbsd-src/external/gpl3/gdb/dist/zlib/ |
| H A D | inflate.c | 95 local int inflateStateCheck OF((z_streamp strm)); 97 local int updatewindow OF((z_streamp strm, const unsigned char FAR *end, 105 local int inflateStateCheck(strm) in inflateStateCheck() argument 106 z_streamp strm; in inflateStateCheck() 109 if (strm == Z_NULL || 110 strm->zalloc == (alloc_func)0 || strm->zfree == (free_func)0) 112 state = (struct inflate_state FAR *)strm->state; 113 if (state == Z_NULL || state->strm != strm || 119 int ZEXPORT inflateResetKeep(strm) in inflateResetKeep() argument 120 z_streamp strm; in inflateResetKeep() [all …]
|
| H A D | gzwrite.c | 21 z_streamp strm = &(state->strm); local 41 strm->zalloc = Z_NULL; 42 strm->zfree = Z_NULL; 43 strm->opaque = Z_NULL; 44 ret = deflateInit2(strm, state->level, Z_DEFLATED, 52 strm->next_in = NULL; 60 strm->avail_out = state->size; 61 strm->next_out = state->out; 62 state->x.next = strm->next_out; 79 z_streamp strm = &(state->strm); local [all …]
|
| /netbsd-src/external/gpl3/binutils/dist/gas/ |
| H A D | compress-debug.c | 42 static struct z_stream_s strm; in compress_init() local 43 memset (&strm, 0, sizeof (strm)); in compress_init() 44 deflateInit (&strm, Z_DEFAULT_COMPRESSION); in compress_init() 45 return &strm; in compress_init() 71 struct z_stream_s *strm = ctx; in compress_data() local 73 strm->next_in = (Bytef *) (*next_in); in compress_data() 74 strm->avail_in = *avail_in; in compress_data() 75 strm->next_out = (Bytef *) (*next_out); in compress_data() 76 strm->avail_out = *avail_out; in compress_data() 78 int x = deflate (strm, Z_NO_FLUSH); in compress_data() [all …]
|