Home
last modified time | relevance | path

Searched refs:p2 (Results 1 – 25 of 372) sorted by relevance

12345678910>>...15

/dragonfly/sys/kern/
HDkern_fork.c140 struct proc *p2; in sys_fork() local
143 error = fork1(lp, RFFDG | RFPROC | RFPGLOCK, &p2); in sys_fork()
145 PHOLD(p2); in sys_fork()
146 start_forked_proc(lp, p2); in sys_fork()
147 sysmsg->sysmsg_fds[0] = p2->p_pid; in sys_fork()
149 PRELE(p2); in sys_fork()
161 struct proc *p2; in sys_vfork() local
164 error = fork1(lp, RFFDG | RFPROC | RFPPWAIT | RFMEM | RFPGLOCK, &p2); in sys_vfork()
166 PHOLD(p2); in sys_vfork()
167 start_forked_proc(lp, p2); in sys_vfork()
[all …]
/dragonfly/contrib/tcsh-6/
HDsh.parse.c71 asyntax(struct wordent *p1, struct wordent *p2) in asyntax() argument
73 while (p1 != p2) { in asyntax()
75 return asyn0(p1, p2); in asyntax()
82 asyn0(struct wordent *p1, struct wordent *p2) in asyn0() argument
87 for (p = p1; p != p2; p = p->next) in asyn0()
101 if (p->next != p2 && eq(p->next->word, STRand)) in asyn0()
113 return asyntax(p->next, p2); in asyn0()
119 return asyn3(p1, p2); in asyn0()
133 asyn3(struct wordent *p1, struct wordent *p2) in asyn3() argument
139 if (p1 == p2) in asyn3()
[all …]
HDsh.exp.c193 int p2; in exp0() local
197 p2 = compat_expr ? in exp0()
201 p1 = (p1 || p2); in exp0()
216 tcsh_number_t p2; in exp1() local
219 p2 = compat_expr ? in exp1()
223 etraci("exp1 p2", p2, vp); in exp1()
225 p1 = (p1 && p2); in exp1()
240 tcsh_number_t p2; in exp2x() local
243 p2 = compat_expr ? in exp2x()
246 etraci("exp2x p2", p2, vp); in exp2x()
[all …]
/dragonfly/sys/libkern/
HDbcmp.c59 ustring p1 = b1, p2 = b2; in bcmp() local
69 if (*p1++ != *p2++) in bcmp()
79 shr = (long)p2 & (sizeof(long) - 1); in bcmp()
81 p2 -= shr; /* p2 now longword aligned */ in bcmp()
85 va = *(culp)p2; in bcmp()
86 p2 += sizeof(long); in bcmp()
89 vb = *(culp)p2; in bcmp()
90 p2 += sizeof(long); in bcmp()
110 return ((((va >> shr | ((shl < len) ? *(culp)p2 << shl : 0)) ^ in bcmp()
115 if (*(culp)p1 != *(culp)p2) in bcmp()
[all …]
/dragonfly/usr.bin/w/
HDproc_compare.c66 proc_compare(struct kinfo_proc *p1, struct kinfo_proc *p2) in proc_compare() argument
74 switch (TESTAB(ISRUN(p1), ISRUN(p2))) { in proc_compare()
83 if (p2->kp_lwp.kl_estcpu > p1->kp_lwp.kl_estcpu) in proc_compare()
85 if (p1->kp_lwp.kl_estcpu > p2->kp_lwp.kl_estcpu) in proc_compare()
87 return (p2->kp_pid > p1->kp_pid); /* tie - return highest pid */ in proc_compare()
92 switch (TESTAB(p1->kp_stat == SZOMB, p2->kp_stat == SZOMB)) { in proc_compare()
98 return (p2->kp_pid > p1->kp_pid); /* tie - return highest pid */ in proc_compare()
103 if (p2->kp_lwp.kl_slptime > p1->kp_lwp.kl_slptime) in proc_compare()
105 if (p1->kp_lwp.kl_slptime > p2->kp_lwp.kl_slptime) in proc_compare()
110 if (p1->kp_lwp.kl_flags & LWP_SINTR && (p2->kp_lwp.kl_flags & LWP_SINTR) == 0) in proc_compare()
[all …]
/dragonfly/lib/libc/stdlib/
HDmerge.c102 u_char *list2, *list1, *p2, *p, *last, **p1; in mergesort() local
130 for (tp2 = p2 = list2; p2 != last; p1 = EVAL(l2)) { in mergesort()
131 p2 = *EVAL(p2); in mergesort()
133 f2 = l1 = list1 + (p2 - list2); in mergesort()
134 if (p2 != last) in mergesort()
135 p2 = *EVAL(p2); in mergesort()
136 l2 = list1 + (p2 - list2); in mergesort()
260 u_char *f1, *f2, *s, *l2, *last, *p2; in setup() local
278 p2 = list2; in setup()
291 p2 = *EVAL(p2) = f1 + size2 - list1 + list2; in setup()
[all …]
/dragonfly/contrib/gcc-4.7/gcc/
HDomega.h310 omega_copy_problem (omega_pb p1, omega_pb p2) in omega_copy_problem() argument
314 p1->num_vars = p2->num_vars; in omega_copy_problem()
315 p1->hash_version = p2->hash_version; in omega_copy_problem()
316 p1->variables_initialized = p2->variables_initialized; in omega_copy_problem()
317 p1->variables_freed = p2->variables_freed; in omega_copy_problem()
318 p1->safe_vars = p2->safe_vars; in omega_copy_problem()
319 p1->num_eqs = p2->num_eqs; in omega_copy_problem()
320 p1->num_subs = p2->num_subs; in omega_copy_problem()
321 p1->num_geqs = p2->num_geqs; in omega_copy_problem()
323 for (e = p2->num_eqs - 1; e >= 0; e--) in omega_copy_problem()
[all …]
HDtree-ssa-coalesce.c146 pop_cost_one_pair (coalesce_list_p cl, int *p1, int *p2) in pop_cost_one_pair() argument
155 *p2 = ptr->second_element; in pop_cost_one_pair()
168 pop_best_coalesce (coalesce_list_p cl, int *p1, int *p2) in pop_best_coalesce() argument
174 return pop_cost_one_pair (cl, p1, p2); in pop_best_coalesce()
177 return pop_cost_one_pair (cl, p1, p2); in pop_best_coalesce()
181 *p2 = node->second_element; in pop_best_coalesce()
210 const_coalesce_pair_p const p2 = (const_coalesce_pair_p) pair2; in coalesce_pair_map_eq() local
212 return (p1->first_element == p2->first_element in coalesce_pair_map_eq()
213 && p1->second_element == p2->second_element); in coalesce_pair_map_eq()
256 find_coalesce_pair (coalesce_list_p cl, int p1, int p2, bool create) in find_coalesce_pair() argument
[all …]
/dragonfly/sbin/hammer/
HDcmd_stats.c117 print_bstats(const struct btree_stats *p1, const struct btree_stats *p2) in print_bstats() argument
120 (intmax_t)(p1->btree_lookups - p2->btree_lookups), in print_bstats()
121 (intmax_t)(p1->btree_searches - p2->btree_searches), in print_bstats()
122 (intmax_t)(p1->btree_inserts - p2->btree_inserts), in print_bstats()
123 (intmax_t)(p1->btree_deletes - p2->btree_deletes), in print_bstats()
124 (intmax_t)(p1->btree_elements - p2->btree_elements), in print_bstats()
125 (intmax_t)(p1->btree_splits - p2->btree_splits), in print_bstats()
126 (intmax_t)(p1->btree_iterations - p2->btree_iterations), in print_bstats()
127 (intmax_t)(p1->btree_root_iterations - p2->btree_root_iterations), in print_bstats()
128 (intmax_t)(p1->record_iterations - p2->record_iterations)); in print_bstats()
[all …]
/dragonfly/usr.bin/hexdump/
HDparse.c204 unsigned char *p1, *p2, *fmtp; in rewrite() local
250 p2 = p1 + 1; /* Set end pointer. */ in rewrite()
329 ++p2; in rewrite()
337 ++p2; in rewrite()
383 savech = *p2; in rewrite()
389 *p2 = savech; in rewrite()
391 fmtp = p2; in rewrite()
424 for (p1 = pr->fmt, p2 = NULL; *p1; ++p1) in rewrite()
425 p2 = isspace(*p1) ? p1 : NULL; in rewrite()
426 if (p2) in rewrite()
[all …]
/dragonfly/usr.bin/crunch/crunchgen/
HDcrunchgen.c413 prog_t *p1, *p2; in add_prog() local
417 for (p1 = NULL, p2 = progs; p2 != NULL; p1 = p2, p2 = p2->next) in add_prog()
418 if (iseq(p2->name, progname)) in add_prog()
421 p2 = malloc(sizeof(prog_t)); in add_prog()
422 if (p2) { in add_prog()
423 memset(p2, 0, sizeof(prog_t)); in add_prog()
424 p2->name = strdup(progname); in add_prog()
426 if (!p2 || !p2->name) in add_prog()
429 p2->next = NULL; in add_prog()
431 progs = p2; in add_prog()
[all …]
/dragonfly/usr.bin/cmp/
HDlink.c45 char buf2[PATH_MAX], *p2; in c_link() local
74 for (p1 = buf1 + skip1, p2 = buf2 + skip2; *p1 && *p2; p1++, p2++) { in c_link()
75 if ((ch = *p1) != *p2) { in c_link()
79 (long long)byte - 1, ch, *p2); in c_link()
83 (long long)byte, ch, *p2); in c_link()
91 if (*p1 || *p2) in c_link()
/dragonfly/usr.bin/calendar/
HDparsedata.c136 char *p, *p1, *p2; in determine_style() local
179 p2 = p + 1; in determine_style()
182 if ((p = strchr(p2, ' ')) != NULL || in determine_style()
183 (p = strchr(p2, '/')) != NULL) { in determine_style()
188 p1 = p2; in determine_style()
189 p2 = p + 1; in determine_style()
193 if (is_onlydigits(p1, false) && is_onlydigits(p2, true)) { in determine_style()
195 if (strchr(p2, '*') != NULL) in determine_style()
199 int d = (int)strtol(p2, NULL, 10); in determine_style()
214 if ((strcmp(p1, "*") == 0 && is_onlydigits(p2, false)) || in determine_style()
[all …]
/dragonfly/usr.bin/top/
HDm_dragonfly.c858 if (lresult = (long) LP(p2, pctcpu) - (long) LP(p1, pctcpu), \
864 if ((result = CPTICKS(p2) > CPTICKS(p1) ? 1 : \
865 CPTICKS(p2) < CPTICKS(p1) ? -1 : 0) == 0)
871 if ((result = CTIME(p2) > CTIME(p1) ? 1 : \
872 CTIME(p2) < CTIME(p1) ? -1 : 0) == 0)
875 if ((result = sorted_state[(unsigned char) PP(p2, stat)] - \
879 if ((result = LP(p2, prio) - LP(p1, prio)) == 0)
882 if ((result = (LP(p1, pid) == 0) - (LP(p2, pid) == 0)) == 0)
885 if ((result = LP(p2, tdprio) - LP(p1, tdprio)) == 0)
888 if ((result = VP(p2, rssize) - VP(p1, rssize)) == 0)
[all …]
/dragonfly/contrib/gmp/mpn/generic/
HDpopham.c41 mp_limb_t p0, p1, p2, p3, x, p01, p23; in FNAME() local
60 p2 = POPHAM (up[2], vp[2]); in FNAME()
61 p2 -= (p2 >> 1) & MP_LIMB_T_MAX/3; /* 2 0-2 */ in FNAME()
62 p2 = ((p2 >> 2) & MP_LIMB_T_MAX/5) + (p2 & MP_LIMB_T_MAX/5); /* 4 0-4 */ in FNAME()
68 … p23 = p2 + p3; /* 8 0-8 */ in FNAME()
/dragonfly/contrib/gcc-8.0/gcc/
HDipa-predicate.h152 inline bool operator==(const predicate &p2) const
159 gcc_checking_assert (!p2.m_clause[i]
160 || p2.m_clause[i] > p2.m_clause[i + 1]);
161 if (m_clause[i] != p2.m_clause[i])
164 return !p2.m_clause[i];
183 inline bool operator!=(const predicate &p2) const
185 return !(*this == p2);
HDtree-ssa-coalesce.c113 coalesce_pair_hasher::equal (const coalesce_pair *p1, const coalesce_pair *p2) in equal() argument
115 return (p1->first_element == p2->first_element in equal()
116 && p1->second_element == p2->second_element); in equal()
217 pop_cost_one_pair (coalesce_list *cl, int *p1, int *p2) in pop_cost_one_pair() argument
226 *p2 = ptr->second_element; in pop_cost_one_pair()
239 pop_best_coalesce (coalesce_list *cl, int *p1, int *p2) in pop_best_coalesce() argument
245 return pop_cost_one_pair (cl, p1, p2); in pop_best_coalesce()
248 return pop_cost_one_pair (cl, p1, p2); in pop_best_coalesce()
252 *p2 = node->second_element; in pop_best_coalesce()
306 find_coalesce_pair (coalesce_list *cl, int p1, int p2, bool create) in find_coalesce_pair() argument
[all …]
/dragonfly/crypto/libressl/crypto/ec/
HDec_pmeth.c287 pkey_ec_ctrl(EVP_PKEY_CTX * ctx, int type, int p1, void *p2) in pkey_ec_ctrl() argument
353 dctx->kdf_md = p2; in pkey_ec_ctrl()
357 *(const EVP_MD **)p2 = dctx->kdf_md; in pkey_ec_ctrl()
367 *(int *)p2 = dctx->kdf_outlen; in pkey_ec_ctrl()
372 dctx->kdf_ukm = p2; in pkey_ec_ctrl()
373 if (p2) in pkey_ec_ctrl()
380 *(unsigned char **)p2 = dctx->kdf_ukm; in pkey_ec_ctrl()
384 if (EVP_MD_type((const EVP_MD *) p2) != NID_sha1 && in pkey_ec_ctrl()
385 EVP_MD_type((const EVP_MD *) p2) != NID_ecdsa_with_SHA1 && in pkey_ec_ctrl()
386 EVP_MD_type((const EVP_MD *) p2) != NID_sha224 && in pkey_ec_ctrl()
[all …]
/dragonfly/lib/libc/db/btree/
HDbt_utils.c204 unsigned char *p1, *p2; in __bt_defcmp() local
213 for (p1 = a->data, p2 = b->data; len--; ++p1, ++p2) in __bt_defcmp()
214 if (*p1 != *p2) in __bt_defcmp()
215 return ((int)*p1 - (int)*p2); in __bt_defcmp()
232 unsigned char *p1, *p2; in __bt_defpfx() local
237 for (p1 = a->data, p2 = b->data; len--; ++p1, ++p2, ++cnt) in __bt_defpfx()
238 if (*p1 != *p2) in __bt_defpfx()
/dragonfly/contrib/cvs-1.12/src/
HDfileattr.c246 char *p2; in fileattr_modify() local
253 p2 = NULL; in fileattr_modify()
257 p2 = strchr (p, entsep); in fileattr_modify()
258 if (p2 == NULL) in fileattr_modify()
260 p2 = p + strlen (p); in fileattr_modify()
262 preend = p2; in fileattr_modify()
265 ++p2; in fileattr_modify()
275 post = p2; in fileattr_modify()
277 if (p2[0] == '\0') in fileattr_modify()
279 p = p2; in fileattr_modify()
[all …]
/dragonfly/usr.bin/netstat/
HDinet.c435 #define p2(f1, f2, m) if (tcpstat.f1 || tcpstat.f2 || sflag <= 1) \ in tcp_stats() macro
443 p2(tcps_sndpack,tcps_sndbyte, in tcp_stats()
445 p2(tcps_sndrexmitpack, tcps_sndrexmitbyte, in tcp_stats()
447 p2(tcps_sndsackrtopack, tcps_sndsackrtobyte, in tcp_stats()
449 p2(tcps_sndsackpack, tcps_sndsackbyte, in tcp_stats()
451 p2(tcps_sackrescue, tcps_sackrescue_try, in tcp_stats()
456 p2(tcps_sndrtobad, tcps_eifelresponse, in tcp_stats()
473 p2(tcps_rcvackpack, tcps_rcvackbyte, "\t\t%lu ack%s (for %lu byte%s)\n"); in tcp_stats()
476 p2(tcps_rcvpack, tcps_rcvbyte, in tcp_stats()
478 p2(tcps_rcvduppack, tcps_rcvdupbyte, in tcp_stats()
[all …]
/dragonfly/test/cocci/
HDkfree.cocci72 position free.p1!=loop.ok,p2!={print.p,sz.p};
98 E@p2 // bad use
103 p2 << r.p2;
107 cocci.print_secs("ref",p2)
111 p2 << r.p2;
115 coccilib.report.print_report(p2[0],msg)
/dragonfly/contrib/binutils-2.27/libiberty/
HDstrverscmp.c93 const unsigned char *p2 = (const unsigned char *) s2; in strverscmp() local
124 if (p1 == p2) in strverscmp()
128 c2 = *p2++; in strverscmp()
136 c2 = *p2++; in strverscmp()
149 if (!ISDIGIT (*p2++)) in strverscmp()
152 return ISDIGIT (*p2) ? -1 : diff; in strverscmp()
/dragonfly/contrib/gcc-4.7/libiberty/
HDstrverscmp.c93 const unsigned char *p2 = (const unsigned char *) s2; in strverscmp() local
124 if (p1 == p2) in strverscmp()
128 c2 = *p2++; in strverscmp()
136 c2 = *p2++; in strverscmp()
149 if (!ISDIGIT (*p2++)) in strverscmp()
152 return ISDIGIT (*p2) ? -1 : diff; in strverscmp()
/dragonfly/contrib/gcc-8.0/libiberty/
HDstrverscmp.c93 const unsigned char *p2 = (const unsigned char *) s2; in strverscmp() local
124 if (p1 == p2) in strverscmp()
128 c2 = *p2++; in strverscmp()
136 c2 = *p2++; in strverscmp()
149 if (!ISDIGIT (*p2++)) in strverscmp()
152 return ISDIGIT (*p2) ? -1 : diff; in strverscmp()

12345678910>>...15