Home
last modified time | relevance | path

Searched refs:daemon (Results 1 – 25 of 521) sorted by relevance

12345678910>>...21

/external/libmicrohttpd/src/microhttpd/
Ddaemon.c169 MHD_get_master (struct MHD_Daemon *daemon) in MHD_get_master() argument
171 while (NULL != daemon->master) in MHD_get_master()
172 daemon = daemon->master; in MHD_get_master()
173 return daemon; in MHD_get_master()
217 MHD_ip_count_lock (struct MHD_Daemon *daemon) in MHD_ip_count_lock() argument
219 if (MHD_YES != MHD_mutex_lock_(&daemon->per_ip_connection_mutex)) in MHD_ip_count_lock()
232 MHD_ip_count_unlock (struct MHD_Daemon *daemon) in MHD_ip_count_unlock() argument
234 if (MHD_YES != MHD_mutex_unlock_(&daemon->per_ip_connection_mutex)) in MHD_ip_count_unlock()
307 MHD_ip_limit_add (struct MHD_Daemon *daemon, in MHD_ip_limit_add() argument
316 daemon = MHD_get_master (daemon); in MHD_ip_limit_add()
[all …]
Dconnection.c271 struct MHD_Daemon *daemon; in MHD_connection_close() local
273 daemon = connection->daemon; in MHD_connection_close()
274 if (0 == (connection->daemon->options & MHD_USE_EPOLL_TURBO)) in MHD_connection_close()
279 if ( (NULL != daemon->notify_completed) && in MHD_connection_close()
281 daemon->notify_completed (daemon->notify_completed_cls, in MHD_connection_close()
302 MHD_DLOG (connection->daemon, emsg); in connection_close_error()
349 (0 == (connection->daemon->options & MHD_USE_SSL)) ) in try_ready_normal_body()
411 size = connection->daemon->pool_size; in try_ready_chunked_body()
614 new_size = connection->daemon->pool_size / 2;
691 if ( (0 == (connection->daemon->options & MHD_SUPPRESS_DATE_NO_CLOCK)) &&
[all …]
Ddigestauth.c309 mod = connection->daemon->nonce_nc_size; in check_nonce_nc()
327 (void) MHD_mutex_lock_ (&connection->daemon->nnc_lock); in check_nonce_nc()
330 strcpy(connection->daemon->nnc[off].nonce, in check_nonce_nc()
332 connection->daemon->nnc[off].nc = 0; in check_nonce_nc()
333 (void) MHD_mutex_unlock_ (&connection->daemon->nnc_lock); in check_nonce_nc()
336 if ( (nc <= connection->daemon->nnc[off].nc) || in check_nonce_nc()
337 (0 != strcmp(connection->daemon->nnc[off].nonce, nonce)) ) in check_nonce_nc()
339 (void) MHD_mutex_unlock_ (&connection->daemon->nnc_lock); in check_nonce_nc()
341 MHD_DLOG (connection->daemon, in check_nonce_nc()
346 connection->daemon->nnc[off].nc = nc; in check_nonce_nc()
[all …]
/external/libmicrohttpd/src/microspdy/
Ddaemon.c74 spdyf_cleanup_sessions (struct SPDY_Daemon *daemon) in spdyf_cleanup_sessions() argument
78 while (NULL != (session = daemon->cleanup_head)) in spdyf_cleanup_sessions()
80 DLL_remove (daemon->cleanup_head, in spdyf_cleanup_sessions()
81 daemon->cleanup_tail, in spdyf_cleanup_sessions()
95 spdyf_close_all_sessions (struct SPDY_Daemon *daemon) in spdyf_close_all_sessions() argument
99 while (NULL != (session = daemon->sessions_head)) in spdyf_close_all_sessions()
108 spdyf_cleanup_sessions(daemon); in spdyf_close_all_sessions()
120 spdyf_parse_options_va (struct SPDY_Daemon *daemon, in spdyf_parse_options_va() argument
127 if(opt & daemon->options) in spdyf_parse_options_va()
132 daemon->options |= opt; in spdyf_parse_options_va()
[all …]
Dio_openssl.c78 SPDYF_openssl_init(struct SPDY_Daemon *daemon) in SPDYF_openssl_init() argument
82 if(NULL == (daemon->io_context = SSL_CTX_new(TLSv1_server_method()))) in SPDYF_openssl_init()
101 SSL_CTX_set_options(daemon->io_context, options); in SPDYF_openssl_init()
102 if(1 != SSL_CTX_use_certificate_file(daemon->io_context, daemon->certfile , SSL_FILETYPE_PEM)) in SPDYF_openssl_init()
105 SSL_CTX_free(daemon->io_context); in SPDYF_openssl_init()
108 if(1 != SSL_CTX_use_PrivateKey_file(daemon->io_context, daemon->keyfile, SSL_FILETYPE_PEM)) in SPDYF_openssl_init()
111 SSL_CTX_free(daemon->io_context); in SPDYF_openssl_init()
114 … SSL_CTX_set_next_protos_advertised_cb(daemon->io_context, &spdyf_next_protos_advertised_cb, NULL); in SPDYF_openssl_init()
115 if (1 != SSL_CTX_set_cipher_list(daemon->io_context, "HIGH")) in SPDYF_openssl_init()
118 SSL_CTX_free(daemon->io_context); in SPDYF_openssl_init()
[all …]
Dapplicationlayer.c72 struct SPDY_Daemon *daemon; in spdy_handler_new_stream() local
74 daemon = stream->session->daemon; in spdy_handler_new_stream()
77 if(NULL == daemon->new_request_cb) in spdy_handler_new_stream()
160 daemon->new_request_cb(daemon->cls, in spdy_handler_new_stream()
193 return stream->session->daemon->received_data_cb(cls, stream->cls, buf, size, more); in spdy_handler_new_data()
275 SPDY_run (struct SPDY_Daemon *daemon) in SPDY_run() argument
277 if(NULL == daemon) in SPDY_run()
283 SPDYF_run(daemon); in SPDY_run()
288 SPDY_get_timeout (struct SPDY_Daemon *daemon, in SPDY_get_timeout() argument
291 if(NULL == daemon) in SPDY_get_timeout()
[all …]
/external/dnsmasq/src/
Ddnsmasq.c19 struct daemon *daemon; variable
117 if (daemon->edns_pktsz < PACKETSZ) in main()
118 daemon->edns_pktsz = PACKETSZ; in main()
119 daemon->packet_buff_sz = daemon->edns_pktsz > DNSMASQ_PACKETSZ ? in main()
120 daemon->edns_pktsz : DNSMASQ_PACKETSZ; in main()
121 daemon->packet = safe_malloc(daemon->packet_buff_sz); in main()
124 if (!daemon->lease_file) in main()
126 if (daemon->dhcp) in main()
127 daemon->lease_file = LEASEFILE; in main()
141 if (!(daemon->options & OPT_NOWILD)) in main()
[all …]
Dforward.c126 for (serv = daemon->servers; serv; serv=serv->next) in search_servers()
184 (daemon->options & OPT_NODOTS_LOCAL) && !strchr(qdomain, '.') && namelen != 0) in search_servers()
211 unsigned int crc = questions_crc(header, plen, daemon->namebuff); in forward_query()
213 unsigned short gotname = extract_request(header, plen, daemon->namebuff, NULL); in forward_query()
217 if (!daemon->servers) in forward_query()
224 if (!(daemon->options & OPT_ORDER)) in forward_query()
227 daemon->last_server = NULL; in forward_query()
231 start = daemon->servers; /* at end of list, recycle */ in forward_query()
237 flags = search_servers(now, &addrp, gotname, daemon->namebuff, &type, &domain); in forward_query()
263 if (type != 0 || (daemon->options & OPT_ORDER)) in forward_query()
[all …]
Dtftp.c44 char *packet = daemon->packet; in tftp_request()
53 int port = daemon->start_tftp_port; /* may be zero to use ephemeral port */ in tftp_request()
78 iov.iov_len = daemon->packet_buff_sz; in tftp_request()
81 daemon->srv_save = NULL; in tftp_request()
86 if (daemon->options & OPT_NOWILD) in tftp_request()
129 for (tmp = daemon->dhcp_except; tmp; tmp = tmp->next) in tftp_request()
172 if (errno == EADDRINUSE && daemon->start_tftp_port != 0) in tftp_request()
174 if (++port <= daemon->end_tftp_port) in tftp_request()
205 !(daemon->options & OPT_TFTP_NOBLOCK)) in tftp_request()
210 if (transfer->blocksize > (unsigned)daemon->packet_buff_sz - 4) in tftp_request()
[all …]
Doption.c587 r->next = daemon->txt; in add_txt()
588 daemon->txt = r; in add_txt()
962 new->next = daemon->dhcp_match; in parse_dhcp_opt()
963 daemon->dhcp_match = new; in parse_dhcp_opt()
968 new->next = daemon->dhcp_opts; in parse_dhcp_opt()
969 daemon->dhcp_opts = new; in parse_dhcp_opt()
1010 daemon->options |= rept; in one_opt()
1111 daemon->log_file = opt_string_alloc(arg); in one_opt()
1122 daemon->log_fac = facilitynames[i].c_val; in one_opt()
1130 daemon->runfile = opt_string_alloc(arg); in one_opt()
[all …]
Dlease.c34 daemon->dhcp_buff = safe_malloc(256); in lease_init()
35 daemon->dhcp_buff2 = safe_malloc(256); in lease_init()
37 leases_left = daemon->dhcp_max; in lease_init()
39 if (daemon->options & OPT_LEASE_RO) in lease_init()
46 if (daemon->lease_change_command) in lease_init()
48 strcpy(daemon->dhcp_buff, daemon->lease_change_command); in lease_init()
49 strcat(daemon->dhcp_buff, " init"); in lease_init()
50 leasestream = popen(daemon->dhcp_buff, "r"); in lease_init()
63 leasestream = daemon->lease_stream = fopen(daemon->lease_file, "a+"); in lease_init()
66 die(_("cannot open or create lease file %s: %s"), daemon->lease_file, EC_FILE); in lease_init()
[all …]
Dnetlink.c54 if ((daemon->netlinkfd = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE)) != -1) in netlink_init()
56 if (bind(daemon->netlinkfd, (struct sockaddr *)&addr, sizeof(addr)) == -1) in netlink_init()
59 if (errno != EPERM || bind(daemon->netlinkfd, (struct sockaddr *)&addr, sizeof(addr)) == -1) in netlink_init()
60 daemon->netlinkfd = -1; in netlink_init()
64 if (daemon->netlinkfd == -1 || in netlink_init()
65 getsockname(daemon->netlinkfd, (struct sockaddr *)&addr, &slen) == 1) in netlink_init()
91 while ((rc = recvmsg(daemon->netlinkfd, &msg, MSG_PEEK | MSG_TRUNC)) == -1 && errno == EINTR); in netlink_recv()
108 while ((rc = recvmsg(daemon->netlinkfd, &msg, 0)) == -1 && errno == EINTR); in netlink_recv()
152 while((len = sendto(daemon->netlinkfd, (void *)&req, sizeof(req), 0, in iface_enumerate()
243 if ((flags = fcntl(daemon->netlinkfd, F_GETFL)) == -1 || in netlink_multicast()
[all …]
Dnetwork.c66 for (bridge = daemon->bridges; bridge; bridge = bridge->next) in iface_check()
90 if (daemon->if_names || (addr && daemon->if_addrs)) in iface_check()
94 for (tmp = daemon->if_names; tmp; tmp = tmp->next) in iface_check()
98 for (tmp = daemon->if_addrs; tmp; tmp = tmp->next) in iface_check()
115 for (tmp = daemon->if_except; tmp; tmp = tmp->next) in iface_check()
159 if (daemon->if_names && loopback) in iface_allowed()
162 for (lo = daemon->if_names; lo; lo = lo->next) in iface_allowed()
175 lo->next = daemon->if_names; in iface_allowed()
176 daemon->if_names = lo; in iface_allowed()
184 for (tmp = daemon->dhcp_except; tmp; tmp = tmp->next) in iface_allowed()
[all …]
Ddhcp.c57 if (daemon->options & OPT_NOWILD) in dhcp_init()
70 saddr.sin_port = htons(daemon->dhcp_server_port); in dhcp_init()
79 daemon->dhcpfd = fd; in dhcp_init()
86 if (daemon->options & OPT_NO_PING) in dhcp_init()
87 daemon->dhcp_icmp_fd = -1; in dhcp_init()
88 else if ((daemon->dhcp_icmp_fd = make_icmp_sock()) == -1 || in dhcp_init()
89 setsockopt(daemon->dhcp_icmp_fd, SOL_SOCKET, SO_RCVBUF, &oneopt, sizeof(oneopt)) == -1 ) in dhcp_init()
98 daemon->dhcp_packet.iov_len = sizeof(struct dhcp_packet); in dhcp_init()
99 daemon->dhcp_packet.iov_base = safe_malloc(daemon->dhcp_packet.iov_len); in dhcp_init()
132 msg.msg_iov = &daemon->dhcp_packet; in dhcp_packet()
[all …]
Dhelper.c81 if (!(daemon->options & OPT_DEBUG) && uid != 0) in create_helper()
88 if (daemon->options & OPT_NO_FORK) in create_helper()
114 unsigned char *buf = (unsigned char *)daemon->namebuff; in create_helper()
131 p = daemon->dhcp_buff; in create_helper()
144 for (p = daemon->packet, i = 0; i < data.clid_len; i++) in create_helper()
153 sprintf(daemon->dhcp_buff2, "%u ", data.length); in create_helper()
155 sprintf(daemon->dhcp_buff2, "%lu ", (unsigned long)data.expires); in create_helper()
196 my_setenv("DNSMASQ_CLIENT_ID", daemon->packet, &err); in create_helper()
202 my_setenv("DNSMASQ_LEASE_LENGTH", daemon->dhcp_buff2, &err); in create_helper()
204 my_setenv("DNSMASQ_LEASE_EXPIRES", daemon->dhcp_buff2, &err); in create_helper()
[all …]
Drfc2131.c130 struct dhcp_packet *mess = (struct dhcp_packet *)daemon->dhcp_packet.iov_base; in dhcp_reply()
185 if (expand_buf(&daemon->dhcp_packet, size)) in dhcp_reply()
187 mess = (struct dhcp_packet *)daemon->dhcp_packet.iov_base; in dhcp_reply()
223 for (vendor = daemon->dhcp_vendors; vendor; vendor = vendor->next) in dhcp_reply()
273 for (mac = daemon->dhcp_macs; mac; mac = mac->next) in dhcp_reply()
320 for (context_tmp = daemon->dhcp; context_tmp; context_tmp = context_tmp->next) in dhcp_reply()
345 if (daemon->options & OPT_LOG_OPTS) in dhcp_reply()
350 strcpy(daemon->namebuff, inet_ntoa(context_tmp->start)); in dhcp_reply()
353 ntohl(mess->xid), daemon->namebuff, inet_ntoa(context_tmp->netmask)); in dhcp_reply()
356 ntohl(mess->xid), daemon->namebuff, inet_ntoa(context_tmp->end)); in dhcp_reply()
[all …]
Ddbus.c69 for (w = daemon->watches; w; w = w->next) in add_watch()
77 w->next = daemon->watches; in add_watch()
78 daemon->watches = w; in add_watch()
88 for (up = &(daemon->watches), w = daemon->watches; w; w = w->next) in remove_watch()
110 for (serv = daemon->servers; serv; serv = serv->next) in dbus_read_servers()
132 source_addr.in.sin_port = htons(daemon->query_port); in dbus_read_servers()
163 source_addr.in6.sin6_port = htons(daemon->query_port); in dbus_read_servers()
184 for (serv = daemon->servers; serv; serv = serv->next) in dbus_read_servers()
217 serv->next = daemon->servers; in dbus_read_servers()
218 daemon->servers = serv; in dbus_read_servers()
[all …]
/external/v8/tools/testrunner/server/
Dpresence_handler.py63 trusted = self.server.daemon.IsTrusted(pubkey_fingerprint)
64 response = [STARTUP_RESPONSE, self.server.daemon.jobs,
65 self.server.daemon.relative_perf,
66 self.server.daemon.pubkey_fingerprint, trusted]
72 self.server.daemon.AddPeer(p)
79 p.trusted = self.server.daemon.IsTrusted(pubkey_fingerprint)
81 self.server.daemon.AddPeer(p)
84 self.server.daemon.DeletePeer(self.client_address[0])
85 if self.client_address[0] == self.server.daemon.ip:
90 def __init__(self, daemon): argument
[all …]
Dlocal_handler.py62 with self.server.daemon.peer_list_lock:
63 response = [ p.Pack() for p in self.server.daemon.peers
68 self.server.daemon.DeletePeer(data[1])
71 compression.Send([action, self.server.daemon.pubkey_fingerprint],
78 fingerprint = self.server.daemon.CopyToTrusted(data[1])
86 self.server.daemon.AddPerfData(test_key, test_duration, arch, mode)
91 self.server.daemon.UpdatePeerPerformance(data[1], data[2])
99 with self.server.daemon.peer_list_lock:
100 for p in self.server.daemon.peers:
103 (self.server.daemon.jobs, self.server.daemon.relative_perf))
[all …]
Dstatus_handler.py85 response = self.server.daemon.ListTrusted()
89 response = self.server.daemon.SignTrusted(data[1])
93 self.server.daemon.AcceptNewTrusted(data[1:])
97 self.server.daemon.MarkPeerAsTrusting(self.client_address[0])
101 response = self.server.daemon.IsTrusted(data[1])
109 def __init__(self, daemon): argument
110 address = (daemon.ip, constants.STATUS_PORT)
112 self.daemon = daemon
/external/libweave/examples/
Dexamples.mk25 examples/daemon/ledflasher/ledflasher.cc \
26 examples/daemon/light/light.cc \
27 examples/daemon/lock/lock.cc \
28 examples/daemon/oven/oven.cc \
29 examples/daemon/sample/sample.cc \
30 examples/daemon/speaker/speaker.cc
63 out/$(BUILD_MODE)/weave_daemon_ledflasher : out/$(BUILD_MODE)/examples/daemon/ledflasher/ledflasher…
66 out/$(BUILD_MODE)/weave_daemon_light : out/$(BUILD_MODE)/examples/daemon/light/light.o $(daemon_dep…
69 out/$(BUILD_MODE)/weave_daemon_lock : out/$(BUILD_MODE)/examples/daemon/lock/lock.o $(daemon_deps)
72 out/$(BUILD_MODE)/weave_daemon_oven : out/$(BUILD_MODE)/examples/daemon/oven/oven.o $(daemon_deps)
[all …]
/external/v8/tools/
Dtest-server.py162 def _StartDaemon(daemon): argument
166 daemon.start()
173 daemon = main.Server(PIDFILE, ROOT) variable
174 _StartDaemon(daemon)
176 daemon = main.Server(PIDFILE, ROOT) variable
177 daemon.stop()
179 daemon = main.Server(PIDFILE, ROOT) variable
180 daemon.stop()
181 _StartDaemon(daemon)
204 daemon = main.Server(PIDFILE, ROOT) variable
[all …]
/external/guava/guava/src/com/google/common/util/concurrent/
DThreadFactoryBuilder.java47 private Boolean daemon = null; field in ThreadFactoryBuilder
83 public ThreadFactoryBuilder setDaemon(boolean daemon) { in setDaemon() argument
84 this.daemon = daemon; in setDaemon()
151 final Boolean daemon = builder.daemon; in build() local
166 if (daemon != null) { in build()
167 thread.setDaemon(daemon); in build()
/external/avahi/initscript/debian/
DMakefile.am21 avahi-daemon.in \
25 avahi-daemon \
29 avahi-daemon \
32 avahi-daemon: avahi-daemon.in
/external/avahi/initscript/archlinux/
DMakefile.am21 avahi-daemon.in \
25 avahi-daemon \
29 avahi-daemon \
32 avahi-daemon: avahi-daemon.in

12345678910>>...21