/freebsd-current/sys/contrib/openzfs/cmd/zed/ |
H A D | zed_conf.c | 53 if (!(zcp->pid_file = strdup(ZED_PID_FILE)) || 74 if (zcp->pid_file) { 75 if ((unlink(zcp->pid_file) < 0) && (errno != ENOENT)) 78 zcp->pid_file, strerror(errno)); 84 zcp->pid_file, strerror(errno)); 87 if (zcp->pid_file) { 88 free(zcp->pid_file); 89 zcp->pid_file = NULL; 263 _zed_conf_parse_path(&zcp->pid_file, optarg); 449 if (!zcp || !zcp->pid_file) { [all...] |
H A D | zed_conf.h | 23 char *pid_file; /* abs path to pid file */ member in struct:zed_conf
|
/freebsd-current/usr.sbin/bluetooth/bthidd/ |
H A D | bthidd.c | 69 char const *pid_file = BTHIDD_PIDFILE; local 105 pid_file = optarg; 162 server_init(&srv) < 0 || write_pid_file(pid_file) < 0) 176 remove_pid_file(pid_file);
|
/freebsd-current/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 | 104 int os_daemonize(const char *pid_file) argument 111 if (pid_file) { 112 FILE *f = fopen(pid_file, "w"); 123 void os_daemonize_terminate(const char *pid_file) argument 125 if (pid_file) 126 unlink(pid_file);
|
H A D | os_unix.c | 232 int os_daemonize(const char *pid_file) argument 242 if (pid_file) { 243 FILE *f = fopen(pid_file, "w"); 255 void os_daemonize_terminate(const char *pid_file) argument 257 if (pid_file) 258 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-current/contrib/wpa/hostapd/ |
H A D | main.c | 380 static void hostapd_global_deinit(const char *pid_file, int eloop_initialized) argument 407 os_daemonize_terminate(pid_file); 412 const char *pid_file) 434 if (os_daemonize(pid_file)) { 643 char *pid_file = NULL; local 712 os_free(pid_file); 713 pid_file = os_rel2abs_path(optarg); 892 if (hostapd_global_run(&interfaces, daemonize, pid_file)) { 921 hostapd_global_deinit(pid_file, interfaces.eloop_initialized); 922 os_free(pid_file); 411 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 2022 if (pid_file) 2023 os_daemonize_terminate(pid_file); 2104 pid_file = optarg; 2167 if (daemonize && os_daemonize(pid_file) && eloop_sock_requeue())
|
/freebsd-current/contrib/wpa/wpa_supplicant/ |
H A D | main.c | 278 os_free(params.pid_file); 279 params.pid_file = os_rel2abs_path(optarg); 403 os_free(params.pid_file);
|
H A D | wpa_priv.c | 1209 char *pid_file = NULL; local 1238 pid_file = os_rel2abs_path(optarg); 1267 if (daemonize && os_daemonize(pid_file) && eloop_sock_requeue()) 1287 os_daemonize_terminate(pid_file); 1288 os_free(pid_file);
|
H A D | wpa_supplicant.c | 5351 static int wpa_supplicant_daemon(const char *pid_file) argument 5354 return os_daemonize(pid_file); 7350 if (params->pid_file) 7351 global->params.pid_file = os_strdup(params->pid_file); 7451 (wpa_supplicant_daemon(global->params.pid_file) || 7520 if (global->params.pid_file) { 7521 os_daemonize_terminate(global->params.pid_file); 7522 os_free(global->params.pid_file);
|
H A D | wpa_cli.c | 53 static const char *pid_file = NULL; variable 4873 if (pid_file) 4874 os_daemonize_terminate(pid_file); 4995 pid_file = optarg; 5062 if (daemonize && os_daemonize(pid_file) && eloop_sock_requeue())
|
H A D | wpa_supplicant_i.h | 153 * pid_file - Path to a PID (process ID) file 158 char *pid_file; member in struct:wpa_params
|
/freebsd-current/crypto/openssh/ |
H A D | servconf.h | 93 char *pid_file; /* Where to put our pid */ member in struct:__anon12
|
H A D | sshd.c | 327 if (options.pid_file != NULL) 328 unlink(options.pid_file); 1192 if (options.pid_file != NULL) 1193 unlink(options.pid_file); 2154 if (options.pid_file != NULL && !debug_flag) { 2155 FILE *f = fopen(options.pid_file, "w"); 2159 options.pid_file, strerror(errno));
|
H A D | servconf.c | 107 options->pid_file = NULL; 315 if (options->pid_file == NULL) 316 options->pid_file = xstrdup(_PATH_SSH_DAEMON_PID_FILE); 484 CLEAR_ON_NONE(options->pid_file); 1516 charptr = &options->pid_file; 3161 dump_cfg_string(sPidFile, o->pid_file);
|
/freebsd-current/contrib/bsnmp/snmpd/ |
H A D | main.c | 180 static char pid_file[MAXPATHLEN + 1]; variable 1426 (void)unlink(pid_file); 1600 strlcpy(pid_file, optarg, sizeof(pid_file)); 1694 if (pid_file[0] == '\0') 1695 snprintf(pid_file, sizeof(pid_file), PATH_PID, prefix); 1697 if ((fp = fopen(pid_file, "w")) != NULL) { 1702 (void)remove(pid_file);
|
/freebsd-current/usr.sbin/inetd/ |
H A D | inetd.c | 276 static const char *pid_file = _PATH_INETDPID; variable 368 pid_file = optarg; 466 pfh = pidfile_open(pid_file, 0600, &otherpid);
|
/freebsd-current/libexec/ftpd/ |
H A D | ftpd.c | 165 char *pid_file = NULL; /* means default location to pidfile(3) */ variable 339 pid_file = optarg; 409 if ((pfh = pidfile_open(pid_file, 0600, &pid)) == NULL) {
|