Home
last modified time | relevance | path

Searched refs:n2 (Results 1 – 25 of 251) sorted by relevance

1234567891011

/freebsd/contrib/pjdfstest/tests/rename/
H A D09.t14 n2=`namegen`
32 create_file ${type} ${n0}/${n2} 65534 65534
33 inode=`${fstest} lstat ${n0}/${n2} inode`
37 expect 0 -u 65534 -g 65534 rename ${n0}/${n2} ${n1}/${n3}
38 expect ENOENT lstat ${n0}/${n2} inode
40 expect 0 -u 65534 -g 65534 rename ${n1}/${n3} ${n0}/${n2}
41 expect ${inode} lstat ${n0}/${n2} inode
45 expect 0 unlink ${n0}/${n2}
50 create_file ${type} ${n0}/${n2} ${id} ${id}
51 inode=`${fstest} lstat ${n0}/${n2} inode`
[all …]
H A D10.t14 n2=`namegen`
31 create_file ${type} ${n0}/${n2} 65534 65534
32 inode=`${fstest} lstat ${n0}/${n2} inode`
36 expect 0 -u 65534 -g 65534 rename ${n0}/${n2} ${n1}/${n3}
37 expect ENOENT lstat ${n0}/${n2} inode
39 expect 0 -u 65534 -g 65534 rename ${n1}/${n3} ${n0}/${n2}
40 expect ${inode} lstat ${n0}/${n2} inode
44 expect 0 unlink ${n0}/${n2}
49 create_file ${type} ${n0}/${n2} 65534 65534
50 inode=`${fstest} lstat ${n0}/${n2} inode`
[all …]
H A D21.t14 n2=`namegen`
17 expect 0 mkdir ${n2} 0777
24 expect 0 mkdir ${n2}/${n0} 0700
25 expect "0|EACCES" -u 65534 -g 65534 rename ${n2}/${n0} ${n2}/${n1}
26 expect "0|EACCES" -u 65534 -g 65534 rename ${n2}/${n1} ${n2}/${n0}
32 expect "0|EACCES" -u 65534 -g 65534 rename ${n2}/${n0} ${n3}/${n1}
34 expect "0|ENOENT" rmdir ${n2}/${n0}
35 expect ENOENT rmdir ${n2}/${n0}
41 expect 0 create ${n2}/${n0} 0644
42 expect 0 -u 65534 -g 65534 rename ${n2}/${n0} ${n3}/${n1}
[all …]
H A D04.t14 n2=`namegen`
24 expect 0 mkdir ${n2} 0755
25 expect 0 chown ${n2} 65534 65534
28 expect 0 -u 65534 -g 65534 rename ${n1}/${n3} ${n2}/${n4}
29 expect 0 -u 65534 -g 65534 rename ${n2}/${n4} ${n1}/${n3}
33 expect EACCES -u 65534 -g 65534 rename ${n1}/${n3} ${n2}/${n4}
36 expect 0 chmod ${n2} 0644
37 expect EACCES -u 65534 -g 65534 rename ${n1}/${n3} ${n2}/${n4}
41 expect 0 rmdir ${n2}
/freebsd/contrib/pjdfstest/tests/chmod/
H A D07.t18 n2=`namegen`
27 expect 0 -u 65534 -g 65534 create ${n1}/${n2} 0644
28 expect 0 -u 65534 -g 65534 chmod ${n1}/${n2} 0642
29 expect 0642 stat ${n1}/${n2} mode
30 expect EPERM -u 65533 -g 65533 chmod ${n1}/${n2} 0641
31 expect 0642 stat ${n1}/${n2} mode
32 expect 0 chown ${n1}/${n2} 0 0
33 expect EPERM -u 65534 -g 65534 chmod ${n1}/${n2} 0641
34 expect 0642 stat ${n1}/${n2} mode
35 expect 0 unlink ${n1}/${n2}
[all …]
H A D05.t18 n2=`namegen`
25 expect 0 -u 65534 -g 65534 create ${n1}/${n2} 0644
26 expect 0 -u 65534 -g 65534 chmod ${n1}/${n2} 0642
27 expect 0642 -u 65534 -g 65534 stat ${n1}/${n2} mode
29 expect EACCES -u 65534 -g 65534 chmod ${n1}/${n2} 0620
31 expect 0 -u 65534 -g 65534 chmod ${n1}/${n2} 0420
32 expect 0420 -u 65534 -g 65534 stat ${n1}/${n2} mode
35 expect EACCES -u 65534 -g 65534 lchmod ${n1}/${n2} 0410
37 expect 0 -u 65534 -g 65534 lchmod ${n1}/${n2} 0710
38 expect 0710 -u 65534 -g 65534 stat ${n1}/${n2} mode
[all …]
H A D11.t18 n2=`namegen`
29 expect 0 symlink ${n1} ${n2}
30 expect 0 chmod ${n2} 01700
32 expect 0 unlink ${n2}
56 expect 0 symlink ${n1} ${n2}
57 expect 0 chmod ${n2} 01700
59 expect 0 unlink ${n2}
65 expect 0 symlink ${n1} ${n2}
70 expect 0 -u 65534 -g 65534 chmod ${n2} 01640
76 expect EFTYPE -u 65534 -g 65534 chmod ${n2} 01644
[all …]
/freebsd/contrib/mtree/
H A Dspecspec.c106 mismatch(NODE *n1, NODE *n2, int differ, char const *path) in mismatch() argument
109 if (n2 == NULL) { in mismatch()
115 shownode(n2, differ, path); in mismatch()
123 shownode(n2, differ, path); in mismatch()
128 compare_nodes(NODE *n1, NODE *n2, char const *path) in compare_nodes() argument
134 if (n2 != NULL && n2->type == F_LINK) in compare_nodes()
135 n2->flags &= ~F_MODE; in compare_nodes()
137 if (n1 == NULL && n2 != NULL) { in compare_nodes()
138 differs = n2->flags; in compare_nodes()
139 mismatch(n1, n2, differs, path); in compare_nodes()
[all …]
/freebsd/crypto/openssl/crypto/bn/
H A Dbn_mul.c175 void bn_mul_recursive(BN_ULONG *r, BN_ULONG *a, BN_ULONG *b, int n2, in bn_mul_recursive() argument
178 int n = n2 / 2, c1, c2; in bn_mul_recursive()
185 if (n2 == 4) { in bn_mul_recursive()
194 if (n2 == 8 && dna == 0 && dnb == 0) { in bn_mul_recursive()
200 if (n2 < BN_MUL_RECURSIVE_SIZE_NORMAL) { in bn_mul_recursive()
201 bn_mul_normal(r, a, n2 + dna, b, n2 + dnb); in bn_mul_recursive()
203 memset(&r[2 * n2 + dna + dnb], 0, in bn_mul_recursive()
247 bn_mul_comba4(&(t[n2]), t, &(t[n])); in bn_mul_recursive()
249 memset(&t[n2], 0, sizeof(*t) * 8); in bn_mul_recursive()
252 bn_mul_comba4(&(r[n2]), &(a[n]), &(b[n])); in bn_mul_recursive()
[all …]
H A Dbn_sqr.c156 void bn_sqr_recursive(BN_ULONG *r, const BN_ULONG *a, int n2, BN_ULONG *t) in bn_sqr_recursive() argument
158 int n = n2 / 2; in bn_sqr_recursive()
162 if (n2 == 4) { in bn_sqr_recursive()
169 } else if (n2 == 8) { in bn_sqr_recursive()
177 if (n2 < BN_SQR_RECURSIVE_SIZE_NORMAL) { in bn_sqr_recursive()
178 bn_sqr_normal(r, a, n2, t); in bn_sqr_recursive()
192 p = &(t[n2 * 2]); in bn_sqr_recursive()
195 bn_sqr_recursive(&(t[n2]), t, n, p); in bn_sqr_recursive()
197 memset(&t[n2], 0, sizeof(*t) * n2); in bn_sqr_recursive()
199 bn_sqr_recursive(&(r[n2]), &(a[n]), n, p); in bn_sqr_recursive()
[all …]
/freebsd/contrib/pjdfstest/tests/chown/
H A D07.t14 n2=`namegen`
24 create_file ${type} ${n1}/${n2} 65534 65534
25 expect EPERM -u 65534 -g 65534 chown ${n1}/${n2} 65533 65533
26 expect EPERM -u 65533 -g 65533 chown ${n1}/${n2} 65534 65534
27 expect EPERM -u 65533 -g 65533 chown ${n1}/${n2} 65533 65533
28 expect EPERM -u 65534 -g 65534 -- chown ${n1}/${n2} -1 65533
29 expect 0 -u 65534 -g 65534 symlink ${n2} ${n1}/${n3}
36 expect 0 rmdir ${n1}/${n2}
38 expect 0 unlink ${n1}/${n2}
41 create_file ${type} ${n1}/${n2} 65534 65534
[all …]
H A D05.t14 n2=`namegen`
21 expect 0 -u 65534 -g 65534 create ${n1}/${n2} 0644
22 expect 0 -u 65534 -g 65533,65534 -- chown ${n1}/${n2} -1 65533
23 expect 65534,65533 -u 65534 -g 65534 stat ${n1}/${n2} uid,gid
25 expect EACCES -u 65534 -g 65533,65534 -- chown ${n1}/${n2} -1 65534
26 expect EACCES -u 65534 -g 65533,65534 -- lchown ${n1}/${n2} -1 65534
28 expect 65534,65533 -u 65534 -g 65534 stat ${n1}/${n2} uid,gid
29 expect 0 -u 65534 -g 65533,65534 -- chown ${n1}/${n2} -1 65534
30 expect 65534,65534 -u 65534 -g 65534 stat ${n1}/${n2} uid,gid
31 expect 0 -u 65534 -g 65533,65534 -- lchown ${n1}/${n2} -1 65533
[all …]
/freebsd/contrib/pjdfstest/tests/link/
H A D13.t25 n2=`namegen`
31 expect 0 link ${n0}/${n1} ${n0}/${n2}
33 expect 0 unlink ${n0}/${n2}
37 expect EPERM link ${n0}/${n1} ${n0}/${n2}
40 expect 0 link ${n0}/${n1} ${n0}/${n2}
42 expect 0 unlink ${n0}/${n2}
46 expect 0 link ${n0}/${n1} ${n0}/${n2}
49 expect 0 unlink ${n0}/${n2}
53 expect 0 link ${n0}/${n1} ${n0}/${n2}
56 expect 0 unlink ${n0}/${n2}
[all …]
H A D06.t14 n2=`namegen`
24 expect 0 mkdir ${n2} 0755
25 expect 0 chown ${n2} 65534 65534
28 expect 0 -u 65534 -g 65534 link ${n1}/${n3} ${n2}/${n4}
29 expect 0 -u 65534 -g 65534 unlink ${n2}/${n4}
33 expect EACCES -u 65534 -g 65534 link ${n1}/${n3} ${n2}/${n4}
36 expect 0 chmod ${n2} 0644
37 expect EACCES -u 65534 -g 65534 link ${n1}/${n3} ${n2}/${n4}
41 expect 0 rmdir ${n2}
H A D07.t14 n2=`namegen`
24 expect 0 mkdir ${n2} 0755
25 expect 0 chown ${n2} 65534 65534
28 expect 0 -u 65534 -g 65534 link ${n1}/${n3} ${n2}/${n4}
29 expect 0 -u 65534 -g 65534 unlink ${n2}/${n4}
31 expect 0 chmod ${n2} 0555
32 expect EACCES -u 65534 -g 65534 link ${n1}/${n3} ${n2}/${n4}
39 expect 0 rmdir ${n2}
/freebsd/tests/sys/netgraph/
H A Dng_macfilter_test.sh320 n2=$(( ( ITERATIONS - 1 ) * ( SUBITERATIONS + 1 ) ))
321 test_eq $n $n2 'MACs in table for out1'
323 n2=$(( 1 * ( SUBITERATIONS + 1 ) ))
324 test_eq $n $n2 'MACs in table for out2'
326 n2=0
327 test_eq $n $n2 'MACs in table for out3'
342 n2=$(( ( ITERATIONS - 1 ) * ( SUBITERATIONS + 1 - 1 ) ))
343 test_eq $n $n2 'MACs in table for out1'
345 n2=$(( 1 * ( SUBITERATIONS + 1 - 1 ) ))
346 test_eq $n $n2 'MACs in table for out2'
[all …]
/freebsd/contrib/pjdfstest/tests/chflags/
H A D05.t16 n2=`namegen`
23 expect 0 -u 65534 -g 65534 create ${n1}/${n2} 0644
24 expect 0 -u 65534 -g 65534 chflags ${n1}/${n2} UF_NODUMP
25 expect UF_NODUMP -u 65534 -g 65534 stat ${n1}/${n2} flags
26 expect 0 -u 65534 -g 65534 chflags ${n1}/${n2} none
28 expect EACCES -u 65534 -g 65534 chflags ${n1}/${n2} UF_NODUMP
30 expect 0 -u 65534 -g 65534 chflags ${n1}/${n2} UF_NODUMP
31 expect UF_NODUMP -u 65534 -g 65534 stat ${n1}/${n2} flags
32 expect 0 -u 65534 -g 65534 chflags ${n1}/${n2} none
33 expect 0 -u 65534 -g 65534 unlink ${n1}/${n2}
/freebsd/lib/msun/ld80/
H A Ds_expl.c163 int k, n, n2; in expm1l() local
223 n2 = (unsigned)n % INTERVALS; in expm1l()
241 t = (long double)tbl[n2].lo + tbl[n2].hi; in expm1l()
244 t = SUM2P(tbl[n2].hi - 1, tbl[n2].lo * (r1 + 1) + t * q + in expm1l()
245 tbl[n2].hi * r1); in expm1l()
249 t = SUM2P(tbl[n2].hi - 2, tbl[n2].lo * (r1 + 1) + t * q + in expm1l()
250 tbl[n2].hi * r1); in expm1l()
254 t = SUM2P(tbl[n2].hi, tbl[n2].lo + t * (q + r1)); in expm1l()
258 t = SUM2P(tbl[n2].hi, tbl[n2].lo + t * (q + r1)); in expm1l()
268 t = SUM2P(tbl[n2].hi, tbl[n2].lo - twomk + t * (q + r1)); in expm1l()
[all …]
/freebsd/contrib/pjdfstest/tests/truncate/
H A D05.t14 n2=`namegen`
21 expect 0 -u 65534 -g 65534 create ${n1}/${n2} 0644
22 expect 0 -u 65534 -g 65534 truncate ${n1}/${n2} 123
23 expect 123 -u 65534 -g 65534 stat ${n1}/${n2} size
25 expect EACCES -u 65534 -g 65534 truncate ${n1}/${n2} 1234
27 expect 123 -u 65534 -g 65534 stat ${n1}/${n2} size
28 expect 0 -u 65534 -g 65534 truncate ${n1}/${n2} 1234
29 expect 1234 -u 65534 -g 65534 stat ${n1}/${n2} size
30 expect 0 -u 65534 -g 65534 unlink ${n1}/${n2}
/freebsd/contrib/pjdfstest/tests/ftruncate/
H A D05.t14 n2=`namegen`
21 expect 0 -u 65534 -g 65534 create ${n1}/${n2} 0644
22 expect 0 -u 65534 -g 65534 truncate ${n1}/${n2} 123
23 expect 123 -u 65534 -g 65534 stat ${n1}/${n2} size
25 expect EACCES -u 65534 -g 65534 truncate ${n1}/${n2} 1234
27 expect 123 -u 65534 -g 65534 stat ${n1}/${n2} size
28 expect 0 -u 65534 -g 65534 truncate ${n1}/${n2} 1234
29 expect 1234 -u 65534 -g 65534 stat ${n1}/${n2} size
30 expect 0 -u 65534 -g 65534 unlink ${n1}/${n2}
/freebsd/contrib/libarchive/libarchive/test/
H A Dtest_compat_lz4.c89 const char *n2[7] = { "xfile", "README", "NEWS", NULL }; in DEFINE_TEST()
100 verify("test_compat_lz4_B4.tar.lz4.uu", n2); in DEFINE_TEST()
102 verify("test_compat_lz4_B5.tar.lz4.uu", n2); in DEFINE_TEST()
104 verify("test_compat_lz4_B6.tar.lz4.uu", n2); in DEFINE_TEST()
106 verify("test_compat_lz4_B7.tar.lz4.uu", n2); in DEFINE_TEST()
108 verify("test_compat_lz4_B4BD.tar.lz4.uu", n2); in DEFINE_TEST()
110 verify("test_compat_lz4_B5BD.tar.lz4.uu", n2); in DEFINE_TEST()
112 verify("test_compat_lz4_B6BD.tar.lz4.uu", n2); in DEFINE_TEST()
114 verify("test_compat_lz4_B7BD.tar.lz4.uu", n2); in DEFINE_TEST()
116 verify("test_compat_lz4_B4BDBX.tar.lz4.uu", n2); in DEFINE_TEST()
90 const char *n2[7] = { "xfile", "README", "NEWS", NULL }; DEFINE_TEST() local
[all...]
/freebsd/lib/msun/ld128/
H A Ds_expl.c205 int k, n, n2; in expm1l() local
269 n2 = (unsigned)n % INTERVALS; in expm1l()
288 t = tbl[n2].lo + tbl[n2].hi; in expm1l()
291 t = SUM2P(tbl[n2].hi - 1, tbl[n2].lo * (r1 + 1) + t * q + in expm1l()
292 tbl[n2].hi * r1); in expm1l()
296 t = SUM2P(tbl[n2].hi - 2, tbl[n2].lo * (r1 + 1) + t * q + in expm1l()
297 tbl[n2].hi * r1); in expm1l()
301 t = SUM2P(tbl[n2].hi, tbl[n2].lo + t * (q + r1)); in expm1l()
305 t = SUM2P(tbl[n2].hi, tbl[n2].lo + t * (q + r1)); in expm1l()
315 t = SUM2P(tbl[n2].hi, tbl[n2].lo - twomk + t * (q + r1)); in expm1l()
[all …]
/freebsd/contrib/pjdfstest/tests/utimensat/
H A D05.t16 n2=`namegen`
30 ln -s ${n0} ${n2}
33 expect 0 open . O_RDONLY : utimensat 0 ${n2} $DATE3 0 $DATE4 0 AT_SYMLINK_NOFOLLOW
36 expect $DATE3 lstat ${n2} atime
37 expect $DATE4 lstat ${n2} mtime
39 expect 0 open . O_RDONLY : utimensat 0 ${n2} $DATE5 0 $DATE6 0 0
46 test_check "$DATE5" -ne `"$fstest" lstat ${n2} atime`
47 expect $DATE4 lstat ${n2} mtime
50 expect 0 unlink ${n2}
/freebsd/crypto/openssl/test/testutil/
H A Dformat_output.c49 size_t n1, n2, i; in test_fail_string_common() local
72 n1 = n2 = 0; in test_fail_string_common()
79 b2[n2 = l2 > width ? width : l2] = 0; in test_fail_string_common()
80 for (i = 0; i < n2; i++) in test_fail_string_common()
85 if (n1 > 0 && n2 > 0) { in test_fail_string_common()
86 const size_t j = n1 < n2 ? n1 : n2; in test_fail_string_common()
97 if (n1 == n2 && !diff) { in test_fail_string_common()
98 test_printf_stderr("%4u: '%s'\n", cnt, n2 > n1 ? b2 : b1); in test_fail_string_common()
106 else if (n2 > 0) in test_fail_string_common()
114 m2 += n2; in test_fail_string_common()
[all …]
/freebsd/lib/libc/tests/sys/
H A Dqueue_test.c46 } *n1, *n2, *n3, *np; in ATF_TC_BODY() local
84 n2 = malloc(sizeof(struct entry)); in ATF_TC_BODY()
85 ATF_REQUIRE(n2 != NULL); in ATF_TC_BODY()
86 n2->i = i++; in ATF_TC_BODY()
88 SLIST_INSERT_AFTER(n1, n2, entries); in ATF_TC_BODY()
94 SLIST_INSERT_AFTER(n2, n3, entries); in ATF_TC_BODY()
113 ATF_REQUIRE_EQ(SLIST_FIRST(&head), n2); in ATF_TC_BODY()
127 SLIST_REMOVE_AFTER(n2, entries); in ATF_TC_BODY()
140 ATF_REQUIRE_EQ(SLIST_FIRST(&head), n2); in ATF_TC_BODY()
157 } *n1, *n2, *n3, *np; in ATF_TC_BODY() local
[all …]

1234567891011