Home
last modified time | relevance | path

Searched refs:HOWMANY (Results 1 – 6 of 6) sorted by relevance

/PHP-7.1/ext/fileinfo/libmagic/
H A Dcompress.c358 if ((*newch = CAST(unsigned char *, emalloc(HOWMANY + 1))) == NULL) { in uncompressgzipped()
367 z.avail_out = HOWMANY; in uncompressgzipped()
485 *newch = (unsigned char *) emalloc(HOWMANY + 1); in uncompressbuf()
487 if ((r = sread(fdout[0], *newch, HOWMANY, 0)) <= 0) { in uncompressbuf()
H A Dmagic.c368 buf = emalloc(HOWMANY + SLOP); in file_or_stream()
404 if ((nbytes = php_stream_read(stream, (char *)buf, HOWMANY)) < 0) { in file_or_stream()
H A Dfile.h128 #ifndef HOWMANY
129 # define HOWMANY (1024 * 1024) /* how much of the file to look at */ macro
H A Dascmagic.c189 if (seen_cr && nbytes < HOWMANY) in file_ascmagic_with_encoding()
/PHP-7.1/ext/fileinfo/
H A Dfileinfo.c31 #ifndef HOWMANY
32 #define HOWMANY 65536 macro
H A Dlibmagic.patch1289 - if ((*newch = CAST(unsigned char *, malloc(HOWMANY + 1))) == NULL) {
1339 - if ((*newch = (unsigned char *) malloc(HOWMANY + 1)) == NULL) {
1347 + *newch = (unsigned char *) emalloc(HOWMANY + 1);
1349 if ((r = sread(fdout[0], *newch, HOWMANY, 0)) <= 0) {
2619 - if ((buf = CAST(unsigned char *, malloc(HOWMANY + SLOP))) == NULL)
2621 + buf = emalloc(HOWMANY + SLOP);
2698 * try looking at the first HOWMANY bytes
2704 - (size_t)(HOWMANY - nbytes), 1)) > 0) {
2720 -#if defined(WIN32) && HOWMANY > 8 * 1024
2723 - HOWMANY;
[all …]

Completed in 27 milliseconds