Searched refs:ctx (Results 1 - 25 of 70) sorted by relevance

123

/PHP_TRUNK/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.h27 void Putword(int w, gdIOCtx *ctx);
28 void Putchar(int c, gdIOCtx *ctx);
30 void gdPutC(const unsigned char c, gdIOCtx *ctx);
32 void gdPutWord(int w, gdIOCtx *ctx);
33 void gdPutInt(int w, gdIOCtx *ctx);
35 int gdGetC(gdIOCtx *ctx);
37 int gdGetByte(int *result, gdIOCtx *ctx);
38 int gdGetWord(int *result, gdIOCtx *ctx);
39 int gdGetInt(int *result, gdIOCtx *ctx);
41 int gdSeek(gdIOCtx *ctx, cons
[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 Dgd_gif_out.c90 static void BumpPixel (GifCtx *ctx);
91 static int GIFNextPixel (gdImagePtr im, GifCtx *ctx);
93 static void compress (int init_bits, gdIOCtx *outfile, gdImagePtr im, GifCtx *ctx);
94 static void output (code_int code, GifCtx *ctx);
95 static void cl_block (GifCtx *ctx);
96 static void cl_hash (register count_int chsize, GifCtx *ctx);
97 static void char_init (GifCtx *ctx);
98 static void char_out (int c, GifCtx *ctx);
99 static void flush_char (GifCtx *ctx);
182 BumpPixel(GifCtx *ctx) argument
238 GIFNextPixel(gdImagePtr im, GifCtx *ctx) argument
266 GifCtx ctx; local
492 compress(int init_bits, gdIOCtxPtr outfile, gdImagePtr im, GifCtx *ctx) argument
610 output(code_int code, GifCtx *ctx) argument
667 cl_block(GifCtx *ctx) argument
678 cl_hash(register count_int chsize, GifCtx *ctx) argument
722 char_init(GifCtx *ctx) argument
732 char_out(int c, GifCtx *ctx) argument
743 flush_char(GifCtx *ctx) argument
[all...]
/PHP_TRUNK/ext/sockets/
H A Dconversions.h35 typedef void (from_zval_write_field)(const zval *arr_value, char *field, ser_context *ctx);
36 typedef void (to_zval_read_field)(const char *data, zval *zv, res_context *ctx);
46 void from_zval_write_int(const zval *arr_value, char *field, ser_context *ctx);
47 void to_zval_read_int(const char *data, zval *zv, res_context *ctx);
50 void from_zval_write_in6_pktinfo(const zval *container, char *in6_pktinfo_c, ser_context *ctx);
51 void to_zval_read_in6_pktinfo(const char *data, zval *zv, res_context *ctx);
55 void from_zval_write_ucred(const zval *container, char *ucred_c, ser_context *ctx);
56 void to_zval_read_ucred(const char *data, zval *zv, res_context *ctx);
60 size_t calculate_scm_rights_space(const zval *arr, ser_context *ctx);
61 void from_zval_write_fd_array(const zval *arr, char *int_arr, ser_context *ctx);
[all...]
H A Dconversions.c107 static int param_get_bool(void *ctx, const char *key, int def) argument
110 if ((elem = zend_hash_str_find_ptr(ctx, key, strlen(key))) != NULL) {
118 static inline void *accounted_emalloc(size_t alloc_size, ser_context *ctx) argument
121 zend_llist_add_element(&ctx->allocations, &ret);
124 static inline void *accounted_ecalloc(size_t nmemb, size_t alloc_size, ser_context *ctx) argument
127 zend_llist_add_element(&ctx->allocations, &ret);
130 static inline void *accounted_safe_ecalloc(size_t nmemb, size_t alloc_size, size_t offset, ser_context *ctx) argument
134 zend_llist_add_element(&ctx->allocations, &ret);
181 static void do_from_zval_err(ser_context *ctx, const char *fmt, ...) argument
186 do_from_to_zval_err(&ctx
190 do_to_zval_err(res_context *ctx, const char *fmt, ...) argument
215 from_array_iterate(const zval *arr, void (*func)(zval *elem, unsigned i, void **args, ser_context *ctx), void **args, ser_context *ctx) argument
246 from_zval_write_aggregation(const zval *container, char *structure, const field_descriptor *descriptors, ser_context *ctx) argument
269 descr->from_zval(elem, ((char*)structure) + descr->field_offset, ctx); local
278 to_zval_read_aggregation(const char *structure, zval *zarr, const field_descriptor *descriptors, res_context *ctx) argument
307 from_zval_integer_common(const zval *arr_value, ser_context *ctx) argument
365 from_zval_write_int(const zval *arr_value, char *field, ser_context *ctx) argument
384 from_zval_write_uint32(const zval *arr_value, char *field, ser_context *ctx) argument
403 from_zval_write_net_uint16(const zval *arr_value, char *field, ser_context *ctx) argument
422 from_zval_write_sa_family(const zval *arr_value, char *field, ser_context *ctx) argument
441 from_zval_write_pid_t(const zval *arr_value, char *field, ser_context *ctx) argument
460 from_zval_write_uid_t(const zval *arr_value, char *field, ser_context *ctx) argument
489 to_zval_read_int(const char *data, zval *zv, res_context *ctx) argument
496 to_zval_read_unsigned(const char *data, zval *zv, res_context *ctx) argument
503 to_zval_read_net_uint16(const char *data, zval *zv, res_context *ctx) argument
510 to_zval_read_uint32(const char *data, zval *zv, res_context *ctx) argument
517 to_zval_read_sa_family(const char *data, zval *zv, res_context *ctx) argument
524 to_zval_read_pid_t(const char *data, zval *zv, res_context *ctx) argument
531 to_zval_read_uid_t(const char *data, zval *zv, res_context *ctx) argument
540 from_zval_write_sin_addr(const zval *zaddr_str, char *inaddr, ser_context *ctx) argument
558 to_zval_read_sin_addr(const char *data, zval *zv, res_context *ctx) argument
581 from_zval_write_sockaddr_in(const zval *container, char *sockaddr, ser_context *ctx) argument
585 to_zval_read_sockaddr_in(const char *data, zval *zv, res_context *ctx) argument
590 from_zval_write_sin6_addr(const zval *zaddr_str, char *addr6, ser_context *ctx) argument
608 to_zval_read_sin6_addr(const char *data, zval *zv, res_context *ctx) argument
634 from_zval_write_sockaddr_in6(const zval *container, char *sockaddr6, ser_context *ctx) argument
638 to_zval_read_sockaddr_in6(const char *data, zval *zv, res_context *ctx) argument
643 from_zval_write_sun_path(const zval *path, char *sockaddr_un_c, ser_context *ctx) argument
668 to_zval_read_sun_path(const char *data, zval *zv, res_context *ctx) argument
685 from_zval_write_sockaddr_un(const zval *container, char *sockaddr, ser_context *ctx) argument
689 to_zval_read_sockaddr_un(const char *data, zval *zv, res_context *ctx) argument
693 from_zval_write_sockaddr_aux(const zval *container, struct sockaddr **sockaddr_ptr, socklen_t *sockaddr_len, ser_context *ctx) argument
783 to_zval_read_sockaddr_aux(const char *sockaddr_c, zval *zv, res_context *ctx) argument
827 from_zval_write_control(const zval *arr, void **control_buf, zend_llist_element *alloc, size_t *control_len, size_t *offset, ser_context *ctx) argument
902 from_zval_write_aggregation(arr, (char*)CMSG_DATA(cmsghdr), descriptor_data, ctx); local
906 from_zval_write_control_array(const zval *arr, char *msghdr_c, ser_context *ctx) argument
953 to_zval_read_cmsg_data(const char *cmsghdr_c, zval *zv, res_context *ctx) argument
984 to_zval_read_control(const char *cmsghdr_c, zval *zv, res_context *ctx) argument
997 to_zval_read_control_array(const char *msghdr_c, zval *zv, res_context *ctx) argument
1034 from_zval_write_name(const zval *zname_arr, char *msghdr_c, ser_context *ctx) argument
1045 to_zval_read_name(const char *sockaddr_p, zval *zv, res_context *ctx) argument
1054 from_zval_write_msghdr_buffer_size(const zval *elem, char *msghdr_c, ser_context *ctx) argument
1075 from_zval_write_iov_array_aux(zval *elem, unsigned i, void **args, ser_context *ctx) argument
1092 from_zval_write_iov_array(const zval *arr, char *msghdr_c, ser_context *ctx) argument
1112 from_zval_write_controllen(const zval *elem, char *msghdr_c, ser_context *ctx) argument
1128 from_zval_write_msghdr_send(const zval *container, char *msghdr_c, ser_context *ctx) argument
1139 from_zval_write_msghdr_recv(const zval *container, char *msghdr_c, ser_context *ctx) argument
1185 to_zval_read_iov(const char *msghdr_c, zval *zv, res_context *ctx) argument
1218 to_zval_read_msghdr(const char *msghdr_c, zval *zv, res_context *ctx) argument
1234 from_zval_write_ifindex(const zval *zv, char *uinteger, ser_context *ctx) argument
1295 from_zval_write_in6_pktinfo(const zval *container, char *in6_pktinfo_c, ser_context *ctx) argument
1299 to_zval_read_in6_pktinfo(const char *data, zval *zv, res_context *ctx) argument
1316 from_zval_write_ucred(const zval *container, char *ucred_c, ser_context *ctx) argument
1320 to_zval_read_ucred(const char *data, zval *zv, res_context *ctx) argument
1330 calculate_scm_rights_space(const zval *arr, ser_context *ctx) argument
1347 from_zval_write_fd_array_aux(zval *elem, unsigned i, void **args, ser_context *ctx) argument
1376 from_zval_write_fd_array(const zval *arr, char *int_arr, ser_context *ctx) argument
1385 to_zval_read_fd_array(const char *data, zval *zv, res_context *ctx) argument
1449 ser_context ctx; local
1492 res_context ctx; local
[all...]
/PHP_TRUNK/ext/standard/
H A Dmd5.h51 PHPAPI void PHP_MD5Init(PHP_MD5_CTX *ctx);
52 PHPAPI void PHP_MD5Update(PHP_MD5_CTX *ctx, const void *data, size_t size);
53 PHPAPI void PHP_MD5Final(unsigned char *result, PHP_MD5_CTX *ctx);
H A Dmd5.c177 (ctx->block[(n)] = \
183 (ctx->block[(n)])
190 static const void *body(PHP_MD5_CTX *ctx, const void *data, size_t size) argument
198 a = ctx->a;
199 b = ctx->b;
200 c = ctx->c;
201 d = ctx->d;
289 ctx->a = a;
290 ctx->b = b;
291 ctx
297 PHP_MD5Init(PHP_MD5_CTX *ctx) argument
308 PHP_MD5Update(PHP_MD5_CTX *ctx, const void *data, size_t size) argument
343 PHP_MD5Final(unsigned char *result, PHP_MD5_CTX *ctx) argument
[all...]
H A Durl_scanner_ex.c54 url_adapt_state_ex_t *ctx; local
59 ctx = &BG(url_adapt_state_ex);
63 if (ctx->tags)
64 zend_hash_destroy(ctx->tags);
66 ctx->tags = malloc(sizeof(HashTable));
67 if (!ctx->tags) {
72 zend_hash_init(ctx->tags, 0, NULL, tag_dtor, 1);
90 zend_hash_str_add_mem(ctx->tags, key, keylen, val, strlen(val)+1);
221 static inline void tag_arg(url_adapt_state_ex_t *ctx, char quotes, char type) argument
225 if (strncasecmp(ZSTR_VAL(ctx
349 xx_mainloop(url_adapt_state_ex_t *ctx, const char *newdata, size_t newlen) argument
963 url_adapt_state_ex_t *ctx; local
990 url_adapt_state_ex_t *ctx; local
1001 url_adapt_state_ex_t *ctx; local
1025 url_adapt_state_ex_t *ctx = &BG(url_adapt_state_ex); local
[all...]
H A Durl_scanner_ex.re52 url_adapt_state_ex_t *ctx;
57 ctx = &BG(url_adapt_state_ex);
61 if (ctx->tags)
62 zend_hash_destroy(ctx->tags);
64 ctx->tags = malloc(sizeof(HashTable));
65 if (!ctx->tags) {
70 zend_hash_init(ctx->tags, 0, NULL, tag_dtor, 1);
88 zend_hash_str_add_mem(ctx->tags, key, keylen, val, strlen(val)+1);
157 static inline void tag_arg(url_adapt_state_ex_t *ctx, char quotes, char type)
161 if (strncasecmp(ZSTR_VAL(ctx
[all...]
H A Dcrypt_sha256.c106 static void sha256_process_block (const void *buffer, size_t len, struct sha256_ctx *ctx) { argument
111 uint32_t a = ctx->H[0];
112 uint32_t b = ctx->H[1];
113 uint32_t c = ctx->H[2];
114 uint32_t d = ctx->H[3];
115 uint32_t e = ctx->H[4];
116 uint32_t f = ctx->H[5];
117 uint32_t g = ctx->H[6];
118 uint32_t h = ctx->H[7];
123 ctx
204 sha256_init_ctx(struct sha256_ctx *ctx) argument
224 sha256_finish_ctx(struct sha256_ctx *ctx, void *resbuf) argument
256 sha256_process_bytes(const void *buffer, size_t len, struct sha256_ctx *ctx) argument
351 struct sha256_ctx ctx; local
695 struct sha256_ctx ctx; local
[all...]
H A Dcrypt_sha512.c132 sha512_process_block(const void *buffer, size_t len, struct sha512_ctx *ctx) { argument
135 uint64_t a = ctx->H[0];
136 uint64_t b = ctx->H[1];
137 uint64_t c = ctx->H[2];
138 uint64_t d = ctx->H[3];
139 uint64_t e = ctx->H[4];
140 uint64_t f = ctx->H[5];
141 uint64_t g = ctx->H[6];
142 uint64_t h = ctx->H[7];
147 ctx
231 sha512_init_ctx(struct sha512_ctx *ctx) argument
251 sha512_finish_ctx(struct sha512_ctx *ctx, void *resbuf) argument
283 sha512_process_bytes(const void *buffer, size_t len, struct sha512_ctx *ctx) argument
384 struct sha512_ctx ctx; local
760 struct sha512_ctx ctx; local
[all...]
/PHP_TRUNK/sapi/apache2handler/
H A Dsapi_apache2.c76 php_struct *ctx; local
78 ctx = SG(server_context);
79 r = ctx->r;
91 php_struct *ctx; local
94 ctx = SG(server_context);
98 apr_table_unset(ctx->r->headers_out, sapi_header->header);
102 apr_table_clear(ctx->r->headers_out);
121 if (ctx->content_type) {
122 efree(ctx->content_type);
124 ctx
153 php_struct *ctx = SG(server_context); local
184 php_struct *ctx = SG(server_context); local
215 php_struct *ctx = SG(server_context); local
245 php_struct *ctx = SG(server_context); local
257 php_struct *ctx = SG(server_context); local
272 php_struct *ctx = SG(server_context); local
294 php_struct *ctx; local
319 php_struct *ctx; local
341 php_struct *ctx = SG(server_context); local
473 php_apache_request_ctor(request_rec *r, php_struct *ctx) argument
540 php_struct * volatile ctx; local
[all...]
/PHP_TRUNK/ext/zip/lib/
H A Dzip_source_buffer.c88 struct read_data *ctx; local
96 if ((ctx=(struct read_data *)malloc(sizeof(*ctx))) == NULL) {
101 if ((ctx->in = buffer_new_read(data, len, freep)) == NULL) {
103 free(ctx);
107 ctx->out = NULL;
108 ctx->mtime = time(NULL);
109 zip_error_init(&ctx->error);
111 if ((zs=zip_source_function_create(read_data, ctx, error)) == NULL) {
112 buffer_free(ctx
124 struct read_data *ctx = (struct read_data *)state; local
[all...]
H A Dzip_source_crc.c55 struct crc_context *ctx; local
62 if ((ctx=(struct crc_context *)malloc(sizeof(*ctx))) == NULL) {
67 ctx->eof = 0;
68 ctx->validate = validate;
69 zip_error_init(&ctx->error);
70 ctx->size = 0;
71 ctx->crc = 0;
73 return zip_source_layered(za, src, crc_read, ctx);
80 struct crc_context *ctx; local
[all...]
H A Dzip_source_deflate.c62 struct deflate *ctx; local
70 if ((ctx=(struct deflate *)malloc(sizeof(*ctx))) == NULL) {
75 zip_error_init(&ctx->error);
76 ctx->eof = false;
77 ctx->is_stored = false;
78 ctx->can_store = ZIP_CM_IS_DEFAULT(cm);
80 ctx->mem_level = MAX_MEM_LEVEL;
86 ctx)) == NULL) {
87 deflate_free(ctx);
96 compress_read(zip_source_t *src, struct deflate *ctx, void *data, zip_uint64_t len) argument
196 decompress_read(zip_source_t *src, struct deflate *ctx, void *data, zip_uint64_t len) argument
280 struct deflate *ctx; local
348 struct deflate *ctx; local
412 deflate_free(struct deflate *ctx) argument
[all...]
H A Dzip_source_filep.c82 static int create_temp_output(struct read_file *ctx);
112 struct read_file *ctx; local
120 if ((ctx=(struct read_file *)malloc(sizeof(struct read_file))) == NULL) {
125 ctx->fname = NULL;
127 if ((ctx->fname=strdup(fname)) == NULL) {
129 free(ctx);
133 ctx->f = file;
134 ctx->start = start;
135 ctx->end = (len < 0 ? 0 : start+(zip_uint64_t)len);
137 memcpy(&ctx
173 create_temp_output(struct read_file *ctx) argument
227 struct read_file *ctx; local
[all...]
H A Dzip_source_pkware.c63 struct trad_pkware *ctx; local
75 if ((ctx=(struct trad_pkware *)malloc(sizeof(*ctx))) == NULL) {
80 zip_error_init(&ctx->error);
82 ctx->key[0] = KEY0;
83 ctx->key[1] = KEY1;
84 ctx->key[2] = KEY2;
85 decrypt(ctx, NULL, (const zip_uint8_t *)password, strlen(password), 1);
87 if ((s2=zip_source_layered(za, src, pkware_decrypt, ctx)) == NULL) {
88 pkware_free(ctx);
97 decrypt(struct trad_pkware *ctx, zip_uint8_t *out, const zip_uint8_t *in, zip_uint64_t len, int update_only) argument
128 decrypt_header(zip_source_t *src, struct trad_pkware *ctx) argument
167 struct trad_pkware *ctx; local
223 pkware_free(struct trad_pkware *ctx) argument
[all...]
H A Dzip_source_win32a.c42 static HANDLE _win32_open_a(_zip_source_win32_read_file_t *ctx);
43 static HANDLE _win32_create_temp_a(_zip_source_win32_read_file_t *ctx, void **temp, zip_uint32_t value, PSECURITY_ATTRIBUTES sa);
44 static int _win32_rename_temp_a(_zip_source_win32_read_file_t *ctx);
85 _win32_open_a(_zip_source_win32_read_file_t *ctx) argument
87 return CreateFileA(ctx->fname, GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
92 _win32_create_temp_a(_zip_source_win32_read_file_t *ctx, void **temp, zip_uint32_t value, PSECURITY_ATTRIBUTES sa) argument
96 len = strlen((const char *)ctx->fname) + 10;
99 zip_error_set(&ctx->error, ZIP_ER_MEMORY, 0);
103 if (sprintf((char *)*temp, "%s.%08x", (const char *)ctx->fname, value) != len - 1) {
112 _win32_rename_temp_a(_zip_source_win32_read_file_t *ctx) argument
[all...]
H A Dzip_source_win32handle.c44 static int _win32_create_temp_file(_zip_source_win32_read_file_t *ctx);
49 static int _zip_stat_win32(void *h, zip_stat_t *st, _zip_source_win32_read_file_t *ctx);
76 _zip_source_win32_read_file_t *ctx; local
84 if ((ctx = (_zip_source_win32_read_file_t *)malloc(sizeof(_zip_source_win32_read_file_t))) == NULL) {
89 ctx->fname = NULL;
91 if ((ctx->fname = ops->op_strdup(fname)) == NULL) {
93 free(ctx);
98 ctx->ops = ops;
99 ctx->h = h;
100 ctx
146 _zip_source_win32_read_file_t *ctx; local
410 _win32_create_temp_file(_zip_source_win32_read_file_t *ctx) argument
543 _zip_stat_win32(HANDLE h, zip_stat_t *st, _zip_source_win32_read_file_t *ctx) argument
[all...]
H A Dzip_source_win32w.c42 static HANDLE _win32_open_w(_zip_source_win32_read_file_t *ctx);
43 static HANDLE _win32_create_temp_w(_zip_source_win32_read_file_t *ctx, void **temp, zip_uint32_t value, PSECURITY_ATTRIBUTES sa);
44 static int _win32_rename_temp_w(_zip_source_win32_read_file_t *ctx);
85 _win32_open_w(_zip_source_win32_read_file_t *ctx) argument
87 return CreateFileW(ctx->fname, GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
92 _win32_create_temp_w(_zip_source_win32_read_file_t *ctx, void **temp, zip_uint32_t value, PSECURITY_ATTRIBUTES sa) argument
96 len = wcslen((const wchar_t *)ctx->fname) + 10;
99 zip_error_set(&ctx->error, ZIP_ER_MEMORY, 0);
103 if (swprintf((wchar_t *)*temp, len, L"%s.%08x", (const wchar_t *)ctx->fname, value) != len - 1) {
112 _win32_rename_temp_w(_zip_source_win32_read_file_t *ctx) argument
[all...]
H A Dzip_source_window.c63 struct window *ctx; local
70 if ((ctx=(struct window *)malloc(sizeof(*ctx))) == NULL) {
75 ctx->start = start;
76 ctx->end = start + length;
77 zip_stat_init(&ctx->stat);
78 zip_error_init(&ctx->error);
79 ctx->supports = (zip_source_supports(src) & ZIP_SOURCE_SUPPORTS_SEEKABLE) | (zip_source_make_command_bitmap(ZIP_SOURCE_SUPPORTS, ZIP_SOURCE_TELL, -1));
80 ctx->needs_seek = (ctx
116 struct window *ctx; local
[all...]
/PHP_TRUNK/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
35 static int _php_image_output_putbuf(struct gdIOCtx *ctx, const void* buf, int l) /* {{{ */ argument
40 static void _php_image_output_ctxfree(struct gdIOCtx *ctx) /* {{{ */ argument
42 if(ctx) {
43 efree(ctx);
47 static void _php_image_stream_putc(struct gdIOCtx *ctx, int c) /* {{{ */ { argument
49 php_stream * stream = (php_stream *)ctx
53 _php_image_stream_putbuf(struct gdIOCtx *ctx, const void* buf, int l) argument
59 _php_image_stream_ctxfree(struct gdIOCtx *ctx) argument
82 gdIOCtx *ctx = NULL; local
[all...]

Completed in 62 milliseconds

123