/bind-9.6-ESV-R11/lib/isc/ |
H A D | random.c | 45 unsigned int pid = getpid(); local 48 * The low bits of pid generally change faster. 51 pid = ((pid << 16) & 0xffff0000) | ((pid >> 16) & 0xffff); 53 srand(time(NULL) ^ pid);
|
H A D | entropy.c | 367 pid_t pid; local 370 pid = getpid(); 371 entropypool_adddata(ent, &pid, sizeof(pid), 0); 372 pid = getppid(); 373 entropypool_adddata(ent, &pid, sizeof(pid), 0);
|
/bind-9.6-ESV-R11/lib/isc/unix/ |
H A D | dir.c | 190 int pid; local 198 pid = getpid(); 204 x--, pid /= 10) 205 *x = pid % 10 + '0';
|
/bind-9.6-ESV-R11/lib/isc/win32/ |
H A D | dir.c | 249 int pid; local 257 pid = getpid(); 263 x--, pid /= 10) 264 *x = pid % 10 + '0';
|
H A D | file.c | 49 int pid; local 57 pid = getpid(); 60 *trv = (pid % 10) + '0'; 61 pid /= 10;
|
/bind-9.6-ESV-R11/unit/atf-src/atf-c++/ |
H A D | utils.cpp | 100 atf::utils::wait(const pid_t pid, const int exitstatus, argument 103 atf_utils_wait(pid, exitstatus, expout.c_str(), experr.c_str());
|
H A D | utils_test.cpp | 229 pid_t pid = atf::utils::fork(); local 230 if (pid == 0) { 237 ATF_REQUIRE(waitpid(pid, &status, 0) != -1); 331 const pid_t pid = atf::utils::fork(); local 332 if (pid == 0) { 337 atf::utils::wait(pid, exitstatus, expout, experr);
|
/bind-9.6-ESV-R11/unit/atf-src/atf-run/ |
H A D | timer.cpp | 194 impl::child_timer::child_timer(const unsigned int seconds, const pid_t pid, argument 197 m_pid(pid),
|
H A D | misc_helpers.cpp | 336 pid_t pid = fork(); local 337 ATF_REQUIRE(pid != -1); 339 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);
|
/bind-9.6-ESV-R11/bin/named/win32/ |
H A D | os.c | 214 pid_t pid; local 241 (*report)("couldn't open pid file '%s': %s", filename, strbuf); 249 (*report)("could not fdopen() pid file '%s': %s", 256 pid = getpid(); 258 if (fprintf(lockfile, "%ld\n", (long)pid) < 0) { 259 (*report)("fprintf() to pid file '%s' failed", filename); 265 (*report)("fflush() to pid file '%s' failed", filename);
|
/bind-9.6-ESV-R11/unit/atf-src/atf-c/ |
H A D | utils.c | 230 const pid_t pid = fork(); local 231 if (pid == -1) 234 if (pid == 0) { 238 return pid; 376 * \param pid The process to be waited for. Must have been started by 382 atf_utils_wait(const pid_t pid, const int exitstatus, const char *expout, argument 386 ATF_REQUIRE(waitpid(pid, &status, 0) != -1);
|
H A D | utils_test.c | 237 pid_t pid = atf_utils_fork(); local 238 if (pid == 0) { 245 ATF_REQUIRE(waitpid(pid, &status, 0) != -1); 386 const pid_t pid = atf_utils_fork(); local 387 if (pid == 0) { 392 atf_utils_wait(pid, exitstatus, expout, experr);
|
/bind-9.6-ESV-R11/unit/atf-src/atf-c++/detail/ |
H A D | process.cpp | 319 impl::child::pid(void) function in class:impl::child
|
/bind-9.6-ESV-R11/bin/named/unix/ |
H A D | os.c | 178 caphead.pid = 0; 393 pid_t pid; local 401 pid = fork(); 402 if (pid == -1) { 406 if (pid != 0) { 716 pid_t pid; local 754 (*report)("couldn't open pid file '%s': %s", filename, strbuf); 762 (*report)("could not fdopen() pid file '%s': %s", 769 pid = mainpid; 771 pid 818 pid_t pid; local [all...] |
/bind-9.6-ESV-R11/unit/atf-src/atf-c/detail/ |
H A D | process.c | 395 const pid_t pid, 405 c->m_pid = pid; 465 pid_t pid; local 475 pid = fork(); 476 if (pid == -1) { 481 if (pid == 0) { 487 err = do_parent(c, pid, &outsp, &errsp); 394 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 | 583 pid_t pid; local 586 pid = fork(); 587 ATF_REQUIRE(pid != -1); 588 if (pid == 0) { 593 ATF_REQUIRE(waitpid(pid, &status, 0) != 0); 694 const pid_t pid = getpid(); local 695 if (write(STDOUT_FILENO, &pid, sizeof(pid)) != sizeof(pid)) 704 atf_tc_set_md_var(tc, "descr", "Tests the correctness of the pid " 712 pid_t pid; local 722 ATF_CHECK_EQ(atf_process_child_pid(&child), pid); local [all...] |