Searched defs:buflen (Results 1 - 22 of 22) sorted by relevance

/PHP_TRUNK/ext/xmlrpc/libxmlrpc/
H A Dxml_element.c449 int buflen = el->text.len; local
452 escaped_str = xml_elem_entity_escape(el->text.str, buflen, &buflen, options->escaping );
462 xml_elem_writefunc(fptr, escaped_str, data, buflen);
/PHP_TRUNK/ext/zip/lib/
H A Dzip_utf-8.c235 zip_uint32_t buflen, i, offset;
243 buflen = 1;
245 buflen += _zip_unicode_to_utf8_len(_cp437_to_unicode[cp437buf[i]]);
247 if ((utf8buf=(zip_uint8_t*)malloc(buflen)) == NULL) {
257 utf8buf[buflen-1] = 0;
259 *utf8_lenp = buflen-1;
229 zip_uint32_t buflen, i, offset; local
H A Dzip_open.c206 _zip_readcdir(FILE *fp, off_t buf_offset, unsigned char *buf, const unsigned char *eocd, size_t buflen,
215 tail_len = buf + buflen - eocd - EOCDLEN;
234 cd = _zip_read_eocd64(fp, eocd-EOCD64LOCLEN, buf, buf_offset, buflen, flags, error);
236 cd = _zip_read_eocd(eocd, buf, buf_offset, buflen, flags, error);
507 size_t buflen;
532 buflen = fread(buf, 1, CDBUFSIZE, fp);
542 match = buf+ (buflen < CDBUFSIZE ? 0 : EOCD64LOCLEN);
545 while ((match=_zip_memmem(match, buflen-(size_t)(match-buf)-(EOCDLEN-4),
550 if ((cdirnew=_zip_readcdir(fp, buf_offset, buf, match-1, buflen, flags,
611 _zip_read_eocd(const unsigned char *eocd, const unsigned char *buf, off_t buf_offset, size_t buflen,
201 _zip_readcdir(FILE *fp, off_t buf_offset, unsigned char *buf, const unsigned char *eocd, size_t buflen, unsigned int flags, struct zip_error *error) argument
496 size_t buflen; local
598 _zip_read_eocd(const unsigned char *eocd, const unsigned char *buf, off_t buf_offset, size_t buflen, unsigned int flags, struct zip_error *error) argument
653 _zip_read_eocd64(FILE *f, const zip_uint8_t *eocd64loc, const zip_uint8_t *buf, off_t buf_offset, size_t buflen, unsigned int flags, struct zip_error *error) argument
[all...]
/PHP_TRUNK/ext/mysqlnd/
H A Dmysqlnd_loaddata.c149 unsigned int buflen = 4096; local
168 buf = (zend_uchar *) mnd_ecalloc(1, buflen);
186 while ((bufsize = infile.local_infile_read (info, buf + MYSQLND_HEADER_SIZE, buflen - MYSQLND_HEADER_SIZE TSRMLS_CC)) > 0) {
/PHP_TRUNK/main/streams/
H A Dfilter.c71 PHPAPI php_stream_bucket *php_stream_bucket_new(php_stream *stream, char *buf, size_t buflen, int own_buf, int buf_persistent TSRMLS_DC) argument
86 bucket->buf = pemalloc(buflen, 1);
93 memcpy(bucket->buf, buf, buflen);
94 bucket->buflen = buflen;
98 bucket->buflen = buflen;
128 retval->buf = pemalloc(retval->buflen, retval->is_persistent);
129 memcpy(retval->buf, bucket->buf, retval->buflen);
149 (*left)->buflen
[all...]
H A Dphp_stream_filter_api.h49 size_t buflen; member in struct:_php_stream_bucket
70 PHPAPI php_stream_bucket *php_stream_bucket_new(php_stream *stream, char *buf, size_t buflen, int own_buf, int buf_persistent TSRMLS_DC);
H A Dphp_stream_transport.h103 PHPAPI int php_stream_xport_recvfrom(php_stream *stream, char *buf, size_t buflen,
109 PHPAPI int php_stream_xport_sendto(php_stream *stream, const char *buf, size_t buflen,
150 size_t buflen; member in struct:_php_stream_xport_param::__anon244
H A Dxp_socket.c244 static inline int sock_sendto(php_netstream_data_t *sock, const char *buf, size_t buflen, int flags, argument
250 ret = sendto(sock->socket, buf, XP_SOCK_BUF_SIZE(buflen), flags, addr, XP_SOCK_BUF_SIZE(addrlen));
254 return ((ret = send(sock->socket, buf, buflen, flags)) == SOCK_CONN_ERR) ? -1 : ret;
257 static inline int sock_recvfrom(php_netstream_data_t *sock, char *buf, size_t buflen, int flags, argument
268 ret = recvfrom(sock->socket, buf, XP_SOCK_BUF_SIZE(buflen), flags, (struct sockaddr*)&sa, &sl);
273 ret = recv(sock->socket, buf, XP_SOCK_BUF_SIZE(buflen), flags);
368 xparam->inputs.buf, xparam->inputs.buflen,
389 xparam->inputs.buf, xparam->inputs.buflen,
H A Dtransports.c395 PHPAPI int php_stream_xport_recvfrom(php_stream *stream, char *buf, size_t buflen, argument
406 return php_stream_read(stream, buf, buflen);
421 if (recvd_len > buflen) {
422 recvd_len = buflen;
427 buflen -= recvd_len;
430 if (buflen == 0) {
444 param.inputs.buflen = buflen;
464 PHPAPI int php_stream_xport_sendto(php_stream *stream, const char *buf, size_t buflen, argument
473 return php_stream_write(stream, buf, buflen);
[all...]
/PHP_TRUNK/ext/fileinfo/libmagic/
H A Dcdf.c989 cdf_print_classid(char *buf, size_t buflen, const cdf_classid_t *id) argument
991 return snprintf(buf, buflen, "%.8x-%.4x-%.4x-%.2x%.2x-"
/PHP_TRUNK/ext/mysqli/
H A Dphp_mysqli_structs.h102 zend_ulong buflen; member in struct:__anon91
/PHP_TRUNK/ext/pdo_odbc/
H A Dodbc_stmt.c61 zend_ulong buflen, zend_ulong *outlen)
64 if (is_unicode && buflen) {
68 ret = MultiByteToWideChar(CP_UTF8, 0, buf, buflen, NULL, 0);
70 /*printf("%s:%d %d [%d] %.*s\n", __FILE__, __LINE__, GetLastError(), buflen, buflen, buf);*/
81 ret = MultiByteToWideChar(CP_UTF8, 0, buf, buflen, (LPWSTR)S->convbuf, S->convbufsize / sizeof(WCHAR));
83 /*printf("%s:%d %d [%d] %.*s\n", __FILE__, __LINE__, GetLastError(), buflen, buflen, buf);*/
96 zend_ulong buflen, zend_ulong *outlen)
99 if (is_unicode && buflen) {
60 pdo_odbc_utf82ucs2(pdo_stmt_t *stmt, int is_unicode, const char *buf, zend_ulong buflen, zend_ulong *outlen) argument
95 pdo_odbc_ucs22utf8(pdo_stmt_t *stmt, int is_unicode, const char *buf, zend_ulong buflen, zend_ulong *outlen) argument
[all...]
/PHP_TRUNK/ext/standard/
H A Dcrypt_sha256.c67 uint32_t buflen; member in struct:sha256_ctx
215 ctx->buflen = 0;
226 uint32_t bytes = ctx->buflen;
259 if (ctx->buflen != 0) {
260 size_t left_over = ctx->buflen;
264 ctx->buflen += add;
266 if (ctx->buflen > 64) {
267 sha256_process_block(ctx->buffer, ctx->buflen & ~63, ctx);
268 ctx->buflen &= 63;
270 memcpy(ctx->buffer, &ctx->buffer[(left_over + add) & ~63], ctx->buflen);
334 php_sha256_crypt_r(const char *key, const char *salt, char *buffer, int buflen) argument
601 static int buflen; local
[all...]
H A Dcrypt_sha512.c61 uint64_t buflen; member in struct:sha512_ctx
242 ctx->buflen = 0;
253 uint64_t bytes = ctx->buflen;
286 if (ctx->buflen != 0) {
287 size_t left_over = (size_t)ctx->buflen;
291 ctx->buflen += add;
293 if (ctx->buflen > 128) {
294 sha512_process_block(ctx->buffer, ctx->buflen & ~127, ctx);
296 ctx->buflen &= 127;
299 (size_t)ctx->buflen);
369 php_sha512_crypt_r(const char *key, const char *salt, char *buffer, int buflen) argument
647 static int buflen; local
[all...]
H A Dexec.c67 size_t buflen, bufl = 0; local
89 buflen = EXEC_INPUT_BUF;
97 if (buflen < (bufl + (b - buf) + EXEC_INPUT_BUF)) {
99 buflen = bufl + EXEC_INPUT_BUF;
100 buf = erealloc(buf, buflen);
/PHP_TRUNK/ext/curl/
H A Dinterface.c1606 static size_t curl_passwd(void *ctx, char *prompt, char *buf, int buflen) argument
1619 ZVAL_LONG(&argv[2], buflen);
1625 if (Z_STRLEN(retval) > buflen) {
/PHP_TRUNK/ext/posix/
H A Dposix.c727 zend_long buflen; local
745 buflen = sysconf(_SC_TTY_NAME_MAX);
746 if (buflen < 1) {
749 p = emalloc(buflen);
751 if (ttyname_r(fd, p, buflen)) {
998 long buflen; local
1007 buflen = sysconf(_SC_GETGR_R_SIZE_MAX);
1008 if (buflen < 1) {
1011 buf = emalloc(buflen);
1014 if (getgrnam_r(name, g, buf, buflen,
1117 long buflen; local
[all...]
/PHP_TRUNK/ext/snmp/
H A Dsnmp.c556 int buflen = sizeof(sbuf) - 1; local
566 if (snprint_value(buf, buflen, vars->name, vars->name_length, vars) == -1) {
586 buflen = sizeof(sbuf) - 1;
591 buflen = val_len;
594 if((valueretrieval & SNMP_VALUE_PLAIN) && val_len > buflen){
597 buflen = val_len;
620 snprint_objid(buf, buflen, vars->val.objid, vars->val_len / sizeof(oid));
625 snprintf(buf, buflen, "%d.%d.%d.%d",
628 buf[buflen]=0;
637 snprintf(buf, buflen, "
[all...]
/PHP_TRUNK/ext/pgsql/
H A Dpgsql.c4366 size_t buflen; local
4374 buflen = strlen(strtext); /* will shrink, also we discover if
4376 buffer = (unsigned char *) emalloc(buflen); /* isn't NULL terminated */
4391 buflen--;
4398 buflen--;
4427 buflen -= 3;
4438 buffer = erealloc(buffer, buflen+1);
4439 buffer[buflen] = '\0';
4441 *retbuflen = buflen;
/PHP_TRUNK/ext/session/
H A Dmod_files.c74 static char *ps_files_path_create(char *buf, size_t buflen, ps_files *data, const char *key) argument
83 buflen < (strlen(data->basedir) + 2 * data->dirdepth + key_len + 5 + sizeof(FILE_PREFIX))) {
/PHP_TRUNK/ext/intl/locale/
H A Dlocale_methods.c268 int32_t buflen = 512; local
312 tag_value = erealloc( tag_value , buflen );
313 tag_value_len = buflen;
316 buflen = uloc_getScript ( mod_loc_name ,tag_value , tag_value_len , &status);
319 buflen = uloc_getLanguage ( mod_loc_name ,tag_value , tag_value_len , &status);
322 buflen = uloc_getCountry ( mod_loc_name ,tag_value , tag_value_len , &status);
325 buflen = uloc_getVariant ( mod_loc_name ,tag_value , tag_value_len , &status);
328 buflen = uloc_canonicalize ( mod_loc_name ,tag_value , tag_value_len , &status);
347 } while( buflen > tag_value_len );
349 if( buflen
487 int32_t buflen = 512; local
[all...]
/PHP_TRUNK/win32/
H A Dregistry.c279 DWORD buflen = MAXPATHLEN; local
281 if(RegQueryValueEx(hKey, PHPRC_REGISTRY_NAME, 0, NULL, reg_location, &buflen) != ERROR_SUCCESS) {

Completed in 38 milliseconds