Home
last modified time | relevance | path

Searched +full:- +full:- +full:daemon (Results 1 – 25 of 1060) sorted by relevance

12345678910>>...43

/external/dnsmasq/src/
Ddnsmasq.c1 /* dnsmasq is Copyright (c) 2000-2009 Simon Kelley
37 struct daemon* daemon; variable
41 "no-"
45 "no-"
47 "GNU-getopt "
49 "no-RTC "
52 "no-MMU "
55 "no-"
59 "no-"
63 "no-scripts"
[all …]
Dforward.c1 /* dnsmasq is Copyright (c) 2000-2009 Simon Kelley
61 if (to->sa.sa_family == AF_INET) { in send_from()
64 pkt->ipi_ifindex = 0; in send_from()
65 pkt->ipi_spec_dst = source->addr.addr4; in send_from()
66 msg.msg_controllen = cmptr->cmsg_len = CMSG_LEN(sizeof(struct in_pktinfo)); in send_from()
67 cmptr->cmsg_level = SOL_IP; in send_from()
68 cmptr->cmsg_type = IP_PKTINFO; in send_from()
71 *a = source->addr.addr4; in send_from()
72 msg.msg_controllen = cmptr->cmsg_len = CMSG_LEN(sizeof(struct in_addr)); in send_from()
73 cmptr->cmsg_level = IPPROTO_IP; in send_from()
[all …]
Dlease.c1 /* dnsmasq is Copyright (c) 2000-2009 Simon Kelley
33 daemon->dhcp_buff = safe_malloc(256); in lease_init()
34 daemon->dhcp_buff2 = safe_malloc(256); in lease_init()
36 leases_left = daemon->dhcp_max; in lease_init()
38 if (daemon->options & OPT_LEASE_RO) { in lease_init()
40 initial state of the database. If leasefile-ro is in lease_init()
44 if (daemon->lease_change_command) { in lease_init()
45 strcpy(daemon->dhcp_buff, daemon->lease_change_command); in lease_init()
46 strcat(daemon->dhcp_buff, " init"); in lease_init()
47 leasestream = popen(daemon->dhcp_buff, "r"); in lease_init()
[all …]
Doption.c1 /* dnsmasq is Copyright (c) 2000-2009 Simon Kelley
39 /* options which don't have a one-char version */
86 {"no-hosts", 0, 0, 'h'},
87 {"no-poll", 0, 0, 'n'},
89 {"no-daemon", 0, 0, 'd'},
90 {"log-queries", 0, 0, 'q'},
93 {"resolv-file", 2, 0, 'r'},
94 {"mx-host", 1, 0, 'm'},
95 {"mx-target", 1, 0, 't'},
96 {"cache-size", 2, 0, 'c'},
[all …]
Dnetwork.c1 /* dnsmasq is Copyright (c) 2000-2009 Simon Kelley
29 if (ioctl(fd, SIOCGIFNAME, &ifr) == -1) return 0; in indextoname()
57 an IP address with --dhcp-bridge=interface,alias,alias */ in iface_check()
59 for (bridge = daemon->bridges; bridge; bridge = bridge->next) { in iface_check()
60 for (alias = bridge->alias; alias; alias = alias->next) in iface_check()
61 if (strncmp(name, alias->iface, IF_NAMESIZE) == 0) { in iface_check()
64 if (!(newindex = if_nametoindex(bridge->iface))) { in iface_check()
65 my_syslog(LOG_WARNING, _("unknown interface %s in bridge-interface"), name); in iface_check()
69 strncpy(name, bridge->iface, IF_NAMESIZE); in iface_check()
77 if (daemon->if_names || (addr && daemon->if_addrs)) { in iface_check()
[all …]
Dnetlink.c1 /* dnsmasq is Copyright (c) 2000-2009 Simon Kelley
52 if ((daemon->netlinkfd = socket(AF_NETLINK, SOCK_RAW, NETLINK_ROUTE)) != -1) { in netlink_init()
53 if (bind(daemon->netlinkfd, (struct sockaddr*) &addr, sizeof(addr)) == -1) { in netlink_init()
56 bind(daemon->netlinkfd, (struct sockaddr*) &addr, sizeof(addr)) == -1) in netlink_init()
57 daemon->netlinkfd = -1; in netlink_init()
61 if (daemon->netlinkfd == -1 || in netlink_init()
62 getsockname(daemon->netlinkfd, (struct sockaddr*) &addr, &slen) == 1) in netlink_init()
86 … while ((rc = recvmsg(daemon->netlinkfd, &msg, MSG_PEEK | MSG_TRUNC)) == -1 && errno == EINTR) in netlink_recv()
90 if (rc != -1 && (msg.msg_flags & MSG_TRUNC)) { in netlink_recv()
101 while ((rc = recvmsg(daemon->netlinkfd, &msg, 0)) == -1 && errno == EINTR) in netlink_recv()
[all …]
Ddhcp.c1 /* dnsmasq is Copyright (c) 2000-2009 Simon Kelley
38 if (fd == -1) die(_("cannot create DHCP socket: %s"), NULL, EC_BADNET); in dhcp_init()
42 setsockopt(fd, SOL_IP, IP_MTU_DISCOVER, &mtu, sizeof(mtu)) == -1 || in dhcp_init()
45 setsockopt(fd, SOL_IP, IP_PKTINFO, &oneopt, sizeof(oneopt)) == -1 || in dhcp_init()
47 setsockopt(fd, IPPROTO_IP, IP_RECVIF, &oneopt, sizeof(oneopt)) == -1 || in dhcp_init()
49 setsockopt(fd, SOL_SOCKET, SO_BROADCAST, &oneopt, sizeof(oneopt)) == -1) in dhcp_init()
52 /* When bind-interfaces is set, there might be more than one dnmsasq in dhcp_init()
55 if (daemon->options & OPT_NOWILD) { in dhcp_init()
61 if (rc == -1) in dhcp_init()
67 saddr.sin_port = htons(daemon->dhcp_server_port); in dhcp_init()
[all …]
Drfc2131.c1 /* dnsmasq is Copyright (c) 2000-2009 Simon Kelley
25 /* The Linux in-kernel DHCP client silently ignores any packet
80 #define have_config(config, mask) ((config) && ((config)->flags & (mask)))
124 int clid_len = 0, ignore = 0, do_classes = 0, selecting = 0, pxearch = -1; in dhcp_reply()
125 struct dhcp_packet* mess = (struct dhcp_packet*) daemon->dhcp_packet.iov_base; in dhcp_reply()
153 if (mess->op != BOOTREQUEST || mess->hlen > DHCP_CHADDR_MAX) return 0; in dhcp_reply()
155 if (mess->htype == 0 && mess->hlen != 0) return 0; in dhcp_reply()
162 if (*((u32*) &mess->options) != htonl(DHCP_COOKIE)) return 0; in dhcp_reply()
165 so reassign mess from daemon->packet. Also, the size in dhcp_reply()
166 sent includes the IP and UDP headers, hence the magic "-28" */ in dhcp_reply()
[all …]
Dhelper.c1 /* dnsmasq is Copyright (c) 2000-2009 Simon Kelley
59 if (pipe(pipefd) == -1 || !fix_fd(pipefd[1]) || (pid = fork()) == -1) { in create_helper()
77 if (!(daemon->options & OPT_DEBUG) && uid != 0) { in create_helper()
79 if (setgroups(0, &unused) == -1 || setgid(gid) == -1 || setuid(uid) == -1) { in create_helper()
80 if (daemon->options & OPT_NO_FORK) /* send error to daemon process if no-fork */ in create_helper()
83 /* kill daemon */ in create_helper()
94 for (max_fd--; max_fd >= 0; max_fd--) in create_helper()
103 unsigned char* buf = (unsigned char*) daemon->namebuff; in create_helper()
119 p = daemon->dhcp_buff; in create_helper()
121 p += sprintf(p, "%.2x-", data.hwaddr_type); in create_helper()
[all …]
/external/oss-fuzz/projects/dnsmasq/
Dfuzz_header.h5 http://www.apache.org/licenses/LICENSE-2.0
52 *size -= STR_SIZE; in get_null_terminated()
67 *size -= to_get; in gb_get_random_data()
93 *size-=1; in get_short()
102 *size -= 4; in get_int()
125 return -1; in fuzz_ioctl()
136 return -1; in fuzz_ioctl()
140 ifr->ifr_name[i] = (char)*syscall_data; in fuzz_ioctl()
142 syscall_size -= 1; in fuzz_ioctl()
145 ifr->ifr_name[i] = 'A'; in fuzz_ioctl()
[all …]
/external/mdnsresponder/mDNSPosix/
Dmdnsd.sh2 # Emacs settings: -*- tab-width: 4 -*-
4 # Copyright (c) 2002-2006 Apple Computer, Inc. All rights reserved.
10 # http://www.apache.org/licenses/LICENSE-2.0
18 # Linux /etc/init.d script to start/stop the mdnsd daemon.
25 if [ -r /usr/sbin/mdnsd ]; then
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
[all …]
/external/libbrillo/brillo/daemons/
Ddaemon.h2 // Use of this source code is governed by a BSD-style license that can be
23 // Daemon is a simple base class for system daemons. It provides a lot
26 // You can use this class directly to implement your daemon or you can
28 // brillo::Daemon. Override some of the virtual methods provide to fine-tune
29 // its behavior to suit your daemon's needs.
30 class BRILLO_EXPORT Daemon : public AsynchronousSignalHandlerInterface {
32 Daemon();
33 virtual ~Daemon();
35 // Performs proper initialization of the daemon and runs the message loop.
36 // Blocks until the daemon is finished. The return value is the error
[all …]
Ddaemon.cc2 // Use of this source code is governed by a BSD-style license that can be
5 #include <brillo/daemons/daemon.h>
18 Daemon::Daemon() : exit_code_{EX_OK}, exiting_(false) { in Daemon() function in brillo::Daemon
22 Daemon::~Daemon() { in ~Daemon()
25 int Daemon::Run() { in Run()
31 base::BindOnce(&Daemon::OnEventLoopStartedTask, base::Unretained(this))); in Run()
39 // This becomes important when working with D-Bus since dbus::Bus does in Run()
40 // a bunch of clean-up tasks asynchronously when shutting down. in Run()
46 void Daemon::Quit() { QuitWithExitCode(EX_OK); } in Quit()
48 void Daemon::QuitWithExitCode(int exit_code) { in QuitWithExitCode()
[all …]
Ddbus_daemon.h2 // Use of this source code is governed by a BSD-style license that can be
14 #include <brillo/daemons/daemon.h>
25 // DBusDaemon adds D-Bus support to Daemon.
26 // Derive your daemon from this class if you want D-Bus client services in your
27 // daemon (consuming other D-Bus objects). Currently uses a SYSTEM bus.
28 class BRILLO_EXPORT DBusDaemon : public Daemon {
35 // a D-Bus connection.
48 // DBusServiceDaemon adds D-Bus service support to DBusDaemon.
49 // Derive your daemon from this class if your daemon exposes D-Bus objects.
54 // Constructs the daemon.
[all …]
/external/python/pyserial/examples/
Dport_publisher.sh2 # daemon starter script
7 DAEMON=/usr/local/bin/port_publisher.py
11 test -f $DAEMON || exit 0
13 set -e
17 echo -n "Starting $DESC: "
18 $DAEMON --daemon --pidfile /var/run/$NAME.pid
22 echo -n "Stopping $DESC: "
23 start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid
24 # \ --exec $DAEMON
27 restart|force-reload)
[all …]
/external/angle/build/fuchsia/test/
Dcommon.py2 # Use of this source code is governed by a BSD-style license that can be
4 """Common methods and variables used by Cr-Fuchsia testing infrastructure."""
22 def _find_src_root() -> str:
32 # have folders like third_party/fuchsia-sdk in it.
34 IMAGES_ROOT = os.path.join(DIR_SRC_ROOT, 'third_party', 'fuchsia-sdk',
37 SDK_ROOT = os.path.join(DIR_SRC_ROOT, 'third_party', 'fuchsia-sdk', 'sdk')
42 def set_ffx_isolate_dir(isolate_dir: str) -> None:
85 """Determines daemon status via `ffx daemon socket`.
89 NotRunning to indicate if the daemon is running.
92 run_ffx_command(cmd=('daemon', 'socket'),
[all …]
/external/autotest/client/profilers/oprofile/
Doprofile-0.9.4.tar.bz2 ... in oprofile-0.9.4/doc/op-jit-devel.xml oprofile-0.9.4
/external/e2fsprogs/misc/
Duuidd.rc1 #! /bin/sh -e
4 # Required-Start: $time $local_fs
5 # Required-Stop: $time $local_fs
6 # Default-Start: 2 3 4 5
7 # Default-Stop: 0 1 6
8 # Short-Description: uuidd daemon
9 # Description: Init script for the uuid generation daemon
14 set -e
17 DAEMON=/usr/sbin/uuidd
20 test -x $DAEMON || exit 0
[all …]
/external/autotest/client/site_tests/platform_DaemonsRespawn/
Dtest_respawn.sh9 # Time to wait for upstart to restart a daemon in seconds
15 local daemon=$2
25 if [ $? -ne 0 ] ; then
32 if [ -z "$upstart_pid" ] ; then
36 local pgrep_pid=$(pgrep -o $daemon)
37 if [ -z "$pgrep_pid" ] ; then
38 echo "Unable to find running job for daemon: $daemon"
42 echo "Upstart and daemon pids don't match: $upstart_pid vs $pgrep_pid"
50 # The set of jobs (and corresponding daemon names) to test.
56 JOB=$(echo "$job" | awk -F':' '{ print $1 }')
[all …]
/external/kernel-headers/original/uapi/linux/
Dhyperv.h1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
17 * Place - Suite 330, Boston, MA 02111-1307 USA.
50 Daemon code with full handshake support.
95 * driver accesses. However, FREEZE messages from Hyper-V contain
102 * auto-recovery, it should not receive such messages.
171 * Maximum value size - used for both key names and value data, and includes
182 * Note: This value is used in defining the KVP exchange message - this value
193 * Maximum key size - the registry limit for the length of an entry name
203 * implementing the host/guest protocol. 2) A user level daemon that is
227 * Guest Kernel/KVP Daemon Protocol: As noted earlier, we implement all of the
[all …]
/external/mtools/
Dfloppyd.12 .TH floppyd 1 "08Jan22" mtools-4.0.37
4 floppyd - floppy daemon for remote access to floppy drive
27 \&\fR\&\f(CWfloppyd\fR [\fR\&\f(CW-d\fR] [\fR\&\f(CW-l\fR] [\fR\&\f(CW-s\fR \fIport\fR] [\fR\&\f(CW
28 \&\fIuser\fR] [\fR\&\f(CW-b\fR \fIipaddr\fR] [\fR\&\f(CW-x\fR \fIdisplay\fR] \fIdevicenames\fR
55 probing those display names with the \fR\&\f(CW-l\fR option.
60 Daemon mode. Floppyd runs its own server loop. Do not supply this if
64 Port number for daemon mode. Default is 5703 + \fIdisplaynumber\fR.
65 This flag implies daemon mode. For example, for display
69 Bind address (for multi homed hosts). This flag implies daemon mode
98 The following starts a floppy daemon giving access to \fR\&\f(CW\(if/dev/fd0\(is\fR,
[all …]
/external/openthread/src/posix/platform/
Ddaemon.cpp29 #include "posix/platform/daemon.hpp"
46 #include "posix/platform/platform-posix.h"
52 "OpenThread daemon socket name too long!");
74 int Daemon::OutputFormatV(const char *aFormat, va_list aArguments) in OutputFormatV()
81 rval = vsnprintf(buf, sizeof(buf) - 1, aFormat, aArguments); in OutputFormatV()
85 VerifyOrExit(mSessionSocket != -1); in OutputFormatV()
98 mSessionSocket = -1; in OutputFormatV()
105 void Daemon::InitializeSessionSocket(void) in InitializeSessionSocket()
110 VerifyOrExit((newSessionSocket = accept(mListenSocket, nullptr, nullptr)) != -1, rval = -1); in InitializeSessionSocket()
112 VerifyOrExit((rval = fcntl(newSessionSocket, F_GETFD, 0)) != -1); in InitializeSessionSocket()
[all …]
/external/apache-commons-lang/src/main/java/org/apache/commons/lang3/concurrent/
DBasicThreadFactory.java9 * http://www.apache.org/licenses/LICENSE-2.0
53 * <li>A flag whether the threads created by this factory should be daemon
55 * because the JVM shuts down if there are only daemon threads running.</li>
78 * // Create a factory that produces daemon threads with a naming pattern and
81 * .namingPattern(&quot;workerthread-%d&quot;)
82 * .daemon(true)
85 * // Create an executor service for single-threaded execution
107 /** Stores the daemon status flag. */
108 private final Boolean daemon; field in BasicThreadFactory
125 daemon = builder.daemon; in BasicThreadFactory()
[all …]
/external/guava/guava/src/com/google/common/util/concurrent/
DThreadFactoryBuilder.java7 * http://www.apache.org/licenses/LICENSE-2.0
35 * <li>whether threads should be marked as {@linkplain Thread#setDaemon daemon} threads
53 @CheckForNull private Boolean daemon = null; field in ThreadFactoryBuilder
65 * @param nameFormat a {@link String#format(String, Object...)}-compatible format String, to which
68 * example, {@code "rpc-pool-%d"} will generate thread names like {@code "rpc-pool-0"}, {@code
69 * "rpc-pool-1"}, {@code "rpc-pool-2"}, etc.
79 * Sets daemon or not for new threads created with this ThreadFactory.
81 * @param daemon whether or not new Threads created with this ThreadFactory will be daemon threads
84 public ThreadFactoryBuilder setDaemon(boolean daemon) { in setDaemon() argument
85 this.daemon = daemon; in setDaemon()
[all …]
/external/guava/android/guava/src/com/google/common/util/concurrent/
DThreadFactoryBuilder.java7 * http://www.apache.org/licenses/LICENSE-2.0
35 * <li>whether threads should be marked as {@linkplain Thread#setDaemon daemon} threads
53 @CheckForNull private Boolean daemon = null; field in ThreadFactoryBuilder
65 * @param nameFormat a {@link String#format(String, Object...)}-compatible format String, to which
68 * example, {@code "rpc-pool-%d"} will generate thread names like {@code "rpc-pool-0"}, {@code
69 * "rpc-pool-1"}, {@code "rpc-pool-2"}, etc.
79 * Sets daemon or not for new threads created with this ThreadFactory.
81 * @param daemon whether or not new Threads created with this ThreadFactory will be daemon threads
84 public ThreadFactoryBuilder setDaemon(boolean daemon) { in setDaemon() argument
85 this.daemon = daemon; in setDaemon()
[all …]

12345678910>>...43