Searched defs:buf (Results 1 - 25 of 248) sorted by relevance

12345678910

/PHP_5_5/ext/ereg/regex/
H A Ddebug.c235 static unsigned char buf[10]; local
238 sprintf(buf, "%c", ch);
240 sprintf(buf, "\\%o", ch);
241 return(buf);
H A Dsplit.c155 char buf[512]; local
162 (void) strcpy(buf, argv[1]);
166 (void) strcpy(buf, argv[1]);
167 (void) split(buf, fields, MNF, argv[2]);
172 while (fgets(buf, sizeof(buf), stdin) != NULL) {
173 buf[strlen(buf)-1] = '\0'; /* stomp newline */
174 dosplit(buf, argv[1]);
279 char buf[51 local
[all...]
/PHP_5_5/ext/zip/lib/
H A Dzip_error_strerror.c51 char buf[128], *s;
56 sprintf(buf, "Unknown error %d", err->zip_err);
58 ss = buf;
49 char buf[128], *s; local
H A Dzip_error_to_str.c48 zip_error_to_str(char *buf, zip_uint64_t len, int ze, int se)
53 return snprintf(buf, len, "Unknown error %d", ze);
70 return snprintf(buf, len, "%s%s%s",
46 zip_error_to_str(char *buf, zip_uint64_t len, int ze, int se) argument
H A Dzip_filerange_crc.c50 Bytef buf[BUFSIZE];
62 if ((n=fread(buf, 1, n, fp)) <= 0) {
67 *crcp = crc32(*crcp, buf, n);
48 Bytef buf[BUFSIZE]; local
H A Dzip_source_buffer.c43 const char *buf, *data, *end;
92 char *buf;
96 buf = (char *)data;
100 z->buf = z->data;
106 n = z->end - z->buf;
111 memcpy(buf, z->buf, n);
112 z->buf += n;
42 const char *buf, *data, *end; member in struct:read_data
89 char *buf; local
H A Dzip_source_filep.c131 char *buf;
135 buf = (char *)data;
174 if ((i=fread(buf, 1, n, z->f)) < 0) {
127 char *buf; local
H A Dzip_source_zip.c126 char b[8192], *buf;
131 buf = (char *)data;
152 if ((i=zip_fread(z->zf, buf, n)) < 0)
123 char b[8192], *buf; local
/PHP_5_5/sapi/fpm/fpm/
H A Dfpm_php_trace.c49 char buf[buf_size]; local
55 zlog_print_time(&tv, buf, buf_size);
57 fprintf(slowlog, "\n%s [pool %s] pid %d\n", buf, child->wp->config->name, (int) pid);
59 if (0 > fpm_trace_get_strz(buf, buf_size, (long) &SG(request_info).path_translated)) {
63 fprintf(slowlog, "script_filename = %s\n", buf);
84 if (0 > fpm_trace_get_strz(buf, buf_size, function + offsetof(zend_function, common.function_name))) {
88 fprintf(slowlog, "%s()", buf);
97 *buf = '\0';
102 if (0 > fpm_trace_get_strz(buf, buf_size, op_array + offsetof(zend_op_array, filename))) {
122 fprintf(slowlog, " %s:%u\n", *buf
[all...]
H A Dfpm_trace.c11 int fpm_trace_get_strz(char *buf, size_t sz, long addr) /* {{{ */ argument
30 *buf++ = lc[i];
33 *buf = '\0';
H A Dfpm_trace_pread.c38 char buf[128]; local
40 sprintf(buf, "/proc/%d/" PROC_MEM_FILE, (int) pid);
41 mem_file = open(buf, O_RDONLY);
43 zlog(ZLOG_SYSERROR, "failed to open %s", buf);
/PHP_5_5/ext/fileinfo/libmagic/
H A Dapptype.c14 * the contents of buf. If buf is not the complete file, apptype can
45 file_os2_apptype(struct magic_set *ms, const char *fn, const void *buf, argument
72 if (fwrite(buf, 1, nb, fp) != nb) {
132 if (strncmp((const char *)buf, "MZ", 2))
H A Dis_tar.c63 file_is_tar(struct magic_set *ms, const unsigned char *buf, size_t nbytes) argument
75 tar = is_tar(buf, nbytes);
93 is_tar(const unsigned char *buf, size_t nbytes) argument
95 const union record *header = (const union record *)(const void *)buf;
H A Dprint.c75 file_fmttime(uint64_t v, int flags, char *buf) argument
88 pp = ctime_r(&t, buf);
110 pp = asctime_r(tm, buf);
118 return strcpy(buf, "*Invalid time*");
/PHP_5_5/ext/gd/libgd/
H A Dgd_color.c17 unsigned long *buf; /* stores our calculations */ local
18 unsigned long *bp; /* buf ptr */
36 buf = (unsigned long *)safe_emalloc(sizeof(unsigned long), 5 * im2->colorsTotal, 0);
37 memset( buf, 0, sizeof(unsigned long) * 5 * im2->colorsTotal );
43 bp = buf + (color * 5);
51 bp = buf;
63 gdFree(buf);
H A Dgd_io.c36 unsigned char buf[2]; local
38 buf[0] = w & 0xff;
39 buf[1] = (w / 256) & 0xff;
40 (ctx->putBuf) (ctx, (char *) buf, 2);
122 int gdPutBuf (const void *buf, int size, gdIOCtx * ctx) argument
124 IO_DBG (php_gd_error("Putting buf..."));
125 return (ctx->putBuf) (ctx, buf, size);
129 int gdGetBuf (void *buf, int size, gdIOCtx * ctx) argument
131 return (ctx->getBuf) (ctx, buf, size);
H A Dgd_io_file.c77 static int filePutbuf (gdIOCtx * ctx, const void *buf, int size) argument
82 return fwrite(buf, 1, size, fctx->f);
86 static int fileGetbuf (gdIOCtx * ctx, void *buf, int size) argument
91 return fread(buf, 1, size, fctx->f);
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) argument
86 res = ((lctx->src->source) (lctx->src->context, buf, size));
105 unsigned char buf; local
107 res = sourceGetbuf (ctx, &buf, 1);
110 return buf;
116 static int sinkPutbuf (gdIOCtx * ctx, const void *buf, int size) argument
123 res = (lctx->snk->sink) (lctx->snk->context, buf, size);
H A Dgdxpm.c23 char buf[5]; local
49 buf[1] = '\0';
50 buf[0] = image.colorTable[i].c_color[1];
51 red = strtol(buf, NULL, 16);
53 buf[0] = image.colorTable[i].c_color[2];
54 green = strtol(buf, NULL, 16);
56 buf[0] = image.colorTable[i].c_color[3];
57 blue = strtol(buf, NULL, 16);
61 buf[2] = '\0';
62 buf[
[all...]
/PHP_5_5/ext/mbstring/oniguruma/enc/
H A Dbig5.c64 big5_code_to_mbc(OnigCodePoint code, UChar *buf) argument
66 return onigenc_mb2_code_to_mbc(ONIG_ENCODING_BIG5, code, buf);
/PHP_5_5/ext/mbstring/oniguruma/
H A Dregposerr.c72 regerror(int posix_ecode, const regex_t* reg ARG_UNUSED, char* buf, argument
93 if (buf != NULL && size > 0) {
94 strncpy(buf, s, size - 1);
95 buf[size - 1] = '\0';
/PHP_5_5/ext/standard/
H A Durl_scanner_ex.h41 smart_str buf; member in struct:__anon267
/PHP_5_5/ext/dba/libflatfile/
H A Dflatfile.c88 char buf[16]; local
91 if (php_stream_gets(dba->fp, buf, sizeof(buf))) {
92 value_datum.dsize = atoi(buf);
110 char *buf = emalloc(buf_size); local
117 if (!php_stream_gets(dba->fp, buf, 15)) {
120 num = atoi(buf);
123 buf = erealloc(buf, buf_size);
128 num = php_stream_read(dba->fp, buf, nu
166 char *buf = emalloc(buf_size); local
216 char *buf = emalloc(buf_size); local
264 char *buf = emalloc(buf_size); local
[all...]
/PHP_5_5/ext/hash/
H A Dhash_joaat.c67 * buf - start of buffer to hash
74 joaat_buf(void *buf, size_t len, php_hash_uint32 hval) argument
77 unsigned char *input = (unsigned char *)buf;
/PHP_5_5/win32/
H A Dwinutil.c27 char *buf = NULL; local
31 NULL, error, MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPTSTR)&buf, 0, NULL
34 return (buf ? (char *) buf : "");
80 PHPAPI int php_win32_get_random_bytes(unsigned char *buf, size_t size) { /* {{{ */ argument
118 ret = CryptGenRandom(hCryptProv, size, buf);

Completed in 11 milliseconds

12345678910