Home
last modified time | relevance | path

Searched refs:p (Results 1 – 25 of 104) sorted by relevance

12345

/mOS-networking-stack/samples/lighttpd-1.4.32/src/
H A Dmod_rrdtool.c47 plugin_data *p; in INIT_FUNC() local
49 p = calloc(1, sizeof(*p)); in INIT_FUNC()
54 return p; in INIT_FUNC()
80 close(p->read_fd); in FREE_FUNC()
88 free(p); in FREE_FUNC()
268 if (-1 == (safe_write(p->write_fd, p->cmd->ptr, p->cmd->used - 1))) { in mod_rrdtool_create_rrd()
276 if (-1 == (r = safe_read(p->read_fd, p->resp->ptr, p->resp->size))) { in mod_rrdtool_create_rrd()
288 "rrdtool-response:", p->cmd, p->resp); in mod_rrdtool_create_rrd()
428 if (-1 == (r = safe_write(p->write_fd, p->cmd->ptr, p->cmd->used - 1))) { in TRIGGER_FUNC()
438 if (-1 == (r = safe_read(p->read_fd, p->resp->ptr, p->resp->size))) { in TRIGGER_FUNC()
[all …]
H A Dmod_userdir.c40 plugin_data *p; in INIT_FUNC() local
42 p = calloc(1, sizeof(*p)); in INIT_FUNC()
47 return p; in INIT_FUNC()
52 plugin_data *p = p_d; in FREE_FUNC() local
75 free(p); in FREE_FUNC()
83 plugin_data *p = p_d; in SETDEFAULTS_FUNC() local
126 p->conf.x = s->x;
266 buffer_copy_string_buffer(p->temp_path, p->conf.basepath); in URIHANDLER_FUNC()
269 buffer_append_string_len(p->temp_path, p->username->ptr, 1); in URIHANDLER_FUNC()
272 buffer_append_string_buffer(p->temp_path, p->username); in URIHANDLER_FUNC()
[all …]
H A Dmod_ssi.c49 p = calloc(1, sizeof(*p)); in INIT_FUNC()
57 return p; in INIT_FUNC()
88 free(p); in FREE_FUNC()
859 (p->if_level < p->if_is_false_level))) { in process_ssi_stmt()
864 p->if_is_false_level = p->if_level; in process_ssi_stmt()
880 if ((p->if_level == p->if_is_false_level) && in process_ssi_stmt()
887 p->if_is_false_level = p->if_level; in process_ssi_stmt()
913 if (p->if_level == p->if_is_false_level) { in process_ssi_stmt()
920 p->if_is_false_level = p->if_level; in process_ssi_stmt()
928 p->if_is_false_level = p->if_level; in process_ssi_stmt()
[all …]
H A Dmod_simple_vhost.c35 plugin_data *p; in INIT_FUNC() local
37 p = calloc(1, sizeof(*p)); in INIT_FUNC()
41 return p; in INIT_FUNC()
45 plugin_data *p = p_d; in FREE_FUNC() local
51 if (p->config_storage) { in FREE_FUNC()
72 free(p); in FREE_FUNC()
78 plugin_data *p = p_d; in SETDEFAULTS_FUNC() local
160 if (p->conf.debug) { in build_doc_root()
174 p->conf.x = s->x;
240 build_doc_root(srv, con, p, p->doc_root, con->uri.authority)) { in mod_simple_vhost_docroot()
[all …]
H A Dmod_redirect.c30 plugin_data *p; in INIT_FUNC() local
32 p = calloc(1, sizeof(*p)); in INIT_FUNC()
37 return p; in INIT_FUNC()
41 plugin_data *p = p_d; in FREE_FUNC() local
45 if (p->config_storage) { in FREE_FUNC()
54 free(p->config_storage); in FREE_FUNC()
59 buffer_free(p->location); in FREE_FUNC()
61 free(p); in FREE_FUNC()
67 plugin_data *p = p_d; in SETDEFAULTS_FUNC() local
145 p->conf.context = NULL; in mod_redirect_patch_connection()
[all …]
H A Dmod_cml.c22 plugin_data *p; in INIT_FUNC() local
24 p = calloc(1, sizeof(*p)); in INIT_FUNC()
30 return p; in INIT_FUNC()
35 plugin_data *p = p_d; in FREE_FUNC() local
41 if (p->config_storage) { in FREE_FUNC()
65 free(p); in FREE_FUNC()
73 plugin_data *p = p_d; in SETDEFAULTS_FUNC() local
139 p->conf.x = s->x;
186 b = p->baseurl; in cache_call_lua()
195 b = p->basedir; in cache_call_lua()
[all …]
H A Dmod_secure_download.c47 plugin_data *p; in INIT_FUNC() local
49 p = calloc(1, sizeof(*p)); in INIT_FUNC()
51 p->md5 = buffer_init(); in INIT_FUNC()
53 return p; in INIT_FUNC()
58 plugin_data *p = p_d; in FREE_FUNC() local
63 if (p->config_storage) { in FREE_FUNC()
77 buffer_free(p->md5); in FREE_FUNC()
79 free(p); in FREE_FUNC()
87 plugin_data *p = p_d; in SETDEFAULTS_FUNC() local
152 p->conf.x = s->x;
[all …]
H A Dmod_trigger_b4_dl.c70 plugin_data *p; in INIT_FUNC() local
72 p = calloc(1, sizeof(*p)); in INIT_FUNC()
76 return p; in INIT_FUNC()
120 free(p); in FREE_FUNC()
249 p->conf.x = s->x;
334 if (!p->conf.db && !p->conf.mc) return HANDLER_GO_ON; in URIHANDLER_FUNC()
335 if (p->conf.db && p->conf.mc) { in URIHANDLER_FUNC()
389 buffer_copy_string_buffer(p->tmp_buf, p->conf.mc_namespace); in URIHANDLER_FUNC()
393 if (p->tmp_buf->ptr[i] == ' ') p->tmp_buf->ptr[i] = '-'; in URIHANDLER_FUNC()
476 buffer_copy_string_buffer(p->tmp_buf, p->conf.mc_namespace); in URIHANDLER_FUNC()
[all …]
H A Dmod_compress.c69 p = calloc(1, sizeof(*p)); in INIT_FUNC()
74 return p; in INIT_FUNC()
103 free(p); in FREE_FUNC()
115 while ((p = strchr(p + 1, '/')) != NULL) { in mkdir_recursive()
117 *p = '\0'; in mkdir_recursive()
119 *p = '/'; in mkdir_recursive()
137 while ((p = strchr(p + 1, '/')) != NULL) { in mkdir_for_file()
286 z.avail_out = p->b->size - p->b->used - 8; in deflate_file_to_buffer_gzip()
299 c = (unsigned char *)p->b->ptr + p->b->used; in deflate_file_to_buffer_gzip()
436 buffer_copy_string_buffer(p->b, p->ofn); in deflate_file_to_file()
[all …]
H A Dmod_setenv.c50 plugin_data *p; in INIT_FUNC() local
52 p = calloc(1, sizeof(*p)); in INIT_FUNC()
54 return p; in INIT_FUNC()
59 plugin_data *p = p_d; in FREE_FUNC() local
65 if (p->config_storage) { in FREE_FUNC()
76 free(p->config_storage); in FREE_FUNC()
79 free(p); in FREE_FUNC()
87 plugin_data *p = p_d; in SETDEFAULTS_FUNC() local
124 p->conf.x = s->x;
160 plugin_data *p = p_d; in URIHANDLER_FUNC() local
[all …]
H A Dmod_indexfile.c32 plugin_data *p; in INIT_FUNC() local
34 p = calloc(1, sizeof(*p)); in INIT_FUNC()
38 return p; in INIT_FUNC()
43 plugin_data *p = p_d; in FREE_FUNC() local
49 if (p->config_storage) { in FREE_FUNC()
60 free(p->config_storage); in FREE_FUNC()
63 buffer_free(p->tmp_buf); in FREE_FUNC()
65 free(p); in FREE_FUNC()
73 plugin_data *p = p_d; in SETDEFAULTS_FUNC() local
106 p->conf.x = s->x;
[all …]
H A Dmod_mysql_vhost.c72 plugin_data *p; in INIT_FUNC() local
74 p = calloc(1, sizeof(*p)); in INIT_FUNC()
78 return p; in INIT_FUNC()
83 plugin_data *p = p_d; in SERVER_FUNC() local
116 free(p); in SERVER_FUNC()
124 plugin_data *p = p_d; in mod_mysql_vhost_connection_data() local
147 plugin_data *p = p_d; in CONNECTION_FUNC() local
299 p->conf.x = s->x;
363 buffer_copy_string_buffer(p->tmp_buf, p->conf.mysql_pre);
366 buffer_append_string_buffer(p->tmp_buf, p->conf.mysql_post);
[all …]
H A Dmod_flv_streaming.c33 plugin_data *p; in INIT_FUNC() local
35 p = calloc(1, sizeof(*p)); in INIT_FUNC()
40 return p; in INIT_FUNC()
45 plugin_data *p = p_d; in FREE_FUNC() local
51 if (p->config_storage) { in FREE_FUNC()
63 free(p->config_storage); in FREE_FUNC()
69 free(p); in FREE_FUNC()
77 plugin_data *p = p_d; in SETDEFAULTS_FUNC() local
108 p->conf.x = s->x;
186 plugin_data *p = p_d; in URIHANDLER_FUNC() local
[all …]
H A Dmod_evhost.c28 plugin_data *p; in INIT_FUNC() local
30 p = calloc(1, sizeof(*p)); in INIT_FUNC()
34 return p; in INIT_FUNC()
38 plugin_data *p = p_d; in FREE_FUNC() local
44 if (p->config_storage) { in FREE_FUNC()
67 buffer_free(p->tmp_buf); in FREE_FUNC()
69 free(p); in FREE_FUNC()
105 plugin_data *p = p_d; in SETDEFAULTS_FUNC() local
227 p->conf.x = s->x;
260 plugin_data *p = p_d; in mod_evhost_uri_handler() local
[all …]
H A Dmod_skeleton.c59 plugin_data *p; in INIT_FUNC() local
61 p = calloc(1, sizeof(*p)); in INIT_FUNC()
65 return p; in INIT_FUNC()
70 plugin_data *p = p_d; in FREE_FUNC() local
76 if (p->config_storage) { in FREE_FUNC()
88 free(p->config_storage); in FREE_FUNC()
93 free(p); in FREE_FUNC()
101 plugin_data *p = p_d; in SETDEFAULTS_FUNC() local
132 p->conf.x = s->x;
162 plugin_data *p = p_d; in URIHANDLER_FUNC() local
[all …]
H A Dmod_expire.c40 plugin_data *p; in INIT_FUNC() local
42 p = calloc(1, sizeof(*p)); in INIT_FUNC()
48 return p; in INIT_FUNC()
53 plugin_data *p = p_d; in FREE_FUNC() local
61 if (p->config_storage) { in FREE_FUNC()
70 free(p->config_storage); in FREE_FUNC()
73 free(p); in FREE_FUNC()
83 UNUSED(p); in mod_expire_get_offset()
214 plugin_data *p = p_d; in SETDEFAULTS_FUNC() local
257 p->conf.x = s->x;
[all …]
H A Dplugin.c52 plugin *p; in plugin_init() local
54 p = calloc(1, sizeof(*p)); in plugin_init()
56 return p; in plugin_init()
61 if (p->name) buffer_free(p->name); in plugin_free()
76 free(p); in plugin_free()
104 plugin *p; in plugins_load() local
120 plugin *p; in plugins_load() local
242 switch(r = p->y(srv, con, p->data)) {\
290 switch(r = p->y(srv, p->data)) {\ in PLUGIN_TO_SLOT()
337 switch(r = p->handle_fdevent(srv, fdc, p->data)) {
[all …]
H A Dmod_access.c24 plugin_data *p; in INIT_FUNC() local
26 p = calloc(1, sizeof(*p)); in INIT_FUNC()
28 return p; in INIT_FUNC()
32 plugin_data *p = p_d; in FREE_FUNC() local
38 if (p->config_storage) { in FREE_FUNC()
47 free(p->config_storage); in FREE_FUNC()
50 free(p); in FREE_FUNC()
56 plugin_data *p = p_d; in SETDEFAULTS_FUNC() local
85 p->conf.x = s->x;
124 plugin_data *p = p_d; in URIHANDLER_FUNC() local
[all …]
H A Dmod_rewrite.c128 plugin_data *p; in INIT_FUNC() local
130 p = calloc(1, sizeof(*p)); in INIT_FUNC()
134 return p; in INIT_FUNC()
138 plugin_data *p = p_d; in FREE_FUNC() local
157 free(p); in FREE_FUNC()
240 plugin_data *p = p_d; in SETDEFAULTS_FUNC() local
284 p->conf.x = s->x;
334 plugin_data *p = p_d; in URIHANDLER_FUNC() local
457 p->conf.context = p->conf.context_NF; in URIHANDLER_FUNC()
467 switch(r = process_rewrite_rules(srv, con, p, p->conf.rewrite_NF)) { in URIHANDLER_FUNC()
[all …]
H A Dmod_evasive.c42 plugin_data *p; in INIT_FUNC() local
44 p = calloc(1, sizeof(*p)); in INIT_FUNC()
46 return p; in INIT_FUNC()
50 plugin_data *p = p_d; in FREE_FUNC() local
56 if (p->config_storage) { in FREE_FUNC()
63 free(p->config_storage); in FREE_FUNC()
66 free(p); in FREE_FUNC()
72 plugin_data *p = p_d; in SETDEFAULTS_FUNC() local
104 p->conf.x = s->x;
137 plugin_data *p = p_d; in URIHANDLER_FUNC() local
[all …]
H A Dmod_usertrack.c31 plugin_data *p; in INIT_FUNC() local
33 p = calloc(1, sizeof(*p)); in INIT_FUNC()
35 return p; in INIT_FUNC()
40 plugin_data *p = p_d; in FREE_FUNC() local
46 if (p->config_storage) { in FREE_FUNC()
56 free(p->config_storage); in FREE_FUNC()
59 free(p); in FREE_FUNC()
67 plugin_data *p = p_d; in SETDEFAULTS_FUNC() local
136 p->conf.x = s->x;
172 plugin_data *p = p_d; in URIHANDLER_FUNC() local
[all …]
H A Dmod_alias.c27 plugin_data *p; in INIT_FUNC() local
29 p = calloc(1, sizeof(*p)); in INIT_FUNC()
33 return p; in INIT_FUNC()
38 plugin_data *p = p_d; in FREE_FUNC() local
42 if (p->config_storage) { in FREE_FUNC()
54 free(p->config_storage); in FREE_FUNC()
57 free(p); in FREE_FUNC()
65 plugin_data *p = p_d; in SETDEFAULTS_FUNC() local
119 p->conf.x = s->x;
149 plugin_data *p = p_d; in PHYSICALPATH_FUNC() local
[all …]
H A Dmod_status.c60 p = calloc(1, sizeof(*p)); in INIT_FUNC()
62 p->traffic_out = p->requests = 0; in INIT_FUNC()
63 p->rel_traffic_out = p->rel_requests = 0; in INIT_FUNC()
64 p->abs_traffic_out = p->abs_requests = 0; in INIT_FUNC()
72 return p; in INIT_FUNC()
99 free(p); in FREE_FUNC()
841 p->mod_5s_traffic_out[p->mod_5s_ndx] = p->bytes_written; in TRIGGER_FUNC()
842 p->mod_5s_requests [p->mod_5s_ndx] = p->requests; in TRIGGER_FUNC()
844 p->mod_5s_ndx = (p->mod_5s_ndx+1) % 5; in TRIGGER_FUNC()
846 p->abs_traffic_out += p->bytes_written; in TRIGGER_FUNC()
[all …]
/mOS-networking-stack/core/src/
H A Dtcp.c94 pctx->p.iph->daddr, pctx->p.tcph->dest, in CreateServerStream()
95 pctx->p.iph->saddr, pctx->p.tcph->source, NULL); in CreateServerStream()
105 ParseTCPOptions(cur_stream, pctx->p.cur_ts, (uint8_t *)pctx->p.tcph + in CreateServerStream()
119 pctx->p.tcph->dest, pctx->p.iph->saddr, in CreateMonitorStream()
231 pctx->p.iph->saddr, pctx->p.tcph->source, in CreateStream()
232 pctx->p.iph->daddr, pctx->p.tcph->dest, in CreateStream()
263 pctx->p.payloadlen = pctx->p.ip_len - (pctx->p.payload - (u_char *)pctx->p.iph); in FillPacketContextTCPInfo()
325 pctx->p.iph->saddr, pctx->p.tcph->source, in UpdateMonitor()
326 pctx->p.iph->daddr, pctx->p.tcph->dest)) == NULL) { in UpdateMonitor()
418 iph = pctx->p.iph; in ProcessInTCPPacket()
[all …]
H A Dtcp_in.c952 pctx->p.seq + pctx->p.payloadlen == cur_stream->rcv_nxt in Handle_TCP_ST_ESTABLISHED()
970 pctx->p.seq, pctx->p.payloadlen); in Handle_TCP_ST_ESTABLISHED()
1019 DumpIPPacket(mtcp, pctx->p.iph, pctx->p.ip_len); in Handle_TCP_ST_LAST_ACK()
1159 pctx->p.seq, pctx->p.payloadlen);
1213 cur_stream->id, pctx->p.seq, pctx->p.ack_seq,
1216 DumpIPPacket(mtcp, pctx->p.iph, pctx->p.ip_len);
1287 DumpIPPacket(mtcp, pctx->p.iph, pctx->p.ip_len);
1424 pctx->p.iph->daddr, pctx->p.tcph->dest,
1425 pctx->p.iph->saddr, pctx->p.tcph->source,
1430 pctx->p.iph->daddr, pctx->p.tcph->dest,
[all …]

12345