/freebsd-10.3-release/usr.sbin/bluetooth/bthidd/ |
H A D | bthidd.c | 67 char const *pid_file = BTHIDD_PIDFILE; local 102 pid_file = optarg; 155 server_init(&srv) < 0 || write_pid_file(pid_file) < 0) 167 remove_pid_file(pid_file);
|
/freebsd-10.3-release/contrib/wpa/src/utils/ |
H A D | os_none.c | 41 int os_daemonize(const char *pid_file) argument 47 void os_daemonize_terminate(const char *pid_file) argument
|
H A D | os_internal.c | 85 int os_daemonize(const char *pid_file) argument 92 if (pid_file) { 93 FILE *f = fopen(pid_file, "w"); 104 void os_daemonize_terminate(const char *pid_file) argument 106 if (pid_file) 107 unlink(pid_file);
|
H A D | os_unix.c | 156 int os_daemonize(const char *pid_file) argument 166 if (pid_file) { 167 FILE *f = fopen(pid_file, "w"); 179 void os_daemonize_terminate(const char *pid_file) argument 181 if (pid_file) 182 unlink(pid_file);
|
H A D | os_win32.c | 108 int os_daemonize(const char *pid_file) argument 115 void os_daemonize_terminate(const char *pid_file) argument
|
H A D | os.h | 80 * @pid_file: File name to write the process ID to or %NULL to skip this 83 int os_daemonize(const char *pid_file); 87 * @pid_file: File name to write the process ID to or %NULL to skip this 89 void os_daemonize_terminate(const char *pid_file);
|
/freebsd-10.3-release/contrib/wpa/hostapd/ |
H A D | main.c | 402 static void hostapd_global_deinit(const char *pid_file) argument 428 os_daemonize_terminate(pid_file); 433 const char *pid_file) 454 if (daemonize && os_daemonize(pid_file)) { 540 char *pid_file = NULL; local 584 os_free(pid_file); 585 pid_file = os_rel2abs_path(optarg); 636 if (hostapd_global_run(&interfaces, daemonize, pid_file)) 648 hostapd_global_deinit(pid_file); 649 os_free(pid_file); 432 hostapd_global_run(struct hapd_interfaces *ifaces, int daemonize, const char *pid_file) argument [all...] |
H A D | hostapd_cli.c | 95 static const char *pid_file = NULL; variable 975 if (pid_file) 976 os_daemonize_terminate(pid_file); 1120 if (daemonize && os_daemonize(pid_file))
|
/freebsd-10.3-release/contrib/wpa/wpa_supplicant/ |
H A D | main.c | 222 os_free(params.pid_file); 223 params.pid_file = os_rel2abs_path(optarg); 304 os_free(params.pid_file);
|
H A D | wpa_priv.c | 957 char *pid_file = NULL; local 982 pid_file = os_rel2abs_path(optarg); 1011 if (daemonize && os_daemonize(pid_file)) 1029 os_daemonize_terminate(pid_file); 1030 os_free(pid_file);
|
H A D | wpa_supplicant_i.h | 115 * pid_file - Path to a PID (process ID) file 120 char *pid_file; member in struct:wpa_params
|
H A D | wpa_supplicant.c | 2439 static int wpa_supplicant_daemon(const char *pid_file) argument 2442 return os_daemonize(pid_file); 3231 if (params->pid_file) 3232 global->params.pid_file = os_strdup(params->pid_file); 3309 wpa_supplicant_daemon(global->params.pid_file)) 3373 if (global->params.pid_file) { 3374 os_daemonize_terminate(global->params.pid_file); 3375 os_free(global->params.pid_file);
|
H A D | wpa_cli.c | 80 static const char *pid_file = NULL; variable 3325 if (pid_file) 3326 os_daemonize_terminate(pid_file); 3443 pid_file = optarg; 3499 if (daemonize && os_daemonize(pid_file))
|
/freebsd-10.3-release/contrib/amd/amd/ |
H A D | amd.c | 204 if (STREQ(gopt.pid_file, "/dev/stdout")) { 212 f = fopen(gopt.pid_file, "w"); 217 fprintf(stderr, "cannot open %s (errno=%d)\n", gopt.pid_file, errno); 291 gopt.pid_file = "/dev/stdout";
|
H A D | amd.h | 273 char *pid_file; /* PID file */ member in struct:amu_global_options
|
H A D | conf.c | 190 {"pid_file", gopt_pid_file}, 595 gopt.pid_file = strdup((char *)val);
|
/freebsd-10.3-release/crypto/openssh/ |
H A D | servconf.h | 71 char *pid_file; /* Where to put our pid */ member in struct:__anon5383
|
H A D | sshd.c | 1300 if (options.pid_file != NULL) 1301 unlink(options.pid_file); 2051 if (options.pid_file != NULL && !debug_flag) { 2052 FILE *f = fopen(options.pid_file, "w"); 2056 options.pid_file, strerror(errno));
|
H A D | servconf.c | 90 options->pid_file = NULL; 236 if (options->pid_file == NULL) 237 options->pid_file = xstrdup(_PATH_SSH_DAEMON_PID_FILE); 374 CLEAR_ON_NONE(options->pid_file); 1160 charptr = &options->pid_file; 2306 dump_cfg_string(sPidFile, o->pid_file);
|
/freebsd-10.3-release/contrib/bsnmp/snmpd/ |
H A D | main.c | 179 static char pid_file[MAXPATHLEN + 1]; variable 1585 (void)unlink(pid_file); 1759 strlcpy(pid_file, optarg, sizeof(pid_file)); 1853 if (pid_file[0] == '\0') 1854 snprintf(pid_file, sizeof(pid_file), PATH_PID, prefix); 1856 if ((fp = fopen(pid_file, "w")) != NULL) { 1861 (void)remove(pid_file);
|
/freebsd-10.3-release/usr.sbin/inetd/ |
H A D | inetd.c | 278 const char *pid_file = _PATH_INETDPID; variable 364 pid_file = optarg; 462 pfh = pidfile_open(pid_file, 0600, &otherpid);
|
/freebsd-10.3-release/libexec/ftpd/ |
H A D | ftpd.c | 183 char *pid_file = NULL; /* means default location to pidfile(3) */ variable 363 pid_file = optarg; 429 if ((pfh = pidfile_open(pid_file, 0600, &pid)) == NULL) {
|