Searched defs:pidfile (Results 1 - 10 of 10) sorted by relevance

/external/dropbear/
H A Drunopts.h87 char * pidfile; member in struct:svr_runopts
H A Dsvr-main.c120 FILE *pidfile = NULL; local
154 pidfile = fopen(svr_opts.pidfile, "w");
155 if (pidfile) {
156 fprintf(pidfile, "%d\n", getpid());
157 fclose(pidfile);
197 unlink(svr_opts.pidfile);
/external/dbus/dbus/
H A Ddbus-sysdeps-util-unix.c63 * @param pidfile #NULL, or pidfile to create
69 _dbus_become_daemon (const DBusString *pidfile, argument
124 if (pidfile)
127 if (!_dbus_write_pid_file (pidfile,
/external/dhcpcd/
H A Ddhcpcd.c144 read_pid(const char *pidfile) argument
149 if ((fp = fopen(pidfile, "r")) == NULL) {
890 snprintf(options->pidfile, sizeof(options->pidfile), PIDFILE,
939 pid = read_pid(options->pidfile);
948 unlink(options->pidfile);
961 if (read_pid(options->pidfile) == 0) {
982 if ((pid = read_pid(options->pidfile)) > 0 &&
987 pid, options->pidfile);
991 pid_fd = open(options->pidfile,
[all...]
H A Ddhcpcd.h83 char pidfile[PATH_MAX]; member in struct:options
/external/bluetooth/bluez/compat/
H A Dpand.c81 static char *pidfile = NULL; variable
506 fd = open(pidfile, O_WRONLY|O_TRUNC|O_CREAT|O_EXCL, 0644);
509 fd = open(pidfile, O_RDONLY);
511 syslog(LOG_ERR, "Could not read old pidfile: %s(%d)",
524 syslog(LOG_ERR, "Could not fdopen old pidfile: %s(%d)",
539 syslog(LOG_INFO, "Removing stale pidfile");
540 unlink(pidfile);
546 pidfile = NULL;
555 syslog(LOG_ERR, "Could not fdopen new pidfile: %s(%d)",
558 unlink(pidfile);
[all...]
/external/dbus/bus/
H A Dbus.c45 char *pidfile; member in struct:BusContext
267 const char *user, *pidfile; local
284 pidfile = bus_config_parser_get_pidfile (parser);
285 if (pidfile != NULL)
290 _dbus_string_init_const (&u, pidfile);
296 pidfile);
302 context->pidfile = _dbus_strdup (pidfile);
689 if (context->pidfile)
690 _dbus_string_init_const (&u, context->pidfile);
[all...]
H A Dconfig-parser.c125 char *pidfile; /**< PID file */ member in struct:BusConfigParser
164 return "pidfile";
376 if (included->pidfile != NULL)
378 dbus_free (parser->pidfile);
379 parser->pidfile = included->pidfile;
380 included->pidfile = NULL;
526 dbus_free (parser->pidfile);
754 else if (strcmp (element_name, "pidfile") == 0)
756 if (!check_no_attributes (parser, "pidfile", attribute_name
[all...]
/external/dnsmasq/src/
H A Ddnsmasq.c336 /* write pidfile _after_ forking ! */
339 FILE *pidfile; local
342 if ((pidfile = fopen(daemon->runfile, "w")))
344 fprintf(pidfile, "%d\n", (int) getpid());
345 fclose(pidfile);
790 die(_("failed to open pidfile %s: %s"), daemon->runfile, EC_FILE);
/external/ppp/pppd/
H A Dmain.c855 FILE *pidfile; local
859 if ((pidfile = fopen(pidfilename, "w")) != NULL) {
860 fprintf(pidfile, "%d\n", pid);
861 (void) fclose(pidfile);
874 FILE *pidfile; local
881 if ((pidfile = fopen(linkpidfile, "w")) != NULL) {
882 fprintf(pidfile, "%d\n", pid);
884 fprintf(pidfile, "%s\n", ifname);
885 (void) fclose(pidfile);

Completed in 33 milliseconds