Home
last modified time | relevance | path

Searched refs:bytes_max (Results 1 – 12 of 12) sorted by relevance

/PHP-7.3/ext/fileinfo/libmagic/
H A Dcompress.c179 urv = uncompressbuf(fd, ms->bytes_max, i, buf, &newbuf, &nsz); in file_zmagic()
415 size_t bytes_max, size_t *n) in uncompressgzipped() argument
443 return uncompresszlib(old, newch, bytes_max, n, 0); in uncompressgzipped()
450 size_t bytes_max, size_t *n, int zlib) in uncompresszlib() argument
461 z.avail_out = CAST(unsigned int, bytes_max); in uncompresszlib()
485 strlcpy((char *)*newch, z.msg ? z.msg : zError(rc), bytes_max); in uncompresszlib()
627 return uncompressgzipped(old, newch, bytes_max, n); in uncompressbuf()
629 return uncompresszlib(old, newch, bytes_max, n, 1); in uncompressbuf()
672 *newch = CAST(unsigned char *, emalloc(bytes_max + 1)); in uncompressbuf()
679 if ((r = sread(fdp[STDOUT_FILENO][0], *newch, bytes_max, 0)) > 0) in uncompressbuf()
[all …]
H A Dmagic.c245 if ((buf = CAST(unsigned char *, emalloc(ms->bytes_max + SLOP))) == NULL) in file_or_stream()
279 if ((nbytes = php_stream_read(stream, (char *)buf, ms->bytes_max - nbytes)) < 0) { in file_or_stream()
383 ms->bytes_max = *(const size_t *)val; in magic_setparam()
414 *(size_t *)val = ms->bytes_max; in magic_getparam()
H A Dascmagic.c196 if (seen_cr && nbytes < ms->bytes_max) in file_ascmagic_with_encoding()
H A Dfile.h434 size_t bytes_max; /* number of bytes to read from file */ member
H A Dapprentice.c513 ms->bytes_max = FILE_BYTES_MAX; in file_ms_alloc()
/PHP-7.3/pear/
H A Dfetch.php9 …_callback($notification_code, $severity, $message, $message_code, $bytes_transferred, $bytes_max) { argument
30 $filesize = $bytes_max;
/PHP-7.3/ext/standard/tests/http/
H A Dbug47021.phpt11 …_callback($notification_code, $severity, $message, $message_code, $bytes_transferred, $bytes_max) {
18 echo "Size=$bytes_max\n";
H A Dbug69337.phpt12 …on_callback($notification_code, $severity, $message, $message_code, $bytes_transferred, $bytes_max)
/PHP-7.3/main/streams/
H A Dphp_stream_context.h25 size_t bytes_sofar, size_t bytes_max,
87 char *xmsg, int xcode, size_t bytes_sofar, size_t bytes_max, void * ptr);
H A Dstreams.c2164 char *xmsg, int xcode, size_t bytes_sofar, size_t bytes_max, void * ptr) argument
2167 context->notifier->func(context, notifycode, severity, xmsg, xcode, bytes_sofar, bytes_max, ptr);
/PHP-7.3/ext/fileinfo/
H A Dlibmagic.patch229 ms->bytes_max = FILE_BYTES_MAX;
718 - * #define offsetcheck {if (offset > ms->bytes_max -1)
719 + * #define offsetcheck {if (offset > ms->bytes_max -1)
1938 - if ((*newch = CAST(unsigned char *, malloc(bytes_max + 1))) == NULL)
1939 + if ((*newch = CAST(unsigned char *, emalloc(bytes_max + 1))) == NULL)
1981 - *newch = CAST(unsigned char *, malloc(bytes_max + 1));
1982 + *newch = CAST(unsigned char *, emalloc(bytes_max + 1));
3519 - if ((buf = CAST(unsigned char *, malloc(ms->bytes_max + SLOP))) == NULL)
3595 * try looking at the first ms->bytes_max bytes
3601 - (size_t)(ms->bytes_max - nbytes), 1)) > 0) {
[all …]
/PHP-7.3/ext/standard/
H A Dstreamsfuncs.c868 char *xmsg, int xcode, size_t bytes_sofar, size_t bytes_max, void * ptr) in user_space_stream_notifier() argument
884 ZVAL_LONG(&zvs[5], bytes_max); in user_space_stream_notifier()

Completed in 46 milliseconds