/bind-9.11.3/lib/isc/unix/ |
H A D | dir.c | 196 int pid; local 204 pid = getpid(); 210 x--, pid /= 10) 211 *x = pid % 10 + '0';
|
/bind-9.11.3/lib/isc/win32/ |
H A D | dir.c | 244 int pid; local 252 pid = getpid(); 258 x--, pid /= 10) 259 *x = pid % 10 + '0';
|
/bind-9.11.3/unit/atf-src/atf-c++/ |
H A D | utils.cpp | 96 atf::utils::wait(const pid_t pid, const int exitstatus, argument 99 atf_utils_wait(pid, exitstatus, expout.c_str(), experr.c_str());
|
H A D | utils_test.cpp | 225 pid_t pid = atf::utils::fork(); local 226 if (pid == 0) { 233 ATF_REQUIRE(waitpid(pid, &status, 0) != -1); 238 out_name << "atf_utils_fork_" << pid << "_out.txt"; local 240 err_name << "atf_utils_fork_" << pid << "_err.txt"; local 332 const pid_t pid = atf::utils::fork(); local 333 if (pid == 0) { 338 atf::utils::wait(pid, exitstatus, expout, experr);
|
/bind-9.11.3/unit/atf-src/tools/ |
H A D | timers.cpp | 190 impl::child_timer::child_timer(const unsigned int seconds, const pid_t pid, argument 193 m_pid(pid),
|
H A D | misc_helpers.cpp | 335 pid_t pid = fork(); local 336 ATF_REQUIRE(pid != -1); 338 if (pid == 0) {
|
H A D | io_test.cpp | 389 pid_t pid = ::fork(); local 390 ATF_REQUIRE(pid != -1); 391 if (pid == 0) { 412 ATF_REQUIRE(::waitpid(pid, &status, 0) != -1);
|
H A D | process.hpp | 240 pid_t pid(void) const; 272 pid_t pid = ::fork(); local 273 if (pid == -1) { 276 } else if (pid == 0) { 289 return child(pid, stdout_fd, stderr_fd);
|
H A D | process.cpp | 456 impl::child::pid(void) function in class:impl::child
|
/bind-9.11.3/bin/tests/system/chain/ans4/ |
H A D | ans.py | 256 os.remove('ans.pid') 263 # Set up responder and control channel, open the pid file, and start 291 f = open('ans.pid', 'w') 292 pid = os.getpid() variable 293 print (pid, file=f)
|
/bind-9.11.3/lib/isc/ |
H A D | random.c | 82 unsigned int pid = getpid(); local 85 * The low bits of pid generally change faster. 88 pid = ((pid << 16) & 0xffff0000) | ((pid >> 16) & 0xffff); 90 srand((unsigned)time(NULL) ^ pid);
|
H A D | entropy.c | 372 pid_t pid; local 375 pid = getpid(); 376 entropypool_adddata(ent, &pid, sizeof(pid), 0); 377 pid = getppid(); 378 entropypool_adddata(ent, &pid, sizeof(pid), 0);
|
/bind-9.11.3/bin/named/win32/ |
H A D | os.c | 253 pid_t pid; local 283 pid = getpid(); 285 if (fprintf(pidlockfile, "%ld\n", (long)pid) < 0) { 286 (*report)("fprintf() to pid file '%s' failed", filename); 292 (*report)("fflush() to pid file '%s' failed", filename);
|
/bind-9.11.3/unit/atf-src/atf-c/ |
H A D | utils.c | 50 * \param pid PID of the process that will write to the file. 54 init_out_filename(atf_dynstr_t *name, const pid_t pid, const char *suffix, argument 60 (int)pid, suffix); 254 const pid_t pid = fork(); local 255 if (pid == -1) 258 if (pid == 0) { 271 return pid; 409 * \param pid The process to be waited for. Must have been started by 415 atf_utils_wait(const pid_t pid, const int exitstatus, const char *expout, argument 419 ATF_REQUIRE(waitpid(pid, [all...] |
H A D | utils_test.c | 234 pid_t pid = atf_utils_fork(); local 235 if (pid == 0) { 242 ATF_REQUIRE(waitpid(pid, &status, 0) != -1); 247 RE(atf_dynstr_init_fmt(&out_name, "atf_utils_fork_%d_out.txt", (int)pid)); 249 RE(atf_dynstr_init_fmt(&err_name, "atf_utils_fork_%d_err.txt", (int)pid)); 391 const pid_t pid = atf_utils_fork(); local 392 ATF_REQUIRE(pid != -1); 393 if (pid == 0) { 398 atf_utils_wait(pid, exitstatus, expout, experr);
|
/bind-9.11.3/unit/atf-src/atf-c++/detail/ |
H A D | process.cpp | 315 impl::child::pid(void) function in class:impl::child
|
/bind-9.11.3/unit/atf-src/atf-c/detail/ |
H A D | process.c | 391 const pid_t pid, 401 c->m_pid = pid; 461 pid_t pid; local 471 pid = fork(); 472 if (pid == -1) { 477 if (pid == 0) { 483 err = do_parent(c, pid, &outsp, &errsp); 390 do_parent(atf_process_child_t *c, const pid_t pid, const stream_prepare_t *outsp, const stream_prepare_t *errsp) argument
|
H A D | process_test.c | 579 pid_t pid; local 582 pid = fork(); 583 ATF_REQUIRE(pid != -1); 584 if (pid == 0) { 589 ATF_REQUIRE(waitpid(pid, &status, 0) != 0); 690 const pid_t pid = getpid(); local 691 if (write(STDOUT_FILENO, &pid, sizeof(pid)) != sizeof(pid)) 700 atf_tc_set_md_var(tc, "descr", "Tests the correctness of the pid " 708 pid_t pid; local 718 ATF_CHECK_EQ(atf_process_child_pid(&child), pid); local [all...] |
/bind-9.11.3/bin/named/unix/ |
H A D | os.c | 173 caphead.pid = 0; 294 * directory of the pid file when we create it. 394 pid_t pid; local 402 pid = fork(); 403 if (pid == -1) { 407 if (pid != 0) { 878 pid_t pid; local 907 pid = mainpid; 909 pid = getpid(); 911 if (fprintf(fh, "%ld\n", (long)pid) < 1012 pid_t pid; local [all...] |