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

/bind-9.11.3/lib/isc/unix/
H A Ddir.c196 int pid; local
204 pid = getpid();
210 x--, pid /= 10)
211 *x = pid % 10 + '0';
/bind-9.11.3/lib/isc/win32/
H A Ddir.c244 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 Dutils.cpp96 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 Dutils_test.cpp225 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 Dtimers.cpp190 impl::child_timer::child_timer(const unsigned int seconds, const pid_t pid, argument
193 m_pid(pid),
H A Dmisc_helpers.cpp335 pid_t pid = fork(); local
336 ATF_REQUIRE(pid != -1);
338 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);
H A Dprocess.hpp240 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 Dprocess.cpp456 impl::child::pid(void) function in class:impl::child
/bind-9.11.3/bin/tests/system/chain/ans4/
H A Dans.py256 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 Drandom.c82 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 Dentropy.c372 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 Dos.c253 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 Dutils.c50 * \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 Dutils_test.c234 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 Dprocess.cpp315 impl::child::pid(void) function in class:impl::child
/bind-9.11.3/unit/atf-src/atf-c/detail/
H A Dprocess.c391 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 Dprocess_test.c579 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 Dos.c173 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...]

Completed in 41 milliseconds