/freebsd/lib/libutil/tests/ |
H A D | humanize_number_test.c | 1 /*- 3 * Copyright 2013 John-Mark Gurney 9 * 1. Redistributions of source code must retain the above copyright 52 /* tests 0-13 test 1000 suffixes */ 54 { 3, "1 k", (int64_t)500L, HN_DIVISOR_1000, HN_AUTOSCALE, 4 }, 55 { 3, "1 M", (int64_t)500*1000L, HN_DIVISOR_1000, HN_AUTOSCALE, 4 }, 56 { 3, "1 G", (int64_t)500*1000*1000L, HN_DIVISOR_1000, HN_AUTOSCALE, 4 }, 57 { 3, "1 T", (int64_t)500*1000*1000*1000L, HN_DIVISOR_1000, HN_AUTOSCALE, 4 }, 58 { 3, "1 P", (int64_t)500*1000*1000*1000*1000L, HN_DIVISOR_1000, HN_AUTOSCALE, 4 }, 59 { 3, "1 E", (int64_t)500*1000*1000*1000*1000*1000L, HN_DIVISOR_1000, HN_AUTOSCALE, 4 }, [all …]
|
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/aggs/ |
H A D | tst.quantmany.d.out | 2 1 3 value ------------- Distribution ------------- count 5 1 |@@@@@@@@@@@@@ 1 10 value ------------- Distribution ------------- count 11 -4 | 0 12 -2 @@@@| -2 13 -1 | 0 15 1 |@@ 1 21 value ------------- Distribution ------------- count 22 -8 | 0 [all …]
|
/freebsd/contrib/unbound/compat/ |
H A D | snprintf.c | 1 /* snprintf - compatibility implementation of snprintf, vsnprintf 48 /* #define SNPRINTF_TEST 1 */ 60 * mostly in formatting and range (e+-16), for %f and %g. 63 * This includes width, precision, flags 0- +, and *(arg for wid,prec). 81 while(num--) { in print_pad() 82 if(*left > 1) { in print_pad() 84 (*left)--; in print_pad() 95 return '-'; in get_negsign() 112 i = 1; in print_dec() 129 i = 1; in print_dec_l() [all …]
|
/freebsd/contrib/ldns/compat/ |
H A D | snprintf.c | 1 /* snprintf - compatibility implementation of snprintf, vsnprintf 47 /* #define SNPRINTF_TEST 1 */ 59 * mostly in formatting and range (e+-16), for %f and %g. 62 * This includes width, precision, flags 0- +, and *(arg for wid,prec). 80 while(num--) { in print_pad() 81 if(*left > 1) { in print_pad() 83 (*left)--; in print_pad() 94 return '-'; in get_negsign() 111 i = 1; in print_dec() 128 i = 1; in print_dec_l() [all …]
|
/freebsd/usr.bin/limits/ |
H A D | limits.c | 1 /*- 9 * 1. Redistributions of source code must retain the above copyright 77 { "", "infinity", "Resource limits%s%s:\n", "-max", "-cur", "", 79 { " cputime%-4s %8s", " secs\n", 1 }, 80 { " filesize%-4s %8s", " kB\n", 1024 }, 81 { " datasize%-4s %8s", " kB\n", 1024 }, 82 { " stacksize%-4s %8s", " kB\n", 1024 }, 83 { " coredumpsize%-4s %8s", " kB\n", 1024 }, 84 { " memoryuse%-4s %8s", " kB\n", 1024 }, 85 { " memorylocked%-4s %8s", " kB\n", 1024 }, [all …]
|
/freebsd/sys/compat/linuxkpi/common/include/linux/ |
H A D | sizes.h | 1 /*- 10 * 1. Redistributions of source code must retain the above copyright 32 #define SZ_1K (1024 * 1) 33 #define SZ_2K (1024 * 2) 34 #define SZ_4K (1024 * 4) 35 #define SZ_8K (1024 * 8) 36 #define SZ_16K (1024 * 16) 37 #define SZ_32K (1024 * 32) 38 #define SZ_64K (1024 * 64) 39 #define SZ_128K (1024 * 128) [all …]
|
/freebsd/contrib/libarchive/libarchive/test/ |
H A D | test_write_format_tar_sparse.c | 1 /*- 2 * Copyright (c) 2003-2010 Tim Kientzle 9 * 1. Redistributions of source code must retain the above copyright 40 char buff3[1024]; in test_1() 45 for (blocksize = 1; blocksize < 100000; blocksize += blocksize + 3) { in test_1() 67 archive_entry_set_mtime(ae, 1, 10); in test_1() 68 assertEqualInt(1, archive_entry_mtime(ae)); in test_1() 84 ws = 0x81000 - i; in test_1() 97 assertEqualInt(((11264 - 1)/blocksiz in test_1() [all...] |
/freebsd/crypto/openssl/test/recipes/30-test_evp_data/ |
H A D | evppkey_dsa.txt | 2 # Copyright 2001-2024 The OpenSSL Project Authors. All Rights Reserved. 18 PrivateKey=DSA-1024 19 -----BEGIN PRIVATE KEY----- 27 -----END PRIVATE KEY----- 29 PublicKey=DSA-1024-PUBLIC 30 -----BEGIN PUBLIC KEY----- 39 9zCaT/vYsLD7/T7rF9AF/jV+LnkGJCzLbDYF04IkhtLNHOQob+Uc8PWB78e/1Lc4 41 -----END PUBLIC KEY----- 43 PrivPubKeyPair = DSA-1024:DSA-1024-PUBLIC 47 Verify = DSA-1024 [all …]
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | fmt_scaled.c | 9 * 1. Redistributions of source code must retain the above copyright 35 * "Human-readable" output uses 4 digits max, and puts a unit suffix at 36 * the end. Makes output compact and easy-to-read esp. on huge disks. 53 NONE = 0, KILO = 1, MEGA = 2, GIGA = 3, TERA = 4, PETA = 5, EXA = 6 60 1LL, 61 1024LL, 62 1024LL*1024, 63 1024LL*1024*1024, 64 1024LL*1024*1024*1024, 65 1024LL*1024*1024*1024*1024, [all …]
|
/freebsd/sys/i386/include/ |
H A D | vmparam.h | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 15 * 1. Redistributions of source code must retain the above copyright 38 #define _MACHINE_VMPARAM_H_ 1 47 #define MAXTSIZ (128UL*1024*1024) /* max text size */ 49 #define DFLDSIZ (128UL*1024*1024) /* initial data size limit */ 52 #define MAXDSIZ (512UL*1024*1024) /* max data size */ 55 #define DFLSSIZ (8UL*1024*1024) /* initial stack size limit */ 58 #define MAXSSIZ (64UL*1024*1024) /* max stack size */ 61 #define SGROWSIZ (128UL*1024) /* amount to grow stack */ [all …]
|
/freebsd/sys/powerpc/include/ |
H A D | vmparam.h | 1 /*- 2 * SPDX-License-Identifier: BSD-4-Clause 11 * 1. Redistributions of source code must retain the above copyright 46 #define MAXTSIZ (1*1024*1024*1024) /* max text size */ 50 #define DFLDSIZ (128*1024*1024) /* default data size */ 55 #define MAXDSIZ (32UL*1024*1024*1024) /* max data size */ 57 #define MAXDSIZ (1*1024*1024*1024) /* max data size */ 62 #define DFLSSIZ (8*1024*1024) /* default stack size */ 67 #define MAXSSIZ (512*1024*1024) /* max stack size */ 69 #define MAXSSIZ (64*1024*1024) /* max stack size */ [all …]
|
/freebsd/contrib/file/magic/Magdir/ |
H A D | perl | 1 #------------------------------------------------------------------------------ 3 # perl: file(1) magic for Larry Wall's perl language. 7 # Send additions to <perl5-porters@perl.org> 8 0 search/1024 eval\ "exec\ perl Perl script text 9 !:mime text/x-perl 10 0 search/1024 eval\ "exec\ /bin/perl Perl script text 11 !:mime text/x-perl 12 0 search/1024 eval\ "exec\ /usr/bin/perl Perl script text 13 !:mime text/x-perl 14 0 search/1024 eval\ "exec\ /usr/local/bin/perl Perl script text [all …]
|
/freebsd/sys/dev/agp/ |
H A D | agp_nvidia.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 10 * 1. Redistributions of source code must retain the above copyright 135 sc->wbc_mask = 0x00010000; in agp_nvidia_attach() 138 sc->wbc_mask = 0x80000000; in agp_nvidia_attach() 146 sc->dev = dev; in agp_nvidia_attach() 148 /* Memory Controller 1 */ in agp_nvidia_attach() 149 sc->mc1_dev = pci_find_bsf(pci_get_bus(dev), 0, 1); in agp_nvidia_attach() 150 if (sc->mc1_dev == NULL) { in agp_nvidia_attach() 152 "Unable to find NVIDIA Memory Controller 1.\n"); in agp_nvidia_attach() [all …]
|
H A D | agp_apple.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 10 * 1. Redistributions of source code must retain the above copyright 116 sc->needs_2x_reset = 0; in agp_apple_attach() 117 sc->u3 = 0; in agp_apple_attach() 121 sc->needs_2x_reset = 1; in agp_apple_attach() 126 sc->u3 = 1; in agp_apple_attach() 132 agp_set_aperture_resource(dev, -1); in agp_apple_attach() 138 sc->aperture = 256*1024*1024; in agp_apple_attach() 140 for (sc->aperture = 256*1024*1024; sc->aperture >= 4*1024*1024; in agp_apple_attach() [all …]
|
/freebsd/tests/sys/geom/class/concat/ |
H A D | append2.sh | 10 name=$1 14 if [ $actual -eq $expected ]; then 15 echo "ok - Size is ${actual}" 17 echo "not ok - Size is ${actual}" 23 echo '1..4' 27 f1=$(mktemp) || exit 1 28 truncate -s $((1024 * 1024 + $ss)) $f1 29 f2=$(mktemp) || exit 1 30 truncate -s $((1024 * 1024 + $ss)) $f2 31 f3=$(mktemp) || exit 1 [all …]
|
/freebsd/tools/test/stress2/tools/ |
H A D | swap.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 10 * 1. Redistributions of source code must retain the above copyright 51 fprintf(stderr, "Usage: %s [-d delay] [-p pct] [-t runtime] " in usage() 52 "[-v]\n", in usage() 54 exit(1); in usage() 63 if (sysctlbyname("hw.usermem", &mem, &nlen, NULL, 0) == -1) in usermem() 64 err(1, "sysctlbyname() %s:%d", __FILE__, __LINE__); in usermem() 68 mem / 1024 / 1024); in usermem() 84 if (sysctlnametomib("vm.swap_info", mib, &mibsize) == -1) in swap() [all …]
|
/freebsd/sys/dev/flash/ |
H A D | mx25l.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 11 * 1. Redistributions of source code must retain the above copyright 66 * results in a completely un-usable system. 97 #define TSTATE_STOPPING 1 100 #define M25PXX_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx) 101 #define M25PXX_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx) 103 mtx_init(&_sc->sc_mtx, device_get_nameunit(_sc->sc_dev), \ 105 #define M25PXX_LOCK_DESTROY(_sc) mtx_destroy(&_sc->sc_mtx); 106 #define M25PXX_ASSERT_LOCKED(_sc) mtx_assert(&_sc->sc_mtx, MA_OWNED); [all …]
|
/freebsd/contrib/netbsd-tests/sbin/resize_ffs/ |
H A D | t_grow_swapped.sh | 12 # 1. Redistributions of source code must retain the above copyright 34 # where 'numdata' is the number of data directories to copy - this is 36 # created fs. 'level' is the fs-level (-O 0,1,2) passed to newfs. 39 # v0 == newfs -O0 (4.3BSD layout, ffsv1 superblock) 41 test_case grow_16M_v0_8192 resize_ffs 8192 1024 32768 131072 0 28 swap 47 test_case grow_24M_v0_8192 resize_ffs 8192 1024 49152 65536 0 42 swap 52 test_case grow_32M_v0_8192 resize_ffs 8192 1024 65536 131072 0 56 swap 57 test_case grow_48M_v0_8192 resize_ffs 8192 1024 98304 131072 0 84 swap 62 test_case grow_64M_v0_8192 resize_ffs 8192 1024 131072 262144 0 111 swap 67 # v1 == newfs -O1 (FFSv1, v2 superblock layout) [all …]
|
H A D | t_grow.sh | 12 # 1. Redistributions of source code must retain the above copyright 34 # where 'numdata' is the number of data directories to copy - this is 36 # created fs. 'level' is the fs-level (-O 0,1,2) passed to newfs. 39 # v0 == newfs -O0 (4.3BSD layout, ffsv1 superblock) 41 test_case grow_16M_v0_8192 resize_ffs 8192 1024 32768 131072 0 28 47 test_case grow_24M_v0_8192 resize_ffs 8192 1024 49152 65536 0 42 52 test_case grow_32M_v0_8192 resize_ffs 8192 1024 65536 131072 0 56 57 test_case grow_48M_v0_8192 resize_ffs 8192 1024 98304 131072 0 84 62 test_case grow_64M_v0_8192 resize_ffs 8192 1024 131072 262144 0 111 67 # v1 == newfs -O1 (FFSv1, v2 superblock layout) [all …]
|
/freebsd/crypto/openssl/test/ssl-tests/ |
H A D | 13-fragmentation.cnf.in | 1 # -*- mode: perl; -*- 2 # Copyright 2016-2020 The OpenSSL Project Authors. All Rights Reserved. 21 name => "one-fragment-minus-app-data", 29 name => "one-fragment-app-data", 37 name => "one-fragment-plus-app-data", 45 name => "small-app-data", 49 ApplicationData => 4 * 1024 + 1, 53 name => "small-app-data-large-fragment-size", 57 ApplicationData => 4 * 1024 + 1, 62 name => "medium-app-data", [all …]
|
H A D | 13-fragmentation.cnf | 5 test-0 = 0-one-fragment-minus-app-data 6 test-1 = 1-one-fragment-app-data 7 test-2 = 2-one-fragment-plus-app-data 8 test-3 = 3-small-app-data 9 test-4 = 4-small-app-data-large-fragment-size 10 test-5 = 5-medium-app-data 11 test-6 = 6-medium-plus-app-data 12 test-7 = 7-large-app-data 13 test-8 = 8-large-app-data-large-fragment-size 14 test-9 = 9-large-app-data-odd-fragment-size [all …]
|
/freebsd/tools/test/stress2/testcases/swap/ |
H A D | swap.c | 1 /*- 8 * 1. Redistributions of source code must retain the above copyright 41 #define MINLEFT (1792LL * 1024 * 1024) 43 #define MINLEFT (1024LL * 1024 * 1024) 61 if (op->hog == 0) { in setup() 66 if (op->hog == 1) { in setup() 71 if (op->hog == 2) { in setup() 76 if (op->hog >= 3) { in setup() 82 mi = mx - 10; in setup() 90 _exit(1); in setup() [all …]
|
/freebsd/usr.sbin/makefs/tests/ |
H A D | makefs_zfs_tests.sh | 1 #- 2 # SPDX-License-Identifier: BSD-2-Clause 4 # Copyright (c) 2022-2023 The FreeBSD Foundation 12 # 1. Redistributions of source code must retain the above copyright 31 MAKEFS="makefs -t zfs -o verify-txgs=true" 50 if [ -c /dev/"$md" ]; then 51 mdconfig -d -u "$md" 57 atf_check -e empty -o save:$TEST_MD_DEVICE_FILE -s exit:0 \ 58 mdconfig -a -f $TEST_IMAGE 59 atf_check -o ignore -e empty -s exit:0 \ [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Headers/ |
H A D | amxintrin.h | 1 /*===--------------- amxintrin.h - AMX intrinsics -*- C/C++ -*---------------=== 5 * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 *===------------------------------------------------------------------------=== 20 __attribute__((__always_inline__, __nodebug__, __target__("amx-tile"))) 22 __attribute__((__always_inline__, __nodebug__, __target__("amx-int8"))) 24 __attribute__((__always_inline__, __nodebug__, __target__("amx-bf16"))) 26 __attribute__((__always_inline__, __nodebug__, __target__("amx-fp16"))) 28 /// Load tile configuration from a 64-byte memory location specified by 40 /// A pointer to 512-bits configuration 46 /// Stores the current tile configuration to a 64-byte memory location [all …]
|
/freebsd/sys/arm/include/ |
H A D | vmparam.h | 3 /*- 4 * SPDX-License-Identifier: BSD-3-Clause 12 * 1. Redistributions of source code must retain the above copyright 45 #define MAXTSIZ (256UL*1024*1024) /* max text size */ 48 #define DFLDSIZ (128UL*1024*1024) /* initial data size limit */ 51 #define MAXDSIZ (512UL*1024*1024) /* max data size */ 54 #define DFLSSIZ (4UL*1024*1024) /* initial stack size limit */ 57 #define MAXSSIZ (64UL*1024*1024) /* max stack size */ 60 #define SGROWSIZ (128UL*1024) /* amount to grow stack */ 77 * the low-order 30 bits of this must match the low-order bits of the physical [all …]
|