/PHP-5.3/ext/fileinfo/libmagic/ |
H A D | encoding.c | 75 mlen = (nbytes + 1) * sizeof(nbuf[0]); in file_encoding() 80 mlen = (nbytes + 1) * sizeof((*ubuf)[0]); in file_encoding() 117 from_ebcdic(buf, nbytes, nbuf); in file_encoding() 228 for (i = 0; i < nbytes; i++) { in looks_ascii() 247 for (i = 0; i < nbytes; i++) { in looks_latin1() 267 for (i = 0; i < nbytes; i++) { in looks_extended() 301 for (i = 0; i < nbytes; i++) { in file_looks_utf8() 338 if (i >= nbytes) in file_looks_utf8() 378 if (nbytes < 2) in looks_ucs16() 390 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() 85 nbytes = trim_nuls(buf, nbytes); in file_ascmagic() 88 if (file_encoding(ms, buf, nbytes, &ubuf, &ulen, &code, &code_mime, in file_ascmagic() 92 rv = file_ascmagic_with_encoding(ms, buf, nbytes, ubuf, ulen, code, in file_ascmagic() 102 size_t nbytes, unichar *ubuf, size_t ulen, const char *code, in file_ascmagic_with_encoding() argument 129 nbytes = trim_nuls(buf, nbytes); in file_ascmagic_with_encoding() 132 if (nbytes <= 1) { in file_ascmagic_with_encoding() [all …]
|
H A D | is_tar.c | 63 file_is_tar(struct magic_set *ms, const unsigned char *buf, size_t nbytes) in file_is_tar() argument 75 tar = is_tar(buf, nbytes); in file_is_tar() 93 is_tar(const unsigned char *buf, size_t nbytes) in is_tar() argument 100 if (nbytes < sizeof(union record)) in is_tar()
|
H A D | softmagic.c | 985 if (offset >= nbytes) { in mcopy() 990 nbytes = nbytes - offset; in mcopy() 992 nbytes = sizeof(*p); in mcopy() 1000 if (nbytes < sizeof(*p)) in mcopy() 1002 sizeof(*p) - nbytes); in mcopy() 1060 if (nbytes < (offset + 1)) in mget() 1518 if (nbytes < (offset + 2)) in mget() 1537 if (nbytes < (offset + 4)) in mget() 1544 if (nbytes < (offset + 8)) in mget() 1556 if (nbytes < offset) in mget() [all …]
|
H A D | compress.c | 103 const unsigned char *buf, size_t nbytes) in file_zmagic() argument 117 if (nbytes < compr[i].maglen) in file_zmagic() 121 nbytes)) != NODATA) { in file_zmagic() 134 file_buffer(ms, -1, NULL, buf, nbytes) == -1) in file_zmagic() 245 size_t nbytes) in file_pipe2file() argument 275 if (swrite(tfd, startbuf, nbytes) != (ssize_t)nbytes) in file_pipe2file()
|
H A D | magic.c | 395 ssize_t nbytes = 0; /* number of bytes read from a datafile */ in file_or_stream() local 448 if ((nbytes = php_stream_read(stream, (char *)buf, HOWMANY)) < 0) { in file_or_stream() 453 (void)memset(buf + nbytes, 0, SLOP); /* NUL terminate */ in file_or_stream() 454 if (file_buffer(ms, stream, inname, buf, (size_t)nbytes) == -1) in file_or_stream()
|
H A D | elfclass.h | 27 if (nbytes <= sizeof(elfhdr))
|
H A D | readcdf.c | 227 size_t nbytes) argument 240 info.i_len = nbytes;
|
H A D | readelf.c | 1127 size_t nbytes) in file_tryelf() argument 1160 fd = file_pipe2file(ms, fd, buf, nbytes); in file_tryelf()
|
/PHP-5.3/ext/gd/libgd/ |
H A D | gd_jpeg.c | 581 ssize_t nbytes = 0; in fill_input_buffer() local 587 while (nbytes < INPUT_BUF_SIZE) { in fill_input_buffer() 588 int got = gdGetBuf(src->buffer + nbytes, INPUT_BUF_SIZE - nbytes, src->infile); in fill_input_buffer() 592 if (!nbytes) { in fill_input_buffer() 593 nbytes = -1; in fill_input_buffer() 597 nbytes += got; in fill_input_buffer() 600 if (nbytes <= 0) { in fill_input_buffer() 608 nbytes = 2; in fill_input_buffer() 612 src->pub.bytes_in_buffer = nbytes; in fill_input_buffer()
|
/PHP-5.3/netware/ |
H A D | start.c | 45 size_t nbytes, size_t *bytesRead, void *buffer ), in _NonAppStart() argument
|
/PHP-5.3/ext/mbstring/ |
H A D | mbstring.h | 134 size_t nbytes, const mbfl_encoding *enc); 136 size_t nbytes TSRMLS_DC);
|
H A D | mbstring.c | 4439 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 4444 if (nbytes == (size_t)-1) { in php_mb_safe_strrchr_ex() 4461 register size_t bcnt = nbytes; in php_mb_safe_strrchr_ex() 4480 MBSTRING_API char *php_mb_safe_strrchr(const char *s, unsigned int c, size_t nbytes TSRMLS_DC) in php_mb_safe_strrchr() 4482 return php_mb_safe_strrchr_ex(s, c, nbytes, in php_mb_safe_strrchr()
|
/PHP-5.3/ext/ereg/regex/ |
H A D | regcomp.c | 1005 register size_t nbytes; local 1014 nbytes = nc / CHAR_BIT * css; 1021 p->g->setbits = (uch *)malloc(nbytes); 1024 nbytes); 1030 (void) memset((unsigned char *)p->g->setbits + (nbytes - css),
|
/PHP-5.3/ext/iconv/ |
H A D | iconv.c | 205 static php_iconv_err_t _php_iconv_strlen(unsigned int *pretval, const char *str, size_t nbytes, con… 207 static php_iconv_err_t _php_iconv_substr(smart_str *pretval, const char *str, size_t nbytes, int of… 574 static php_iconv_err_t _php_iconv_strlen(unsigned int *pretval, const char *str, size_t nbytes, con… in _php_iconv_strlen() argument 608 for (in_p = str, in_left = nbytes, cnt = 0; in_left > 0; cnt+=2) { in _php_iconv_strlen() 658 const char *str, size_t nbytes, int offset, int len, const char *enc) in _php_iconv_substr() argument 675 err = _php_iconv_strlen(&total_len, str, nbytes, enc); in _php_iconv_substr() 729 for (in_p = str, in_left = nbytes, cnt = 0; in_left > 0 && len > 0; ++cnt) { in _php_iconv_substr()
|
/PHP-5.3/ext/fileinfo/ |
H A D | libmagic.patch | 1040 if (nbytes < compr[i].maglen) 2186 ssize_t nbytes = 0; /* number of bytes read from a datafile */ 2265 - while ((r = sread(fd, (void *)&buf[nbytes], 2266 - (size_t)(HOWMANY - nbytes), 1)) > 0) { 2267 - nbytes += r; 2271 - if (nbytes == 0) { 2280 - if ((nbytes = read(fd, (char *)buf, HOWMANY)) == -1) { 2289 (void)memset(buf + nbytes, 0, SLOP); /* NUL terminate */ 2290 - if (file_buffer(ms, fd, inname, buf, (size_t)nbytes) == -1) 2291 + if (file_buffer(ms, stream, inname, buf, (size_t)nbytes) == -1) [all …]
|
/PHP-5.3/ext/pgsql/ |
H A D | pgsql.c | 3226 int buf_len = PGSQL_LO_READ_BUF_SIZE, nbytes, argc = ZEND_NUM_ARGS(); local 3241 if ((nbytes = lo_read((PGconn *)pgsql->conn, pgsql->lofd, buf, buf_len))<0) { 3246 buf[nbytes] = '\0'; 3247 RETURN_STRINGL(buf, nbytes, 0); 3258 int str_len, nbytes; local 3284 if ((nbytes = lo_write((PGconn *)pgsql->conn, pgsql->lofd, str, len)) == -1) { 3288 RETURN_LONG(nbytes); 3298 volatile int nbytes; local 3309 while ((nbytes = lo_read((PGconn *)pgsql->conn, pgsql->lofd, buf, PGSQL_LO_READ_BUF_SIZE))>0) { 3310 PHPWRITE(buf, nbytes); [all …]
|
/PHP-5.3/ext/odbc/ |
H A D | php_odbc.c | 1406 int fp, nbytes; in PHP_FUNCTION() local 1410 while ((nbytes = read(fp, &buf, 4096)) > 0) { in PHP_FUNCTION() 1411 SQLPutData(result->stmt, (void*)&buf, nbytes); in PHP_FUNCTION()
|