/illumos-gate/usr/src/lib/libc/port/threads/ |
H A D | door_calls.c | 132 pid_t mypid = (pid_t)(uintptr_t)arg; in door_unref_func() local 140 while (getpid() == mypid && __door_unref() && errno == EINTR) in door_unref_func() 160 pid_t mypid; in door_create_cmn() local 182 mypid = getpid(); in door_create_cmn() 183 if (mypid != door_create_pid || in door_create_cmn() 184 (!is_private && mypid != door_create_first_pid) || in door_create_cmn() 185 (is_unref && mypid != door_create_unref_pid)) { in door_create_cmn() 188 door_create_pid = mypid; in door_create_cmn() 190 if (!is_private && mypid != door_create_first_pid) { in door_create_cmn() 192 door_create_first_pid = mypid; in door_create_cmn() [all …]
|
/illumos-gate/usr/src/cmd/sh/ |
H A D | main.c | 46 pid_t mypid, mypgid, mysid; variable 82 mypid = getpid(); in main() 83 mypgid = getpgid(mypid); in main() 84 mysid = getsid(mypid); in main() 233 assnum(&pidadr, (long)mypid); in main() 445 if ((len = snprintf((char *)tmpout, TMPOUTSZ, "/tmp/sh%u", mypid)) >= in settmp()
|
H A D | jobs.c | 574 mypgid = mypid; in startjobs() 687 mypgid = mypid; in makejob() 690 tcsetpgrp(0, mypid); in makejob() 937 if (id == mysid || id == mypid && mypgid == mysid) { in sigv()
|
H A D | fault.c | 216 kill(mypid, sig); in done()
|
H A D | defs.h | 149 extern pid_t mypid;
|
H A D | xec.c | 307 mypid = getpid();
|
/illumos-gate/usr/src/cmd/sendmail/db/mutex/ |
H A D | mutex.c | 188 pid_t mypid; local 231 for (locked = 0, mypid = getpid();;) { 250 mp->pid = mypid;
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/et/ |
H A D | com_err.c | 48 DWORD mypid; in isGuiApp() local 50 mypid = GetCurrentProcessId(); in isGuiApp() 51 myprocess = OpenProcess( PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, FALSE, mypid); in isGuiApp()
|
/illumos-gate/usr/src/cmd/sckmd/sparc/sun4u/ |
H A D | sckmd.c | 73 static pid_t mypid; variable 109 mypid = getpid(); in main() 284 pfkey_msg->sadb_msg_pid = mypid; in process_sckm_req() 426 msg->sadb_msg_pid == mypid) { in get_pfkey_reply()
|
/illumos-gate/usr/src/cmd/fs.d/nfs/nfslog/ |
H A D | nfslogd.c | 814 pid_t pid, mypid; in process_pidfile() local 852 mypid = getpid(); in process_pidfile() 869 pid = mypid; in process_pidfile() 874 if (write(fd, &mypid, sizeof (mypid)) < 0) { in process_pidfile() 881 assert(pid == mypid); in process_pidfile()
|
/illumos-gate/usr/src/cmd/ptools/pwait/ |
H A D | pwait.c | 58 pid_t mypid = getpid(); in main() local 108 if (mypid == atol(arg)) { in main()
|
/illumos-gate/usr/src/cmd/sendmail/libsm/ |
H A D | clock.c | 323 pid_t mypid; local 348 mypid = getpid(); 380 kill(mypid, sig); 389 (ev->ev_pid != mypid ||
|
/illumos-gate/usr/src/cmd/mailx/ |
H A D | temp.c | 60 register pid_t pid = mypid; in tinit()
|
H A D | init.c | 107 pid_t mypid; /* Current process id */ variable
|
H A D | main.c | 111 mypid = getpid(); in main()
|
H A D | quit.c | 298 snprintf(tempResid, PATHSIZE, "/tmp/Rq%-ld", mypid); in writeback()
|
H A D | tty.c | 103 kill(mypid, SIGSTOP); in ttystop()
|
/illumos-gate/usr/src/cmd/mailx/hdr/ |
H A D | glob.h | 94 extern pid_t mypid; /* Current process id */
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/include/ |
H A D | jobs.h | 103 pid_t mypid; /* process id of shell */ member
|
/illumos-gate/usr/src/lib/libnsl/yp/ |
H A D | yp_bind.c | 204 static pid_t mypid; /* Cached to detect forks */ in newborn() local 208 if ((testpid = getpid()) != mypid) { in newborn() 210 mypid = testpid; in newborn()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipsecutils/ |
H A D | ipseckey.c | 67 static pid_t mypid; variable 250 msg->sadb_msg_pid = mypid; in msg_init() 1156 } while (msg.sadb_msg_seq != seq || msg.sadb_msg_pid != mypid); in doflush() 1220 if (msg->sadb_msg_pid == mypid && in dodump() 1232 } while (msg->sadb_msg_pid != mypid || in dodump() 1408 msgp->sadb_msg_pid != mypid); in doaddresses() 1647 msgp->sadb_msg_pid != mypid); in doaddresses() 3895 mypid = getpid(); in main()
|
/illumos-gate/usr/src/lib/libsldap/common/ |
H A D | ns_connmgmt.c | 617 pid_t mypid; in get_current_conn_mgmt() local 619 mypid = getpid(); in get_current_conn_mgmt() 620 if (cmg == NULL || checked_pid != mypid) { in get_current_conn_mgmt() 621 checked_pid = mypid; in get_current_conn_mgmt() 627 if (cmg == NULL || cmg->pid != mypid) { in get_current_conn_mgmt()
|
/illumos-gate/usr/src/lib/librestart/common/ |
H A D | librestart.c | 3521 pid_t mypid = -1; in restarter_set_method_context() local 3608 mypid = getpid(); in restarter_set_method_context() 3611 strlen(cip->corefile_pattern) + 1, mypid) != 0) { in restarter_set_method_context() 3701 if (mypid == -1) in restarter_set_method_context() 3702 mypid = getpid(); in restarter_set_method_context() 3707 mypid) != PO_SUCCESS) { in restarter_set_method_context()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | jobs.c | 553 tcsetpgrp(JOBTTY,job.mypid); in job_reap() 737 job.mypid = shp->gd->pid; in job_init() 755 else if(getpid() != job.mypid) in job_close() 849 if(tcsetpgrp(job.fd,job.mypid) !=0) in job_reset()
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | util.c | 2781 pid_t mypid = getpid(); local 2791 ProcListVec[i].proc_pid == mypid)
|