/freebsd-11-stable/sys/libkern/ |
H A D | bcmp.c | 61 ustring p1 = b1, p2 = b2; local 71 if (*p1++ != *p2++) 78 * align p2 to longword boundary and calculate the shift required to 79 * align p1 and p2 81 shr = (long)p2 & (sizeof(long) - 1); 83 p2 -= shr; /* p2 now longword aligned */ 87 va = *(culp)p2; 88 p2 += sizeof(long); 91 vb = *(culp)p2; [all...] |
H A D | timingsafe_bcmp.c | 26 const unsigned char *p1 = b1, *p2 = b2; local 30 ret |= *p1++ ^ *p2++;
|
H A D | memcmp.c | 45 const unsigned char *p1 = s1, *p2 = s2; local 48 if (*p1++ != *p2++) 49 return (*--p1 - *--p2);
|
/freebsd-11-stable/crypto/openssh/openbsd-compat/ |
H A D | timingsafe_bcmp.c | 26 const unsigned char *p1 = b1, *p2 = b2; local 30 ret |= *p1++ ^ *p2++;
|
/freebsd-11-stable/lib/libc/string/ |
H A D | bcmp.c | 44 char *p1, *p2; local 49 p2 = (char *)b2; 51 if (*p1++ != *p2++)
|
H A D | memcmp.c | 48 const unsigned char *p1 = s1, *p2 = s2; local 51 if (*p1++ != *p2++) 52 return (*--p1 - *--p2);
|
H A D | timingsafe_bcmp.c | 28 const unsigned char *p1 = b1, *p2 = b2; local 32 ret |= *p1++ ^ *p2++;
|
H A D | timingsafe_memcmp.c | 29 const unsigned char *p1 = b1, *p2 = b2; local 34 /* lt is -1 if p1[i] < p2[i]; else 0. */ 35 int lt = (p1[i] - p2[i]) >> CHAR_BIT; 37 /* gt is -1 if p1[i] > p2[i]; else 0. */ 38 int gt = (p2[i] - p1[i]) >> CHAR_BIT; 40 /* cmp is 1 if p1[i] > p2[i]; -1 if p1[i] < p2[i]; else 0. */ 46 /* set done if p1[i] != p2[i]. */
|
/freebsd-11-stable/usr.bin/w/ |
H A D | proc_compare.c | 47 * Returns 1 if p2 is "better" than p1 72 proc_compare(struct kinfo_proc *p1, struct kinfo_proc *p2) argument 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->ki_slptime) 111 if (p1->ki_slptime > p2 [all...] |
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/struct/ |
H A D | err.D_PROTO_ARG.DupStructAssoc.d | 53 struct pirate p2; 66 p2.position = 2; 67 p2.content = 'b'; 72 assoc_array[p2] = 4444; 77 printf("assoc_array[p2]: %d\n", assoc_array[p2]);
|
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/union/ |
H A D | err.D_PROTO_ARG.DupUnionAssoc.d | 53 union pirate p2; 66 p2.position = 2; 67 p2.content = 'b'; 72 assoc_array[p2] = 4444; 77 printf("assoc_array[p2]: %d\n", assoc_array[p2]);
|
/freebsd-11-stable/crypto/openssh/regress/unittests/sshbuf/ |
H A D | test_sshbuf_fixed.c | 32 struct sshbuf *p1, *p2, *p3; local 75 p2 = sshbuf_fromb(p1); 76 ASSERT_PTR_NE(p2, NULL); 79 ASSERT_PTR_EQ(sshbuf_parent(p2), p1); 80 ASSERT_PTR_EQ(sshbuf_ptr(p2), sshbuf_ptr(p1)); 82 ASSERT_PTR_NE(sshbuf_ptr(p2), NULL); 84 ASSERT_PTR_EQ(sshbuf_mutable_ptr(p2), NULL); 85 ASSERT_SIZE_T_EQ(sshbuf_len(p1), sshbuf_len(p2)); 86 ASSERT_INT_EQ(sshbuf_get_u8(p2, &c), 0); 87 ASSERT_PTR_EQ(sshbuf_ptr(p2), sshbuf_pt [all...] |
/freebsd-11-stable/sys/amd64/vmm/ |
H A D | vmm_ktr.h | 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)) 61 #define VM_CTR2(vm, format, p1, p2) \ 62 CTR3(KTR_VMM, "vm %s: " format, vm_name((vm)), (p1), (p2)) 64 #define VM_CTR3(vm, format, p1, p2, p3) \ 65 CTR4(KTR_VMM, "vm %s: " format, vm_name((vm)), (p1), (p2), (p [all...] |
/freebsd-11-stable/crypto/heimdal/lib/gssapi/ntlm/ |
H A D | import_name.c | 44 char *name, *p, *p2; local 78 p2 = strchr(p, '.'); 79 if (p2 && p2[1] != '\0') { 81 p = p2 + 1; 82 p2 = strchr(p, '.'); 84 if (p2) 85 *p2 = '\0';
|
/freebsd-11-stable/crypto/heimdal/lib/roken/ |
H A D | ct.c | 46 * @param p2 memory region 2 to compare 55 ct_memcmp(const void *p1, const void *p2, size_t len) argument 57 const unsigned char *s1 = p1, *s2 = p2;
|
H A D | vsyslog.c | 66 char *p2; local 79 for (p = fmt, p2 = fmt2; *p != '\0'; ++p) { 86 pos = p2 - fmt2; 95 p2 = fmt2 + pos; 96 memmove (p2, e, e_len); 97 p2 += e_len; 100 *p2++ = *p; 102 *p2 = '\0';
|
/freebsd-11-stable/usr.bin/cmp/ |
H A D | link.c | 45 char buf2[PATH_MAX], *p2; local 74 for (p1 = buf1 + skip1, p2 = buf2 + skip2; *p1 && *p2; p1++, p2++) { 75 if ((ch = *p1) != *p2) { 79 (long long)byte - 1, ch, *p2); 83 (long long)byte, ch, *p2); 91 if (*p1 || *p2)
|
/freebsd-11-stable/sys/kern/ |
H A D | kern_fork.c | 395 do_fork(struct thread *td, struct fork_req *fr, struct proc *p2, struct thread *td2, argument 413 p2->p_state = PRS_NEW; /* protect against others */ 414 p2->p_pid = trypid; 415 AUDIT_ARG_PID(p2->p_pid); 416 LIST_INSERT_HEAD(&allproc, p2, p_list); 418 LIST_INSERT_HEAD(PIDHASH(p2->p_pid), p2, p_hash); 420 PROC_LOCK(p2); 425 bcopy(&p1->p_startcopy, &p2->p_startcopy, 427 p2 [all...] |
/freebsd-11-stable/lib/libufs/ |
H A D | block.c | 53 void *p2; local 58 p2 = data; 66 p2 = malloc(size); 67 if (p2 == NULL) { 72 cnt = pread(disk->d_fd, p2, size, (off_t)(blockno * disk->d_bsize)); 85 if (p2 != data) { 86 memcpy(data, p2, size); 87 free(p2); 91 if (p2 != data) { 92 free(p2); 102 void *p2 = NULL; local [all...] |
/freebsd-11-stable/contrib/groff/src/libs/libgroff/ |
H A D | strcasecmp.c | 46 register const unsigned char *p2 = (const unsigned char *) s2; local 49 if (p1 == p2 || LENGTH_LIMIT_EXPR (n == 0)) 55 c2 = TOLOWER (*p2); 61 ++p2;
|
/freebsd-11-stable/crypto/openssl/crypto/ |
H A D | o_str.h | 67 int OPENSSL_memcmp(const void *p1, const void *p2, size_t n);
|
/freebsd-11-stable/contrib/tcsh/ |
H A D | sh.parse.c | 71 asyntax(struct wordent *p1, struct wordent *p2) argument 73 while (p1 != p2) { 75 return asyn0(p1, p2); 82 asyn0(struct wordent *p1, struct wordent *p2) argument 87 for (p = p1; p != p2; p = p->next) 101 if (p->next != p2 && eq(p->next->word, STRand)) 113 return asyntax(p->next, p2); 119 return asyn3(p1, p2); 133 asyn3(struct wordent *p1, struct wordent *p2) argument 139 if (p1 == p2) 181 freenod(struct wordent *p1, struct wordent *p2) argument 206 syntax(const struct wordent *p1, const struct wordent *p2, int flags) argument 223 syn0(const struct wordent *p1, const struct wordent *p2, int flags) argument 291 syn1(const struct wordent *p1, const struct wordent *p2, int flags) argument 333 syn1a(const struct wordent *p1, const struct wordent *p2, int flags) argument 375 syn1b(const struct wordent *p1, const struct wordent *p2, int flags) argument 416 syn2(const struct wordent *p1, const struct wordent *p2, int flags) argument 468 syn3(const struct wordent *p1, const struct wordent *p2, int flags) argument [all...] |
/freebsd-11-stable/sys/sys/ |
H A D | ktr.h | 78 #define CTR6(m, format, p1, p2, p3, p4, p5, p6) do { \ 81 (u_long)(p1), (u_long)(p2), (u_long)(p3), \ 86 #define CTR2(m, format, p1, p2) CTR6(m, format, p1, p2, 0, 0, 0, 0) 87 #define CTR3(m, format, p1, p2, p3) CTR6(m, format, p1, p2, p3, 0, 0, 0) 88 #define CTR4(m, format, p1, p2, p3, p4) CTR6(m, format, p1, p2, p3, p4, 0, 0) 89 #define CTR5(m, format, p1, p2, p3, p4, p5) CTR6(m, format, p1, p2, p [all...] |
/freebsd-11-stable/contrib/lua/src/ |
H A D | ltm.c | 103 const TValue *p2, TValue *p3, int hasres) { 108 setobj2s(L, func + 2, p2); /* 2nd argument */ 124 int luaT_callbinTM (lua_State *L, const TValue *p1, const TValue *p2, argument 128 tm = luaT_gettmbyobj(L, p2, event); /* try second operand */ 130 luaT_callTM(L, tm, p1, p2, res, 1); 135 void luaT_trybinTM (lua_State *L, const TValue *p1, const TValue *p2, argument 137 if (!luaT_callbinTM(L, p1, p2, res, event)) { 140 luaG_concaterror(L, p1, p2); 145 if (tonumber(p1, &dummy) && tonumber(p2, &dummy)) 146 luaG_tointerror(L, p1, p2); 102 luaT_callTM(lua_State *L, const TValue *f, const TValue *p1, const TValue *p2, TValue *p3, int hasres) argument 158 luaT_callorderTM(lua_State *L, const TValue *p1, const TValue *p2, TMS event) argument [all...] |
/freebsd-11-stable/crypto/heimdal/lib/krb5/ |
H A D | test_princ.c | 52 krb5_principal p, p2; local 83 ret = krb5_parse_name(context, princ_reformed, &p2); 88 if (!krb5_principal_compare(context, p, p2)) { 89 krb5_errx(context, 1, "p != p2"); 92 krb5_free_principal(context, p2); 108 ret = krb5_parse_name(context, princ_short, &p2); 112 if (!krb5_principal_compare(context, p, p2)) 113 krb5_errx(context, 1, "p != p2"); 114 krb5_free_principal(context, p2); 128 ret = krb5_parse_name(context, princ_short, &p2); [all...] |