Searched refs:pid (Results 176 - 200 of 1657) sorted by relevance

1234567891011>>

/macosx-10.10/shell_cmds-179/shlock/
H A Dshlock.c52 ** Extensions for UUCP style locks (i.e. pid is an int in the file,
120 xtmpfile(char *file, pid_t pid, int uucpstyle) argument
135 sprintf(buf, "%ld\n", (u_long)pid);
165 (write(fd, &pid, sizeof(pid)) != sizeof(pid)) :
169 Pname, tempname, (u_long)pid, strerror(errno));
186 p_exists(pid_t pid) argument
188 dprintf("%s: process %ld is ", Pname, (u_long)pid);
189 if (pid <
230 pid_t pid; local
254 mklock(char *file, pid_t pid, int uucpstyle) argument
313 pid_t pid = 0; local
[all...]
/macosx-10.10/Heimdal-398.1.2/lib/hcrypto/
H A Drand-timer.c69 pid_t pid; local
70 pid = getppid();
75 kill(pid, SIGALRM);
117 pid_t pid;
134 pid = fork();
135 if(pid == -1){
140 if(pid == 0)
153 kill(pid, SIGKILL);
154 while(waitpid(pid, NULL, 0) != pid);
[all...]
/macosx-10.10/postfix-255/postfix/src/master/
H A Dmaster_status.c66 MASTER_PID pid; local
79 * only its pid is known - we do not know what service it came from.
92 msg_warn("service %s(%s): child (pid %d) sent partial status update (%d bytes)",
93 serv->ext_name, serv->name, stat.pid, n);
97 pid = stat.pid;
99 msg_info("%s: pid %d gen %u avail %d",
100 myname, stat.pid, stat.gen, stat.avail);
111 (char *) &pid, sizeof(pid)))
[all...]
/macosx-10.10/rsync-45/rsync/
H A Dpipe.c49 pid_t pid; local
62 pid = do_fork();
63 if (pid == -1) {
68 if (pid == 0) {
97 return pid;
113 pid_t pid; local
126 pid = do_fork();
127 if (pid == -1) {
132 if (pid == 0) {
167 return pid;
[all...]
/macosx-10.10/xnu-2782.1.97/libsyscall/wrappers/libproc/
H A Dproc_listpidspath.c160 * in : pid
166 check_process_vnodes(fdOpenInfoRef info, int pid) argument
172 buf_used = proc_pidinfo(pid, PROC_PIDVNODEPATHINFO, 0, &vpi, sizeof(vpi));
206 * in : pid
212 check_process_text(fdOpenInfoRef info, int pid) argument
221 buf_used = proc_pidinfo(pid, PROC_PIDREGIONPATHINFO3, info->match_stat.st_dev, &rwpi, sizeof(rwpi));
243 buf_used = proc_pidinfo(pid, PROC_PIDREGIONPATHINFO2, a, &rwpi, sizeof(rwpi));
273 * in : pid
279 check_process_fds(fdOpenInfoRef info, int pid) argument
286 buf_used = proc_pidinfo(pid, PROC_PIDLISTFD
382 check_process_threads(fdOpenInfoRef info, int pid) argument
479 check_process_phase1(fdOpenInfoRef info, int pid) argument
517 check_process_phase2(fdOpenInfoRef info, int pid) argument
618 int pid; local
649 int pid; local
[all...]
/macosx-10.10/OpenSSH-189/openssh/contrib/caldera/
H A Dsshd.init24 PIDF=/var/run/$NAME.pid
30 local pid
32 pid=$(head -1 $pidf)
34 pid=$(pidof $NAME)
40 elif [ -n "$pidf" -a ! -f "$pidf" ] || [ -z "$pid" ]; then
41 # pid-file given but not present or no pid => died, but was not stopped
43 elif [ -r /proc/$pid/cmdline ] &&
44 echo -ne $NAME'\000' | cmp -s - /proc/$pid/cmdline; then
45 # pid
[all...]
/macosx-10.10/system_cmds-643.1.1/mean.tproj/
H A Dmean.c26 fprintf(stderr, "Usage: mean -[r|s|u] <pid>\n");
27 fprintf(stderr, "\tLower <pid>'s priority.\n");
28 fprintf(stderr, "\t-u: return <pid> to normal priority\n");
29 fprintf(stderr, "\t-r: resume <pid>\n");
30 fprintf(stderr, "\t-s: suspend <pid>\n");
37 int pid, err, i, ch; local
72 pid = atoi(*argv);
73 if (!pid)
76 err = task_for_pid(mach_task_self(), pid, &task);
106 printf("Process %d's threads set to %s priority.\n", pid,
[all...]
/macosx-10.10/lsof-53/lsof/dialects/darwin/libproc/
H A Ddfile.c339 process_atalk(pid, fd)
340 int pid; /* PID */
353 process_fsevents(pid, fd)
354 int pid; /* PID */
366 process_kqueue(pid, fd)
367 int pid; /* PID */
376 nb = proc_pidfdinfo(pid, fd, PROC_PIDFDKQUEUEINFO, &kq, sizeof(kq));
383 Pn, pid, fd);
452 process_pipe(pid, fd)
453 int pid; /* PI
[all...]
/macosx-10.10/BerkeleyDB-21/db/build_windows/
H A Ddbkill.cpp74 fprintf(stderr, "Usage: kill [ -sig ] pid\n");
84 long pid; local
107 pid = myatol(argv[1], 10);
108 /*printf("pid = %ld (0x%lx) (command line %s)\n", pid, pid, argv[1]);*/
109 if (pid == LONG_MAX || pid == LONG_MIN)
116 hProcess = OpenProcess(accessflag, FALSE, pid);
/macosx-10.10/Libc-1044.1.2/gen/FreeBSD/
H A Dpopen.c75 struct pid { struct
76 SLIST_ENTRY(pid) next;
79 pid_t pid; member in struct:pid
84 __private_extern__ SLIST_HEAD(, pid) pidlist = SLIST_HEAD_INITIALIZER(pidlist);
87 extern SLIST_HEAD(, pid) pidlist;
98 struct pid *cur;
100 int pdes[2], pid, twoway, other; local
102 struct pid *p;
139 if ((cur = malloc(sizeof(struct pid))) == NULL) {
184 err = posix_spawn(&pid, _PATH_BSHEL
227 pid_t pid; local
[all...]
H A Dwaitpid.c53 __waitpid(pid_t pid, int *istat, int options) argument
64 return (__wait4(pid, istat, options, (struct rusage *)0));
66 return (__wait4_nocancel(pid, istat, options, (struct rusage *)0));
/macosx-10.10/OpenLDAP-499.27/OpenLDAP/libraries/liblutil/
H A Ddetach.c55 int i, sd, nbits, pid; local
74 pid = fork1();
76 pid = fork();
78 switch ( pid )
88 return pid;
/macosx-10.10/WebCore-7600.1.25/bindings/scripts/
H A Dpreprocessor.pm73 my $pid = 0;
76 for (my $tries = 0; !$pid && ($tries < 20); $tries++) {
81 $pid = open3(\*PP_IN, \*PP_OUT, $err, split(' ', $preprocessor), @args, @macros, $fileName);
88 $pid = open2(\*PP_OUT, \*PP_IN, split(' ', $preprocessor), @args, @macros, $fileName);
93 waitpid($pid, 0);
/macosx-10.10/bind9-45.101/bind9/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);
/macosx-10.10/ksh-23/ksh/src/lib/libast/misc/
H A Dprocclose.c36 int pid; local
63 while ((pid = waitpid(p->pid, &status, flags)) == -1 && errno == EINTR);
64 if (pid != p->pid && (flags & WNOHANG))
/macosx-10.10/ntp-92/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);
/macosx-10.10/apache-793/httpd/server/
H A Dmpm_unix.c70 pid_t pid; member in struct:extra_process_t
76 AP_DECLARE(void) ap_register_extra_mpm_process(pid_t pid, ap_generation_t gen) argument
81 p->pid = pid;
86 AP_DECLARE(int) ap_unregister_extra_mpm_process(pid_t pid, ap_generation_t *old_gen) argument
91 while (cur && cur->pid != pid) {
113 static int reclaim_one_pid(pid_t pid, action_t action) argument
120 /* Ensure pid sanity. */
121 if (pid <
233 pid_t pid = ps->pid; local
284 pid_t pid = ps->pid; local
371 ap_process_child_status(apr_proc_t *pid, apr_exit_why_e why, int status) argument
758 send_signal(pid_t pid, int sig) argument
[all...]
/macosx-10.10/CPANInternal-159.1/Log-Log4perl-1.40/t/
H A D056SyncApp2.t65 my $pid = fork();
67 die "fork failed" unless defined $pid;
70 if($pid) {
80 print "Waiting for pid $pid\n" if $INTERNAL_DEBUG;
81 waitpid($pid, 0);
82 print "Done waiting for pid $pid\n" if $INTERNAL_DEBUG;
/macosx-10.10/CommonCrypto-60061/test/runscript/
H A Dsecurity.pl6 my $pid = $$;
9 return unless $$ == $pid;
29 return unless $$ == $pid;
37 my $xd = "/tmp/test-$pid";
/macosx-10.10/Heimdal-398.1.2/appl/kx/
H A Drxtelnet.in43 pid=NO
48 pid=$1
68 ($term -title $title -n $title $xterm_args -e env DISPLAY=$disp XAUTHORITY=$auth $binary -D $telnet_args $host $port; test x"$pid" != xNO && kill -USR2 $pid) &
71 test x"$pid" != xNO && kill -USR2 $pid
/macosx-10.10/Heimdal-398.1.2/appl/login/
H A Dshadow.c48 pid_t pid; local
50 switch (pid = fork()) {
58 waitpid(pid, &status, 0);
/macosx-10.10/OpenSSH-189/openssh/contrib/hpux/
H A Degd.rc80 pid=`ps -fuegd | awk '$1 == "egd" { print $2 }'`
81 if [ "X$pid" != "X" ]; then
82 if kill "$pid"; then
/macosx-10.10/Security-57031.1.35/Security/regressions/t/
H A Dsecurity.pl6 my $pid = $$;
9 return unless $$ == $pid;
29 return unless $$ == $pid;
37 my $xd = "/tmp/test-$pid";
/macosx-10.10/Security-57031.1.35/SecurityTests/regressions/t/
H A Dsecurity.pl3 my $pid = $$;
6 return unless $$ == $pid;
27 return unless $$ == $pid;
35 my $xd = "/tmp/test-$pid";
/macosx-10.10/bash-94.1.2/bash-3.2/builtins/
H A Dkill.c49 pid_t pid; local
141 pid = (pid_t) pid_value;
143 if (kill_pid (pid, sig, pid < -1) < 0)
148 kill_error (pid, errno);
181 to be careful. We take the pid of the first job in the pipeline
183 pid = IS_JOBCONTROL (job) ? j->pgrp : j->pipe->pid;
187 if (kill_pid (pid, sig, 1) < 0)
192 kill_error (pid, errn
[all...]

Completed in 293 milliseconds

1234567891011>>