/external/autotest/client/common_lib/ |
D | pidfile.py | 8 self.pid_file = None 13 self.pid_file = open(self.path, "w") 14 self.pid_file.write("%s\n" % os.getpid()) 15 self.pid_file.flush() 20 if not self.pid_file: 22 pid_file = self.pid_file 23 self.pid_file = None 25 pid_file.write("%s\n" % encoded_exit_code) 26 pid_file.write("%s\n" % self.num_tests_failed) 27 pid_file.close()
|
/external/ipsec-tools/src/racoon/ |
D | session.c | 123 char pid_file[MAXPATHLEN]; in session() local 158 strlcpy(pid_file, _PATH_VARRUN "racoon.pid", MAXPATHLEN); in session() 160 strlcpy(pid_file, lcconf->pathinfo[LC_PATHTYPE_PIDFILE], MAXPATHLEN); in session() 162 strlcat(pid_file, _PATH_VARRUN, MAXPATHLEN); in session() 163 strlcat(pid_file, lcconf->pathinfo[LC_PATHTYPE_PIDFILE], MAXPATHLEN); in session() 165 fp = fopen(pid_file, "w"); in session() 177 "cannot open %s", pid_file); in session()
|
D | main.c | 283 const char *pid_file = _PATH_VARRUN "racoon.pid"; 285 (void) unlink(pid_file);
|
/external/wpa_supplicant_8/hostapd/ |
D | main.c | 360 static void hostapd_global_deinit(const char *pid_file) in hostapd_global_deinit() argument 386 os_daemonize_terminate(pid_file); in hostapd_global_deinit() 391 const char *pid_file) in hostapd_global_run() argument 413 if (os_daemonize(pid_file)) { in hostapd_global_run() 579 char *pid_file = NULL; in main() local 630 os_free(pid_file); in main() 631 pid_file = os_rel2abs_path(optarg); in main() 790 if (hostapd_global_run(&interfaces, daemonize, pid_file)) { in main() 811 hostapd_global_deinit(pid_file); in main() 812 os_free(pid_file); in main()
|
D | hostapd_cli.c | 104 static const char *pid_file = NULL; variable 1374 if (pid_file) in hostapd_cli_cleanup() 1375 os_daemonize_terminate(pid_file); in hostapd_cli_cleanup() 1455 pid_file = optarg; in main() 1525 if (daemonize && os_daemonize(pid_file) && eloop_sock_requeue()) in main()
|
/external/chromium-trace/catapult/telemetry/telemetry/internal/platform/profiler/ |
D | tcmalloc_heap_profiler.py | 69 'browser.pid'), 'w') as pid_file: 70 pid_file.write(str(self._browser_backend.pid).rjust(5, '0')) 97 'browser.pid'), 'w') as pid_file: 98 pid_file.write(str(self._browser_backend.pid))
|
/external/autotest/client/cros/ |
D | network_chroot.py | 176 def get_pid_file(self, pid_file, missing_ok=False): argument 188 chroot_pid_file = self.chroot_path(pid_file) 199 def kill_pid_file(self, pid_file, missing_ok=False): argument 208 pid = self.get_pid_file(pid_file, missing_ok=missing_ok)
|
/external/wpa_supplicant_8/src/utils/ |
D | os_internal.c | 98 int os_daemonize(const char *pid_file) in os_daemonize() argument 105 if (pid_file) { in os_daemonize() 106 FILE *f = fopen(pid_file, "w"); in os_daemonize() 117 void os_daemonize_terminate(const char *pid_file) in os_daemonize_terminate() argument 119 if (pid_file) in os_daemonize_terminate() 120 unlink(pid_file); in os_daemonize_terminate()
|
D | os_none.c | 47 int os_daemonize(const char *pid_file) in os_daemonize() argument 53 void os_daemonize_terminate(const char *pid_file) in os_daemonize_terminate() argument
|
D | os_unix.c | 218 int os_daemonize(const char *pid_file) in os_daemonize() argument 228 if (pid_file) { in os_daemonize() 229 FILE *f = fopen(pid_file, "w"); in os_daemonize() 241 void os_daemonize_terminate(const char *pid_file) in os_daemonize_terminate() argument 243 if (pid_file) in os_daemonize_terminate() 244 unlink(pid_file); in os_daemonize_terminate()
|
D | os_win32.c | 120 int os_daemonize(const char *pid_file) in os_daemonize() argument 127 void os_daemonize_terminate(const char *pid_file) in os_daemonize_terminate() argument
|
D | os.h | 151 int os_daemonize(const char *pid_file); 157 void os_daemonize_terminate(const char *pid_file);
|
/external/chromium-trace/catapult/devil/devil/android/ |
D | forwarder.py | 262 with os.fdopen(fd, 'r+') as pid_file: 263 pid_with_start_time = pid_file.readline() 270 pid_file.seek(0) 271 pid_file.write( 273 pid_file.truncate()
|
/external/autotest/site_utils/chromeos_proxy/ |
D | swarming_bots.py | 119 self.pid_file = os.path.join(self.bot_dir, self.PID_FILE) 132 with open(self.pid_file, 'w') as f: 139 if os.path.exists(self.pid_file): 140 os.remove(self.pid_file) 170 if os.path.exists(self.pid_file): 171 with open(self.pid_file) as f:
|
/external/wpa_supplicant_8/wpa_supplicant/ |
D | main.c | 279 os_free(params.pid_file); in main() 280 params.pid_file = os_rel2abs_path(optarg); in main() 404 os_free(params.pid_file); in main()
|
D | wpa_priv.c | 1116 char *pid_file = NULL; in main() local 1145 pid_file = os_rel2abs_path(optarg); in main() 1174 if (daemonize && os_daemonize(pid_file) && eloop_sock_requeue()) in main() 1194 os_daemonize_terminate(pid_file); in main() 1195 os_free(pid_file); in main()
|
D | wpa_cli.c | 87 static const char *pid_file = NULL; variable 4272 if (pid_file) in wpa_cli_cleanup() 4273 os_daemonize_terminate(pid_file); in wpa_cli_cleanup() 4390 pid_file = optarg; in main() 4468 if (daemonize && os_daemonize(pid_file) && eloop_sock_requeue()) in main()
|
D | wpa_supplicant.c | 3506 static int wpa_supplicant_daemon(const char *pid_file) in wpa_supplicant_daemon() argument 3509 return os_daemonize(pid_file); in wpa_supplicant_daemon() 5281 if (params->pid_file) in wpa_supplicant_init() 5282 global->params.pid_file = os_strdup(params->pid_file); in wpa_supplicant_init() 5382 (wpa_supplicant_daemon(global->params.pid_file) || in wpa_supplicant_run() 5451 if (global->params.pid_file) { in wpa_supplicant_deinit() 5452 os_daemonize_terminate(global->params.pid_file); in wpa_supplicant_deinit() 5453 os_free(global->params.pid_file); in wpa_supplicant_deinit()
|
D | wpa_supplicant_i.h | 142 char *pid_file; member
|
/external/libbrillo/brillo/ |
D | process.h | 147 virtual bool ResetPidByFile(const std::string& pid_file) = 0; 185 virtual bool ResetPidByFile(const std::string& pid_file);
|
D | process.cc | 394 bool ProcessImpl::ResetPidByFile(const std::string& pid_file) { in ResetPidByFile() argument 396 if (!base::ReadFileToString(base::FilePath(pid_file), &contents)) { in ResetPidByFile() 397 LOG(ERROR) << "Could not read pid file" << pid_file; in ResetPidByFile()
|
D | process_mock.h | 40 MOCK_METHOD1(ResetPidByFile, bool(const std::string& pid_file));
|
/external/fio/ |
D | init.c | 1944 void *pid_file = NULL; in parse_cmd_line() local 2211 if (pid_file) in parse_cmd_line() 2212 free(pid_file); in parse_cmd_line() 2213 pid_file = strdup(optarg); in parse_cmd_line() 2324 return fio_start_server(pid_file); in parse_cmd_line() 2325 else if (pid_file) in parse_cmd_line() 2326 free(pid_file); in parse_cmd_line() 2344 if (pid_file) in parse_cmd_line() 2345 free(pid_file); in parse_cmd_line()
|
/external/minijail/ |
D | libminijail.c | 112 int pid_file:1; member 153 j->flags.pid_file = 0; in minijail_preenter() 535 j->flags.pid_file = 1; in minijail_write_pid_file() 1789 if (j->flags.pid_file) in minijail_run_internal()
|
/external/autotest/server/ |
D | site_linux_router.py | 1040 pid_file = self.STATION_PID_FILE_PATTERN % interface 1049 interface, pid_file, conf_file,
|