/freebsd-11-stable/usr.sbin/bluetooth/bthidd/ |
H A D | bthidd.c | 70 char const *pid_file = BTHIDD_PIDFILE; local 105 pid_file = optarg; 158 server_init(&srv) < 0 || write_pid_file(pid_file) < 0) 170 remove_pid_file(pid_file);
|
/freebsd-11-stable/contrib/wpa/src/utils/ |
H A D | os_none.c | 47 int os_daemonize(const char *pid_file) argument 53 void os_daemonize_terminate(const char *pid_file) argument
|
H A D | os_internal.c | 98 int os_daemonize(const char *pid_file) argument 105 if (pid_file) { 106 FILE *f = fopen(pid_file, "w"); 117 void os_daemonize_terminate(const char *pid_file) argument 119 if (pid_file) 120 unlink(pid_file);
|
H A D | os_unix.c | 227 int os_daemonize(const char *pid_file) argument 236 pfh = pidfile_open(pid_file, 0600, &otherpid); 255 if (pid_file) { 256 FILE *f = fopen(pid_file, "w"); 271 void os_daemonize_terminate(const char *pid_file) argument 273 if (pid_file) 274 unlink(pid_file);
|
H A D | os_win32.c | 120 int os_daemonize(const char *pid_file) argument 127 void os_daemonize_terminate(const char *pid_file) argument
|
H A D | os.h | 148 * @pid_file: File name to write the process ID to or %NULL to skip this 151 int os_daemonize(const char *pid_file); 155 * @pid_file: File name to write the process ID to or %NULL to skip this 157 void os_daemonize_terminate(const char *pid_file);
|
/freebsd-11-stable/contrib/amd/amd/ |
H A D | amd.c | 200 if (STREQ(gopt.pid_file, "/dev/stdout")) { 208 f = fopen(gopt.pid_file, "w"); 213 fprintf(stderr, "cannot open %s (errno=%d)\n", gopt.pid_file, errno); 287 gopt.pid_file = "/dev/stdout";
|
H A D | amd.h | 274 char *pid_file; /* PID file */ member in struct:amu_global_options
|
H A D | conf.c | 191 {"pid_file", gopt_pid_file}, 613 gopt.pid_file = xstrdup(val);
|
/freebsd-11-stable/contrib/wpa/hostapd/ |
H A D | main.c | 383 static void hostapd_global_deinit(const char *pid_file, int eloop_initialized) argument 410 os_daemonize_terminate(pid_file); 415 const char *pid_file) 437 if (os_daemonize(pid_file)) { 645 char *pid_file = NULL; local 711 os_free(pid_file); 712 pid_file = os_rel2abs_path(optarg); 891 if (hostapd_global_run(&interfaces, daemonize, pid_file)) { 917 hostapd_global_deinit(pid_file, interfaces.eloop_initialized); 918 os_free(pid_file); 414 hostapd_global_run(struct hapd_interfaces *ifaces, int daemonize, const char *pid_file) argument [all...] |
H A D | hostapd_cli.c | 37 static const char *pid_file = NULL; variable 1965 if (pid_file) 1966 os_daemonize_terminate(pid_file); 2046 pid_file = optarg; 2107 if (daemonize && os_daemonize(pid_file) && eloop_sock_requeue())
|
/freebsd-11-stable/contrib/wpa/wpa_supplicant/ |
H A D | main.c | 284 os_free(params.pid_file); 285 params.pid_file = os_rel2abs_path(optarg); 409 os_free(params.pid_file);
|
H A D | wpa_priv.c | 1201 char *pid_file = NULL; local 1230 pid_file = os_rel2abs_path(optarg); 1259 if (daemonize && os_daemonize(pid_file) && eloop_sock_requeue()) 1279 os_daemonize_terminate(pid_file); 1280 os_free(pid_file);
|
H A D | wpa_supplicant.c | 4449 static int wpa_supplicant_daemon(const char *pid_file) argument 4452 return os_daemonize(pid_file); 6406 if (params->pid_file) 6407 global->params.pid_file = os_strdup(params->pid_file); 6507 (wpa_supplicant_daemon(global->params.pid_file) || 6576 if (global->params.pid_file) { 6577 os_daemonize_terminate(global->params.pid_file); 6578 os_free(global->params.pid_file);
|
H A D | wpa_cli.c | 53 static const char *pid_file = NULL; variable 4571 if (pid_file) 4572 os_daemonize_terminate(pid_file); 4688 pid_file = optarg; 4737 if (daemonize && os_daemonize(pid_file) && eloop_sock_requeue())
|
H A D | wpa_supplicant_i.h | 138 * pid_file - Path to a PID (process ID) file 143 char *pid_file; member in struct:wpa_params
|
/freebsd-11-stable/crypto/openssh/ |
H A D | servconf.h | 71 char *pid_file; /* Where to put our pid */ member in struct:__anon4516
|
H A D | sshd.c | 312 if (options.pid_file != NULL) 313 unlink(options.pid_file); 1168 if (options.pid_file != NULL) 1169 unlink(options.pid_file); 1898 if (options.pid_file != NULL && !debug_flag) { 1899 FILE *f = fopen(options.pid_file, "w"); 1903 options.pid_file, strerror(errno));
|
H A D | servconf.c | 91 options->pid_file = NULL; 229 if (options->pid_file == NULL) 230 options->pid_file = xstrdup(_PATH_SSH_DAEMON_PID_FILE); 361 CLEAR_ON_NONE(options->pid_file); 1151 charptr = &options->pid_file; 2305 dump_cfg_string(sPidFile, o->pid_file);
|
/freebsd-11-stable/contrib/bsnmp/snmpd/ |
H A D | main.c | 178 static char pid_file[MAXPATHLEN + 1]; variable 1395 (void)unlink(pid_file); 1569 strlcpy(pid_file, optarg, sizeof(pid_file)); 1663 if (pid_file[0] == '\0') 1664 snprintf(pid_file, sizeof(pid_file), PATH_PID, prefix); 1666 if ((fp = fopen(pid_file, "w")) != NULL) { 1671 (void)remove(pid_file);
|
/freebsd-11-stable/usr.sbin/inetd/ |
H A D | inetd.c | 288 static const char *pid_file = _PATH_INETDPID; variable 380 pid_file = optarg; 478 pfh = pidfile_open(pid_file, 0600, &otherpid);
|
/freebsd-11-stable/libexec/ftpd/ |
H A D | ftpd.c | 185 char *pid_file = NULL; /* means default location to pidfile(3) */ variable 359 pid_file = optarg; 429 if ((pfh = pidfile_open(pid_file, 0600, &pid)) == NULL) {
|