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

12345678910

/PHP_5_3/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_3/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_3/sapi/fpm/fpm/
H A Dfpm_php_trace.c48 char buf[buf_size]; local
54 zlog_print_time(&tv, buf, buf_size);
56 fprintf(slowlog, "\n%s [pool %s] pid %d\n", buf, child->wp->config->name, (int) pid);
58 if (0 > fpm_trace_get_strz(buf, buf_size, (long) &SG(request_info).path_translated)) {
62 fprintf(slowlog, "script_filename = %s\n", buf);
83 if (0 > fpm_trace_get_strz(buf, buf_size, function + offsetof(zend_function, common.function_name))) {
87 fprintf(slowlog, "%s()", buf);
96 *buf = '\0';
101 if (0 > fpm_trace_get_strz(buf, buf_size, op_array + offsetof(zend_op_array, filename))) {
121 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_3/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;
/PHP_5_3/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
44 buf[1] = '\0';
45 buf[0] = image.colorTable[i].c_color[1];
46 red = strtol(buf, NULL, 16);
48 buf[0] = image.colorTable[i].c_color[2];
49 green = strtol(buf, NULL, 16);
51 buf[0] = image.colorTable[i].c_color[3];
52 blue = strtol(buf, NULL, 16);
56 buf[2] = '\0';
57 buf[
[all...]
/PHP_5_3/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);
H A Deuc_jp.c106 eucjp_code_to_mbc(OnigCodePoint code, UChar *buf) argument
108 UChar *p = buf;
115 if (enc_len(ONIG_ENCODING_EUC_JP, buf) != (p - buf))
118 return p - buf;
H A Deuc_kr.c64 euckr_code_to_mbc(OnigCodePoint code, UChar *buf) argument
66 return onigenc_mb2_code_to_mbc(ONIG_ENCODING_EUC_KR, code, buf);
/PHP_5_3/ext/mbstring/oniguruma/
H A Dregposerr.c66 regerror(int posix_ecode, const regex_t* reg, char* buf, size_t size) argument
85 if (buf != NULL && size > 0) {
86 strncpy(buf, s, size - 1);
87 buf[size - 1] = '\0';
/PHP_5_3/ext/dba/libflatfile/
H A Dflatfile.c89 char buf[16]; local
92 if (php_stream_gets(dba->fp, buf, sizeof(buf))) {
93 value_datum.dsize = atoi(buf);
111 char *buf = emalloc(buf_size); local
118 if (!php_stream_gets(dba->fp, buf, 15)) {
121 num = atoi(buf);
124 buf = erealloc(buf, buf_size);
129 num = php_stream_read(dba->fp, buf, nu
167 char *buf = emalloc(buf_size); local
217 char *buf = emalloc(buf_size); local
265 char *buf = emalloc(buf_size); local
[all...]
/PHP_5_3/ext/standard/
H A Durl_scanner_ex.h41 smart_str buf; member in struct:__anon222
/PHP_5_3/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 27 milliseconds

12345678910