Home
last modified time | relevance | path

Searched refs:buf (Results 126 – 150 of 337) sorted by relevance

12345678910>>...14

/PHP-5.5/ext/intl/collator/
H A Dcollator_is_numeric.c83 char buf[64], *numbuf, *bufpos; in collator_u_strtod() local
87 if (length < sizeof(buf)) { in collator_u_strtod()
88 numbuf = buf; in collator_u_strtod()
102 if (numbuf != buf) { in collator_u_strtod()
/PHP-5.5/ext/mbstring/oniguruma/enc/
H A Dutf8.c138 code_to_mbc(OnigCodePoint code, UChar *buf) in code_to_mbc() argument
144 *buf = (UChar )code; in code_to_mbc()
148 UChar *p = buf; in code_to_mbc()
190 return p - buf; in code_to_mbc()
H A Deuc_tw.c64 euctw_code_to_mbc(OnigCodePoint code, UChar *buf) in euctw_code_to_mbc() argument
66 return onigenc_mb4_code_to_mbc(ONIG_ENCODING_EUC_TW, code, buf); in euctw_code_to_mbc()
H A Dbig5.c64 big5_code_to_mbc(OnigCodePoint code, UChar *buf) in big5_code_to_mbc() argument
66 return onigenc_mb2_code_to_mbc(ONIG_ENCODING_BIG5, code, buf); in big5_code_to_mbc()
/PHP-5.5/ext/gd/libgd/
H A Dxbm.c161 char *buf; in gdCtxPrintf() local
166 len = vspprintf(&buf, 0, format, args); in gdCtxPrintf()
168 out->putBuf(out, buf, len); in gdCtxPrintf()
169 efree(buf); in gdCtxPrintf()
H A Dgd_io_dp.c58 static int dynamicGetbuf (gdIOCtxPtr ctx, void *buf, int len);
198 dynamicPutbuf (struct gdIOCtx *ctx, const void *buf, int size) in dynamicPutbuf() argument
203 appendDynamic (dctx->dp, buf, size); in dynamicPutbuf()
227 static int dynamicGetbuf (gdIOCtxPtr ctx, void *buf, int len) in dynamicGetbuf() argument
246 memcpy(buf, (void *) ((char *) dp->data + dp->pos), rlen); in dynamicGetbuf()
/PHP-5.5/win32/
H A Dsendmail.c882 static char buf[MAIL_BUFFER_SIZE]; in Ack() local
889 if ((rlen = recv(sc, buf + Index, ((MAIL_BUFFER_SIZE) - 1) - Received, 0)) < 1) { in Ack()
893 buf[Received] = 0; in Ack()
901 if (Received < 5 || buf[Received - 1] != '\n' || buf[Received - 2] != '\r') { in Ack()
905 if (buf[0] > '3') { in Ack()
911 if (buf[Received-1] == '\n' || buf[Received-1] == '\r') { in Ack()
913 if (buf[Received-2] == '\r' || buf[Received-2] == '\n') { in Ack()
919 *server_response = estrndup(buf, Received - dec); in Ack()
/PHP-5.5/sapi/cgi/
H A Dcgi_main.c436 len = slprintf(buf, sizeof(buf), "Status:%s\r\n", s); in sapi_cgi_send_headers()
468 PHPWRITE_H(buf, len); in sapi_cgi_send_headers()
563 char *buf; in _sapi_cgi_putenv() local
584 buf = (char *) malloc(len); in _sapi_cgi_putenv()
585 if (buf == NULL) { in _sapi_cgi_putenv()
592 putenv(buf); in _sapi_cgi_putenv()
598 putenv(buf); in _sapi_cgi_putenv()
734 char *buf = malloc(len+2); in sapi_cgi_log_message() local
736 memcpy(buf, message, len); in sapi_cgi_log_message()
739 free(buf); in sapi_cgi_log_message()
[all …]
/PHP-5.5/sapi/webjames/
H A Dwebjames.c107 snprintf(buf, BUF_SIZE, "%d", WG(conn)->field);\
108 php_register_variable(name, buf, track_vars_array TSRMLS_CC);\
118 char buf[BUF_SIZE + 1]; in sapi_webjames_register_variables() local
121 buf[BUF_SIZE] = '\0'; in sapi_webjames_register_variables()
141 …snprintf(buf, BUF_SIZE, "%d.%d.%d.%d", WG(conn)->ipaddr[0], WG(conn)->ipaddr[1], WG(conn)->ipaddr[… in sapi_webjames_register_variables()
142 ADD_STRING("REMOTE_ADDR", buf); in sapi_webjames_register_variables()
/PHP-5.5/ext/snmp/
H A Dsnmp.c566 *buf = '\0'; in php_snmp_getvalue()
578 if (buf == dbuf) { in php_snmp_getvalue()
586 buf = &(sbuf[0]); in php_snmp_getvalue()
591 buf = dbuf; in php_snmp_getvalue()
597 buf = dbuf; in php_snmp_getvalue()
607 *buf = 0; in php_snmp_getvalue()
631 buf[buflen]=0; in php_snmp_getvalue()
641 buf[buflen]=0; in php_snmp_getvalue()
647 buf[buflen]=0; in php_snmp_getvalue()
715 char buf[2048]; in php_snmp_internal() local
[all …]
/PHP-5.5/ext/sockets/tests/
H A Dsocket_abstract_path_sendmsg.phpt33 if (!socket_recv($s, $buf, 20, 0)) die("recv");
34 print_r($buf);
H A Dsocket_abstract_path.phpt37 if (!socket_recv($conns, $buf, 20, 0)) die("recv");
38 print_r($buf);
/PHP-5.5/ext/sockets/
H A Dsockets.c137 ZEND_ARG_INFO(0, buf)
183 ZEND_ARG_INFO(1, buf)
190 ZEND_ARG_INFO(0, buf)
197 ZEND_ARG_INFO(1, buf)
206 ZEND_ARG_INFO(0, buf)
555 const char *buf; local
579 buf = NULL;
596 return (buf ? (char *) buf : "");
1586 zval_dtor(buf);
1592 zval_dtor(buf);
[all …]
H A Dconversions.c54 # define msg_control Control.buf
57 # define iov_base buf
224 char *bufp = buf; in from_array_iterate()
231 if (snprintf(buf, sizeof(buf), "element #%u", i) >= sizeof(buf)) { in from_array_iterate()
931 char *bufp = buf; in from_zval_write_control_array()
962 if (snprintf(buf, sizeof(buf), "element #%u", (unsigned)i++) >= sizeof(buf)) { in from_zval_write_control_array()
1025 char *bufp = buf; in to_zval_read_control_array()
1045 if (snprintf(buf, sizeof(buf), "element #%u", (unsigned)i++) >= sizeof(buf)) { in to_zval_read_control_array()
1231 char *buf = safe_emalloc(1, len, 1); in to_zval_read_iov() local
1235 buf[len] = '\0'; in to_zval_read_iov()
[all …]
/PHP-5.5/ext/zip/lib/
H A Dzip_source_zip.c123 char b[8192], *buf; in read_zip() local
128 buf = (char *)data; in read_zip()
149 if ((i=zip_fread(z->zf, buf, n)) < 0) in read_zip()
/PHP-5.5/ext/intl/breakiterator/
H A Dcodepointiterator_internal.cpp241 char *buf = (char*)stackBuffer; in createBufferClone() local
249 uint32_t offsetUp = (uint32_t)U_ALIGNMENT_OFFSET_UP(buf); in createBufferClone()
251 buf += offsetUp; in createBufferClone()
265 return new(buf) CodePointBreakIterator(*this); in createBufferClone()
/PHP-5.5/ext/soap/
H A Dphp_http.c41 unsigned char* buf; in proxy_authentication() local
56 efree(buf); in proxy_authentication()
71 unsigned char* buf; in basic_authentication() local
86 efree(buf); in basic_authentication()
334 char *buf, in make_http_soap_request() argument
370 request = buf; in make_http_soap_request()
448 if (request != buf) {efree(request);} in make_http_soap_request()
459 if (request != buf) {efree(request);} in make_http_soap_request()
469 if (request != buf) {efree(request);} in make_http_soap_request()
786 unsigned char* buf; in make_http_soap_request() local
[all …]
/PHP-5.5/ext/pcre/pcrelib/sljit/
H A DsljitLir.c418 buf = compiler->buf; in sljit_free_compiler()
419 while (buf) { in sljit_free_compiler()
420 curr = buf; in sljit_free_compiler()
421 buf = buf->next; in sljit_free_compiler()
426 while (buf) { in sljit_free_compiler()
427 curr = buf; in sljit_free_compiler()
428 buf = buf->next; in sljit_free_compiler()
493 ret = compiler->buf->memory + compiler->buf->used_size; in ensure_buf()
542 struct sljit_memory_fragment *buf = compiler->buf; in reverse_buf() local
549 prev = buf; in reverse_buf()
[all …]
/PHP-5.5/ext/iconv/
H A Diconv.c251 snprintf(buf, sizeof(buf), "%d.%d", in PHP_INI_END()
253 version = buf; in PHP_INI_END()
708 out_p = buf; in _php_iconv_strlen()
829 out_p = buf; in _php_iconv_substr()
961 out_p = buf; in _php_iconv_strpos()
991 if (_php_iconv_memequal(buf, ndl_buf_p, sizeof(buf))) { in _php_iconv_strpos()
1019 if (_php_iconv_memequal(buf, &ndl_buf[i], sizeof(buf))) { in _php_iconv_strpos()
1032 if (_php_iconv_memequal(buf, ndl_buf_p, sizeof(buf))) { in _php_iconv_strpos()
1062 if (_php_iconv_memequal(buf, &ndl_buf[i], sizeof(buf))) { in _php_iconv_strpos()
1206 out_p = buf; in _php_iconv_mime_encode()
[all …]
/PHP-5.5/ext/hash/
H A Dhash.c160 char buf[1024]; in php_hash_do_hash() local
163 while ((n = php_stream_read(stream, buf, sizeof(buf))) > 0) { in php_hash_do_hash()
164 ops->hash_update(context, (unsigned char *) buf, n); in php_hash_do_hash()
281 char buf[1024]; in php_hash_do_hash_hmac() local
285 while ((n = php_stream_read(stream, buf, sizeof(buf))) > 0) { in php_hash_do_hash_hmac()
286 ops->hash_update(context, (unsigned char *) buf, n); in php_hash_do_hash_hmac()
439 char buf[1024]; in PHP_FUNCTION() local
446 if ((n = php_stream_read(stream, buf, toread)) <= 0) { in PHP_FUNCTION()
467 char *filename, buf[1024]; in PHP_FUNCTION() local
483 while ((n = php_stream_read(stream, buf, sizeof(buf))) > 0) { in PHP_FUNCTION()
[all …]
/PHP-5.5/TSRM/
H A Dtsrm_win32.h102 TSRM_API int win32_utime(const char *filename, struct utimbuf *buf);
107 TSRM_API int shmctl(int key, int cmd, struct shmid_ds *buf);
/PHP-5.5/main/streams/
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,
149 char *buf; member
/PHP-5.5/ext/standard/
H A Dmath.c201 char buf[40]; in _php_math_round() local
202 snprintf(buf, 39, "%15fe%d", tmp_value, -places); in _php_math_round()
203 buf[39] = '\0'; in _php_math_round()
204 tmp_value = zend_strtod(buf, NULL); in _php_math_round()
906 char buf[(sizeof(unsigned long) << 3) + 1]; in _php_math_longtobase() local
916 end = ptr = buf + sizeof(buf) - 1; in _php_math_longtobase()
922 } while (ptr > buf && value); in _php_math_longtobase()
944 char buf[(sizeof(double) << 3) + 1]; in _php_math_zvaltobase() local
952 end = ptr = buf + sizeof(buf) - 1; in _php_math_zvaltobase()
958 } while (ptr > buf && fabs(fvalue) >= 1); in _php_math_zvaltobase()
/PHP-5.5/sapi/isapi/
H A Dphp5isapi.c875 char buf[1024]; in HttpExtensionProc() local
904 _snprintf(buf, sizeof(buf)-1,"PHP has encountered a Stack overflow"); in HttpExtensionProc()
905 php_isapi_report_exception(buf, strlen(buf) TSRMLS_CC); in HttpExtensionProc()
907 …_snprintf(buf, sizeof(buf)-1,"PHP has encountered an Access Violation at %p", e->ExceptionRecord->… in HttpExtensionProc()
908 php_isapi_report_exception(buf, strlen(buf) TSRMLS_CC); in HttpExtensionProc()
911 …_snprintf(buf, sizeof(buf)-1,"PHP has encountered an Unhandled Exception Code %d at %p", e->Except… in HttpExtensionProc()
912 php_isapi_report_exception(buf, strlen(buf) TSRMLS_CC); in HttpExtensionProc()
/PHP-5.5/ext/openssl/
H A Dxp_ssl.c45 static size_t php_openssl_sockop_io(int read, php_stream *stream, char *buf, size_t count TSRMLS_DC…
177 static size_t php_openssl_sockop_read(php_stream *stream, char *buf, size_t count TSRMLS_DC) in php_openssl_sockop_read() argument
179 return php_openssl_sockop_io(1, stream, buf, count TSRMLS_CC); in php_openssl_sockop_read()
184 return php_openssl_sockop_io(0, stream, (char*)buf, count TSRMLS_CC); in php_openssl_sockop_write()
247 nr_bytes = SSL_read(sslsock->ssl_handle, buf, count); in php_openssl_sockop_io()
249 nr_bytes = SSL_write(sslsock->ssl_handle, buf, count); in php_openssl_sockop_io()
329 nr_bytes = php_stream_socket_ops.read(stream, buf, count TSRMLS_CC); in php_openssl_sockop_io()
331 nr_bytes = php_stream_socket_ops.write(stream, buf, count TSRMLS_CC); in php_openssl_sockop_io()
822 char buf; in php_openssl_sockop_set_option() local
844 n = SSL_peek(sslsock->ssl_handle, &buf, sizeof(buf)); in php_openssl_sockop_set_option()
[all …]

Completed in 182 milliseconds

12345678910>>...14