/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...] |
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...] |
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...] |
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/dbus/bus/ |
rc.messagebus.in | 6 # description: This is a daemon which broadcasts notifications of system events \ 9 # processname: dbus-daemon 14 #[ -x @EXPANDED_BINDIR@/dbus-daemon ] || exit 0 20 #processname=dbus-daemon 31 if [ -x @EXPANDED_BINDIR@/dbus-daemon ];then 32 @EXPANDED_BINDIR@/dbus-daemon --system 34 #daemon --check $servicename $processname --system 46 killall dbus-daemon
|
messagebus.in | 6 # description: This is a daemon which broadcasts notifications of system events \ 9 # processname: dbus-daemon 14 [ -x @EXPANDED_BINDIR@/dbus-daemon ] || exit 0 20 processname=dbus-daemon 31 daemon --check $servicename $processname --system
|
Android.mk | 12 LOCAL_CFLAGS+=-DDAEMON_NAME=\"dbus-daemon\" 39 LOCAL_MODULE:=dbus-daemon
|
/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/unistd/ |
daemon.c | 32 int daemon( int nochdir, int noclose ) function
|
/frameworks/base/packages/VpnServices/src/com/android/server/vpn/ |
VpnDaemons.java | 87 Log.w(TAG, " VPN daemon gone: " + s.getName()); 104 DaemonProxy daemon = new DaemonProxy(daemonName); local 105 mDaemonList.add(daemon); 106 daemon.start(); 107 return daemon;
|
/external/bluetooth/bluez/src/ |
bluetooth.conf | 2 for Bluetooth core daemon to work. -->
|
/system/core/rootdir/etc/ |
init.goldfish.sh | 12 # no need for the radio interface daemon 15 stop ril-daemon
|
/external/dbus/tools/ |
run-with-tmp-session-bus.sh | 37 if ! test -e "$DBUS_TOP_BUILDDIR"/bus/dbus-daemon ; then 38 die "$DBUS_TOP_BUILDDIR/bus/dbus-daemon does not exist" 63 kill -TERM $DBUS_SESSION_BUS_PID || die "Message bus vanished! should not have happened" && echo "Killed daemon $DBUS_SESSION_BUS_PID" >&2
|