/freebsd/usr.sbin/cron/cron/ |
H A D | do_command.c | 47 getpid(), e->cmd, u->name, e->uid, e->gid)) in do_command() 55 log_it("CRON", getpid(), "error", "can't fork"); in do_command() 63 Debug(DPROC, ("[%d] child process done, exiting\n", getpid())) in do_command() 69 "returning to work\n", getpid(), pid)) in do_command() 76 Debug(DPROC, ("[%d] main process returning to work\n", getpid())) in do_command() 96 Debug(DPROC, ("[%d] child_process('%s')\n", getpid(), e->cmd)) in child_process() 123 Debug(DPROC, ("[%d] checking account with PAM\n", getpid())) in child_process() 130 log_it(usernm, getpid(), "username ambiguity", u->name); in child_process() 136 log_it("CRON", getpid(), "error", "can't start PAM"); in child_process() 143 log_it(usernm, getpid(), "USER", "account unavailable"); in child_process() [all …]
|
H A D | database.c | 56 Debug(DLOAD, ("[%d] load_database()\n", getpid())) in load_database() 63 log_it("CRON", getpid(), "STAT FAILED", SPOOL_DIR); in load_database() 103 getpid())) in load_database() 126 log_it("CRON", getpid(), "OPENDIR FAILED", in load_database() 150 log_it("CRON", getpid(), "OPENDIR FAILED", SPOOL_DIR); in load_database() 249 log_it(fname, getpid(), "ORPHAN", "no passwd entry"); in process_crontab() 256 log_it(fname, getpid(), "CAN'T OPEN", tabname); in process_crontab() 261 log_it(fname, getpid(), "FSTAT FAILED", tabname); in process_crontab() 288 log_it(fname, getpid(), "RELOAD", tabname); in process_crontab()
|
H A D | cron.c | 89 log_it("CRON", getpid(), "DEATH", buf); in open_pidfile() 126 (void) fprintf(stderr, "[%d] cron started\n", getpid()); 130 log_it("CRON",getpid(),"DEATH","can't become daemon"); 136 log_it("CRON", getpid(), "WARNING", "madvise() failed"); 232 getpid(), second, minute, hour, dom, month, dow)) 420 getpid(), (long)TargetTime, seconds_to_wait)) 431 getpid(), seconds_to_wait)) 475 ("[%d] sigchld...no children\n", getpid())) 479 ("[%d] sigchld...no dead kids\n", getpid())) 485 getpid(), pid, WEXITSTATUS(waiter)))
|
/freebsd/contrib/sendmail/libsm/ |
H A D | notify.h | 42 SM_DBG((stderr, "pid=%ld, select=%d, e=%d\n", (long)getpid(), (rc), save_errno)); \ 49 SM_DBG((stderr, "pid=%ld, fd=%d, isset=false\n", (long)getpid(), fd)); \ 55 SM_DBG((stderr, "pid=%ld, fd=%d, read1=EOF, e=%d\n", (long)getpid(), fd, errno)); \ 61 SM_DBG((stderr, "pid=%ld, fd=%d, read1=%d, e=%d\n", (long)getpid(), fd, r, errno)); \ 67 SM_DBG((stderr, "pid=%ld, scanf, e=%d\n", (long)getpid(), errno)); \ 72 SM_DBG((stderr, "pid=%ld, 1: len=%d\n", (long)getpid(), len)); \ 77 SM_DBG((stderr, "pid=%ld, 2: len=%d\n", (long)getpid(), len)); \ 82 SM_DBG((stderr, "pid=%ld, 3: len=%d\n", (long)getpid(), len)); \ 87 …SM_DBG((stderr, "pid=%ld, fd=%d, read=%d, len=%d, e=%d\n", (long)getpid(), fd, r, len+1, save_errn… 90 SM_DBG((stderr, "pid=%ld, fd=%d, read2=%d, e=%d\n", (long)getpid(), fd, r, save_errno)); \ [all …]
|
/freebsd/contrib/netbsd-tests/kernel/ |
H A D | t_ptrace_wait.c | 87 printf("Before forking process PID=%d\n", getpid()); in ATF_TC_BODY() 90 printf("Before calling PT_TRACE_ME from child %d\n", getpid()); in ATF_TC_BODY() 99 printf("Parent process PID=%d, child's PID=%d\n", getpid(), child); in ATF_TC_BODY() 146 printf("Before forking process PID=%d\n", getpid()); in ATF_TC_BODY() 149 printf("Before calling PT_TRACE_ME from child %d\n", getpid()); in ATF_TC_BODY() 166 printf("Parent process PID=%d, child's PID=%d\n", getpid(), child); in ATF_TC_BODY() 201 printf("Before forking process PID=%d\n", getpid()); in ATF_TC_BODY() 204 printf("Before calling PT_TRACE_ME from child %d\n", getpid()); in ATF_TC_BODY() 214 printf("Parent process PID=%d, child's PID=%d\n", getpid(), child); in ATF_TC_BODY() 250 printf("Before forking process PID=%d\n", getpid()); in ATF_TC_BODY() [all …]
|
/freebsd/tests/sys/audit/ |
H A D | process-control.c | 67 pid = getpid(); in ATF_TC_BODY() 128 pid = getpid(); in ATF_TC_BODY() 154 pid = getpid(); in ATF_TC_BODY() 178 pid = getpid(); in ATF_TC_BODY() 207 pid = getpid(); in ATF_TC_BODY() 231 pid = getpid(); in ATF_TC_BODY() 259 pid = getpid(); in ATF_TC_BODY() 283 pid = getpid(); in ATF_TC_BODY() 307 pid = getpid(); in ATF_TC_BODY() 335 pid = getpid(); in ATF_TC_BODY() [all …]
|
H A D | administrative.c | 69 pid = getpid(); in ATF_TC_BODY() 97 pid = getpid(); in ATF_TC_BODY() 126 pid = getpid(); in ATF_TC_BODY() 153 pid = getpid(); in ATF_TC_BODY() 180 pid = getpid(); in ATF_TC_BODY() 204 pid = getpid(); in ATF_TC_BODY() 230 pid = getpid(); in ATF_TC_BODY() 253 pid = getpid(); in ATF_TC_BODY() 277 pid = getpid(); in ATF_TC_BODY() 303 pid = getpid(); in ATF_TC_BODY() [all …]
|
H A D | miscellaneous.c | 58 pid = getpid(); in ATF_TC_BODY() 82 pid = getpid(); in ATF_TC_BODY() 144 pid = getpid(); in ATF_TC_BODY() 176 pid = getpid(); in ATF_TC_BODY() 199 pid = getpid(); in ATF_TC_BODY()
|
/freebsd/sys/contrib/openzfs/etc/systemd/system-generators/ |
H A D | zfs-mount-generator.c | 88 getpid(), prepend, input, append); in systemd_escape() 155 getpid(), prepend, input, append); in systemd_escape_path() 234 getpid(), dataset); in line_worker() 302 getpid(), dataset, p_keyloc); in line_worker() 315 getpid(), dataset, keyloadunit, destdir, in line_worker() 395 getpid(), dataset, after, keyloadunit); in line_worker() 410 getpid(), dataset, p_systemd_ignore); in line_worker() 423 getpid(), dataset, p_canmount); in line_worker() 433 getpid(), dataset, p_mountpoint); in line_worker() 443 getpid(), dataset, p_mountpoint); in line_worker() [all …]
|
/freebsd/contrib/kyua/utils/signals/ |
H A D | programmer_test.cpp | 76 ::kill(::getpid(), SIGCHLD); in ATF_TEST_CASE_BODY() 81 ::kill(::getpid(), SIGCHLD); in ATF_TEST_CASE_BODY() 92 ::kill(::getpid(), SIGCHLD); in ATF_TEST_CASE_BODY() 97 ::kill(::getpid(), SIGCHLD); in ATF_TEST_CASE_BODY() 108 ::kill(::getpid(), SIGCHLD); in ATF_TEST_CASE_BODY() 115 ::kill(::getpid(), SIGCHLD); in ATF_TEST_CASE_BODY() 122 ::kill(::getpid(), SIGCHLD); in ATF_TEST_CASE_BODY() 129 ::kill(::getpid(), SIGCHLD); in ATF_TEST_CASE_BODY()
|
H A D | interrupts_test.cpp | 82 std::cerr << F("Waiting for any signal; pid=%s\n") % ::getpid(); in pause_child() 84 std::cerr << F("Signal received; pid=%s\n") % ::getpid(); in pause_child() 111 ::kill(getpid(), signo); in check_interrupts_handler() 120 ::kill(getpid(), signo); in check_interrupts_handler() 134 ::kill(getpid(), signo); in check_interrupts_handler() 153 ::kill(::getpid(), signo); in check_interrupts_inhibiter() 156 ::kill(::getpid(), signo); in check_interrupts_inhibiter() 216 ::kill(::getpid(), SIGHUP); in ATF_TEST_CASE_BODY()
|
/freebsd/sys/contrib/openzfs/cmd/zed/ |
H A D | zed_log.c | 71 (int)getpid()); in zed_log_pipe_open() 75 (int)getpid(), strerror(errno)); in zed_log_pipe_open() 90 (int)getpid()); in zed_log_pipe_close_reads() 95 (int)getpid(), strerror(errno)); in zed_log_pipe_close_reads() 115 (int)getpid()); in zed_log_pipe_close_writes() 120 (int)getpid(), strerror(errno)); in zed_log_pipe_close_writes() 140 (int)getpid()); in zed_log_pipe_wait() 149 (int)getpid(), strerror(errno)); in zed_log_pipe_wait()
|
/freebsd/tools/test/stress2/tools/ |
H A D | bench.c | 74 __func__, getpid(), i); in cr1() 84 __func__, getpid(), i); in cr1() 105 __func__, getpid(), i); in cr2() 134 path, __func__, getpid(), i); in cr3() 144 path, __func__, getpid(), i); in cr3() 167 __func__, getpid(), i); in rn1() 173 __func__, getpid(), i); in rn1() 199 snprintf(file, sizeof(file), "rw1.%06d.%03d", getpid(), i); in rw1() 208 snprintf(file, sizeof(file), "rw1.%06d.%03d", getpid(), i); in rw1() 217 snprintf(file, sizeof(file), "rw1.%06d.%03d", getpid(), i); in rw1() [all …]
|
/freebsd/contrib/netbsd-tests/kernel/arch/amd64/ |
H A D | t_ptrace_wait.c | 76 printf("Before forking process PID=%d\n", getpid()); in ATF_TC_BODY() 79 printf("Before calling PT_TRACE_ME from child %d\n", getpid()); in ATF_TC_BODY() 88 printf("Parent process PID=%d, child's PID=%d\n", getpid(), child); in ATF_TC_BODY() 159 printf("Before forking process PID=%d\n", getpid()); in ATF_TC_BODY() 162 printf("Before calling PT_TRACE_ME from child %d\n", getpid()); in ATF_TC_BODY() 171 printf("Parent process PID=%d, child's PID=%d\n", getpid(), child); in ATF_TC_BODY() 218 printf("Before forking process PID=%d\n", getpid()); in ATF_TC_BODY() 221 printf("Before calling PT_TRACE_ME from child %d\n", getpid()); in ATF_TC_BODY() 230 printf("Parent process PID=%d, child's PID=%d\n", getpid(), child); in ATF_TC_BODY() 292 printf("Before forking process PID=%d\n", getpid()); in ATF_TC_BODY() [all …]
|
/freebsd/tools/test/stress2/misc/ |
H A D | bench.sh | 111 snprintf(file, sizeof(file), "t1.%06d.%03d", getpid(), i); function 133 snprintf(file, sizeof(file), "t2.%06d.%03d", getpid(), i); function 141 snprintf(file, sizeof(file), "t2.%06d.%03d", getpid(), i); function 155 snprintf(dir, sizeof(dir), "t3.%06d.dir", getpid()); function 162 getpid(), i); function 187 snprintf(file, sizeof(file), "t4.%06d.%03d", getpid(), i); function 192 snprintf(new, sizeof(new), "t4.%06d.%03d.new", getpid(), i); function 213 snprintf(file, sizeof(file), "t5.%06d.%03d", getpid(), i); function 238 snprintf(file, sizeof(file), "t6.%06d.%03d", getpid(), i); function 249 snprintf(file, sizeof(file), "t6.%06d.%03d", getpid(), i); function [all …]
|
H A D | nfsdepth.sh | 118 warn("mkdir(%s), pid %d, l%d", path, getpid(), __LINE__); function 132 err(1, "chdir(%s), pid %d, l%d", path, getpid(), __LINE__); function 164 err(1, "chdir(%s), pid %d, l%d", "..", getpid(), __LINE__); function 176 err(1, "rmdir(%s), pid %d, l%d", path, getpid(), __LINE__); function 186 sprintf(path,"p%05d.d%d", getpid(), 1); function
|
/freebsd/contrib/capsicum-test/ |
H A D | mini-me.c | 9 fprintf(stderr,"[%d] %s immediately returning 0\n", getpid(), argv[0]); in main() 14 fprintf(stderr,"[%d] %s immediately returning 1\n", getpid(), argv[0]); in main() 30 fprintf(stderr,"[%d] %s unexpectedly able to open file\n", getpid(), argv[0]); in main() 33 fprintf(stderr,"[%d] %s --capmode returning %d\n", getpid(), argv[0], rc); in main()
|
/freebsd/tests/sys/kqueue/libkqueue/ |
H A D | signal.c | 53 if (kill(getpid(), SIGUSR1) < 0) in test_kevent_signal_get() 81 if (kill(getpid(), SIGUSR1) < 0) in test_kevent_signal_disable() 107 if (kill(getpid(), SIGUSR1) < 0) in test_kevent_signal_enable() 145 if (kill(getpid(), SIGUSR1) < 0) in test_kevent_signal_del() 170 if (kill(getpid(), SIGUSR1) < 0) in test_kevent_signal_oneshot() 178 if (kill(getpid(), SIGUSR1) < 0) in test_kevent_signal_oneshot()
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cp_files/ |
H A D | seekflood.c | 55 snprintf(buf, sizeof (buf), "testdata_%d_%d", getpid(), n); in _open_file() 74 getpid(), n, strerror(errno)); in _write_file() 77 fprintf(stderr, "Error: write '%d_%d': short write\n", getpid(), in _write_file() 88 fprintf(stderr, "Error: fstat '%d_%d': %s\n", getpid(), n, in _seek_file() 105 getpid(), n, strerror(errno)); in _seek_file()
|
/freebsd/tests/sys/fs/fusefs/ |
H A D | release.cc | 85 expect_release(ino, getpid(), O_RDONLY, 0); in TEST_F() 115 expect_release(ino, getpid(), O_WRONLY, EIO); in TEST_F() 137 expect_release(ino, getpid(), O_RDWR | O_APPEND, 0); in TEST_F() 160 expect_release(ino, getpid(), O_RDONLY, 0); in TEST_F() 165 expect_release(ino, getpid(), O_WRONLY, 0); in TEST_F() 183 expect_release(ino, getpid(), O_RDONLY, 0); in TEST_F() 199 pid_t pid = getpid(); in TEST_F()
|
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/nfs/ |
H A D | tst.call.c | 109 "mkdir /tmp/nfsv4test.%d ; share /tmp/nfsv4test.%d", getpid(), in main() 110 getpid()); in main() 112 "unshare /tmp/nfsv4test.%d ; rmdir /tmp/nfsv4test.%d", getpid(), in main() 113 getpid()); in main()
|
/freebsd/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_getpid.c | 48 *(pid_t *)arg = getpid(); in threadfunc() 66 tpid = getpid(); in ATF_TC_BODY() 73 cpid = getpid(); in ATF_TC_BODY() 114 pid = getpid(); in ATF_TC_BODY()
|
/freebsd/bin/sh/ |
H A D | error.c | 108 if (tcgetpgrp(0) == getpid()) in onint() 115 kill(getpid(), SIGINT); in onint() 164 status, msg, getpid())); in verrorwithstatus() 167 status, getpid())); in verrorwithstatus()
|
/freebsd/contrib/llvm-project/openmp/runtime/src/ |
H A D | kmp_wrapper_getpid.h | 2 * kmp_wrapper_getpid.h -- getpid() declaration. 18 // On Unix-like systems (Linux* OS and OS X*) getpid() is declared in standard 44 #warning No gettid found, use getpid instead 45 #define __kmp_gettid() getpid() 57 #define getpid _getpid 67 getpid(), it is good. But often it printed as "%d", that is not good, because 52 #define getpid _getpid global() macro
|
/freebsd/contrib/netbsd-tests/lib/libpthread/ |
H A D | t_sigmask.c | 79 kill(getpid(), SIGFPE); in ATF_TC_BODY() 86 kill(getpid(), SIGUSR2); in upcalls_not_started_handler1() 123 kill(getpid(), SIGUSR1); in ATF_TC_BODY() 133 kill(getpid(), SIGUSR2); in respected_while_running_handler1() 155 kill(getpid(), SIGUSR1); in respected_while_running_threadroutine()
|