Searched defs:ctx (Results 1 - 25 of 47) sorted by relevance

12

/PHP_5_6/ext/gd/libgd/
H A Dgd_io.c34 void Putword (int w, gdIOCtx * ctx) argument
40 (ctx->putBuf) (ctx, (char *) buf, 2);
43 void Putchar (int c, gdIOCtx * ctx) argument
45 (ctx->putC) (ctx, c & 0xff);
48 void gdPutC (const unsigned char c, gdIOCtx * ctx) argument
50 (ctx->putC) (ctx, c);
53 void gdPutWord (int w, gdIOCtx * ctx) argument
61 gdPutInt(int w, gdIOCtx * ctx) argument
71 gdGetC(gdIOCtx * ctx) argument
76 gdGetByte(int *result, gdIOCtx * ctx) argument
85 gdGetWord(int *result, gdIOCtx * ctx) argument
98 gdGetInt(int *result, gdIOCtx * ctx) argument
122 gdPutBuf(const void *buf, int size, gdIOCtx * ctx) argument
129 gdGetBuf(void *buf, int size, gdIOCtx * ctx) argument
134 gdSeek(gdIOCtx * ctx, const int pos) argument
141 gdTell(gdIOCtx * ctx) argument
[all...]
H A Dgd_io_dp.c41 gdIOCtx ctx; member in struct:dpIOCtx
52 static void gdFreeDynamicCtx (struct gdIOCtx *ctx);
58 static int dynamicGetbuf (gdIOCtxPtr ctx, void *buf, int len);
59 static int dynamicGetchar (gdIOCtxPtr ctx);
72 dpIOCtx *ctx; local
75 ctx = (dpIOCtx *) gdMalloc (sizeof (dpIOCtx));
79 ctx->dp = dp;
81 ctx->ctx.getC = dynamicGetchar;
82 ctx
95 gdDPExtractData(struct gdIOCtx *ctx, int *size) argument
124 gdFreeDynamicCtx(struct gdIOCtx *ctx) argument
140 dynamicTell(struct gdIOCtx *ctx) argument
149 dynamicSeek(struct gdIOCtx *ctx, const int pos) argument
198 dynamicPutbuf(struct gdIOCtx *ctx, const void *buf, int size) argument
216 dynamicPutchar(struct gdIOCtx *ctx, int a) argument
227 dynamicGetbuf(gdIOCtxPtr ctx, void *buf, int len) argument
252 dynamicGetchar(gdIOCtxPtr ctx) argument
[all...]
H A Dgd_io_file.c33 gdIOCtx ctx; member in struct:fileIOCtx
42 static int fileGetchar (gdIOCtx * ctx);
46 static void gdFreeFileCtx (gdIOCtx * ctx);
51 fileIOCtx *ctx; local
53 ctx = (fileIOCtx *) gdMalloc(sizeof (fileIOCtx));
55 ctx->f = f;
57 ctx->ctx.getC = fileGetchar;
58 ctx->ctx
71 gdFreeFileCtx(gdIOCtx * ctx) argument
77 filePutbuf(gdIOCtx * ctx, const void *buf, int size) argument
86 fileGetbuf(gdIOCtx * ctx, void *buf, int size) argument
94 filePutchar(gdIOCtx * ctx, int a) argument
105 fileGetchar(gdIOCtx * ctx) argument
114 fileSeek(struct gdIOCtx *ctx, const int pos) argument
122 fileTell(struct gdIOCtx *ctx) argument
[all...]
H A Dgd_io_ss.c34 gdIOCtx ctx; member in struct:ssIOCtx
44 static int sourceGetchar (gdIOCtx * ctx);
45 static int sinkPutbuf (gdIOCtx * ctx, const void *buf, int size);
46 static void sinkPutchar (gdIOCtx * ctx, int a);
47 static void gdFreeSsCtx (gdIOCtx * ctx);
52 ssIOCtxPtr ctx; local
54 ctx = (ssIOCtxPtr) gdMalloc (sizeof (ssIOCtx));
56 ctx->src = src;
57 ctx->snk = snk;
59 ctx
73 gdFreeSsCtx(gdIOCtx * ctx) argument
79 sourceGetbuf(gdIOCtx * ctx, void *buf, int size) argument
102 sourceGetchar(gdIOCtx * ctx) argument
116 sinkPutbuf(gdIOCtx * ctx, const void *buf, int size) argument
132 sinkPutchar(gdIOCtx * ctx, int a) argument
[all...]
H A Dgdtest.c26 gdIOCtxPtr ctx; local
79 ctx = gdNewDynamicCtx (sz, iptr);
80 im2 = gdImageCreateFromPngCtx (ctx);
85 ctx->gd_free (ctx);
112 ctx = gdNewDynamicCtx (sz, iptr);
113 /*printf("Got ctx %d\n",ctx); */
114 im2 = gdImageCreateFromGd2Ctx (ctx);
120 ctx
[all...]
/PHP_5_6/ext/standard/
H A Dcrypt_blowfish.c469 tmp1 = data.ctx.S[3][tmp1]; \
470 tmp2 = data.ctx.S[2][tmp2]; \
471 tmp3 = data.ctx.S[1][tmp3]; \
472 tmp3 += data.ctx.S[0][tmp4]; \
474 R ^= data.ctx.P[N + 1]; \
490 tmp1 = BF_INDEX(data.ctx.S[3], tmp1); \
491 tmp2 = BF_INDEX(data.ctx.S[2], tmp2); \
492 tmp3 = BF_INDEX(data.ctx.S[1], tmp3); \
493 tmp3 += BF_INDEX(data.ctx.S[0], tmp4); \
495 R ^= data.ctx
660 BF_ctx ctx; member in struct:__anon457
[all...]
H A Dmd5.c174 (ctx->block[(n)] = \
180 (ctx->block[(n)])
187 static const void *body(PHP_MD5_CTX *ctx, const void *data, size_t size) argument
195 a = ctx->a;
196 b = ctx->b;
197 c = ctx->c;
198 d = ctx->d;
286 ctx->a = a;
287 ctx->b = b;
288 ctx
294 PHP_MD5Init(PHP_MD5_CTX *ctx) argument
305 PHP_MD5Update(PHP_MD5_CTX *ctx, const void *data, size_t size) argument
340 PHP_MD5Final(unsigned char *result, PHP_MD5_CTX *ctx) argument
[all...]
H A Dphp_crypt_r.c129 HCRYPTHASH ctx, ctx1; local
166 if(!CryptCreateHash(hCryptProv, CALG_MD5, 0, 0, &ctx)) {
171 if(!CryptHashData(ctx, (BYTE *)pw, pwl, 0)) {
176 if(!CryptHashData(ctx, magic_md5, magic_md5_len, 0)) {
181 if(!CryptHashData( ctx, (BYTE *)sp, sl, 0)) {
205 CryptHashData(ctx, final, (DWORD)(pl > 16 ? 16 : pl), 0);
214 CryptHashData(ctx, (const BYTE *)final, 1, 0);
216 CryptHashData(ctx, (const BYTE *)pw, 1, 0);
230 /* Fetch the ctx hash value */
231 CryptGetHashParam(ctx, HP_HASHVA
325 PHP_MD5_CTX ctx, ctx1; local
[all...]
/PHP_5_6/pear/
H A Dfetch.php64 $ctx = stream_context_create($copt, array("notification" => "stream_notification_callback")); variable
66 $fp = fopen($argv[1], "r", false, $ctx);
/PHP_5_6/ext/mbstring/libmbfl/filters/
H A Dmbfilter_cp5022x.c570 mbfl_filt_conv_wchar_cp50220_ctx *ctx; local
574 ctx = mbfl_malloc(sizeof(mbfl_filt_conv_wchar_cp50220_ctx));
575 if (ctx == NULL) {
580 ctx->tl_param.mode = MBFL_FILT_TL_HAN2ZEN_KATAKANA | MBFL_FILT_TL_HAN2ZEN_GLUE;
582 ctx->last = *filt;
583 ctx->last.opaque = ctx;
584 ctx->last.data = filt->data;
587 filt->output_function = (int(*)(int, void *))ctx->last.filter_function;
588 filt->flush_function = (int(*)(void *))ctx
597 mbfl_filt_conv_wchar_cp50220_ctx *ctx; local
[all...]
/PHP_5_6/sapi/milter/
H A Dphp_milter.h25 SMFICTX *ctx; member in struct:__anon578
/PHP_5_6/ext/zip/lib/
H A Dzip_source_crc.c59 struct crc_context *ctx;
66 if ((ctx=(struct crc_context *)malloc(sizeof(*ctx))) == NULL) {
71 ctx->eof = 0;
72 ctx->validate = validate;
73 ctx->e[0] = ctx->e[1] = 0;
74 ctx->size = 0;
75 ctx->crc = 0;
77 return zip_source_layered(za, src, crc_read, ctx);
57 struct crc_context *ctx; local
84 struct crc_context *ctx; local
[all...]
H A Dzip_source_deflate.c69 struct deflate *ctx;
77 if ((ctx=(struct deflate *)malloc(sizeof(*ctx))) == NULL) {
82 ctx->e[0] = ctx->e[1] = 0;
83 ctx->eof = 0;
86 ctx->mem_level = TORRENT_MEM_LEVEL;
88 ctx->mem_level = MAX_MEM_LEVEL;
94 ctx)) == NULL) {
95 deflate_free(ctx);
67 struct deflate *ctx; local
103 compress_read(struct zip_source *src, struct deflate *ctx, void *data, zip_uint64_t len) argument
177 decompress_read(struct zip_source *src, struct deflate *ctx, void *data, zip_uint64_t len) argument
249 struct deflate *ctx; local
320 struct deflate *ctx; local
388 deflate_free(struct deflate *ctx) argument
[all...]
H A Dzip_source_pkware.c70 struct trad_pkware *ctx;
82 if ((ctx=(struct trad_pkware *)malloc(sizeof(*ctx))) == NULL) {
87 ctx->e[0] = ctx->e[1] = 0;
89 ctx->key[0] = KEY0;
90 ctx->key[1] = KEY1;
91 ctx->key[2] = KEY2;
92 decrypt(ctx, NULL, (const zip_uint8_t *)password, strlen(password), 1);
94 if ((s2=zip_source_layered(za, src, pkware_decrypt, ctx))
67 struct trad_pkware *ctx; local
102 decrypt(struct trad_pkware *ctx, zip_uint8_t *out, const zip_uint8_t *in, zip_uint64_t len, int update_only) argument
134 decrypt_header(struct zip_source *src, struct trad_pkware *ctx) argument
177 struct trad_pkware *ctx; local
231 pkware_free(struct trad_pkware *ctx) argument
[all...]
H A Dzip_source_window.c58 struct window *ctx;
65 if ((ctx=(struct window *)malloc(sizeof(*ctx))) == NULL) {
70 ctx->skip = start;
71 ctx->len = len;
72 ctx->left = len;
74 return zip_source_layered(za, src, window_read, ctx);
84 struct window *ctx;
89 ctx = (struct window *)_ctx;
93 for (n=0; n<ctx
56 struct window *ctx; local
81 struct window *ctx; local
[all...]
/PHP_5_6/ext/dom/
H A Dxpath.c277 xmlXPathContextPtr ctx, oldctx; local
289 ctx = xmlXPathNewContext(docp);
290 if (ctx == NULL) {
303 xmlXPathRegisterFuncNS (ctx, (const xmlChar *) "functionString",
306 xmlXPathRegisterFuncNS (ctx, (const xmlChar *) "function",
310 intern->ptr = ctx;
311 ctx->userData = (void *)intern;
322 xmlXPathContextPtr ctx; local
326 ctx = (xmlXPathContextPtr) obj->ptr;
328 if (ctx) {
[all...]
/PHP_5_6/ext/pdo_oci/
H A Doci_statement.c187 static sb4 oci_bind_input_cb(dvoid *ctx, OCIBind *bindp, ub4 iter, ub4 index, dvoid **bufpp, ub4 *alenp, ub1 *piecep, dvoid **indpp) /* {{{ */ argument
189 struct pdo_bound_param_data *param = (struct pdo_bound_param_data*)ctx;
219 static sb4 oci_bind_output_cb(dvoid *ctx, OCIBind *bindp, ub4 iter, ub4 index, dvoid **bufpp, ub4 **alenpp, ub1 *piecep, dvoid **indpp, ub2 **rcodepp) /* {{{ */ argument
221 struct pdo_bound_param_data *param = (struct pdo_bound_param_data*)ctx;
/PHP_5_6/ext/soap/
H A Dphp_xml.c72 static void soap_ignorableWhitespace(void *ctx, const xmlChar *ch, int len) argument
76 static void soap_Comment(void *ctx, const xmlChar *value) argument
/PHP_5_6/ext/zlib/
H A Dzlib.c88 static int php_zlib_output_handler_ex(php_zlib_context *ctx, php_output_context *output_context) argument
95 if (Z_OK != deflateInit2(&ctx->Z, ZLIBG(output_compression_level), Z_DEFLATED, ZLIBG(compression_coding), MAX_MEM_LEVEL, Z_DEFAULT_STRATEGY)) {
102 deflateEnd(&ctx->Z);
109 if (Z_OK != deflateInit2(&ctx->Z, ZLIBG(output_compression_level), Z_DEFLATED, ZLIBG(compression_coding), MAX_MEM_LEVEL, Z_DEFAULT_STRATEGY)) {
112 ctx->buffer.used = 0;
117 if (ctx->buffer.free < output_context->in.used) {
118 if (!(ctx->buffer.aptr = erealloc_recoverable(ctx->buffer.data, ctx->buffer.used + ctx
176 php_zlib_context *ctx = *(php_zlib_context **) handler_context; local
236 php_zlib_context *ctx = (php_zlib_context *) ecalloc(1, sizeof(php_zlib_context)); local
246 php_zlib_context *ctx = (php_zlib_context *) opaq; local
453 php_output_context ctx = {0}; local
[all...]
/PHP_5_6/main/
H A Dreentrancy.c315 do_rand(unsigned long *ctx) argument
317 return ((*ctx = *ctx * 1103515245 + 12345) % ((u_long)PHP_RAND_MAX + 1));
322 php_rand_r(unsigned int *ctx) argument
324 u_long val = (u_long) *ctx;
325 *ctx = do_rand(&val);
326 return (int) *ctx;
/PHP_5_6/sapi/aolserver/
H A Daolserver.c82 static void php_ns_config(php_ns_context *ctx, char global);
519 php_ns_config(php_ns_context *ctx, char global) argument
525 path = Ns_ConfigGetPath(ctx->ns_server, ctx->ns_module, NULL);
534 Ns_RegisterRequest(ctx->ns_server, "GET", value, php_ns_request_handler, NULL, ctx, 0);
535 Ns_RegisterRequest(ctx->ns_server, "POST", value, php_ns_request_handler, NULL, ctx, 0);
536 Ns_RegisterRequest(ctx->ns_server, "HEAD", value, php_ns_request_handler, NULL, ctx,
579 php_ns_context *ctx = (php_ns_context *) context; local
599 php_ns_context *ctx; local
[all...]
/PHP_5_6/sapi/apache2filter/
H A Dphp_functions.c48 php_struct *ctx; local
54 ctx = SG(server_context);
55 return ap_sub_req_lookup_uri(filename, ctx->f->r, ctx->f->next);
155 php_struct *ctx; local
161 ctx = SG(server_context);
162 arr = apr_table_elts(ctx->f->r->headers_in);
175 php_struct *ctx; local
181 ctx = SG(server_context);
182 arr = apr_table_elts(ctx
195 php_struct *ctx; local
225 php_struct *ctx; local
253 php_struct *ctx; local
[all...]
/PHP_5_6/sapi/apache2handler/
H A Dphp_functions.c61 php_struct *ctx = SG(server_context); local
63 if (!filename || !ctx || !ctx->r) {
67 return ap_sub_req_lookup_uri(filename, ctx->r, ctx->r->output_filters);
175 php_struct *ctx; local
185 ctx = SG(server_context);
186 arr = apr_table_elts(ctx->r->headers_in);
199 php_struct *ctx; local
209 ctx
223 php_struct *ctx; local
255 php_struct *ctx; local
290 php_struct *ctx; local
[all...]
/PHP_5_6/ext/oci8/
H A Doci8_lob.c172 php_oci_lob_ctx *ctx = (php_oci_lob_ctx *)ctxp; local
177 if ((*(ctx->lob_len) + lenp) > (ctx->alloc_len)) {
179 *(ctx->lob_data) = NULL;
180 *(ctx->lob_len) = 0;
183 memcpy(*(ctx->lob_data) + *(ctx->lob_len), bufxp, (size_t) lenp);
184 *(ctx->lob_len) += lenp;
185 *(*(ctx->lob_data) + *(ctx
249 php_oci_lob_ctx ctx; local
[all...]
/PHP_5_6/ext/gd/
H A Dgd_ctx.c23 #define CTX_PUTC(c,ctx) ctx->putC(ctx, c)
25 static void _php_image_output_putc(struct gdIOCtx *ctx, int c) argument
36 static int _php_image_output_putbuf(struct gdIOCtx *ctx, const void* buf, int l) argument
42 static void _php_image_output_ctxfree(struct gdIOCtx *ctx) argument
44 if(ctx) {
45 efree(ctx);
49 static void _php_image_stream_putc(struct gdIOCtx *ctx, int c) { argument
51 php_stream * stream = (php_stream *)ctx
56 _php_image_stream_putbuf(struct gdIOCtx *ctx, const void* buf, int l) argument
63 _php_image_stream_ctxfree(struct gdIOCtx *ctx) argument
87 gdIOCtx *ctx = NULL; local
[all...]

Completed in 75 milliseconds

12