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

/freebsd-11.0-release/usr.sbin/bluetooth/bthidd/
H A Dbthidd.c68 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 Dos_none.c47 int os_daemonize(const char *pid_file) argument
53 void os_daemonize_terminate(const char *pid_file) argument
H A Dos_internal.c98 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 Dos_unix.c224 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 Dos_win32.c120 int os_daemonize(const char *pid_file) argument
127 void os_daemonize_terminate(const char *pid_file) argument
H A Dos.h148 * @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 Dmain.c254 os_free(params.pid_file);
255 params.pid_file = os_rel2abs_path(optarg);
354 os_free(params.pid_file);
H A Dwpa_priv.c1077 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 Dwpa_cli.c81 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 Dwpa_supplicant.c3345 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 Dwpa_supplicant_i.h136 * 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 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-11.0-release/contrib/wpa/hostapd/
H A Dmain.c359 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 Dhostapd_cli.c103 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 Dservconf.h71 char *pid_file; /* Where to put our pid */ member in struct:__anon6143
H A Dsshd.c1300 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 Dservconf.c91 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 Dmain.c179 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 Dinetd.c278 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 Dftpd.c187 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) {

Completed in 300 milliseconds