Searched defs:pid (Results 1 - 17 of 17) sorted by relevance

/bind-9.6-ESV-R11/lib/isc/
H A Drandom.c45 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 Dentropy.c367 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 Ddir.c190 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 Ddir.c249 int pid; local
257 pid = getpid();
263 x--, pid /= 10)
264 *x = pid % 10 + '0';
H A Dfile.c49 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 Dutils.cpp100 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 Dutils_test.cpp229 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 Dtimer.cpp194 impl::child_timer::child_timer(const unsigned int seconds, const pid_t pid, argument
197 m_pid(pid),
H A Dmisc_helpers.cpp336 pid_t pid = fork(); local
337 ATF_REQUIRE(pid != -1);
339 if (pid == 0) {
H A Dio_test.cpp389 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 Dos.c214 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 Dutils.c230 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 Dutils_test.c237 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 Dprocess.cpp319 impl::child::pid(void) function in class:impl::child
/bind-9.6-ESV-R11/bin/named/unix/
H A Dos.c178 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 Dprocess.c395 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 Dprocess_test.c583 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...]

Completed in 87 milliseconds