/PHP-7.3/ext/fileinfo/libmagic/ |
H A D | encoding.c | 73 size_t nbytes = b->flen; in file_encoding() local 95 mlen = (nbytes + 1) * sizeof(nbuf[0]); in file_encoding() 137 from_ebcdic(buf, nbytes, nbuf); in file_encoding() 250 for (i = 0; i < nbytes; i++) { in looks_ascii() 269 for (i = 0; i < nbytes; i++) { in looks_latin1() 289 for (i = 0; i < nbytes; i++) { in looks_extended() 323 for (i = 0; i < nbytes; i++) { in file_looks_utf8() 360 if (i >= nbytes) in file_looks_utf8() 419 if (nbytes < 2) in looks_ucs16() 431 for (i = 2; i + 1 < nbytes; i += 2) { in looks_ucs16() [all …]
|
H A D | ascmagic.c | 62 trim_nuls(const unsigned char *buf, size_t nbytes) in trim_nuls() argument 64 while (nbytes > 1 && buf[nbytes - 1] == '\0') in trim_nuls() 65 nbytes--; in trim_nuls() 67 return nbytes; in trim_nuls() 105 size_t nbytes = b->flen; in file_ascmagic_with_encoding() local 127 nbytes = trim_nuls(buf, nbytes); in file_ascmagic_with_encoding() 130 if (nbytes <= 1) { in file_ascmagic_with_encoding() 196 if (seen_cr && nbytes < ms->bytes_max) in file_ascmagic_with_encoding()
|
H A D | is_tar.c | 66 size_t nbytes = b->flen; in file_is_tar() local 77 tar = is_tar(buf, nbytes); in file_is_tar() 95 is_tar(const unsigned char *buf, size_t nbytes) in is_tar() argument 102 if (nbytes < sizeof(*header)) in is_tar()
|
H A D | softmagic.c | 782 size_t nbytes = b->flen; in moffset() local 892 o, nbytes); in moffset() 908 (size_t)o, nbytes); in moffset() 1248 if (offset > nbytes) in mcopy() 1315 if (offset >= nbytes) in mcopy() 1340 if (offset >= nbytes) { in mcopy() 1345 nbytes = nbytes - offset; in mcopy() 1347 nbytes = sizeof(*p); in mcopy() 1646 if (nbytes < offset) in mget() 1656 if (nbytes < offset) in mget() [all …]
|
H A D | magic.c | 230 ssize_t nbytes = 0; /* number of bytes read from a datafile */ in file_or_stream() local 279 if ((nbytes = php_stream_read(stream, (char *)buf, ms->bytes_max - nbytes)) < 0) { in file_or_stream() 284 (void)memset(buf + nbytes, 0, SLOP); /* NUL terminate */ in file_or_stream() 285 if (file_buffer(ms, stream, inname, buf, (size_t)nbytes) == -1) in file_or_stream()
|
H A D | compress.c | 146 const unsigned char *buf, size_t nbytes) in file_zmagic() argument 166 if (nbytes < compr[i].maglen) in file_zmagic() 178 nsz = nbytes; in file_zmagic() 208 if (file_buffer(ms, -1, NULL, buf, nbytes) == -1) in file_zmagic() 338 size_t nbytes) in file_pipe2file() argument 368 if (swrite(tfd, startbuf, nbytes) != (ssize_t)nbytes) in file_pipe2file()
|
H A D | der.c | 244 der_offs(struct magic_set *ms, struct magic *m, size_t nbytes) in der_offs() argument 247 size_t offs = 0, len = ms->search.s_len ? ms->search.s_len : nbytes; in der_offs() 265 if (offs + tlen > nbytes) in der_offs()
|
H A D | elfclass.h | 27 if (nbytes <= sizeof(elfhdr))
|
H A D | readcdf.c | 540 size_t nbytes = b->flen; in file_trycdf() local 553 info.i_len = nbytes; in file_trycdf()
|
/PHP-7.3/ext/gd/libgd/ |
H A D | gd_jpeg.c | 618 ssize_t nbytes = 0; in fill_input_buffer() local 624 while (nbytes < INPUT_BUF_SIZE) { in fill_input_buffer() 625 int got = gdGetBuf(src->buffer + nbytes, INPUT_BUF_SIZE - nbytes, src->infile); in fill_input_buffer() 629 if (!nbytes) { in fill_input_buffer() 630 nbytes = -1; in fill_input_buffer() 634 nbytes += got; in fill_input_buffer() 637 if (nbytes <= 0) { in fill_input_buffer() 645 nbytes = 2; in fill_input_buffer() 649 src->pub.bytes_in_buffer = nbytes; in fill_input_buffer()
|
/PHP-7.3/ext/mbstring/ |
H A D | mbstring.h | 114 size_t nbytes, const mbfl_encoding *enc); 116 size_t nbytes);
|
H A D | mbstring.c | 5128 MBSTRING_API char *php_mb_safe_strrchr_ex(const char *s, unsigned int c, size_t nbytes, const mbfl_… in php_mb_safe_strrchr_ex() argument 5133 if (nbytes == (size_t)-1) { in php_mb_safe_strrchr_ex() 5150 register size_t bcnt = nbytes; in php_mb_safe_strrchr_ex() 5169 MBSTRING_API char *php_mb_safe_strrchr(const char *s, unsigned int c, size_t nbytes) in php_mb_safe_strrchr() argument 5171 return php_mb_safe_strrchr_ex(s, c, nbytes, MBSTRG(internal_encoding)); in php_mb_safe_strrchr()
|
/PHP-7.3/ext/iconv/ |
H A D | iconv.c | 203 static php_iconv_err_t _php_iconv_strlen(size_t *pretval, const char *str, size_t nbytes, const cha… 205 static php_iconv_err_t _php_iconv_substr(smart_str *pretval, const char *str, size_t nbytes, zend_l… 727 static php_iconv_err_t _php_iconv_strlen(size_t *pretval, const char *str, size_t nbytes, const cha… in _php_iconv_strlen() argument 762 more = nbytes > 0; in _php_iconv_strlen() 764 for (in_p = str, in_left = nbytes, cnt = 0; more;) { in _php_iconv_strlen() 811 const char *str, size_t nbytes, zend_long offset, zend_long len, const char *enc) in _php_iconv_substr() argument 829 err = _php_iconv_strlen(&total_len, str, nbytes, enc); in _php_iconv_substr() 882 more = nbytes > 0 && len > 0; in _php_iconv_substr() 884 for (in_p = str, in_left = nbytes, cnt = 0; more; ++cnt) { in _php_iconv_substr()
|
/PHP-7.3/ext/fileinfo/ |
H A D | libmagic.patch | 1853 + const unsigned char *buf, size_t nbytes) 1863 - size_t nbytes = b->flen; 2135 mlen = (nbytes + 1) * sizeof((*ubuf)[0]); 2141 mlen = (nbytes + 1) * sizeof(nbuf[0]); 3600 - while ((r = sread(fd, (void *)&buf[nbytes], 3601 - (size_t)(ms->bytes_max - nbytes), 1)) > 0) { 3602 - nbytes += r; 3606 - if (nbytes == 0 && inname) { 3629 + if ((nbytes = php_stream_read(stream, (char *)buf, ms->bytes_max - nbytes)) < 0) { 4053 (uint32_t)nbytes, m) == -1) [all …]
|
/PHP-7.3/ext/pgsql/ |
H A D | pgsql.c | 3533 int nbytes, argc = ZEND_NUM_ARGS(); local 3550 if ((nbytes = lo_read((PGconn *)pgsql->conn, pgsql->lofd, ZSTR_VAL(buf), ZSTR_LEN(buf)))<0) { 3555 ZSTR_LEN(buf) = nbytes; 3568 size_t str_len, nbytes; local 3596 if ((nbytes = lo_write((PGconn *)pgsql->conn, pgsql->lofd, str, len)) == (size_t)-1) { 3600 RETURN_LONG(nbytes); 3610 volatile int nbytes; local 3623 while ((nbytes = lo_read((PGconn *)pgsql->conn, pgsql->lofd, buf, PGSQL_LO_READ_BUF_SIZE))>0) { 3624 PHPWRITE(buf, nbytes); 3625 tbytes += nbytes;
|
/PHP-7.3/ext/odbc/ |
H A D | php_odbc.c | 1457 int fp, nbytes; in PHP_FUNCTION() local 1461 while ((nbytes = read(fp, &buf, 4096)) > 0) { in PHP_FUNCTION() 1462 SQLPutData(result->stmt, (void*)&buf, nbytes); in PHP_FUNCTION()
|
/PHP-7.3/ext/standard/ |
H A D | basic_functions.c | 4816 size_t nbytes; local 4836 nbytes = php_stream_write(stream, message, message_len); 4838 if (nbytes != message_len) {
|