Searched refs:bytes_max (Results 1 – 5 of 5) sorted by relevance
| /freebsd-10-stable/contrib/file/src/ |
| D | compress.c | 221 urv = uncompressbuf(fd, ms->bytes_max, i, buf, &newbuf, &nsz); in file_zmagic() 455 size_t bytes_max, size_t *n) in uncompressgzipped() argument 483 return uncompresszlib(old, newch, bytes_max, n, 0); in uncompressgzipped() 490 size_t bytes_max, size_t *n, int zlib) in uncompresszlib() argument 495 if ((*newch = CAST(unsigned char *, malloc(bytes_max + 1))) == NULL) in uncompresszlib() 501 z.avail_out = CAST(unsigned int, bytes_max); in uncompresszlib() 525 strlcpy((char *)*newch, z.msg ? z.msg : zError(rc), bytes_max); in uncompresszlib() 656 uncompressbuf(int fd, size_t bytes_max, size_t method, const unsigned char *old, in uncompressbuf() argument 667 return uncompressgzipped(old, newch, bytes_max, n); in uncompressbuf() 669 return uncompresszlib(old, newch, bytes_max, n, 1); in uncompressbuf() [all …]
|
| D | magic.c | 420 if ((buf = CAST(unsigned char *, malloc(ms->bytes_max + SLOP))) == NULL) in file_or_fd() 490 (size_t)(ms->bytes_max - nbytes), 1)) > 0) { in file_or_fd() 509 ms->bytes_max; in file_or_fd() 621 ms->bytes_max = *(const size_t *)val; in magic_setparam() 652 *(size_t *)val = ms->bytes_max; in magic_getparam()
|
| D | ascmagic.c | 189 if (seen_cr && nbytes < ms->bytes_max) in file_ascmagic_with_encoding()
|
| D | file.h | 422 size_t bytes_max; /* number of bytes to read from file */ member
|
| D | apprentice.c | 533 ms->bytes_max = FILE_BYTES_MAX; in file_ms_alloc()
|