Home
last modified time | relevance | path

Searched refs:buf (Results 1 – 25 of 337) sorted by relevance

12345678910>>...14

/PHP-5.5/ext/gd/libgd/
H A Dgdxpm.c23 char buf[5]; in gdImageCreateFromXpm() local
49 buf[1] = '\0'; in gdImageCreateFromXpm()
51 red = strtol(buf, NULL, 16); in gdImageCreateFromXpm()
57 blue = strtol(buf, NULL, 16); in gdImageCreateFromXpm()
61 buf[2] = '\0'; in gdImageCreateFromXpm()
64 red = strtol(buf, NULL, 16); in gdImageCreateFromXpm()
72 blue = strtol(buf, NULL, 16); in gdImageCreateFromXpm()
76 buf[3] = '\0'; in gdImageCreateFromXpm()
80 red = strtol(buf, NULL, 16); in gdImageCreateFromXpm()
97 buf[4] = '\0'; in gdImageCreateFromXpm()
[all …]
H A Dgd_gif_in.c136 unsigned char buf[16]; in gdImageCreateFromGifCtx() local
176 screen_width = imw = LM_to_uint(buf[0],buf[1]); in gdImageCreateFromGifCtx()
177 screen_height = imh = LM_to_uint(buf[2],buf[3]); in gdImageCreateFromGifCtx()
218 left = LM_to_uint(buf[0], buf[1]); in gdImageCreateFromGifCtx()
219 top = LM_to_uint(buf[2], buf[3]); in gdImageCreateFromGifCtx()
220 width = LM_to_uint(buf[4], buf[5]); in gdImageCreateFromGifCtx()
221 height = LM_to_uint(buf[6], buf[7]); in gdImageCreateFromGifCtx()
302 unsigned char buf[256]; in DoExtension() local
311 Gif89.delayTime = LM_to_uint(buf[1],buf[2]); in DoExtension()
392 scd->buf[0] = scd->buf[scd->last_byte-2]; in GetCode_()
[all …]
H A Dgd_io_ss.c45 static int sinkPutbuf (gdIOCtx * ctx, const void *buf, int size);
79 static int sourceGetbuf (gdIOCtx * ctx, void *buf, int size) in sourceGetbuf() argument
86 res = ((lctx->src->source) (lctx->src->context, buf, size)); in sourceGetbuf()
105 unsigned char buf; in sourceGetchar() local
107 res = sourceGetbuf (ctx, &buf, 1); in sourceGetchar()
110 return buf; in sourceGetchar()
116 static int sinkPutbuf (gdIOCtx * ctx, const void *buf, int size) in sinkPutbuf() argument
123 res = (lctx->snk->sink) (lctx->snk->context, buf, size); in sinkPutbuf()
/PHP-5.5/ext/dba/libflatfile/
H A Dflatfile.c91 if (php_stream_gets(dba->fp, buf, sizeof(buf))) { in flatfile_fetch()
123 buf = erealloc(buf, buf_size); in flatfile_delete()
146 buf = erealloc(buf, buf_size); in flatfile_delete()
151 efree(buf); in flatfile_delete()
174 buf = erealloc(buf, buf_size); in flatfile_findkey()
190 buf = erealloc(buf, buf_size); in flatfile_findkey()
194 efree(buf); in flatfile_findkey()
215 buf = erealloc(buf, buf_size); in flatfile_firstkey()
231 buf = erealloc(buf, buf_size); in flatfile_firstkey()
258 buf = erealloc(buf, buf_size); in flatfile_nextkey()
[all …]
/PHP-5.5/ext/standard/
H A Dvar.c347 smart_str *buf; in php_array_element_export() local
384 smart_str *buf; in php_object_element_export() local
513 smart_str_0 (&buf); in php_var_export()
514 PHPWRITE(buf.c, buf.len); in php_var_export()
533 smart_str_0 (&buf); in PHP_FUNCTION()
536 RETVAL_STRINGL(buf.c, buf.len, 1); in PHP_FUNCTION()
538 PHPWRITE(buf.c, buf.len); in PHP_FUNCTION()
909 smart_str_0(buf); in php_var_serialize()
938 if (buf.c) { in PHP_FUNCTION()
939 RETURN_STRINGL(buf.c, buf.len, 0); in PHP_FUNCTION()
[all …]
H A Dexec.c106 char *buf; in php_exec() local
135 b = buf; in php_exec()
141 bufl += b - buf; in php_exec()
143 buf = erealloc(buf, buflen); in php_exec()
144 b = buf + bufl; in php_exec()
150 bufl += b - buf; in php_exec()
164 buf[bufl] = '\0'; in php_exec()
168 b = buf; in php_exec()
177 buf[bufl] = '\0'; in php_exec()
191 PHPWRITE(buf, bufl); in php_exec()
[all …]
/PHP-5.5/ext/json/
H A Djson.c212 smart_str_appendc(buf, c); in json_pretty_print_char()
251 smart_str_appendc(buf, '['); in json_encode_array()
253 smart_str_appendc(buf, '{'); in json_encode_array()
356 smart_str_appendc(buf, ']'); in json_encode_array()
358 smart_str_appendc(buf, '}'); in json_encode_array()
452 smart_str_alloc(buf, len+2, 0); in json_escape_string()
453 smart_str_appendc(buf, '"'); in json_escape_string()
547 smart_str_appendc(buf, '"'); in json_escape_string()
776 smart_str buf = {0}; in PHP_FUNCTION() local
793 ZVAL_STRINGL(return_value, buf.c, buf.len, 1); in PHP_FUNCTION()
[all …]
H A DJSON_parser.c303 buf->len--; in json_create_zval()
308 int cmp = strcmp(buf->c + (buf->c[0] == '-'), long_min_digits); in json_create_zval()
323 buf->len++; in json_create_zval()
341 ZVAL_STRINGL(*z, buf->c, buf->len, 1); in json_create_zval()
367 && ((unsigned char) buf->c[buf->len - 3]) == 0xed in utf16_to_utf8()
368 && ((unsigned char) buf->c[buf->len - 2] & 0xf0) == 0xa0 in utf16_to_utf8()
369 && ((unsigned char) buf->c[buf->len - 1] & 0xc0) == 0x80) in utf16_to_utf8()
374 utf32 = (((buf->c[buf->len - 2] & 0xf) << 16) in utf16_to_utf8()
375 | ((buf->c[buf->len - 1] & 0x3f) << 10) in utf16_to_utf8()
377 buf->len -= 3; in utf16_to_utf8()
[all …]
/PHP-5.5/ext/fileinfo/libmagic/
H A Dascmagic.c85 nbytes = trim_nuls(buf, nbytes); in file_ascmagic()
129 nbytes = trim_nuls(buf, nbytes); in file_ascmagic_with_encoding()
314 unsigned char *end = buf + len; in encode_utf8()
318 if (end - buf < 1) in encode_utf8()
320 *buf++ = (unsigned char)ubuf[i]; in encode_utf8()
322 if (end - buf < 2) in encode_utf8()
327 if (end - buf < 3) in encode_utf8()
333 if (end - buf < 4) in encode_utf8()
340 if (end - buf < 5) in encode_utf8()
348 if (end - buf < 6) in encode_utf8()
[all …]
H A Dencoding.c319 c = buf[i] & 0x1f; in file_looks_utf8()
322 c = buf[i] & 0x0f; in file_looks_utf8()
325 c = buf[i] & 0x07; in file_looks_utf8()
328 c = buf[i] & 0x03; in file_looks_utf8()
331 c = buf[i] & 0x01; in file_looks_utf8()
341 if ((buf[i] & 0x80) == 0 || (buf[i] & 0x40)) in file_looks_utf8()
365 if (nbytes > 3 && buf[0] == 0xef && buf[1] == 0xbb && buf[2] == 0xbf) in looks_utf8_with_BOM()
381 if (buf[0] == 0xff && buf[1] == 0xfe) in looks_ucs16()
383 else if (buf[0] == 0xfe && buf[1] == 0xff) in looks_ucs16()
394 ubuf[(*ulen)++] = buf[i + 1] + 256 * buf[i]; in looks_ucs16()
[all …]
H A Dfuncs.c70 len = spprintf(&newstr, 0, "%s%s", ms->o.buf, (buf ? buf : "")); in file_printf()
71 if (buf) { in file_printf()
72 efree(buf); in file_printf()
74 efree(ms->o.buf); in file_printf()
77 ms->o.buf = buf; in file_printf()
90 char *buf = NULL; in file_error_core() local
105 file_printf(ms, "%s (%s)", (*buf ? buf : ""), strerror(error)); in file_error_core()
110 if (buf) { in file_error_core()
111 efree(buf); in file_error_core()
314 if (ms->o.buf) { in file_reset()
[all …]
H A Dcompress.c154 swrite(int fd, const void *buf, size_t n) in swrite() argument
160 switch (rv = write(fd, buf, n)) { in swrite()
167 buf = CAST(const char *, buf) + rv; in swrite()
236 buf = ((char *)buf) + rv; in sread()
247 char buf[4096]; in file_pipe2file() local
251 (void)strlcpy(buf, "/tmp/file.XXXXXX", sizeof buf); in file_pipe2file()
254 char *ptr = mktemp(buf); in file_pipe2file()
263 tfd = mkstemp(buf); in file_pipe2file()
265 (void)unlink(buf); in file_pipe2file()
278 while ((r = sread(fd, buf, sizeof(buf), 1)) > 0) in file_pipe2file()
[all …]
/PHP-5.5/ext/dba/libcdb/
H A Dcdb.c48 char buf[32]; in cdb_match() local
52 n = sizeof(buf); in cdb_match()
57 if (memcmp(buf, key, n)) in cdb_match()
121 buf += r; in cdb_read()
131 char buf[8]; in cdb_findnext() local
139 uint32_unpack(buf + 4,&c->hslots); in cdb_findnext()
142 uint32_unpack(buf, &c->hpos); in cdb_findnext()
153 uint32_unpack(buf + 4, &pos); in cdb_findnext()
160 uint32_unpack(buf, &u); in cdb_findnext()
164 uint32_unpack(buf, &u); in cdb_findnext()
[all …]
/PHP-5.5/Zend/
H A Dzend_stream.c67 struct stat buf; in zend_stream_stdio_fsizer() local
109 struct stat buf; in zend_stream_fsize() local
146 char buf; in zend_stream_getc() local
214 *buf = file_handle->handle.stream.mmap.buf;
247 file_handle->handle.stream.mmap.buf = *buf;
267 *buf = safe_erealloc(*buf, size, 2, 0);
274 *buf = safe_erealloc(*buf, size, 1, ZEND_MMAP_AHEAD);
276 file_handle->handle.stream.mmap.buf = *buf;
280 *buf = erealloc(*buf, ZEND_MMAP_AHEAD);
281 file_handle->handle.stream.mmap.buf = *buf;
[all …]
/PHP-5.5/sapi/fpm/fpm/
H A Dzlog.c104 char buf[MAX_LINE_LENGTH]; in zlog_ex() local
113 len = vsnprintf(buf, buf_size, fmt, args); in zlog_ex()
119 external_logger(flags & ZLOG_LEVEL_MASK, buf, len); in zlog_ex()
121 memset(buf, '\0', buf_size); in zlog_ex()
142 len = zlog_print_time(&tv, buf, buf_size); in zlog_ex()
161 len += vsnprintf(buf + len, buf_size - len, fmt, args); in zlog_ex()
184 buf[len] = '\0'; in zlog_ex()
185 php_syslog(syslog_priorities[zlog_level], "%s", buf); in zlog_ex()
186 buf[len++] = '\n'; in zlog_ex()
190 buf[len++] = '\n'; in zlog_ex()
[all …]
H A Dfpm_php_trace.c49 char buf[buf_size]; in fpm_php_trace_dump() local
55 zlog_print_time(&tv, buf, buf_size); in fpm_php_trace_dump()
57 fprintf(slowlog, "\n%s [pool %s] pid %d\n", buf, child->wp->config->name, (int) pid); in fpm_php_trace_dump()
59 if (0 > fpm_trace_get_strz(buf, buf_size, (long) &SG(request_info).path_translated)) { in fpm_php_trace_dump()
63 fprintf(slowlog, "script_filename = %s\n", buf); in fpm_php_trace_dump()
84 …if (0 > fpm_trace_get_strz(buf, buf_size, function + offsetof(zend_function, common.function_name)… in fpm_php_trace_dump()
88 fprintf(slowlog, "%s()", buf); in fpm_php_trace_dump()
97 *buf = '\0'; in fpm_php_trace_dump()
102 if (0 > fpm_trace_get_strz(buf, buf_size, op_array + offsetof(zend_op_array, filename))) { in fpm_php_trace_dump()
122 fprintf(slowlog, " %s:%u\n", *buf ? buf : "unknown", lineno); in fpm_php_trace_dump()
/PHP-5.5/ext/mbstring/oniguruma/
H A Dregint.h353 (buf)->p = (UChar* )xrealloc((buf)->p, (buf)->alloc);\
359 (buf)->p = (UChar* )xrealloc((buf)->p, (buf)->alloc);\
367 (buf)->p = (UChar* )xrealloc((buf)->p, new_alloc);\
387 #define BBUF_ADD(buf,bytes,n) BBUF_WRITE((buf),(buf)->used,(bytes),(n)) argument
388 #define BBUF_ADD1(buf,byte) BBUF_WRITE1((buf),(buf)->used,(byte)) argument
389 #define BBUF_GET_ADD_ADDRESS(buf) ((buf)->p + (buf)->used) argument
390 #define BBUF_GET_OFFSET_POS(buf) ((buf)->used) argument
395 xmemmove((buf)->p + (to), (buf)->p + (from), (n));\
401 xmemmove((buf)->p + (to), (buf)->p + (from), (n));\
406 xmemmove((buf)->p + (to), (buf)->p + (from), (buf)->used - (from));\
[all …]
/PHP-5.5/main/
H A Dreentrancy.c63 if (ctime_r(clock, buf) == buf) in php_ctime_r()
64 return (buf); in php_ctime_r()
70 if (asctime_r(tm, buf) == buf) in php_asctime_r()
71 return (buf); in php_asctime_r()
94 return (buf); in php_ctime_r()
100 if (asctime_r(tm, buf, 26) != -1) in php_asctime_r()
101 return (buf); in php_asctime_r()
204 strcpy(buf, tmp); in php_ctime_r()
208 return buf; in php_ctime_r()
222 strcpy(buf, tmp); in php_asctime_r()
[all …]
/PHP-5.5/ext/session/
H A Dmod_files.c92 buf[n++] = *p++; in ps_files_path_create()
99 buf[n] = '\0'; in ps_files_path_create()
101 return buf; in ps_files_path_create()
123 char buf[MAXPATHLEN]; in ps_files_open() local
140 if (!ps_files_path_create(buf, sizeof(buf), data, key)) { in ps_files_open()
192 char buf[MAXPATHLEN]; in ps_files_cleanup_dir() local
227 VCWD_UNLINK(buf); in ps_files_cleanup_dir()
241 char buf[MAXPATHLEN]; in ps_files_key_exists() local
244 if (!key || !ps_files_path_create(buf, sizeof(buf), data, key)) { in ps_files_key_exists()
438 char buf[MAXPATHLEN]; in PS_DESTROY_FUNC() local
[all …]
/PHP-5.5/ext/mbstring/libmbfl/tests/conv_encoding.tests/
H A Dgen_exp.c120 buf[0] = k; in utf32_utf8()
123 buf[0] = 0xc0 | (k >> 6); in utf32_utf8()
124 buf[1] = 0x80 | (k & 0x3f); in utf32_utf8()
127 buf[0] = 0xe0 | (k >> 12); in utf32_utf8()
132 buf[0] = 0xf0 | (k >> 18); in utf32_utf8()
138 buf[0] = 0xf8 | (k >> 24); in utf32_utf8()
145 buf[0] = 0xfc | (k >> 30); in utf32_utf8()
153 buf[retval] = '\0'; in utf32_utf8()
382 char buf[1024]; in main() local
408 while (fgets(buf, sizeof(buf), fp)) { in main()
[all …]
/PHP-5.5/ext/xmlrpc/libxmlrpc/
H A Dxml_to_soap.c92 char buf[128], *p; in parse_array_type_info() local
93 snprintf(buf, sizeof(buf), "%s", array_type); in parse_array_type_info()
94 p = strchr(buf, '['); in parse_array_type_info()
367 XMLRPC_SetValueBase64(xCurrent, buf.data, buf.offset); in xml_element_to_SOAP_REQUEST_worker()
368 buffer_delete(&buf); in xml_element_to_SOAP_REQUEST_worker()
439 char buf[BUF_SIZE]; in SOAP_to_xml_element_worker() local
459 snprintf(buf, sizeof(buf), "%s[%i]", type, XMLRPC_VectorSize(node)); in SOAP_to_xml_element_worker()
533 simplestring_addn(&elem_val->text, buf.data, buf.offset ); in SOAP_to_xml_element_worker()
534 buffer_delete(&buf); in SOAP_to_xml_element_worker()
630 char buf[128]; in SOAP_REQUEST_to_xml_element() local
[all …]
/PHP-5.5/ext/ftp/tests/
H A Dserver.inc64 var_dump($buf);
100 $buf = fread($s, 2048);
109 dump_and_exit($buf);
126 dump_and_exit($buf);
130 $buf = fread($s, 2048);
134 dump_and_exit($buf);
144 dump_and_exit($buf);
161 dump_and_exit($buf);
175 user_auth($buf);
301 user_auth($buf);
[all …]
/PHP-5.5/win32/
H A Dwinutil.c27 char *buf = NULL; in php_win32_error_to_msg() local
31 NULL, error, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPTSTR)&buf, 0, NULL in php_win32_error_to_msg()
34 return (buf ? (char *) buf : ""); in php_win32_error_to_msg()
80 PHPAPI int php_win32_get_random_bytes(unsigned char *buf, size_t size) { /* {{{ */ in php_win32_get_random_bytes() argument
118 ret = CryptGenRandom(hCryptProv, size, buf); in php_win32_get_random_bytes()
/PHP-5.5/ext/zip/lib/
H A Dzip_source_buffer.c42 const char *buf, *data, *end; member
89 char *buf; in read_data() local
93 buf = (char *)data; in read_data()
97 z->buf = z->data; in read_data()
103 n = z->end - z->buf; in read_data()
108 memcpy(buf, z->buf, n); in read_data()
109 z->buf += n; in read_data()
/PHP-5.5/ext/dba/
H A Ddba_cdb.c140 # define php_cdb_read(cdb, buf, len, pos) cdb_read(cdb, buf, len, pos TSRMLS_CC) argument
144 # define php_cdb_read(cdb, buf, len, pos) cdb_read(cdb, buf, len, pos) argument
215 # define cdb_file_read(fildes, buf, size) php_stream_read(fildes, buf, size) argument
217 # define cdb_file_read(fildes, buf, size) read(fildes, buf, size) argument
249 char buf[8]; in DBA_FIRSTKEY_FUNC() local
262 uint32_unpack(buf, &cdb->eod); in DBA_FIRSTKEY_FUNC()
268 uint32_unpack(buf, &klen); in DBA_FIRSTKEY_FUNC()
269 uint32_unpack(buf + 4, &dlen); in DBA_FIRSTKEY_FUNC()
290 char buf[8]; in DBA_NEXTKEY_FUNC() local
300 uint32_unpack(buf, &klen); in DBA_NEXTKEY_FUNC()
[all …]

Completed in 92 milliseconds

12345678910>>...14