Home
last modified time | relevance | path

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

12345678910>>...20

/freebsd/sys/kern/
H A Dkern_fork.c366 do_fork(struct thread *td, struct fork_req *fr, struct proc *p2, struct thread *td2, in do_fork() argument
378 bcopy(&p1->p_startcopy, &p2->p_startcopy, in do_fork()
380 pargs_hold(p2->p_args); in do_fork()
383 bzero(&p2->p_startzero, in do_fork()
387 prison_proc_hold(p2->p_ucred->cr_prison); in do_fork()
389 p2->p_state = PRS_NEW; /* protect against others */ in do_fork()
390 p2->p_pid = fork_findpid(fr->fr_flags); in do_fork()
391 AUDIT_ARG_PID(p2->p_pid); in do_fork()
392 TSFORK(p2->p_pid, p1->p_pid); in do_fork()
395 LIST_INSERT_HEAD(&allproc, p2, p_lis in do_fork()
804 struct proc *p, *p2; ast_vfork() local
[all...]
/freebsd/contrib/googletest/googlemock/include/gmock/
H A Dgmock-more-actions.h207 #define GMOCK_INTERNAL_DECL_TYPE_AND_3_VALUE_PARAMS(p0, p1, p2) \ argument
208 , typename p0##_type, typename p1##_type, typename p2##_type
209 #define GMOCK_INTERNAL_DECL_TYPE_AND_4_VALUE_PARAMS(p0, p1, p2, p3) \ argument
210 , typename p0##_type, typename p1##_type, typename p2##_type, \
212 #define GMOCK_INTERNAL_DECL_TYPE_AND_5_VALUE_PARAMS(p0, p1, p2, p3, p4) \ argument
213 , typename p0##_type, typename p1##_type, typename p2##_type, \
215 #define GMOCK_INTERNAL_DECL_TYPE_AND_6_VALUE_PARAMS(p0, p1, p2, p3, p4, p5) \ argument
216 , typename p0##_type, typename p1##_type, typename p2##_type, \
218 #define GMOCK_INTERNAL_DECL_TYPE_AND_7_VALUE_PARAMS(p0, p1, p2, p3, p4, p5, \ argument
220 , typename p0##_type, typename p1##_type, typename p2##_type, \
[all …]
/freebsd/contrib/tcsh/
H A Dsh.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 …]
H A Dsh.exp.c196 int p2; in exp0() local
200 p2 = compat_expr ? in exp0()
204 p1 = (p1 || p2); in exp0()
219 tcsh_number_t p2; in exp1() local
222 p2 = compat_expr ? in exp1()
226 etraci("exp1 p2", p2, vp); in exp1()
228 p1 = (p1 && p2); in exp1()
243 tcsh_number_t p2; in exp2x() local
246 p2 = compat_expr ? in exp2x()
249 etraci("exp2x p2", p2, vp); in exp2x()
[all …]
/freebsd/sys/contrib/libsodium/test/default/
H A Dcore_ed25519.c41 unsigned char *p, *p2, *p3; in main() local
57 p2 = (unsigned char *) sodium_malloc(crypto_core_ed25519_BYTES); in main()
60 crypto_core_ed25519_from_uniform(p2, h); in main()
65 crypto_core_ed25519_add(p, p, p2); in main()
74 crypto_core_ed25519_sub(p, p, p2); in main()
82 memcpy(p2, p, crypto_core_ed25519_BYTES); in main()
86 crypto_core_ed25519_add(p2, p2, p2); in main()
89 crypto_core_ed25519_add(p2, p2, p); in main()
94 if (memcmp(p2, p3, crypto_core_ed25519_BYTES) != 0) { in main()
116 memcpy(p2, p, crypto_core_ed25519_BYTES); in main()
[all …]
/freebsd/crypto/openssh/regress/unittests/sshbuf/
H A Dtest_sshbuf_fixed.c31 struct sshbuf *p1, *p2, *p3; in sshbuf_fixed() local
74 p2 = sshbuf_fromb(p1); in sshbuf_fixed()
75 ASSERT_PTR_NE(p2, NULL); in sshbuf_fixed()
78 ASSERT_PTR_EQ(sshbuf_parent(p2), p1); in sshbuf_fixed()
79 ASSERT_PTR_EQ(sshbuf_ptr(p2), sshbuf_ptr(p1)); in sshbuf_fixed()
81 ASSERT_PTR_NE(sshbuf_ptr(p2), NULL); in sshbuf_fixed()
83 ASSERT_PTR_EQ(sshbuf_mutable_ptr(p2), NULL); in sshbuf_fixed()
84 ASSERT_SIZE_T_EQ(sshbuf_len(p1), sshbuf_len(p2)); in sshbuf_fixed()
85 ASSERT_INT_EQ(sshbuf_get_u8(p2, &c), 0); in sshbuf_fixed()
86 ASSERT_PTR_EQ(sshbuf_ptr(p2), sshbuf_ptr(p1) + 1); in sshbuf_fixed()
[all …]
/freebsd/lib/libufs/
H A Dblock.c54 void *p2; in bread() local
59 BUF_MALLOC(&p2, data, size); in bread()
60 if (p2 == NULL) { in bread()
64 cnt = pread(disk->d_fd, p2, size, (off_t)(blockno * disk->d_bsize)); in bread()
77 if (p2 != data) { in bread()
78 memcpy(data, p2, size); in bread()
79 free(p2); in bread()
83 if (p2 != data) { in bread()
84 free(p2); in bread()
94 void *p2; in bwrite() local
[all …]
/freebsd/usr.bin/w/
H A Dproc_compare.c65 proc_compare(struct kinfo_proc *p1, struct kinfo_proc *p2) in proc_compare() argument
73 switch (TESTAB(ISRUN(p1), ISRUN(p2))) { in proc_compare()
82 if (p2->ki_estcpu > p1->ki_estcpu) in proc_compare()
84 if (p1->ki_estcpu > p2->ki_estcpu) in proc_compare()
86 return (p2->ki_pid > p1->ki_pid); /* tie - return highest pid */ in proc_compare()
91 switch (TESTAB(p1->ki_stat == SZOMB, p2->ki_stat == SZOMB)) { in proc_compare()
97 return (p2->ki_pid > p1->ki_pid); /* tie - return highest pid */ in proc_compare()
102 if (p2->ki_slptime > p1->ki_slptime) in proc_compare()
104 if (p1->ki_slptime > p2->ki_slptime) in proc_compare()
109 if (p1->ki_tdflags & TDF_SINTR && (p2->ki_tdflags & TDF_SINTR) == 0) in proc_compare()
[all …]
/freebsd/sys/sys/
H A Dktr.h79 #define CTR6(m, format, p1, p2, p3, p4, p5, p6) do { \ argument
82 (u_long)(p1), (u_long)(p2), (u_long)(p3), \
87 #define CTR2(m, format, p1, p2) CTR6(m, format, p1, p2, 0, 0, 0, 0) argument
88 #define CTR3(m, format, p1, p2, p3) CTR6(m, format, p1, p2, p3, 0, 0, 0) argument
89 #define CTR4(m, format, p1, p2, p3, p4) CTR6(m, format, p1, p2, p3, p4, 0, 0) argument
90 #define CTR5(m, format, p1, p2, p3, p4, p5) CTR6(m, format, p1, p2, p3, p4, p5, 0) argument
94 #define CTR2(m, d, p1, p2) (void)0 argument
95 #define CTR3(m, d, p1, p2, p3) (void)0 argument
96 #define CTR4(m, d, p1, p2, p3, p4) (void)0 argument
97 #define CTR5(m, d, p1, p2, p3, p4, p5) (void)0 argument
[all …]
/freebsd/crypto/openssl/crypto/evp/
H A 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 …]
/freebsd/usr.bin/hexdump/
H A Dparse.c205 unsigned char *p1, *p2, *fmtp; in rewrite() local
257 p2 = *p1 ? p1 + 1 : p1; /* Set end pointer -- make sure in rewrite()
341 ++p2; in rewrite()
349 ++p2; in rewrite()
395 savech = *p2; in rewrite()
399 *p2 = savech; in rewrite()
401 fmtp = p2; in rewrite()
432 for (p1 = pr->fmt, p2 = NULL; *p1; ++p1) in rewrite()
433 p2 = isspace(*p1) ? p1 : NULL; in rewrite()
434 if (p2) in rewrite()
[all …]
/freebsd/crypto/heimdal/lib/krb5/
H A Dtest_princ.c52 krb5_principal p, p2; in test_princ() local
83 ret = krb5_parse_name(context, princ_reformed, &p2); in test_princ()
88 if (!krb5_principal_compare(context, p, p2)) { in test_princ()
92 krb5_free_principal(context, p2); in test_princ()
108 ret = krb5_parse_name(context, princ_short, &p2); in test_princ()
112 if (!krb5_principal_compare(context, p, p2)) in test_princ()
114 krb5_free_principal(context, p2); in test_princ()
128 ret = krb5_parse_name(context, princ_short, &p2); in test_princ()
132 if (krb5_principal_compare(context, p, p2)) in test_princ()
135 if (!krb5_principal_compare_any_realm(context, p, p2)) in test_princ()
[all …]
/freebsd/sys/dev/vmm/
H A Dvmm_ktr.h45 #define VCPU_CTR2(vm, vcpuid, format, p1, p2) \ argument
46 CTR4(KTR_VMM, "vm %s[%d]: " format, vm_name((vm)), (vcpuid), (p1), (p2))
48 #define VCPU_CTR3(vm, vcpuid, format, p1, p2, p3) \ argument
49 CTR5(KTR_VMM, "vm %s[%d]: " format, vm_name((vm)), (vcpuid), (p1), (p2), (p3))
51 #define VCPU_CTR4(vm, vcpuid, format, p1, p2, p3, p4) \ argument
53 (p1), (p2), (p3), (p4))
61 #define VM_CTR2(vm, format, p1, p2) \ argument
62 CTR3(KTR_VMM, "vm %s: " format, vm_name((vm)), (p1), (p2))
64 #define VM_CTR3(vm, format, p1, p2, p3) \ argument
65 CTR4(KTR_VMM, "vm %s: " format, vm_name((vm)), (p1), (p2), (p3))
[all …]
/freebsd/usr.bin/cmp/
H A Dlink.c45 char buf2[PATH_MAX], *p2; in c_link() local
75 for (p1 = buf1 + skip1, p2 = buf2 + skip2; in c_link()
76 *p1 && *p2 && (limit == 0 || byte <= limit); p1++, p2++) { in c_link()
77 if ((ch = *p1) != *p2) { in c_link()
81 (long long)byte - 1, ch, *p2); in c_link()
86 (long long)byte, ch, ch, *p2, *p2); in c_link()
89 (long long)byte, ch, *p2); in c_link()
91 diffmsg(file1, file2, byte, 1, ch, *p2); in c_link()
98 if (*p1 || *p2) { in c_link()
/freebsd/contrib/lua/src/
H A Dltm.c104 const TValue *p2, const TValue *p3) { in luaT_callTM() argument
108 setobj2s(L, func + 2, p2); /* 2nd argument */ in luaT_callTM()
120 const TValue *p2, StkId res) { in luaT_callTMres() argument
125 setobj2s(L, func + 2, p2); /* 2nd argument */ in luaT_callTMres()
137 static int callbinTM (lua_State *L, const TValue *p1, const TValue *p2, in callbinTM() argument
141 tm = luaT_gettmbyobj(L, p2, event); /* try second operand */ in callbinTM()
143 luaT_callTMres(L, tm, p1, p2, res); in callbinTM()
148 void luaT_trybinTM (lua_State *L, const TValue *p1, const TValue *p2, in luaT_trybinTM() argument
150 if (l_unlikely(!callbinTM(L, p1, p2, res, event))) { in luaT_trybinTM()
154 if (ttisnumber(p1) && ttisnumber(p2)) in luaT_trybinTM()
[all …]
/freebsd/sys/compat/linux/
H A Dlinux_util.h103 #define LINUX_CTR6(f, m, p1, p2, p3, p4, p5, p6) do { \
105 p1, p2, p3, p4, p5, p6); \
111 #define LINUX_CTR2(f, m, p1, p2) LINUX_CTR6(f, m, p1, p2, 0, 0, 0, 0) argument
112 #define LINUX_CTR3(f, m, p1, p2, p3) LINUX_CTR6(f, m, p1, p2, p3, 0, 0, 0) argument
113 #define LINUX_CTR4(f, m, p1, p2, p3, p4) LINUX_CTR6(f, m, p1, p2, p3, p4, 0, 0) argument
114 #define LINUX_CTR5(f, m, p1, p2, p3, p4, p5) LINUX_CTR6(f, m, p1, p2, p
102 LINUX_CTR6(f,m,p1,p2,p3,p4,p5,p6) global() argument
110 LINUX_CTR2(f,m,p1,p2) global() argument
118 LINUX_CTR2(f,m,p1,p2) global() argument
119 LINUX_CTR3(f,m,p1,p2,p3) global() argument
120 LINUX_CTR4(f,m,p1,p2,p3,p4) global() argument
121 LINUX_CTR5(f,m,p1,p2,p3,p4,p5) global() argument
122 LINUX_CTR6(f,m,p1,p2,p3,p4,p5,p6) global() argument
[all...]
/freebsd/usr.bin/top/
H A Dmachine.c1240 compare_pid(const void *p1, const void *p2) in compare_pid() argument
1243 const struct kinfo_proc * const *pp2 = p2; in compare_pid()
1251 compare_tid(const void *p1, const void *p2) in compare_tid() argument
1254 const struct kinfo_proc * const *pp2 = p2; in compare_tid()
1348 const struct kinfo_proc *p2 = *(const struct kinfo_proc * const *)arg2; in compare_cpu() local
1350 ORDERKEY_PCTCPU(p1, p2); in compare_cpu()
1351 ORDERKEY_CPTICKS(p1, p2); in compare_cpu()
1352 ORDERKEY_STATE(p1, p2); in compare_cpu()
1353 ORDERKEY_PRIO(p1, p2); in compare_cpu()
1354 ORDERKEY_RSSIZE(p1, p2); in compare_cpu()
[all …]
/freebsd/crypto/openssl/crypto/dsa/
H A 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 …]
/freebsd/lib/libc/stdlib/
H A Dmerge.c116 u_char *list2, *list1, *p2, *p, *last, **p1; in mergesort_b() local
140 for (tp2 = p2 = list2; p2 != last; p1 = EVAL(l2)) { in mergesort_b()
141 p2 = *EVAL(p2); in mergesort_b()
143 f2 = l1 = list1 + (p2 - list2); in mergesort_b()
144 if (p2 != last) in mergesort_b()
145 p2 = *EVAL(p2); in mergesort_b()
146 l2 = list1 + (p2 - list2); in mergesort_b()
269 u_char *f1, *f2, *s, *l2, *last, *p2; in setup() local
287 p2 = list2; in setup()
300 p2 = *EVAL(p2) = f1 + size2 - list1 + list2; in setup()
[all …]
/freebsd/usr.sbin/crunch/crunchgen/
H A Dcrunchgen.c409 prog_t *p1, *p2; in add_prog() local
413 for (p1 = NULL, p2 = progs; p2 != NULL; p1 = p2, p2 = p2->next) in add_prog()
414 if (!strcmp(p2->name, progname)) in add_prog()
417 p2 = malloc(sizeof(prog_t)); in add_prog()
418 if(p2) { in add_prog()
419 memset(p2, in add_prog()
805 prog_t *p1, *p2; remove_error_progs() local
1180 strlst_t *p1, *p2; add_string() local
[all...]
/freebsd/contrib/arm-optimized-routines/string/aarch64/
H A Dstrcmp-sve.S34 cmpeq p2.b, p1/z, z0.b, z1.b /* compare strings */
36 nands p2.b, p1/z, p2.b, p3.b /* ~(eq & ~zero) -> ne | zero */
40 1: brkb p2.b, p1/z, p2.b /* find first such */
41 lasta w0, p2, z0.b /* extract each char */
42 lasta w1, p2, z1.b
50 cmpeq p2.b, p0/z, z0.b, z1.b /* compare strings, as above */
52 nands p2.b, p0/z, p2.b, p3.b
H A Dstrncmp-sve.S39 cmpne p2.b, p0/z, z0.b, 0 /* search for ~zero */
40 nands p2.b, p0/z, p1.b, p2.b /* ~(eq & ~zero) -> ne | zero */
44 1: brkb p2.b, p0/z, p2.b /* find first such */
45 lasta w0, p2, z0.b /* extract each char */
46 lasta w1, p2, z1.b
52 2: cmpeq p2.b, p1/z, z0.b, z1.b /* compare strings, as above */
54 nands p2.b, p1/z, p2.b, p3.b
/freebsd/crypto/heimdal/lib/roken/
H A Dvsyslog.c66 char *p2; in vsyslog() local
79 for (p = fmt, p2 = fmt2; *p != '\0'; ++p) { in vsyslog()
86 pos = p2 - fmt2; in vsyslog()
95 p2 = fmt2 + pos; in vsyslog()
96 memmove (p2, e, e_len); in vsyslog()
97 p2 += e_len; in vsyslog()
100 *p2++ = *p; in vsyslog()
102 *p2 = '\0'; in vsyslog()
/freebsd/crypto/heimdal/lib/gssapi/ntlm/
H A Dimport_name.c44 char *name, *p, *p2; in _gss_ntlm_import_name() local
78 p2 = strchr(p, '.'); in _gss_ntlm_import_name()
79 if (p2 && p2[1] != '\0') { in _gss_ntlm_import_name()
81 p = p2 + 1; in _gss_ntlm_import_name()
82 p2 = strchr(p, '.'); in _gss_ntlm_import_name()
84 if (p2) in _gss_ntlm_import_name()
85 *p2 = '\0'; in _gss_ntlm_import_name()
/freebsd/crypto/openssl/crypto/ec/
H A 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 …]

12345678910>>...20