Searched refs:bytes_max (Results 1 – 5 of 5) sorted by relevance
| /dflybsd-src/contrib/file/src/ |
| H A D | compress.c | 290 urv = uncompressbuf(fd, ms->bytes_max, i, buf, &newbuf, &nsz); in file_zmagic() 541 size_t bytes_max, size_t *n) in uncompressgzipped() argument 569 return uncompresszlib(old, newch, bytes_max, n, 0); in uncompressgzipped() 576 size_t bytes_max, size_t *n, int zlib) in uncompresszlib() argument 581 if ((*newch = CAST(unsigned char *, malloc(bytes_max + 1))) == NULL) in uncompresszlib() 587 z.avail_out = CAST(unsigned int, bytes_max); in uncompresszlib() 611 strlcpy(RCAST(char *, *newch), z.msg ? z.msg : zError(rc), bytes_max); in uncompresszlib() 620 size_t bytes_max, size_t *n) in uncompressbzlib() argument 630 if ((*newch = CAST(unsigned char *, malloc(bytes_max + 1))) == NULL) in uncompressbzlib() 636 bz.avail_out = CAST(unsigned int, bytes_max); in uncompressbzlib() [all …]
|
| H A D | magic.c | 439 if ((buf = CAST(unsigned char *, malloc(ms->bytes_max + SLOP))) == NULL) in file_or_fd() 501 CAST(size_t, ms->bytes_max - nbytes), 1)) > 0) { in file_or_fd() 521 ms->bytes_max; in file_or_fd() 635 ms->bytes_max = *CAST(const size_t *, val); in magic_setparam() 671 *CAST(size_t *, val) = ms->bytes_max; in magic_getparam()
|
| H A D | ascmagic.c | 210 if (seen_cr && nbytes < ms->bytes_max) in file_ascmagic_with_encoding()
|
| H A D | file.h | 483 size_t bytes_max; /* number of bytes to read from file */ member
|
| H A D | apprentice.c | 585 ms->bytes_max = FILE_BYTES_MAX; in file_ms_alloc()
|