Searched refs:p1 (Results 1 - 25 of 436) sorted by relevance

1234567891011>>

/freebsd-10-stable/crypto/openssh/regress/unittests/sshbuf/
H A Dtest_sshbuf_misc.c28 struct sshbuf *p1; local
36 p1 = sshbuf_new();
37 ASSERT_PTR_NE(p1, NULL);
38 ASSERT_INT_EQ(sshbuf_put_u32(p1, 0x12345678), 0);
39 sshbuf_dump(p1, out);
49 sshbuf_free(p1);
53 p1 = sshbuf_new();
54 ASSERT_PTR_NE(p1, NULL);
55 ASSERT_INT_EQ(sshbuf_put_u32(p1, 0x12345678), 0);
56 p = sshbuf_dtob16(p1);
[all...]
H A Dtest_sshbuf_getput_basic.c28 struct sshbuf *p1, *p2; local
78 p1 = sshbuf_new();
79 ASSERT_PTR_NE(p1, NULL);
80 ASSERT_INT_EQ(sshbuf_put(p1, x, 5), 0);
81 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 5);
82 cd = sshbuf_ptr(p1);
92 ASSERT_INT_EQ(sshbuf_get(p1, d2, 4), 0);
94 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 1);
95 ASSERT_U8_EQ(*(sshbuf_ptr(p1)), 0x55);
99 r = sshbuf_get(p1, d
[all...]
H A Dtest_sshbuf.c30 struct sshbuf *p1; local
37 p1 = sshbuf_new();
38 ASSERT_PTR_NE(p1, NULL);
42 ASSERT_SIZE_T_GT(sshbuf_max_size(p1), 0);
46 ASSERT_SIZE_T_GT(sshbuf_avail(p1), 0);
50 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 0);
54 ASSERT_INT_EQ(sshbuf_set_max_size(p1, 65536), 0);
55 ASSERT_SIZE_T_EQ(sshbuf_max_size(p1), 65536);
59 ASSERT_SIZE_T_EQ(sshbuf_avail(p1), 65536);
63 sshbuf_free(p1);
[all...]
H A Dtest_sshbuf_fuzz.c31 struct sshbuf *p1; local
39 p1 = sshbuf_new();
40 ASSERT_INT_EQ(sshbuf_set_max_size(p1, 16 * 1024), 0);
41 ASSERT_PTR_NE(p1, NULL);
42 ASSERT_PTR_NE(sshbuf_ptr(p1), NULL);
43 ASSERT_MEM_ZERO_NE(sshbuf_ptr(p1), sshbuf_len(p1));
50 sz = sshbuf_avail(p1);
51 sz2 = sshbuf_len(p1);
52 ret = sshbuf_reserve(p1,
[all...]
H A Dtest_sshbuf_fixed.c32 struct sshbuf *p1, *p2, *p3; local
39 p1 = sshbuf_from(test_buf, sizeof(test_buf));
40 ASSERT_PTR_NE(p1, NULL);
41 ASSERT_PTR_EQ(sshbuf_mutable_ptr(p1), NULL);
42 ASSERT_INT_EQ(sshbuf_check_reserve(p1, 1), SSH_ERR_BUFFER_READ_ONLY);
43 ASSERT_INT_EQ(sshbuf_reserve(p1, 1, NULL), SSH_ERR_BUFFER_READ_ONLY);
44 ASSERT_INT_EQ(sshbuf_set_max_size(p1, 200), SSH_ERR_BUFFER_READ_ONLY);
45 ASSERT_INT_EQ(sshbuf_put_u32(p1, 0x12345678), SSH_ERR_BUFFER_READ_ONLY);
46 ASSERT_SIZE_T_EQ(sshbuf_avail(p1), 0);
47 ASSERT_PTR_EQ(sshbuf_ptr(p1), test_bu
79 ASSERT_PTR_EQ(sshbuf_parent(p2), p1); local
[all...]
H A Dtest_sshbuf_getput_crypto.c34 struct sshbuf *p1; local
82 p1 = sshbuf_new();
83 ASSERT_PTR_NE(p1, NULL);
84 ASSERT_INT_EQ(sshbuf_put_bignum1(p1, bn), 0);
85 ASSERT_SIZE_T_EQ(sshbuf_len(p1), sizeof(expbn1) + 2);
86 ASSERT_U16_EQ(PEEK_U16(sshbuf_ptr(p1)), (u_int16_t)BN_num_bits(bn));
87 ASSERT_MEM_EQ(sshbuf_ptr(p1) + 2, expbn1, sizeof(expbn1));
89 sshbuf_free(p1);
94 p1 = sshbuf_new();
95 ASSERT_PTR_NE(p1, NUL
[all...]
/freebsd-10-stable/contrib/libarchive/tar/test/
H A Dtest_option_r.c34 char *p0, *p1; local
41 p1 = NULL;
79 p1 = slurpfile(&s, "archive.tar");
80 if (!assert(p1 != NULL))
85 assertEqualMem(p0, p1, 1024);
87 assertEqualMem(p1 + 1024, "f1", 3);
88 assertEqualMem(p1 + 1536, buff, buff_size);
90 assertEqualMem(p1 + 1536 + buff_size_rounded, "\0\0\0\0\0\0\0\0", 8);
91 assertEqualMem(p1 + 2048 + buff_size_rounded, "\0\0\0\0\0\0\0\0", 8);
94 p0 = p1;
[all...]
/freebsd-10-stable/usr.bin/w/
H A Dproc_compare.c47 * Returns 1 if p2 is "better" than p1
72 proc_compare(struct kinfo_proc *p1, struct kinfo_proc *p2) argument
75 if (p1 == NULL)
80 switch (TESTAB(ISRUN(p1), ISRUN(p2))) {
89 if (p2->ki_estcpu > p1->ki_estcpu)
91 if (p1->ki_estcpu > p2->ki_estcpu)
93 return (p2->ki_pid > p1->ki_pid); /* tie - return highest pid */
98 switch (TESTAB(p1->ki_stat == SZOMB, p2->ki_stat == SZOMB)) {
104 return (p2->ki_pid > p1->ki_pid); /* tie - return highest pid */
109 if (p2->ki_slptime > p1
[all...]
/freebsd-10-stable/crypto/openssh/openbsd-compat/
H A Dtimingsafe_bcmp.c26 const unsigned char *p1 = b1, *p2 = b2; local
30 ret |= *p1++ ^ *p2++;
/freebsd-10-stable/sys/amd64/vmm/
H A Dvmm_ktr.h42 #define VCPU_CTR1(vm, vcpuid, format, p1) \
43 CTR3(KTR_VMM, "vm %s[%d]: " format, vm_name((vm)), (vcpuid), (p1))
45 #define VCPU_CTR2(vm, vcpuid, format, p1, p2) \
46 CTR4(KTR_VMM, "vm %s[%d]: " format, vm_name((vm)), (vcpuid), (p1), (p2))
48 #define VCPU_CTR3(vm, vcpuid, format, p1, p2, p3) \
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) \
53 (p1), (p2), (p3), (p4))
58 #define VM_CTR1(vm, format, p1) \
59 CTR2(KTR_VMM, "vm %s: " format, vm_name((vm)), (p1))
[all...]
/freebsd-10-stable/lib/libc/string/
H A Dbcmp.c44 char *p1, *p2; local
48 p1 = (char *)b1;
51 if (*p1++ != *p2++)
H A Dmemcmp.c48 const unsigned char *p1 = s1, *p2 = s2; local
51 if (*p1++ != *p2++)
52 return (*--p1 - *--p2);
/freebsd-10-stable/sys/libkern/
H A Dmemcmp.c45 const unsigned char *p1 = s1, *p2 = s2; local
48 if (*p1++ != *p2++)
49 return (*--p1 - *--p2);
H A Dbcmp.c61 ustring p1 = b1, p2 = b2; local
68 * align p1 to a longword boundary
70 while ((long)p1 & (sizeof(long) - 1)) {
71 if (*p1++ != *p2++)
79 * align p1 and p2
93 if (*(culp)p1 != (va >> shr | vb << shl))
95 p1 += sizeof(long);
113 *(culp)p1) & ((1L << len) - 1)) != 0);
115 /* p1 and p2 have common alignment so no shifting needed */
117 if (*(culp)p1 !
[all...]
/freebsd-10-stable/contrib/netbsd-tests/lib/csu/arch/ia64/
H A Dh_initfini_align.S24 cmp.eq p1, p0 = 0, loc1
29 (p1) mov loc1 = sp
31 (p1) and loc1 = 15, loc1
34 (p1) cmp.eq p1, p0 = 0, loc1
/freebsd-10-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/struct/
H A Derr.D_PROTO_ARG.DupStructAssoc.d52 struct pirate p1;
63 p1.position = 1;
64 p1.content = 'a';
71 assoc_array[p1] = 3333;
76 printf("assoc_array[p1]: %d\n", assoc_array[p1]);
/freebsd-10-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/union/
H A Derr.D_PROTO_ARG.DupUnionAssoc.d52 union pirate p1;
63 p1.position = 1;
64 p1.content = 'a';
71 assoc_array[p1] = 3333;
76 printf("assoc_array[p1]: %d\n", assoc_array[p1]);
/freebsd-10-stable/contrib/ipfilter/lib/
H A Dgetport.c21 u_short p1; local
50 p1 = s->s_port;
52 p1 = 0;
55 if (p1 != s->s_port)
58 if ((p1 == 0) && (s == NULL))
60 if (p1)
61 *port = p1;
75 p1 = s->s_port;
77 if (s == NULL || s->s_port != p1)
79 *port = p1;
[all...]
/freebsd-10-stable/usr.bin/hexdump/
H A Dparse.c208 unsigned char *p1, *p2, *fmtp; local
227 for (p1 = fmtp; *p1 && *p1 != '%'; ++p1);
230 if (!*p1) {
243 for (++p1; strchr(spec, *p1); ++p1);
246 while (strchr(spec + 1, *++p1));
446 escape(char *p1) argument
[all...]
/freebsd-10-stable/crypto/heimdal/lib/roken/
H A Dct.c45 * @param p1 memory region 1 to compare
55 ct_memcmp(const void *p1, const void *p2, size_t len) argument
57 const unsigned char *s1 = p1, *s2 = p2;
/freebsd-10-stable/usr.bin/cmp/
H A Dlink.c42 char buf1[PATH_MAX], *p1; local
72 for (p1 = buf1 + skip1, p2 = buf2 + skip2; *p1 && *p2; p1++, p2++) {
73 if ((ch = *p1) != *p2) {
89 if (*p1 || *p2)
90 eofmsg (*p1 ? file2 : file1);
/freebsd-10-stable/contrib/tcsh/
H A Dsh.parse.c74 asyntax(struct wordent *p1, struct wordent *p2) argument
76 while (p1 != p2) {
77 if (!any(";&\n", p1->word[0]))
78 return asyn0(p1, p2);
79 p1 = p1->next;
85 asyn0(struct wordent *p1, struct wordent *p2) argument
90 for (p = p1; p != p2; p = p->next)
114 if (asyn3(p1, p) != 0)
122 return asyn3(p1, p
136 asyn3(struct wordent *p1, struct wordent *p2) argument
184 freenod(struct wordent *p1, struct wordent *p2) argument
209 syntax(const struct wordent *p1, const struct wordent *p2, int flags) argument
226 syn0(const struct wordent *p1, const struct wordent *p2, int flags) argument
294 syn1(const struct wordent *p1, const struct wordent *p2, int flags) argument
336 syn1a(const struct wordent *p1, const struct wordent *p2, int flags) argument
378 syn1b(const struct wordent *p1, const struct wordent *p2, int flags) argument
419 syn2(const struct wordent *p1, const struct wordent *p2, int flags) argument
471 syn3(const struct wordent *p1, const struct wordent *p2, int flags) argument
[all...]
H A Dsh.exp.c196 tcsh_number_t p1 = exp1(vp, ignore); local
198 etraci("exp0 p1", p1, vp);
205 exp0(vp, (ignore & TEXP_IGNORE) || p1) :
206 exp1(vp, (ignore & TEXP_IGNORE) || p1);
208 p1 = (p1 || p2);
209 etraci("exp0 p1", p1, vp);
213 return (p1);
219 tcsh_number_t p1 = exp2x(vp, ignore); local
243 tcsh_number_t p1 = exp2a(vp, ignore); local
266 tcsh_number_t p1 = exp2b(vp, ignore); local
289 tcsh_number_t p1 = exp2c(vp, ignore); local
312 Char *p1 = exp3(vp, ignore); local
355 Char *p1, *p2; local
401 Char *p1, *p2; local
430 Char *p1, *p2; local
467 Char *p1, *p2; local
[all...]
/freebsd-10-stable/contrib/groff/src/libs/libgroff/
H A Dstrcasecmp.c45 register const unsigned char *p1 = (const unsigned char *) s1; local
49 if (p1 == p2 || LENGTH_LIMIT_EXPR (n == 0))
54 c1 = TOLOWER (*p1);
60 ++p1;
/freebsd-10-stable/crypto/openssl/crypto/
H A Do_str.h67 int OPENSSL_memcmp(const void *p1, const void *p2, size_t n);

Completed in 244 milliseconds

1234567891011>>