Home
last modified time | relevance | path

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

12345678910>>...23

/netbsd/src/sys/kern/
Dkern_fork.c247 struct proc *p1, *p2, *parent; in fork1() local
309 p2 = proc_alloc(); in fork1()
310 if (p2 == NULL) { in fork1()
331 memset(&p2->p_startzero, 0, in fork1()
332 (unsigned) ((char *)&p2->p_endzero - (char *)&p2->p_startzero)); in fork1()
333 memcpy(&p2->p_startcopy, &p1->p_startcopy, in fork1()
334 (unsigned) ((char *)&p2->p_endcopy - (char *)&p2->p_startcopy)); in fork1()
336 TAILQ_INIT(&p2->p_sigpend.sp_info); in fork1()
338 LIST_INIT(&p2->p_lwps); in fork1()
339 LIST_INIT(&p2->p_sigwaiters); in fork1()
[all …]
/netbsd/src/bin/csh/
Dparse.c92 asyntax(struct wordent *p1, struct wordent *p2) in asyntax() argument
94 while (p1 != p2) in asyntax()
98 asyn0(p1, p2); in asyntax()
104 asyn0(struct wordent *p1, struct wordent *p2) in asyn0() argument
110 for (p = p1; p != p2; p = p->next) in asyn0()
121 if (p->next != p2 && eq(p->next->word, STRand)) in asyn0()
131 asyntax(p->next, p2); in asyn0()
135 asyn3(p1, p2); in asyn0()
139 asyn3(struct wordent *p1, struct wordent *p2) in asyn3() argument
145 if (p1 == p2) in asyn3()
[all …]
Dexp.c107 int p2; in exp0() local
110 p2 = exp0(vp, (ignore & IGNORE) || p1); in exp0()
112 etraci("exp0 p2", p2, vp); in exp0()
114 return (p1 || p2); in exp0()
129 int p2; in exp1() local
132 p2 = exp1(vp, (ignore & IGNORE) || !p1); in exp1()
134 etraci("exp1 p2", p2, vp); in exp1()
136 return (p1 && p2); in exp1()
151 int p2; in csh_exp2() local
154 p2 = csh_exp2(vp, ignore); in csh_exp2()
[all …]
Ddir.c618 Char *p1, *p2; /* general purpose */ in dcanon() local
647 for (p1 = sp, p2 = p; (*p1++ = *p2++) != '\0';) in dcanon()
665 for (p1 = sp, p2 = p + 1; (*p1++ = *p2++) != '\0';) in dcanon()
714 for (p2 = cp; (*p1++ = *p2++) != '\0';) in dcanon()
716 for (p1--, p2 = slink; (*p1++ = *p2++) != '\0';) in dcanon()
718 for (p1--, p2 = p; (*p1++ = *p2++) != '\0';) in dcanon()
734 for (p2 = slink; (*p1++ = *p2++) != '\0';) in dcanon()
736 for (p1--, p2 = p; (*p1++ = *p2++) != '\0';) in dcanon()
752 for (p1 = sp + 1, p2 = p + 1; (*p1++ = *p2++) != '\0';) in dcanon()
803 for (p2 = cp; (*p1++ = *p2++) != '\0';) in dcanon()
[all …]
/netbsd/src/external/bsd/tmux/dist/
Dosdep-openbsd.c47 cmp_procs(struct kinfo_proc *p1, struct kinfo_proc *p2) in cmp_procs() argument
49 if (is_runnable(p1) && !is_runnable(p2)) in cmp_procs()
51 if (!is_runnable(p1) && is_runnable(p2)) in cmp_procs()
52 return (p2); in cmp_procs()
54 if (is_stopped(p1) && !is_stopped(p2)) in cmp_procs()
56 if (!is_stopped(p1) && is_stopped(p2)) in cmp_procs()
57 return (p2); in cmp_procs()
59 if (p1->p_estcpu > p2->p_estcpu) in cmp_procs()
61 if (p1->p_estcpu < p2->p_estcpu) in cmp_procs()
62 return (p2); in cmp_procs()
[all …]
Dosdep-freebsd.c50 cmp_procs(struct kinfo_proc *p1, struct kinfo_proc *p2) in cmp_procs() argument
52 if (is_runnable(p1) && !is_runnable(p2)) in cmp_procs()
54 if (!is_runnable(p1) && is_runnable(p2)) in cmp_procs()
55 return (p2); in cmp_procs()
57 if (is_stopped(p1) && !is_stopped(p2)) in cmp_procs()
59 if (!is_stopped(p1) && is_stopped(p2)) in cmp_procs()
60 return (p2); in cmp_procs()
62 if (p1->ki_estcpu > p2->ki_estcpu) in cmp_procs()
64 if (p1->ki_estcpu < p2->ki_estcpu) in cmp_procs()
65 return (p2); in cmp_procs()
[all …]
Dosdep-netbsd.c40 cmp_procs(struct kinfo_proc2 *p1, struct kinfo_proc2 *p2) in cmp_procs() argument
42 if (is_runnable(p1) && !is_runnable(p2)) in cmp_procs()
44 if (!is_runnable(p1) && is_runnable(p2)) in cmp_procs()
45 return (p2); in cmp_procs()
47 if (is_stopped(p1) && !is_stopped(p2)) in cmp_procs()
49 if (!is_stopped(p1) && is_stopped(p2)) in cmp_procs()
50 return (p2); in cmp_procs()
52 if (p1->p_estcpu > p2->p_estcpu) in cmp_procs()
54 if (p1->p_estcpu < p2->p_estcpu) in cmp_procs()
55 return (p2); in cmp_procs()
[all …]
Dosdep-dragonfly.c46 cmp_procs(struct kinfo_proc *p1, struct kinfo_proc *p2) in cmp_procs() argument
48 if (is_runnable(p1) && !is_runnable(p2)) in cmp_procs()
50 if (!is_runnable(p1) && is_runnable(p2)) in cmp_procs()
51 return (p2); in cmp_procs()
53 if (is_stopped(p1) && !is_stopped(p2)) in cmp_procs()
55 if (!is_stopped(p1) && is_stopped(p2)) in cmp_procs()
56 return (p2); in cmp_procs()
58 if (strcmp(p1->kp_comm, p2->kp_comm) < 0) in cmp_procs()
60 if (strcmp(p1->kp_comm, p2->kp_comm) > 0) in cmp_procs()
61 return (p2); in cmp_procs()
[all …]
/netbsd/src/external/bsd/libbind/dist/isc/
Dtree.c189 tree *p1, *p2, *sub; in sprout() local
247 p2 = p1->right; in sprout()
248 p1->right = p2->left; in sprout()
249 p2->left = p1; in sprout()
251 (*ppr)->left = p2->right; in sprout()
252 p2->right = *ppr; in sprout()
254 if (p2->bal == -1) in sprout()
259 if (p2->bal == 1) in sprout()
263 *ppr = p2; in sprout()
303 p2 = p1->left; in sprout()
[all …]
/netbsd/src/external/gpl3/gdb/dist/gdb/testsuite/gdb.base/
Dsizeof.c6 padding p2; member
12 padding p2; member
18 padding p2; member
24 padding p2; member
30 padding p2; member
36 padding p2; member
42 padding p2; member
48 padding p2; member
65 fill (&padding_char.p2, sizeof (padding)); in fill_structs()
69 fill (&padding_short.p2, sizeof (padding)); in fill_structs()
[all …]
/netbsd/src/crypto/external/bsd/openssl/dist/crypto/evp/
Dctrl_params_translate.c191 void *p2; member
458 if (ctx->p2 != NULL) { in default_fixup_args()
460 ctx->buflen = BN_num_bytes(ctx->p2); in default_fixup_args()
466 if (BN_bn2nativepad(ctx->p2, in default_fixup_args()
496 ctx->p2, (size_t)ctx->p1); in default_fixup_args()
501 ctx->p2, (size_t)ctx->p1); in default_fixup_args()
506 ctx->p2, (size_t)ctx->p1); in default_fixup_args()
511 ctx->p2, (size_t)ctx->p1); in default_fixup_args()
544 const char *orig_value = ctx->p2; in default_fixup_args()
577 ctx->p2, strlen(ctx->p2), in default_fixup_args()
[all …]
/netbsd/src/usr.bin/hexdump/
Dparse.c224 char *p1, *p2; in rewrite() local
270 p2 = *p1 ? p1 + 1 : p1; /* Set end pointer. */ in rewrite()
362 ++p2; in rewrite()
370 ++p2; in rewrite()
421 savech = *p2; in rewrite()
426 *p2 = savech; in rewrite()
428 fmtp = p2; in rewrite()
462 for (p1 = pr->fmt, p2 = NULL; *p1; ++p1) in rewrite()
463 p2 = isspace((unsigned char)*p1) ? p1 : NULL; in rewrite()
464 if (p2) in rewrite()
[all …]
/netbsd/src/crypto/external/bsd/heimdal/dist/lib/krb5/
Dtest_princ.c54 krb5_principal p, p2; in test_princ() local
85 ret = krb5_parse_name(context, princ_reformed, &p2); in test_princ()
90 if (!krb5_principal_compare(context, p, p2)) { in test_princ()
94 krb5_free_principal(context, p2); in test_princ()
110 ret = krb5_parse_name(context, princ_short, &p2); in test_princ()
114 if (!krb5_principal_compare(context, p, p2)) in test_princ()
116 krb5_free_principal(context, p2); in test_princ()
130 ret = krb5_parse_name(context, princ_short, &p2); in test_princ()
134 if (krb5_principal_compare(context, p, p2)) in test_princ()
137 if (!krb5_principal_compare_any_realm(context, p, p2)) in test_princ()
[all …]
/netbsd/src/external/mit/lua/dist/src/
Dltm.c113 const TValue *p2, const TValue *p3) { in luaT_callTM() argument
117 setobj2s(L, func + 2, p2); /* 2nd argument */ in luaT_callTM()
129 const TValue *p2, StkId res) { in luaT_callTMres() argument
134 setobj2s(L, func + 2, p2); /* 2nd argument */ in luaT_callTMres()
146 static int callbinTM (lua_State *L, const TValue *p1, const TValue *p2, in callbinTM() argument
150 tm = luaT_gettmbyobj(L, p2, event); /* try second operand */ in callbinTM()
152 luaT_callTMres(L, tm, p1, p2, res); in callbinTM()
157 void luaT_trybinTM (lua_State *L, const TValue *p1, const TValue *p2, in luaT_trybinTM() argument
159 if (l_unlikely(!callbinTM(L, p1, p2, res, event))) { in luaT_trybinTM()
163 if (ttisnumber(p1) && ttisnumber(p2)) in luaT_trybinTM()
[all …]
/netbsd/src/lib/libc/stdlib/
Dmerge.c118 u_char *list2, *list1, *p2, *p, *last, **p1; in mergesort_r() local
149 for (tp2 = p2 = list2; p2 != last; p1 = EVAL(l2)) { in mergesort_r()
150 p2 = *EVAL(p2); in mergesort_r()
152 f2 = l1 = list1 + (p2 - list2); in mergesort_r()
153 if (p2 != last) in mergesort_r()
154 p2 = *EVAL(p2); in mergesort_r()
155 l2 = list1 + (p2 - list2); in mergesort_r()
291 u_char *f1, *f2, *s, *l2, *last, *p2; in setup() local
314 p2 = list2; in setup()
327 p2 = *EVAL(p2) = f1 + size2 - list1 + list2; in setup()
[all …]
/netbsd/src/crypto/external/bsd/openssl/dist/crypto/dsa/
Ddsa_pmeth.c123 static int pkey_dsa_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) in pkey_dsa_ctrl() argument
141 if (EVP_MD_get_type((const EVP_MD *)p2) != NID_sha1 && in pkey_dsa_ctrl()
142 EVP_MD_get_type((const EVP_MD *)p2) != NID_sha224 && in pkey_dsa_ctrl()
143 EVP_MD_get_type((const EVP_MD *)p2) != NID_sha256) { in pkey_dsa_ctrl()
147 dctx->pmd = p2; in pkey_dsa_ctrl()
151 if (EVP_MD_get_type((const EVP_MD *)p2) != NID_sha1 && in pkey_dsa_ctrl()
152 EVP_MD_get_type((const EVP_MD *)p2) != NID_dsa && in pkey_dsa_ctrl()
153 EVP_MD_get_type((const EVP_MD *)p2) != NID_dsaWithSHA && in pkey_dsa_ctrl()
154 EVP_MD_get_type((const EVP_MD *)p2) != NID_sha224 && in pkey_dsa_ctrl()
155 EVP_MD_get_type((const EVP_MD *)p2) != NID_sha256 && in pkey_dsa_ctrl()
[all …]
/netbsd/src/external/bsd/am-utils/dist/libamu/
Dstrstr.c82 char *p2; in strstr() local
85 for (p2 = s2, i = 0; *s; p2 = s2, i++, s++) { in strstr()
86 for (p1 = s; *p1 && *p2 && *p1 == *p2; p1++, p2++) in strstr()
88 if (!*p2) in strstr()
91 if (!*p2) in strstr()
/netbsd/src/usr.bin/crunch/crunchgen/
Dcrunchgen.c394 prog_t *p1, *p2; in add_prog() local
398 for (p1 = NULL, p2 = progs; p2 != NULL; p1 = p2, p2 = p2->next) in add_prog()
399 if (!strcmp(p2->name, progname)) in add_prog()
402 p2 = emalloc(sizeof(*p2)); in add_prog()
403 p2->name = estrdup(progname); in add_prog()
405 p2->next = NULL; in add_prog()
407 progs = p2; in add_prog()
409 p1->next = p2; in add_prog()
411 p2->ident = p2->srcdir = p2->objdir = NULL; in add_prog()
412 p2->objs = p2->objpaths = p2->links = p2->keepsymbols = NULL; in add_prog()
[all …]
/netbsd/src/sys/arch/atari/stand/tostools/aptck/
Ddisklbl.c206 *p2 = x2; in part_cmp() local
208 if (p1->start < p2->start) in part_cmp()
210 if (p1->start > p2->start) in part_cmp()
212 if (p1->end < p2->end) in part_cmp()
214 if (p1->end > p2->end) in part_cmp()
216 if (p1->rsec < p2->rsec) in part_cmp()
218 if (p1->rsec > p2->rsec) in part_cmp()
220 if (p1->rent < p2->rent) in part_cmp()
222 if (p1->rent > p2->rent) in part_cmp()
265 part_t *p2 = &dd->parts[j]; in ahdi_display() local
[all …]
/netbsd/src/external/bsd/top/dist/machine/
Dm_svr5.c607 #define ORDERKEY_PCTCPU if (dresult = percent_cpu (p2) - percent_cpu (p1),\
611 #define ORDERKEY_CPTICKS if ((result = p2->pr_time.tv_sec - p1->pr_time.tv_sec) == 0)
612 #define ORDERKEY_STATE if ((result = (long) (sorted_state[p2->pr_state] - \
615 #define ORDERKEY_PRIO if ((result = p2->pr_pri - p1->pr_pri) == 0)
616 #define ORDERKEY_RSSIZE if ((result = p2->pr_rssize - p1->pr_rssize) == 0)
617 #define ORDERKEY_MEM if ((result = (p2->pr_size - p1->pr_size)) == 0)
619 #define ORDERKEY_PID if ((result = (p2->pr_pid - p1->pr_pid)) == 0)
620 #define ORDERKEY_UID if ((result = (p2->pr_uid - p1->pr_uid)) == 0)
621 #define ORDERKEY_RPID if ((result = (p1->pr_pid - p2->pr_pid)) == 0)
622 #define ORDERKEY_RUID if ((result = (p1->pr_uid - p2->pr_uid)) == 0)
[all …]
/netbsd/src/usr.sbin/tpctl/
Ddata.c92 char buf[MAXDATALEN + 2], *p, *p2; in read_data() local
132 p2 = p; in read_data()
133 while (*p2 != ',' && *p2 != '\0') in read_data()
134 p2++; in read_data()
135 if (*p2 != ',') { in read_data()
141 *p2 = '\0'; in read_data()
149 p = p2 + 1; in read_data()
155 t = strtol(p, &p2, 0); in read_data()
156 if (p == p2) { in read_data()
160 p = p2; in read_data()
[all …]
/netbsd/src/external/bsd/pcc/dist/pcc/cc/ccom/
Dgcc_compat.c821 gcc_eval_ticast(int op, NODE *p1, NODE *p2) in gcc_eval_ticast() argument
826 if ((a1 = isti(p1)) == NULL && (a2 = isti(p2)) == NULL) in gcc_eval_ticast()
836 p2 = doacall(floatuntixfsp, in gcc_eval_ticast()
837 nametree(floatuntixfsp), p2); in gcc_eval_ticast()
842 p2 = cast(structref(p2, DOT, loti), p1->n_type, 0); in gcc_eval_ticast()
850 return p2; in gcc_eval_ticast()
855 if (p2->n_type == STRTY && in gcc_eval_ticast()
856 (a2 = attr_find(p2->n_ap, GCC_ATYP_MODE)) && in gcc_eval_ticast()
862 p2->n_ap = attr_add(p2->n_ap, a2); in gcc_eval_ticast()
864 p2 = ticast(p2, t); in gcc_eval_ticast()
[all …]
/netbsd/src/usr.bin/cmp/
Dregular.c58 u_char ch, *p1, *p2; in c_regular() local
84 p2 = mmap(NULL, blk_sz, PROT_READ, MAP_FILE|MAP_SHARED, in c_regular()
86 if (p2 == MAP_FAILED) { in c_regular()
92 if ((lflag || sflag) && (memcmp(p1, p2, blk_sz) == 0)) { in c_regular()
101 p2 += blk_sz; in c_regular()
103 for (; blk_cnt--; ++p1, ++p2, ++byte) { in c_regular()
104 if ((ch = *p1) != *p2) { in c_regular()
111 (long long)byte, ch, *p2); in c_regular()
118 munmap(p2 - blk_sz, blk_sz); in c_regular()
/netbsd/src/crypto/external/bsd/openssl/dist/crypto/ec/
Dec_pmeth.c251 static int pkey_ec_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) in pkey_ec_ctrl() argument
327 dctx->kdf_md = p2; in pkey_ec_ctrl()
331 *(const EVP_MD **)p2 = dctx->kdf_md; in pkey_ec_ctrl()
341 *(int *)p2 = dctx->kdf_outlen; in pkey_ec_ctrl()
346 dctx->kdf_ukm = p2; in pkey_ec_ctrl()
347 if (p2) in pkey_ec_ctrl()
354 *(unsigned char **)p2 = dctx->kdf_ukm; in pkey_ec_ctrl()
358 if (EVP_MD_get_type((const EVP_MD *)p2) != NID_sha1 && in pkey_ec_ctrl()
359 EVP_MD_get_type((const EVP_MD *)p2) != NID_ecdsa_with_SHA1 && in pkey_ec_ctrl()
360 EVP_MD_get_type((const EVP_MD *)p2) != NID_sha224 && in pkey_ec_ctrl()
[all …]
/netbsd/src/common/lib/libutil/
Dproc_compare.c89 proc_compare(const PROC *p1, const LWP *l1, const PROC *p2, const LWP *l2) in proc_compare() argument
94 switch (TESTAB(P_ZOMBIE(p1), P_ZOMBIE(p2))) { in proc_compare()
105 switch (TESTAB(ISRUN(p1), ISRUN(p2))) { in proc_compare()
135 if (p1->P_RTIME_SEC < p2->P_RTIME_SEC) in proc_compare()
137 if (p2->P_RTIME_SEC < p1->P_RTIME_SEC) in proc_compare()
139 if (p1->P_RTIME_USEC < p2->P_RTIME_USEC) in proc_compare()
141 if (p2->P_RTIME_USEC < p1->P_RTIME_USEC) in proc_compare()
144 return p2->p_pid > p1->p_pid; /* Nonsense */ in proc_compare()

12345678910>>...23