/external/dnsmasq/src/ |
dnsmasq.c | 19 struct daemon *daemon; variable in typeref:struct:daemon 117 if (daemon->edns_pktsz < PACKETSZ) 118 daemon->edns_pktsz = PACKETSZ; 119 daemon->packet_buff_sz = daemon->edns_pktsz > DNSMASQ_PACKETSZ ? 120 daemon->edns_pktsz : DNSMASQ_PACKETSZ; 121 daemon->packet = safe_malloc(daemon->packet_buff_sz); 124 if (!daemon->lease_file [all...] |
forward.c | 126 for (serv = daemon->servers; serv; serv=serv->next) 184 (daemon->options & OPT_NODOTS_LOCAL) && !strchr(qdomain, '.') && namelen != 0) 211 unsigned int crc = questions_crc(header, plen, daemon->namebuff); 213 unsigned short gotname = extract_request(header, plen, daemon->namebuff, NULL); 217 if (!daemon->servers) 224 if (!(daemon->options & OPT_ORDER)) 227 daemon->last_server = NULL; 231 start = daemon->servers; /* at end of list, recycle */ 237 flags = search_servers(now, &addrp, gotname, daemon->namebuff, &type, &domain); 263 if (type != 0 || (daemon->options & OPT_ORDER) [all...] |
netlink.c | 54 if ((daemon->netlinkfd = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE)) != -1) 56 if (bind(daemon->netlinkfd, (struct sockaddr *)&addr, sizeof(addr)) == -1) 59 if (errno != EPERM || bind(daemon->netlinkfd, (struct sockaddr *)&addr, sizeof(addr)) == -1) 60 daemon->netlinkfd = -1; 64 if (daemon->netlinkfd == -1 || 65 getsockname(daemon->netlinkfd, (struct sockaddr *)&addr, &slen) == 1) 91 while ((rc = recvmsg(daemon->netlinkfd, &msg, MSG_PEEK | MSG_TRUNC)) == -1 && errno == EINTR); 108 while ((rc = recvmsg(daemon->netlinkfd, &msg, 0)) == -1 && errno == EINTR); 152 while((len = sendto(daemon->netlinkfd, (void *)&req, sizeof(req), 0, 243 if ((flags = fcntl(daemon->netlinkfd, F_GETFL)) == -1 | [all...] |
tftp.c | 44 char *packet = daemon->packet; 53 int port = daemon->start_tftp_port; /* may be zero to use ephemeral port */ 78 iov.iov_len = daemon->packet_buff_sz; 81 daemon->srv_save = NULL; 86 if (daemon->options & OPT_NOWILD) 129 for (tmp = daemon->dhcp_except; tmp; tmp = tmp->next) 172 if (errno == EADDRINUSE && daemon->start_tftp_port != 0) 174 if (++port <= daemon->end_tftp_port) 205 !(daemon->options & OPT_TFTP_NOBLOCK)) 210 if (transfer->blocksize > (unsigned)daemon->packet_buff_sz - 4 [all...] |
option.c | 35 { "daemon", LOG_DAEMON }, 116 { "no-daemon", 0, 0, 'd' }, 299 { '8', ARG_ONE, "<facilty>|<file>", gettext_noop("Log to this syslog facility or file. (defaults to DAEMON)"), NULL }, 587 r->next = daemon->txt; 588 daemon->txt = r; 962 new->next = daemon->dhcp_match; 963 daemon->dhcp_match = new; 968 new->next = daemon->dhcp_opts; 969 daemon->dhcp_opts = new; [all...] |
lease.c | 34 daemon->dhcp_buff = safe_malloc(256); 35 daemon->dhcp_buff2 = safe_malloc(256); 37 leases_left = daemon->dhcp_max; 39 if (daemon->options & OPT_LEASE_RO) 46 if (daemon->lease_change_command) 48 strcpy(daemon->dhcp_buff, daemon->lease_change_command); 49 strcat(daemon->dhcp_buff, " init"); 50 leasestream = popen(daemon->dhcp_buff, "r"); 63 leasestream = daemon->lease_stream = fopen(daemon->lease_file, "a+") [all...] |
helper.c | 81 if (!(daemon->options & OPT_DEBUG) && uid != 0) 88 if (daemon->options & OPT_NO_FORK) 89 /* send error to daemon process if no-fork */ 93 /* kill daemon */ 114 unsigned char *buf = (unsigned char *)daemon->namebuff; 131 p = daemon->dhcp_buff; 144 for (p = daemon->packet, i = 0; i < data.clid_len; i++) 153 sprintf(daemon->dhcp_buff2, "%u ", data.length); 155 sprintf(daemon->dhcp_buff2, "%lu ", (unsigned long)data.expires); 196 my_setenv("DNSMASQ_CLIENT_ID", daemon->packet, &err) [all...] |
dbus.c | 69 for (w = daemon->watches; w; w = w->next) 77 w->next = daemon->watches; 78 daemon->watches = w; 88 for (up = &(daemon->watches), w = daemon->watches; w; w = w->next) 110 for (serv = daemon->servers; serv; serv = serv->next) 132 source_addr.in.sin_port = htons(daemon->query_port); 163 source_addr.in6.sin6_port = htons(daemon->query_port); 184 for (serv = daemon->servers; serv; serv = serv->next) 217 serv->next = daemon->servers [all...] |
network.c | 64 for (bridge = daemon->bridges; bridge; bridge = bridge->next) 88 if (daemon->if_names || (addr && daemon->if_addrs)) 92 for (tmp = daemon->if_names; tmp; tmp = tmp->next) 96 for (tmp = daemon->if_addrs; tmp; tmp = tmp->next) 111 for (tmp = daemon->if_except; tmp; tmp = tmp->next) 155 if (daemon->if_names && loopback) 158 for (lo = daemon->if_names; lo; lo = lo->next) 171 lo->next = daemon->if_names; 172 daemon->if_names = lo [all...] |
dhcp.c | 57 if (daemon->options & OPT_NOWILD) 70 saddr.sin_port = htons(daemon->dhcp_server_port); 79 daemon->dhcpfd = fd; 86 if (daemon->options & OPT_NO_PING) 87 daemon->dhcp_icmp_fd = -1; 88 else if ((daemon->dhcp_icmp_fd = make_icmp_sock()) == -1 || 89 setsockopt(daemon->dhcp_icmp_fd, SOL_SOCKET, SO_RCVBUF, &oneopt, sizeof(oneopt)) == -1 ) 98 daemon->dhcp_packet.iov_len = sizeof(struct dhcp_packet); 99 daemon->dhcp_packet.iov_base = safe_malloc(daemon->dhcp_packet.iov_len) [all...] |
rfc2131.c | 130 struct dhcp_packet *mess = (struct dhcp_packet *)daemon->dhcp_packet.iov_base; 174 so reassign mess from daemon->packet. Also, the size 185 if (expand_buf(&daemon->dhcp_packet, size)) 187 mess = (struct dhcp_packet *)daemon->dhcp_packet.iov_base; 223 for (vendor = daemon->dhcp_vendors; vendor; vendor = vendor->next) 273 for (mac = daemon->dhcp_macs; mac; mac = mac->next) 320 for (context_tmp = daemon->dhcp; context_tmp; context_tmp = context_tmp->next) 345 if (daemon->options & OPT_LOG_OPTS) 350 strcpy(daemon->namebuff, inet_ntoa(context_tmp->start)); 353 ntohl(mess->xid), daemon->namebuff, inet_ntoa(context_tmp->netmask)) [all...] |
log.c | 61 log_stderr = !!(daemon->options & OPT_DEBUG); 63 if (daemon->log_fac != -1) 64 log_fac = daemon->log_fac; 66 else if (daemon->options & OPT_DEBUG) 70 if (daemon->log_file) 73 daemon->max_logs = 0; 76 max_logs = daemon->max_logs; 78 if (!log_reopen(daemon->log_file))
|
rfc1035.c | 554 for (doctor = daemon->doctors; doctor; doctor = doctor->next) 630 minttl = daemon->neg_ttl; 649 if (daemon->doctors) 730 if (!found && !(daemon->options & OPT_NO_NEG)) 810 if ((daemon->options & OPT_NO_REBIND) && 831 if (!found && !(daemon->options & OPT_NO_NEG)) 953 for (mx = daemon->mxnames; mx; mx = mx->next) 957 for (txt = daemon->txt; txt; txt = txt->next) 961 for (intr = daemon->int_names; intr; intr = intr->next) 965 for (ptr = daemon->ptr; ptr; ptr = ptr->next [all...] |
bpf.c | 107 if (!(daemon->options & OPT_NOWILD) && IN6_IS_ADDR_LINKLOCAL(addr)) 146 if ((daemon->dhcp_raw_fd = open(ifreq.iov_base, O_RDWR, 0)) != -1) 184 if (ioctl(daemon->dhcpfd, SIOCGIFADDR, ifr) < 0) 219 udp.uh_sport = htons(daemon->dhcp_server_port); 220 udp.uh_dport = htons(daemon->dhcp_client_port); 238 ioctl(daemon->dhcp_raw_fd, BIOCSETIF, ifr); 249 while (writev(daemon->dhcp_raw_fd, iov, 4) == -1 && retry_send());
|
cache.c | 78 if (daemon->options & OPT_LOG) 81 bignames_left = daemon->cachesize/10; 83 if (daemon->cachesize > 0) 85 crecp = safe_malloc(daemon->cachesize*sizeof(struct crec)); 87 for (i=0; i < daemon->cachesize; i++, crecp++) 96 rehash(daemon->cachesize); 694 for (a = daemon->cnames; a; a = a->next) 756 char *token = daemon->namebuff, *domain_suffix = NULL; 786 domain_suffix = daemon->domain_suffix; 835 if ((daemon->options & OPT_EXPAND) && domain_suffix && !fqdn && [all...] |
/external/jmonkeyengine/engine/src/networking/com/jme3/network/kernel/ |
NamedThreadFactory.java | 49 private boolean daemon; field in class:NamedThreadFactory 57 public NamedThreadFactory( String name, boolean daemon ) 59 this( name, daemon, Executors.defaultThreadFactory() ); 67 public NamedThreadFactory( String name, boolean daemon, ThreadFactory delegate ) 70 this.daemon = daemon; 79 result.setDaemon(daemon);
|
/hardware/samsung_slsi/exynos5/mobicore/ |
Android.mk | 22 # Include the Daemon 23 include $(MOBICORE_PROJECT_PATH)/daemon/Android.mk 27 $(MOBICORE_PROJECT_PATH)/daemon/ClientLib/public \ 28 $(MOBICORE_PROJECT_PATH)/daemon/Registry/Public
|
/external/guava/guava/src/com/google/common/util/concurrent/ |
ThreadFactoryBuilder.java | 30 * <li> whether threads should be marked as {@linkplain Thread#setDaemon daemon} 47 private Boolean daemon = null; field in class:ThreadFactoryBuilder 74 * Sets daemon or not for new threads created with this ThreadFactory. 76 * @param daemon whether or not new Threads created with this ThreadFactory 77 * will be daemon threads 80 public ThreadFactoryBuilder setDaemon(boolean daemon) { 81 this.daemon = daemon; 148 final Boolean daemon = builder.daemon; local [all...] |
/external/dropbear/ |
compat.h | 39 int daemon(int nochdir, int noclose);
|
/external/dropbear/debian/ |
dropbear.init | 7 DAEMON=/usr/sbin/dropbear 19 test -x "$DAEMON" || cancel "$DAEMON does not exist or is not executable." 34 start-stop-daemon --start --quiet --pidfile /var/run/"$NAME".pid \ 35 --exec "$DAEMON" -- -d "$DROPBEAR_DSSKEY" -r "$DROPBEAR_RSAKEY" \ 41 start-stop-daemon --stop --quiet --oknodo --pidfile /var/run/"$NAME".pid 47 start-stop-daemon --stop --quiet --oknodo --pidfile /var/run/"$NAME".pid 49 start-stop-daemon --start --quiet --pidfile /var/run/"$NAME".pid \ 50 --exec "$DAEMON" -- -d "$DROPBEAR_DSSKEY" -r "$DROPBEAR_RSAKEY" \
|
/bionic/libc/bionic/ |
daemon.c | 32 int daemon( int nochdir, int noclose ) function
|
/external/openssh/openbsd-compat/ |
daemon.c | 1 /* $OpenBSD: daemon.c,v 1.6 2005/08/08 08:05:33 espie Exp $ */ 31 /* OPENBSD ORIGINAL: lib/libc/gen/daemon.c */ 52 daemon(int nochdir, int noclose) function
|
/external/mdnsresponder/mDNSPosix/ |
mdnsd.sh | 18 # Linux /etc/init.d script to start/stop the mdnsd daemon. 26 DAEMON=/usr/sbin/mdnsd 28 DAEMON=/usr/local/sbin/mdnsd 31 test -r $DAEMON || exit 0 33 # Some systems have start-stop-daemon, some don't. 34 if [ -r /sbin/start-stop-daemon ]; then 35 START="start-stop-daemon --start --quiet --exec" 38 # STOP="start-stop-daemon --stop -s TERM --quiet --oknodo --exec" 39 STOP="start-stop-daemon --stop --quiet --oknodo --exec" 50 echo -n "Starting Apple Darwin Multicast DNS / DNS Service Discovery daemon: [all...] |
Makefile | 33 # This Makefile builds an mDNSResponder daemon and a libdns_sd.so shared library 39 # 'sudo make install [DEBUG=1]' to install mdnsd daemon and libdns_sd. 145 # we get build failures: ?daemon? is deprecated (declared at /usr/include/stdlib.h:283) 217 all: setup Daemon libdns_sd Clients SAClient SAResponder SAProxyResponder Identify NetMonitor dnsextd $(OPTIONALTARG) 234 # daemon target builds the daemon 243 Daemon: setup $(BUILDDIR)/mdnsd 244 @echo "Responder daemon done" 295 # Note: If daemon already installed, we make sure it's stopped before overwriting it 312 # that the daemon is installed *before* we try to execute the command to start it [all...] |
/device/generic/goldfish/ |
init.goldfish.sh | 30 # no need for the radio interface daemon 33 stop ril-daemon
|