/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 | 263 with os.fdopen(fd, 'r+') as pid_file: 264 pid_with_start_time = pid_file.readline() 271 pid_file.seek(0) 272 pid_file.write( 274 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()
|
/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/v8/build/android/ |
D | lighttpd_server.py | 61 self.pid_file = self._Mktmp('pid_file') 102 assert int(open(self.pid_file, 'r').read()) == self.process.pid
|
/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/openssh/ |
D | servconf.h | 71 char *pid_file; /* Where to put our pid */ member
|
D | sshd.c | 1277 if (options.pid_file != NULL) 1278 unlink(options.pid_file); 2030 if (options.pid_file != NULL && !debug_flag) { 2031 FILE *f = fopen(options.pid_file, "w"); 2035 options.pid_file, strerror(errno));
|
D | servconf.c | 92 options->pid_file = NULL; in initialize_server_options() 222 if (options->pid_file == NULL) in fill_default_server_options() 223 options->pid_file = xstrdup(_PATH_SSH_DAEMON_PID_FILE); in fill_default_server_options() 369 CLEAR_ON_NONE(options->pid_file); in fill_default_server_options() 1145 charptr = &options->pid_file; in process_server_config_line() 2291 dump_cfg_string(sPidFile, o->pid_file); in dump_config()
|
/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()
|