Home
last modified time | relevance | path

Searched refs:mypid (Results 1 – 25 of 26) sorted by relevance

12

/illumos-gate/usr/src/lib/libc/port/threads/
H A Ddoor_calls.c132 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 Dmain.c46 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 Djobs.c574 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 Dfault.c216 kill(mypid, sig); in done()
H A Ddefs.h149 extern pid_t mypid;
H A Dxec.c307 mypid = getpid();
/illumos-gate/usr/src/cmd/sendmail/db/mutex/
H A Dmutex.c188 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 Dcom_err.c48 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 Dsckmd.c73 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 Dnfslogd.c814 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 Dpwait.c58 pid_t mypid = getpid(); in main() local
108 if (mypid == atol(arg)) { in main()
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dclock.c323 pid_t mypid; local
348 mypid = getpid();
380 kill(mypid, sig);
389 (ev->ev_pid != mypid ||
/illumos-gate/usr/src/cmd/mailx/
H A Dtemp.c60 register pid_t pid = mypid; in tinit()
H A Dinit.c107 pid_t mypid; /* Current process id */ variable
H A Dmain.c111 mypid = getpid(); in main()
H A Dquit.c298 snprintf(tempResid, PATHSIZE, "/tmp/Rq%-ld", mypid); in writeback()
H A Dtty.c103 kill(mypid, SIGSTOP); in ttystop()
/illumos-gate/usr/src/cmd/mailx/hdr/
H A Dglob.h94 extern pid_t mypid; /* Current process id */
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/include/
H A Djobs.h103 pid_t mypid; /* process id of shell */ member
/illumos-gate/usr/src/lib/libnsl/yp/
H A Dyp_bind.c204 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 Dipseckey.c67 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 Dns_connmgmt.c617 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 Dlibrestart.c3521 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 Djobs.c553 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 Dutil.c2781 pid_t mypid = getpid(); local
2791 ProcListVec[i].proc_pid == mypid)

12