| /netbsd-src/external/bsd/cron/dist/ |
| H A D | popen.c | 61 static PID_T *pids; variable 74 if (!pids) { in cron_popen() 79 len = (size_t)fds * sizeof(*pids); in cron_popen() 80 if ((pids = malloc(len)) == NULL) in cron_popen() 82 (void)memset(pids, 0, len); in cron_popen() 161 pids[fileno(iop)] = pid; in cron_popen() 177 if (pids == 0 || pids[fdes = fileno(iop)] == 0) in cron_finalize() 181 if (kill(pids[fdes], sig) == -1) in cron_finalize() 191 while ((pid = waitpid(pids[fdes], &status, 0)) < 0 && errno == EINTR) in cron_finalize() 196 pids[fdes] = 0; in cron_finalize()
|
| /netbsd-src/etc/rc.d/ |
| H A D | ppp | 49 pids="$(check_process pppd)" 50 if [ -n "$pids" ]; then 51 for pid in $pids; do 59 pids="$(check_process pppd)" 60 if [ -n "$pids" ]; then 61 for pid in $pids; do
|
| /netbsd-src/libexec/ftpd/ |
| H A D | popen.c | 102 static int *pids; variable 121 if (!pids) { in ftpd_popen() 124 if ((pids = (int *)malloc((unsigned int)(fds * sizeof(int)))) == NULL) in ftpd_popen() 126 memset(pids, 0, fds * sizeof(int)); in ftpd_popen() 209 pids[fileno(iop)] = pid; in ftpd_popen() 228 if (pids == 0 || pids[fdes = fileno(iop)] == 0) in ftpd_pclose() 236 while ((pid = waitpid(pids[fdes], &status, 0)) < 0 && errno == EINTR) in ftpd_pclose() 239 pids[fdes] = 0; in ftpd_pclose()
|
| H A D | conf.c | 892 pid_t *pids, mypid; in count_users() local 898 pids = NULL; in count_users() 912 if ((pids = calloc(sb.st_size + sizeof(pid_t), 1)) == NULL) in count_users() 915 scount = read(fd, pids, sb.st_size); in count_users() 922 if (pids[i] == 0) in count_users() 924 if (kill(pids[i], 0) == -1 && errno != EPERM) { in count_users() 926 pids[i] = mypid; in count_users() 936 if (pids[last] != 0) in count_users() 938 pids[last] = mypid; in count_users() 944 scount = write(fd, pids, count); in count_users() [all …]
|
| /netbsd-src/external/cddl/dtracetoolkit/dist/Proc/ |
| H A D | pidpersec.d | 45 pids = 0; 50 pids++; 55 printf("%-22Y %6d\n", walltimestamp, pids); 56 pids = 0;
|
| /netbsd-src/external/cddl/dtracetoolkit/dist/Bin/ |
| H A D | pidpersec.d | 45 pids = 0; 50 pids++; 55 printf("%-22Y %6d\n", walltimestamp, pids); 56 pids = 0;
|
| /netbsd-src/external/gpl2/groff/dist/src/roff/groff/ |
| H A D | pipeline.c | 222 PID_T pids[MAX_COMMANDS]; in run_pipeline() local 314 pids[i] = pid; in run_pipeline() 334 pid = pids[i]; in run_pipeline() 453 PID_T pids[MAX_COMMANDS]; in run_pipeline() local 504 pids[i] = pid; in run_pipeline() 513 if (pids[i] == pid) { in run_pipeline() 514 pids[i] = -1; in run_pipeline() 532 if (pids[j] > 0) in run_pipeline() 533 (void)kill(pids[j], SIGPIPE); in run_pipeline()
|
| /netbsd-src/crypto/external/bsd/heimdal/dist/kdc/ |
| H A D | connect.c | 1011 kill_kids(pid_t *pids, int max_kids, int sig) in kill_kids() argument 1016 if (pids[i] > 0) in kill_kids() 1017 kill(sig, pids[i]); in kill_kids() 1024 pid_t *pids, int max_kids, int options) in reap_kid() argument 1037 if (pids[i] == pid) in reap_kid() 1065 pids[i] = (pid_t)0; in reap_kid() 1072 pid_t *pids, int max_kids) in reap_kids() argument 1077 if (reap_kid(context, config, pids, max_kids, WNOHANG) == 0) in reap_kids() 1106 pid_t *pids; in start_kdc() local 1127 pids = calloc(max_kdcs, sizeof(*pids)); in start_kdc() [all …]
|
| /netbsd-src/external/gpl3/gdb/dist/sim/testsuite/bfin/ |
| H A D | run-tests.sh | 211 pids=() 224 pids+=( $! ) 226 wait ${pids[0]} 227 pids=( ${pids[@]:1} )
|
| /netbsd-src/tests/usr.bin/fstat/ |
| H A D | t_fstat.sh | 43 pids=$(ps -A | awk '{print $1}') 45 for pid in $pids; do
|
| /netbsd-src/external/apache2/llvm/dist/llvm/utils/Misc/ |
| H A D | zkill | 224 pids = set() 227 pids.add(int(arg)) 234 if pids: 236 if p.pid in pids]
|
| /netbsd-src/sys/ddb/ |
| H A D | TODO | 16 done The vax port supports decimal pids in "trace", etc. This should be 24 dead Have "ps" print pids with a 0t prefix to reduce radix
|
| /netbsd-src/bin/pax/ |
| H A D | extern.h | 253 extern int pids;
|
| /netbsd-src/tests/net/if_ipsec/ |
| H A D | t_ipsec_natt.sh | 133 PIDSFILE=./terminator.pids
|
| /netbsd-src/etc/ |
| H A D | rc.subr | 391 # kills the given pids with signal. 392 # returns the list of pids killed successfully. 411 # spins until none of the pids exist 413 # pids
|
| /netbsd-src/tests/net/ipsec/ |
| H A D | t_ipsec_natt.sh | 166 PIDSFILE=./terminator.pids
|
| /netbsd-src/external/bsd/openldap/dist/libraries/liblmdb/ |
| H A D | mdb.c | 10198 MDB_PID_T *pids, pid; in mdb_reader_check0() local 10202 pids = malloc((rdrs+1) * sizeof(MDB_PID_T)); in mdb_reader_check0() 10203 if (!pids) in mdb_reader_check0() 10205 pids[0] = 0; in mdb_reader_check0() 10210 if (mdb_pid_insert(pids, pid) == 0) { in mdb_reader_check0() 10238 free(pids); in mdb_reader_check0()
|
| /netbsd-src/external/bsd/top/dist/ |
| H A D | Changes | 348 aix.c: widened PID field for 6-digit pids (shortened NICE field)
|
| /netbsd-src/external/gpl3/gdb/dist/gdb/ |
| H A D | ChangeLog-2021 | 5768 * target.c (target_mourn_inferior): Only compare pids in
|
| H A D | ChangeLog-1993 | 3291 * (target_pid_to_str): Default definition for normal type pids.
|
| H A D | ChangeLog-2007 | 2331 (win32_attach): Only fallback to Cygwin pids if building on
|
| H A D | ChangeLog-2011 | 2452 parent and child's pids as soon as we detect a clone event.
|
| /netbsd-src/external/gpl3/gdb.old/dist/gdb/ |
| H A D | ChangeLog-2007 | 2331 (win32_attach): Only fallback to Cygwin pids if building on
|
| H A D | ChangeLog-1993 | 3291 * (target_pid_to_str): Default definition for normal type pids.
|
| H A D | ChangeLog-2011 | 2452 parent and child's pids as soon as we detect a clone event.
|