Home
last modified time | relevance | path

Searched +full:- +full:p1 (Results 1 – 25 of 910) sorted by relevance

12345678910>>...37

/freebsd/crypto/openssh/regress/unittests/sshbuf/
H A Dtest_sshbuf_getput_basic.c27 struct sshbuf *p1, *p2; in sshbuf_getput_basic_tests() local
77 p1 = sshbuf_new(); in sshbuf_getput_basic_tests()
78 ASSERT_PTR_NE(p1, NULL); in sshbuf_getput_basic_tests()
79 ASSERT_INT_EQ(sshbuf_put(p1, x, 5), 0); in sshbuf_getput_basic_tests()
80 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 5); in sshbuf_getput_basic_tests()
81 cd = sshbuf_ptr(p1); in sshbuf_getput_basic_tests()
91 ASSERT_INT_EQ(sshbuf_get(p1, d2, 4), 0); in sshbuf_getput_basic_tests()
93 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 1); in sshbuf_getput_basic_tests()
94 ASSERT_U8_EQ(*(sshbuf_ptr(p1)), 0x55); in sshbuf_getput_basic_tests()
98 r = sshbuf_get(p1, d2, 4); in sshbuf_getput_basic_tests()
[all …]
H A Dtest_sshbuf_misc.c28 struct sshbuf *p1; in sshbuf_misc_tests() local
36 p1 = sshbuf_new(); in sshbuf_misc_tests()
37 ASSERT_PTR_NE(p1, NULL); in sshbuf_misc_tests()
38 ASSERT_INT_EQ(sshbuf_put_u32(p1, 0x12345678), 0); in sshbuf_misc_tests()
39 sshbuf_dump(p1, out); in sshbuf_misc_tests()
49 sshbuf_free(p1); in sshbuf_misc_tests()
53 p1 = sshbuf_new(); in sshbuf_misc_tests()
54 ASSERT_PTR_NE(p1, NULL); in sshbuf_misc_tests()
55 ASSERT_INT_EQ(sshbuf_put_u32(p1, 0x12345678), 0); in sshbuf_misc_tests()
56 p = sshbuf_dtob16(p1); in sshbuf_misc_tests()
[all …]
H A Dtest_sshbuf_fixed.c31 struct sshbuf *p1, *p2, *p3; in sshbuf_fixed() local
38 p1 = sshbuf_from(test_buf, sizeof(test_buf)); in sshbuf_fixed()
39 ASSERT_PTR_NE(p1, NULL); in sshbuf_fixed()
40 ASSERT_PTR_EQ(sshbuf_mutable_ptr(p1), NULL); in sshbuf_fixed()
41 ASSERT_INT_EQ(sshbuf_check_reserve(p1, 1), SSH_ERR_BUFFER_READ_ONLY); in sshbuf_fixed()
42 ASSERT_INT_EQ(sshbuf_reserve(p1, 1, NULL), SSH_ERR_BUFFER_READ_ONLY); in sshbuf_fixed()
43 ASSERT_INT_EQ(sshbuf_set_max_size(p1, 200), SSH_ERR_BUFFER_READ_ONLY); in sshbuf_fixed()
44 ASSERT_INT_EQ(sshbuf_put_u32(p1, 0x12345678), SSH_ERR_BUFFER_READ_ONLY); in sshbuf_fixed()
45 ASSERT_SIZE_T_EQ(sshbuf_avail(p1), 0); in sshbuf_fixed()
46 ASSERT_PTR_EQ(sshbuf_ptr(p1), test_buf); in sshbuf_fixed()
[all …]
H A Dtest_sshbuf_getput_crypto.c35 struct sshbuf *p1; in sshbuf_getput_crypto_tests() local
38 /* This one has MSB set to test bignum2 encoding negative-avoidance */ in sshbuf_getput_crypto_tests()
82 p1 = sshbuf_new(); in sshbuf_getput_crypto_tests()
83 ASSERT_PTR_NE(p1, NULL); in sshbuf_getput_crypto_tests()
84 ASSERT_INT_EQ(sshbuf_put_bignum2(p1, bn), 0); in sshbuf_getput_crypto_tests()
85 ASSERT_SIZE_T_EQ(sshbuf_len(p1), sizeof(expbn1) + 4); in sshbuf_getput_crypto_tests()
86 ASSERT_U32_EQ(PEEK_U32(sshbuf_ptr(p1)), (u_int32_t)BN_num_bytes(bn)); in sshbuf_getput_crypto_tests()
87 ASSERT_MEM_EQ(sshbuf_ptr(p1) + 4, expbn1, sizeof(expbn1)); in sshbuf_getput_crypto_tests()
89 sshbuf_free(p1); in sshbuf_getput_crypto_tests()
94 p1 = sshbuf_new(); in sshbuf_getput_crypto_tests()
[all …]
H A Dtest_sshbuf.c27 #define roundup(x, y) ((((x)+((y)-1))/(y))*(y))
33 struct sshbuf *p1; in sshbuf_tests() local
40 p1 = sshbuf_new(); in sshbuf_tests()
41 ASSERT_PTR_NE(p1, NULL); in sshbuf_tests()
45 ASSERT_SIZE_T_GT(sshbuf_max_size(p1), 0); in sshbuf_tests()
49 ASSERT_SIZE_T_GT(sshbuf_avail(p1), 0); in sshbuf_tests()
53 ASSERT_SIZE_T_EQ(sshbuf_len(p1), 0); in sshbuf_tests()
57 ASSERT_INT_EQ(sshbuf_set_max_size(p1, 65536), 0); in sshbuf_tests()
58 ASSERT_SIZE_T_EQ(sshbuf_max_size(p1), 65536); in sshbuf_tests()
62 ASSERT_SIZE_T_EQ(sshbuf_avail(p1), 65536); in sshbuf_tests()
[all …]
H A Dtest_sshbuf_fuzz.c30 struct sshbuf *p1; in sshbuf_fuzz_tests() local
43 p1 = sshbuf_new(); in sshbuf_fuzz_tests()
44 ASSERT_INT_EQ(sshbuf_set_max_size(p1, 16 * 1024), 0); in sshbuf_fuzz_tests()
45 ASSERT_PTR_NE(p1, NULL); in sshbuf_fuzz_tests()
46 ASSERT_PTR_NE(sshbuf_ptr(p1), NULL); in sshbuf_fuzz_tests()
47 ASSERT_MEM_ZERO_NE(sshbuf_ptr(p1), sshbuf_len(p1)); in sshbuf_fuzz_tests()
54 sz = sshbuf_avail(p1); in sshbuf_fuzz_tests()
55 sz2 = sshbuf_len(p1); in sshbuf_fuzz_tests()
56 ret = sshbuf_reserve(p1, r, &dp); in sshbuf_fuzz_tests()
60 ASSERT_SIZE_T_EQ(sshbuf_avail(p1), sz); in sshbuf_fuzz_tests()
[all …]
/freebsd/tests/sys/geom/class/eli/
H A Donline_resize_test.sh20 …echo "p 512 none 11258999068425728 [0-9] 20971520 22517998136851968 [0-9] 41943040 337769972052782…
21 …echo "p 4096 none 11258999068422144 [0-9] 2621440 22517998136848384 [0-9] 5242880 3377699720527462…
22 …echo "p 512 HMAC/SHA256 5629499534212608 [0-9] 20971520 11258999068425728 [0-9] 41943040 168884986…
23 …ho "p 4096 HMAC/SHA256 10007999171932160 [0-9] 20971520 20015998343868416 [0-9] 41943040 300239975…
30 aalgo="-a ${auth}"
45 attach_md md -t malloc -s40${prefix}
48 atf_check -s exit:0 -o ignore gpart create -s GPT ${md}
49 atf_check -s exit:0 -o ignore gpart add -t freebsd-ufs -s 10${prefix} ${md}
53 atf_check geli init ${aalgo} -s ${sector} -Bnone -PKtmp.key ${md}p1
55 atf_check -s exit:0 -o match:"flags: ${eflags}$" geli dump ${md}p1
[all …]
/freebsd/contrib/googletest/googlemock/include/gmock/
H A Dgmock-more-actions.h30 // Google Mock - a framework for writing C++ mock classes.
43 #include "gmock/gmock-actions.h"
44 #include "gmock/internal/gmock-port.h"
47 #include "gmock/internal/custom/gmock-generated-actions.h"
58 // AND_n_VALUE_PARAMS(p1, ..., p_n)) { statements; }
61 // parameters and n value parameters. name_i is the name of the i-th
63 // an integral constant, or a template. p_i is the name of the i-th
68 // // DuplicateArg<k, T>(output) converts the k-th argument of the mock
100 // Are we using a single-template-parameter action where 'bool' refers
101 // to the type of x, or are we using a two-template-parameter action
[all …]
/freebsd/contrib/tcsh/
H A Dsh.exp.c4 /*-
99 * POSIX 1003.2-d11.2 in sh_access()
100 * -r file True if file exists and is readable. in sh_access()
101 * -w file True if file exists and is writable. in sh_access()
103 * The file shall not be writable on a read-only file in sh_access()
105 * -x file True if file exists and is executable. in sh_access()
113 if (stat(name, &statb) == -1) in sh_access()
157 if ((n = sysconf(_SC_NGROUPS_MAX)) == -1) in sh_access()
166 while (--n >= 0) in sh_access()
192 tcsh_number_t p1 = exp1(vp, ignore); in exp0() local
[all …]
H A Dsh.parse.c4 /*-
65 if (--aleft == 0) in alias()
67 } while (asyntax(lexp->next, lexp) != 0); in alias()
71 asyntax(struct wordent *p1, struct wordent *p2) in asyntax() argument
73 while (p1 != p2) { in asyntax()
74 if (!any(";&\n", p1->word[0])) in asyntax()
75 return asyn0(p1, p2); in asyntax()
76 p1 = p1->next; in asyntax()
82 asyn0(struct wordent *p1, struct wordent *p2) in asyn0() argument
87 for (p = p1; p != p2; p = p->next) in asyn0()
[all …]
/freebsd/usr.bin/hexdump/
H A Dparse.c1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
42 FU *endfu; /* format at end-of-data */
84 nextfs = &tfs->nextfs; in add()
85 nextfu = &tfs->nextfu; in add()
98 nextfu = &tfu->nextfu; in add()
99 tfu->reps = 1; in add()
107 tfu->reps = atoi(savep); in add()
108 tfu->flags = F_SETREP; in add()
122 tfu->bcnt = atoi(savep); in add()
[all …]
/freebsd/sys/kern/
H A Dkern_fork.c1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
110 td->td_retval[0] = pid; in sys_fork()
111 td->td_retval[1] = 0; in sys_fork()
127 fr.fr_pd_flags = uap->flags; in sys_pdfork()
128 AUDIT_ARG_FFLAGS(uap->flags); in sys_pdfork()
136 td->td_retva in sys_pdfork()
306 struct proc *p1; fork_norfproc() local
369 struct proc *p1, *pptr; do_fork() local
849 struct proc *p1, *newproc; fork1() local
[all...]
/freebsd/sys/sys/
H A Dktr.h1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
79 #define CTR6(m, format, p1, p2, p3, p4, p5, p6) do { \ argument
82 (u_long)(p1), (u_long)(p2), (u_long)(p3), \
86 #define CTR1(m, format, p1) CTR6(m, format, p1, 0, 0, 0, 0, 0) argument
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
93 #define CTR1(m, d, p1) (void)0 argument
[all …]
/freebsd/contrib/lua/src/
H A Dltm.c50 G(L)->tmname[i] = luaS_new(L, luaT_eventname[i]); in luaT_init()
51 luaC_fix(L, obj2gco(G(L)->tmname[i])); /* never collect these names */ in luaT_init()
64 events->flags |= cast_byte(1u<<event); /* cache this fact */ in luaT_gettm()
75 mt = hvalue(o)->metatable; in luaT_gettmbyobj()
78 mt = uvalue(o)->metatable; in luaT_gettmbyobj()
81 mt = G(L)->mt[ttype(o)]; in luaT_gettmbyobj()
83 return (mt ? luaH_getshortstr(mt, G(L)->tmname[event]) : &G(L)->nilvalue); in luaT_gettmbyobj()
93 if ((ttistable(o) && (mt = hvalue(o)->metatable) != NULL) || in luaT_objtypename()
94 (ttisfulluserdata(o) && (mt = uvalue(o)->metatable) != NULL)) { in luaT_objtypename()
103 void luaT_callTM (lua_State *L, const TValue *f, const TValue *p1, in luaT_callTM() argument
[all …]
/freebsd/sys/dev/vmm/
H A Dvmm_ktr.h1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
42 #define VCPU_CTR1(vm, vcpuid, format, p1) \ argument
43 CTR3(KTR_VMM, "vm %s[%d]: " format, vm_name((vm)), (vcpuid), (p1))
45 #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))
[all …]
/freebsd/contrib/libarchive/tar/test/
H A Dtest_option_r.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2003-2007 Tim Kientzle
10 * Also see test_option_q for additional validation of -r support.
15 char *p0, *p1; in DEFINE_TEST() local
22 p1 = NULL; in DEFINE_TEST()
26 r = systemf("%s cf archive.tar --format=ustar f1 >step1.out 2>step1.err", testprog); in DEFINE_TEST()
51 buff[buff_size - 1] = '\0'; in DEFINE_TEST()
53 r = systemf("%s rf archive.tar --format=ustar f1 >step2.out 2>step2.err", testprog); in DEFINE_TEST()
60 p1 = slurpfile(&s, "archive.tar"); in DEFINE_TEST()
[all …]
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zpool_create/
H A Dzpool_create_001_pos.ksh1 #!/usr/local/bin/ksh93 -p
48 # CODING_STATUS: COMPLETED (2005-07-04)
68 set -A keywords "" "mirror" "raidz" "raidz1"
85 pooldevs="${diskname}p1 \
86 /dev/${diskname}p1 \
87 \"${diskname}p1 ${diskname}p2\" \
89 raidzdevs="\"/dev/${diskname}p1 ${diskname}p2\" \
90 \"${diskname}p1 ${diskname}p2 ${diskname}p3\" \
91 \"${diskname}p1 ${diskname}p2 ${diskname}p3 \
100 pooldevs="${diskname0}p1\
[all …]
/freebsd/contrib/netbsd-tests/lib/libcurses/
H A Datf.terminfo5 acsc=++\,\,--..00``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
7 cnorm=cnorm, cr=^M, csr=csr%i%p1%d;%p2%dX, cub=cub%p1%dX,
8 cub1=^H, cud=cud%p1%dX, cud1=^J, cuf=cuf%p1%dX, cuf1=,
9 cup=cup%i%p1%d;%p2%dX, cuu=cuu%p1%dX, cuu1=, cvvis=cvvis,
10 dch=dch%p1%dX, dch1=, dl=dl%p1%dX, dl1= , dim=dim, ech=ech%p1%dX,
12 hpa=hpa%i%p1%dX, ht=^I, hts=hts, ich=ich%p1%dX, il=il%p1%dX,
13 il1=il1, ind=^M, indn=indn%p1%dX, invis=invis,
35 op=op, rc=rc, rev=rev, ri=ri, rin=rin%p1%dX, rmacs=rmacs,
38 rs2=rs2, sc=sc, setab=setab%p1%dX,
39 setaf=setaf%p1%dX, setb=setb%p1%dX, setf=setf%p1%dX,
[all …]
/freebsd/sys/compat/linux/
H A Dlinux_util.h1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
56 if (pid != td->td_proc->p_pid) { \
59 pid = td->td_proc->p_pid; \
103 #define LINUX_CTR6(f, m, p1, p
102 LINUX_CTR6(f,m,p1,p2,p3,p4,p5,p6) global() argument
109 LINUX_CTR1(f,m,p1) global() argument
110 LINUX_CTR2(f,m,p1,p2) global() argument
111 LINUX_CTR3(f,m,p1,p2,p3) global() argument
112 LINUX_CTR4(f,m,p1,p2,p3,p4) global() argument
113 LINUX_CTR5(f,m,p1,p2,p3,p4,p5) global() argument
117 LINUX_CTR1(f,m,p1) 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/w/
H A Dproc_compare.c1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
40 * Returns 1 if p2 is "better" than p1
44 * 1) Only foreground processes are eligible - implied.
49 * we pick out just "short-term" sleepers (TDF_SINTR == 0).
55 * TODO - consider whether pctcpu should be used.
58 #define ISRUN(p) (((p)->ki_stat == SRUN) || ((p)->ki_stat == SIDL))
65 proc_compare(struct kinfo_proc *p1, struct kinfo_proc *p2) in proc_compare() argument
68 if (p1 == NULL) in proc_compare()
73 switch (TESTAB(ISRUN(p1), ISRUN(p2))) { in proc_compare()
[all …]
/freebsd/contrib/bearssl/src/ec/
H A Dec_p256_m62.c75 * A field element is encoded as five 64-bit integers, in basis 2^52.
79 * - top limb is less than 2^48 + 2^30
80 * - the other limbs fit on 53 bits each
85 #define MASK48 (BIT(48) - BIT(0))
86 #define MASK52 (BIT(52) - BIT(0))
94 /* Curve equation is y^2 = x^3 - 3*x + B. This constant is B*R mod p
145 w = a[1] - (s << 44); in f256_partial_reduce()
147 cc = -(w >> 52) & 0xFFF; /* cc < 16 */ in f256_partial_reduce()
148 w = a[2] - cc; in f256_partial_reduce()
151 w = a[3] - cc - (s << 36); in f256_partial_reduce()
[all …]
H A Dec_p256_m64.c75 * A field element is encoded as four 64-bit integers, in basis 2^64.
76 * Values may reach up to 2^256-1. Montgomery multiplication is used.
85 /* Curve equation is y^2 = x^3 - 3*x + B. This constant is B*R mod p
116 * Fold carry t, using: 2^256 = 2^224 - 2^192 - 2^96 + 1 mod p. in f256_add()
120 w = (unsigned __int128)d[1] + (w >> 64) - (t << 32); in f256_add()
122 /* Here, carry "w >> 64" can only be 0 or -1 */ in f256_add()
123 w = (unsigned __int128)d[2] - ((w >> 64) & 1); in f256_add()
125 /* Again, carry is 0 or -1. But there can be carry only if t = 1, in f256_add()
126 in which case the addition of (t << 32) - t is positive. */ in f256_add()
127 w = (unsigned __int128)d[3] - ((w >> 64) & 1) + (t << 32) - t; in f256_add()
[all …]
/freebsd/contrib/ncurses/misc/
H A Demx.src3 # Copyright 1998-2003,2006 Free Software Foundation, Inc. #
33 #----------------------------------------------------------------------------
43 # terminal are the lowest common denominator - they look about like a ti 700.
46 dumb|80-column dumb tty,
81 #### ANSI.SYS/ISO 6429/ECMA-48 Capabilities
83 # See the end-of-file comment for more on these.
88 # ROM graphics for control characters such as the diamond, up- and down-arrow.
91 # from the ANSI.SYS de-facto standard.
93 …acsc=+\020\,\021-\030.^Y0\333`\004a\261f\370g\361h\260j\331k\277l\332m\300n\305o~p\304q\304r\304s_…
99 # about \E[11m as klone+acs. True ANSI/ECMA-48 would have <rmso=\E[27m>,
[all …]
/freebsd/sbin/ipf/libipf/
H A Dgetport.c18 u_short p1; in getport() local
20 if (fr == NULL || fr->fr_type != FR_T_IPF) { in getport()
23 *port = s->s_port; in getport()
30 return (-1); in getport()
34 return (-1); in getport()
44 if (fr->fr_proto == 0) { in getport()
47 p1 = s->s_port; in getport()
49 p1 = 0; in getport()
52 if (p1 != s->s_port) in getport()
53 return (-1); in getport()
[all …]
/freebsd/sys/contrib/device-tree/Bindings/ata/
H A Dceva,ahci-1v84.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/ata/ceva,ahci-
[all...]

12345678910>>...37