/freebsd-11.0-release/usr.sbin/bluetooth/bthidd/ |
H A D | bthidd.c | 68 char const *pid_file = BTHIDD_PIDFILE; local 103 pid_file = optarg; 156 server_init(&srv) < 0 || write_pid_file(pid_file) < 0) 168 remove_pid_file(pid_file);
|
/freebsd-11.0-release/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 | 224 int os_daemonize(const char *pid_file) argument 233 pfh = pidfile_open(pid_file, 0600, &otherpid); 252 if (pid_file) { 253 FILE *f = fopen(pid_file, "w"); 268 void os_daemonize_terminate(const char *pid_file) argument 270 if (pid_file) 271 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.0-release/contrib/wpa/wpa_supplicant/ |
H A D | main.c | 254 os_free(params.pid_file); 255 params.pid_file = os_rel2abs_path(optarg); 354 os_free(params.pid_file);
|
H A D | wpa_priv.c | 1077 char *pid_file = NULL; local 1102 pid_file = os_rel2abs_path(optarg); 1131 if (daemonize && os_daemonize(pid_file)) 1151 os_daemonize_terminate(pid_file); 1152 os_free(pid_file);
|
H A D | wpa_cli.c | 81 static const char *pid_file = NULL; variable 4180 if (pid_file) 4181 os_daemonize_terminate(pid_file); 4298 pid_file = optarg; 4376 if (daemonize && os_daemonize(pid_file))
|
H A D | wpa_supplicant.c | 3345 static int wpa_supplicant_daemon(const char *pid_file) argument 3348 return os_daemonize(pid_file); 4853 if (params->pid_file) 4854 global->params.pid_file = os_strdup(params->pid_file); 4942 wpa_supplicant_daemon(global->params.pid_file)) 5005 if (global->params.pid_file) { 5006 os_daemonize_terminate(global->params.pid_file); 5007 os_free(global->params.pid_file);
|
H A D | wpa_supplicant_i.h | 136 * pid_file - Path to a PID (process ID) file 141 char *pid_file; member in struct:wpa_params
|
/freebsd-11.0-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-11.0-release/contrib/wpa/hostapd/ |
H A D | main.c | 359 static void hostapd_global_deinit(const char *pid_file) argument 385 os_daemonize_terminate(pid_file); 390 const char *pid_file) 411 if (daemonize && os_daemonize(pid_file)) { 565 char *pid_file = NULL; local 615 os_free(pid_file); 616 pid_file = os_rel2abs_path(optarg); 770 if (hostapd_global_run(&interfaces, daemonize, pid_file)) { 791 hostapd_global_deinit(pid_file); 792 os_free(pid_file); 389 hostapd_global_run(struct hapd_interfaces *ifaces, int daemonize, const char *pid_file) argument [all...] |
H A D | hostapd_cli.c | 103 static const char *pid_file = NULL; variable 1296 if (pid_file) 1297 os_daemonize_terminate(pid_file); 1377 pid_file = optarg; 1447 if (daemonize && os_daemonize(pid_file))
|
/freebsd-11.0-release/crypto/openssh/ |
H A D | servconf.h | 71 char *pid_file; /* Where to put our pid */ member in struct:__anon6143
|
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 | 91 options->pid_file = NULL; 239 if (options->pid_file == NULL) 240 options->pid_file = xstrdup(_PATH_SSH_DAEMON_PID_FILE); 377 CLEAR_ON_NONE(options->pid_file); 1163 charptr = &options->pid_file; 2309 dump_cfg_string(sPidFile, o->pid_file);
|
/freebsd-11.0-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-11.0-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-11.0-release/libexec/ftpd/ |
H A D | ftpd.c | 187 char *pid_file = NULL; /* means default location to pidfile(3) */ variable 367 pid_file = optarg; 433 if ((pfh = pidfile_open(pid_file, 0600, &pid)) == NULL) {
|