Searched refs:pid_file (Results 1 - 22 of 22) sorted by relevance

/freebsd-10.1-release/usr.sbin/bluetooth/bthidd/
H A Dbthidd.c67 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.1-release/contrib/wpa/src/utils/
H A Dos_none.c41 int os_daemonize(const char *pid_file) argument
47 void os_daemonize_terminate(const char *pid_file) argument
H A Dos_internal.c85 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 Dos_unix.c156 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 Dos_win32.c108 int os_daemonize(const char *pid_file) argument
115 void os_daemonize_terminate(const char *pid_file) argument
H A Dos.h80 * @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.1-release/contrib/wpa/hostapd/
H A Dmain.c402 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 Dhostapd_cli.c95 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.1-release/contrib/wpa/wpa_supplicant/
H A Dmain.c222 os_free(params.pid_file);
223 params.pid_file = os_rel2abs_path(optarg);
304 os_free(params.pid_file);
H A Dwpa_priv.c957 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 Dwpa_supplicant_i.h115 * pid_file - Path to a PID (process ID) file
120 char *pid_file; member in struct:wpa_params
H A Dwpa_supplicant.c2439 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 Dwpa_cli.c80 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.1-release/contrib/amd/amd/
H A Damd.c204 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 Damd.h273 char *pid_file; /* PID file */ member in struct:amu_global_options
H A Dconf.c190 {"pid_file", gopt_pid_file},
595 gopt.pid_file = strdup((char *)val);
/freebsd-10.1-release/crypto/openssh/
H A Dservconf.h70 char *pid_file; /* Where to put our pid */ member in struct:__anon5161
H A Dservconf.c86 options->pid_file = NULL;
200 if (options->pid_file == NULL)
201 options->pid_file = _PATH_SSH_DAEMON_PID_FILE;
1069 charptr = &options->pid_file;
2091 dump_cfg_string(sPidFile, o->pid_file);
H A Dsshd.c1226 unlink(options.pid_file);
1949 FILE *f = fopen(options.pid_file, "w");
1953 options.pid_file, strerror(errno));
/freebsd-10.1-release/contrib/bsnmp/snmpd/
H A Dmain.c175 static char pid_file[MAXPATHLEN + 1]; variable
1581 (void)unlink(pid_file);
1755 strlcpy(pid_file, optarg, sizeof(pid_file));
1849 if (pid_file[0] == '\0')
1850 snprintf(pid_file, sizeof(pid_file), PATH_PID, prefix);
1852 if ((fp = fopen(pid_file, "w")) != NULL) {
1857 (void)remove(pid_file);
/freebsd-10.1-release/usr.sbin/inetd/
H A Dinetd.c278 const char *pid_file = _PATH_INETDPID; variable
373 pid_file = optarg;
471 pfh = pidfile_open(pid_file, 0600, &otherpid);
/freebsd-10.1-release/libexec/ftpd/
H A Dftpd.c183 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) {

Completed in 274 milliseconds