Home
last modified time | relevance | path

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

12345678910>>...36

/freebsd/crypto/openssh/regress/unittests/sshbuf/
H A Dtest_sshbuf.c8 #define SSHBUF_INTERNAL 1 /* access internals for testing */
27 #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()
[all …]
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()
84 ASSERT_U8_EQ(cd[1], 0x22); 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()
[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()
42 sz = fread(tmp, 1, sizeof(tmp), 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()
[all …]
H A Dtest_sshbuf_getput_crypto.c35 struct sshbuf *p1; in sshbuf_getput_crypto_tests() local
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()
95 ASSERT_PTR_NE(p1, NULL); in sshbuf_getput_crypto_tests()
[all …]
H A Dtest_sshbuf_fixed.c8 #define SSHBUF_INTERNAL 1 /* access internals for testing */
31 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()
[all …]
H A Dtest_sshbuf_fuzz.c23 #define NUM_FUZZ_TESTS (1 << 18)
30 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()
[all …]
/freebsd/tests/sys/geom/class/eli/
H A Donline_resize_test.sh16 echo "m 512 none 10485248 1 1 20971008 1 1 31456768 1 1"
17 echo "m 4096 none 10481664 1 1 20967424 1 1 31453184 1 1"
18 echo "m 512 HMAC/SHA256 5242368 1 1 10485248 1 1 15728128 1 1"
19 echo "m 4096 HMAC/SHA256 9318400 1 1 18640896 1 1 27959296 1 1"
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
57 atf_check geli configure -R ${md}p1
58 atf_check -s exit:0 -o match:"flags: ${dflags}$" geli dump ${md}p1
59 atf_check geli configure -r ${md}p1
60 atf_check -s exit:0 -o match:"flags: ${eflags}$" geli dump ${md}p1
[all …]
/freebsd/contrib/tcsh/
H A Dsh.exp.c11 * 1. Redistributions of source code must retain the above copyright
39 #define TEXP_IGNORE 1 /* in ignore, it means to ignore value, just parse */
42 #define ADDOP 1
49 #define EQEQ 1
92 return 1; in sh_access()
113 if (stat(name, &statb) == -1) in sh_access()
114 return 1; in sh_access()
151 * 1) sysconf(_SC_NGROUPS_MAX) in sh_access()
157 if ((n = sysconf(_SC_NGROUPS_MAX)) == -1) in sh_access()
179 return 1; in sh_access()
[all …]
H A Dsh.parse.c11 * 1. Redistributions of source code must retain the above copyright
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()
111 if (asyn3(p1, p) != 0) in asyn0()
112 return 1; in asyn0()
[all …]
/freebsd/usr.bin/hexdump/
H A Dparse.c10 * 1. Redistributions of source code must retain the above copyright
50 char buf[2048 + 1]; in addfile()
53 err(1, "%s", name); in addfile()
78 if ((tfs = calloc(1, sizeof(FS))) == NULL) in add()
79 err(1, NULL); in add()
95 if ((tfu = calloc(1, sizeof(FU))) == NULL) in add()
96 err(1, NULL); in add()
99 tfu->reps = 1; in add()
133 if (!(tfu->fmt = malloc(p - savep + 1))) in add()
134 err(1, NULL); in add()
[all …]
/freebsd/contrib/netbsd-tests/lib/libcurses/
H A Datf.terminfo7 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,
14 is2=is2, kDC=\E[3;2~, kEND=\E[1;2F, kHOM=\E[1;2H,
15 kIC=\E[2;2~, kLFT=\E[1;2D, kNXT=\E[6;2~, kPRV=\E[5;2~,
16 kRIT=\E[1;2C, kb2=\EOE, kbs=^H, kcbt=\E[Z, kcub1=\EOD, kcud1=\EOB,
18 kf1=\EOP, kf10=\E[21~, kf11=\E[23~, kf12=\E[24~, kf13=\E[1;2P,
[all …]
/freebsd/sys/kern/
H A Dkern_fork.c15 * 1. Redistributions of source code must retain the above copyright
111 td->td_retval[1] = 0; in sys_fork()
137 td->td_retval[1] = 0; in sys_pdfork()
156 td->td_retval[1] = 0; in sys_vfork()
186 td->td_retval[1] = 0; in sys_rfork()
191 int __exclusive_cache_line nprocs = 1; /* process 0 */
220 else if (pid == 1) in sysctl_kern_randompid()
239 "Random PID modulus. Special values: 0: disable, 1: choose random value");
267 trypid = lastpid + 1; in fork_findpid()
279 if (result == -1) { in fork_findpid()
[all …]
/freebsd/contrib/lua/src/
H A Dltm.c64 events->flags |= cast_byte(1u<<event); /* cache this fact */ in luaT_gettm()
103 void luaT_callTM (lua_State *L, const TValue *f, const TValue *p1, in luaT_callTM() argument
107 setobj2s(L, func + 1, p1); /* 1st argument */ in luaT_callTM()
119 void luaT_callTMres (lua_State *L, const TValue *f, const TValue *p1, in luaT_callTMres() argument
124 setobj2s(L, func + 1, p1); /* 1st argument */ in luaT_callTMres()
129 luaD_call(L, func, 1); in luaT_callTMres()
131 luaD_callnoyield(L, func, 1); in luaT_callTMres()
137 static int callbinTM (lua_State *L, const TValue *p1, const TValue *p2, in callbinTM() argument
139 const TValue *tm = luaT_gettmbyobj(L, p1, event); /* try first operand */ in callbinTM()
143 luaT_callTMres(L, tm, p1, p2, res); in callbinTM()
[all …]
/freebsd/usr.bin/w/
H A Dproc_compare.c10 * 1. Redistributions of source code must retain the above copyright
40 * Returns 1 if p2 is "better" than p1
44 * 1) Only foreground processes are eligible - implied.
59 #define TESTAB(a, b) ((a)<<1 | (b))
61 #define ONLYB 1
65 proc_compare(struct kinfo_proc *p1, struct kinfo_proc *p2) in proc_compare() argument
68 if (p1 == NULL) in proc_compare()
69 return (1); in proc_compare()
73 switch (TESTAB(ISRUN(p1), ISRUN(p2))) { in proc_compare()
77 return (1); in proc_compare()
[all …]
/freebsd/contrib/bearssl/src/ec/
H A Dec_p256_m62.c71 return 1; in api_xoff()
84 #define BIT(n) ((uint64_t)1 << (n))
110 d[1] = a[1] + b[1]; in f256_add()
132 w = a[1] + cc; in f256_partial_reduce()
133 a[1] = w & MASK52; in f256_partial_reduce()
145 w = a[1] - (s << 44); in f256_partial_reduce()
146 a[1] = w & MASK52; /* a[1] < 2^52 */ in f256_partial_reduce()
150 cc = w >> 63; /* cc = 0 or 1 */ in f256_partial_reduce()
153 cc = w >> 63; /* cc = 0 or 1 */ in f256_partial_reduce()
189 w = a[1] - b[1] + cc; in f256_sub()
[all …]
H A Dec_p256_m64.c71 return 1; in api_xoff()
76 * Values may reach up to 2^256-1. Montgomery multiplication is used.
107 w = (unsigned __int128)a[1] + b[1] + (w >> 64); in f256_add()
108 d[1] = (uint64_t)w; in f256_add()
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()
121 d[1] = (uint64_t)w; 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()
[all …]
/freebsd/sys/compat/linux/
H A Dlinux_util.h12 * 1. Redistributions of source code must retain the above copyright
103 #define LINUX_CTR6(f, m, p1, p2, p3, p4, p5, p6) do { \
105 p1, p2, p3, p4, p5, p6); \
110 #define LINUX_CTR1(f, m, p1) LINUX_CTR6(f, m, p1, 0, 0, 0, 0, 0) argument
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, p argument
102 LINUX_CTR6(f,m,p1,p2,p3,p4,p5,p6) global() argument
109 LINUX_CTR1(f,m,p1) 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/tests/sys/cddl/zfs/tests/cli_root/zpool_create/
H A Dzpool_create_001_pos.ksh40 # 1. Create storage pools with a name in ZFS namespace with different
74 0|1)
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\
101 \"/dev/${diskname0}p1 ${diskname1}p1\" \
[all …]
/freebsd/usr.bin/top/
H A Dmachine.c141 "K Compressed, ", "K Uncompressed, ", ":1 Ratio, ",
157 static int onproc = -1;
235 return 1; in find_uid()
243 if (ncpus == 1) in toggle_pcpustats()
264 y_mem += ncpus - 1; in update_layout()
265 y_arc += ncpus - 1; in update_layout()
266 y_carc += ncpus - 1; in update_layout()
267 y_swap += ncpus - 1; in update_layout()
268 y_idlecursor += ncpus - 1; in update_layout()
269 y_message += ncpus - 1; in update_layout()
[all …]
/freebsd/crypto/openssl/crypto/rsa/
H A Drsa_sp800_56b_check.c27 BIGNUM *r = NULL, *p1 = NULL, *q1 = NULL; in ossl_rsa_check_crt_components() local
33 return 1; /* return ok if all components are NULL */ in ossl_rsa_check_crt_components()
38 p1 = BN_CTX_get(ctx); in ossl_rsa_check_crt_components()
42 BN_set_flags(p1, BN_FLG_CONSTTIME); in ossl_rsa_check_crt_components()
44 ret = 1; in ossl_rsa_check_crt_components()
49 /* p1 = p -1 */ in ossl_rsa_check_crt_components()
50 && (BN_copy(p1, rsa->p) != NULL) in ossl_rsa_check_crt_components()
51 && BN_sub_word(p1, 1) in ossl_rsa_check_crt_components()
52 /* q1 = q - 1 */ in ossl_rsa_check_crt_components()
54 && BN_sub_word(q1, 1) in ossl_rsa_check_crt_components()
[all …]
/freebsd/contrib/ncurses/misc/
H A Demx.src103 bold=\E[1m,
110 sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;%?%p7%t;8%;%?%p9%t;11%;m,
124 bold=\E[1m,
130 sgr=\E[0;10%?%p1%t;7%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;%?%p6%t;1%;%?%p7%t;8%;%?%p9%t;12%;m,
144 setab=\E[4%p1%dm,
145 setaf=\E[3%p1%dm,
155 setab=\E[4%p1%dm,
156 setaf=\E[3%p1%dm,
176 cup=\E[%i%p1%d;%p2%dH,
189 # keys F1-F10 (%p1 values outside this range will yield unpredictable results).
[all …]
H A Dterminfo.src41 # Version 10.2.1
229 # These capabilities are used by tack(1m), the terminfo action checker
344 cub=\E[%p1%dD, cud=\E[%p1%dB, cuf=\E[%p1%dC,
345 cuu=\E[%p1%dA, use=ansi+local1,
352 ansi+rca|ANSI relative cursor-addressing (1-based),
353 hpa=\E[%p1%{1}%+%dG, vpa=\E[%p1%{1}%+%dd,
355 hpa=\E[%i%p1%dG, vpa=\E[%i%p1%dd,
357 cup=\E[%i%p1%d;%p2%dH, home=\E[H,
359 rep=%p1%c\E[%p2%{1}%-%db,
363 dl=\E[%p1%dM, il=\E[%p1%dL, use=ansi+idl1,
[all …]
/freebsd/crypto/openssl/crypto/dh/
H A Ddh_pmeth.c63 dctx->subprime_len = -1; in pkey_dh_init()
71 return 1; in pkey_dh_init()
114 return 1; in pkey_dh_copy()
117 static int pkey_dh_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) in pkey_dh_ctrl() argument
122 if (p1 < 256) in pkey_dh_ctrl()
124 dctx->prime_len = p1; in pkey_dh_ctrl()
125 return 1; in pkey_dh_ctrl()
130 dctx->subprime_len = p1; in pkey_dh_ctrl()
131 return 1; in pkey_dh_ctrl()
134 dctx->pad = p1; in pkey_dh_ctrl()
[all …]
/freebsd/tools/test/stress2/misc/
H A Dmmap6.sh10 # 1. Redistributions of source code must retain the above copyright
37 sed '1,/^EOF/d' < $odir/$0 > $dir/wire_no_page.c
38 mycc -o mmap6 -Wall -Wextra wire_no_page.c || exit 1
47 sleep .1
48 done > /dev/null 2>&1
75 char *p1, *p2;
79 if ((fd = open(file, O_RDONLY)) == -1)
80 err(1, "open %s", file);
81 if ((error = fstat(fd, &st)) == -1)
82 err(1, "stat(%s)", file);
[all …]
/freebsd/sys/contrib/device-tree/Bindings/ata/
H A Dceva,ahci-1v84.yaml4 $id: http://devicetree.org/schemas/ata/ceva,ahci-1v84.yaml#
22 const: ceva,ahci-1v84
25 maxItems: 1
28 maxItems: 1
33 maxItems: 1
39 maxItems: 1
87 ceva,p1-cominit-params:
90 OOB timing value for COMINIT parameter for port 1.
92 ceva,p1-cominit-params = /bits/ 8 <CIBGMN CIBGMX CIBGN CINMP>;
99 ceva,p1
[all...]

12345678910>>...36