| /freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/funcs/ |
| H A D | tst.index.d.out | 5 printf("perl => index(\"foobarbaz\", \"barbaz\") = %d\n", 7 printf(" D => index(\"foobarbaz\", \"barbaz\") = 3\n"); 12 printf("perl => rindex(\"foobarbaz\", \"barbaz\") = %d\n", 14 printf(" D => rindex(\"foobarbaz\", \"barbaz\") = 3\n"); 19 printf("perl => index(\"foofoofoo\", \"foo\") = %d\n", 21 printf(" D => index(\"foofoofoo\", \"foo\") = 0\n"); 26 printf("perl => rindex(\"foofoofoo\", \"foo\") = %d\n", 28 printf(" D => rindex(\"foofoofoo\", \"foo\") = 6\n"); 33 printf("perl => index(\"boofoofoo\", \"foo\") = %d\n", 35 printf(" D => index(\"boofoofoo\", \"foo\") = 3\n"); [all …]
|
| /freebsd/contrib/elftoolchain/libelftc/ |
| H A D | libelftc_dem_arm.c | 1 /*- 8 * 1. Redistributions of source code must retain the above copyright 40 ELFTC_VCSID("$Id: libelftc_dem_arm.c 3513 2016-12-29 07:04:22Z kaiwang27 $"); 49 * Bjarne Stroustrup, AT&T Bell Laboratories 1990, pp 122-126. 71 #define VEC_PUSH_STR(d,s) vector_str_push((d), (s), strlen((s))) argument 100 struct demangle_data d; in cpp_demangle_ARM() local 108 if (init_demangle_data(&d) == false) in cpp_demangle_ARM() 114 d.p = org; in cpp_demangle_ARM() 115 if (read_func_name(&d) == false) in cpp_demangle_ARM() 118 if (d.type == ENCODE_OP_CT) { in cpp_demangle_ARM() [all …]
|
| H A D | libelftc_dem_gnu2.c | 1 /*- 8 * 1. Redistributions of source code must retain the above copyright 40 ELFTC_VCSID("$Id: libelftc_dem_gnu2.c 3513 2016-12-29 07:04:22Z kaiwang27 $"); 69 #define VEC_PUSH_STR(d,s) vector_str_push((d), (s), strlen((s))) argument 98 struct demangle_data d; in cpp_demangle_gnu2() local 106 if (init_demangle_data(&d) == false) in cpp_demangle_gnu2() 112 d.p = org; in cpp_demangle_gnu2() 113 if (read_func_name(&d) == false) in cpp_demangle_gnu2() 116 switch (d.type) { in cpp_demangle_gnu2() 122 if (push_CTDT("::", 2, &d.vec) == false) in cpp_demangle_gnu2() [all …]
|
| /freebsd/contrib/bsddialog/lib/ |
| H A D | lib_util.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2021-2025 Alfonso Sabato Siciliano 9 * 1. Redistributions of source code must retain the above copyright 40 * -1- Error and diagnostic 46 * ---------------------------------------------------- 47 * -2- (Unicode) Multicolumn character strings 54 * ---------------------------------------------------- 55 * -3- Buttons 60 * set_buttons(); (to call 1 time after prepare_dialog()). [all …]
|
| H A D | barbox.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2021-2025 Alfonso Sabato Siciliano 9 * 1. Redistributions of source code must retain the above copyright 46 #define WBOX(d) ((d)->w - BORDERS - BARPADDING - BARPADDING) argument 47 #define WBAR(d) (WBOX(d) - BOXBORDERS) argument 54 " Succeeded ", /* -1 */ 55 " Failed ", /* -2 */ 56 " Passed ", /* -3 */ 57 " Completed ", /* -4 */ [all …]
|
| H A D | datebox.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2022-2025 Alfonso Sabato Siciliano 9 * 1. Redistributions of source code must retain the above copyright 40 #define MINWCAL 36 /* 34 calendar, 1 + 1 margins */ 105 dd += mm < 3 ? yy-- : yy - 2; in week_day() 106 wd = 23*mm/9 + dd + 4 + yy/4 - yy/100 + yy/400; in week_day() 121 *mm = 1; in init_date() 122 *dd = (*day == 0) ? 1 : *day; in init_date() 136 *dd -= 7; in datectl() [all …]
|
| /freebsd/usr.bin/calendar/ |
| H A D | dates.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 1992-2009 Edwin Groothuis <edwin@FreeBSD.org>. 10 * 1. Redistributions of source code must retain the above copyright 71 /* 1-based month, 0-based days, cumulative */ 73 {0, -1, 30, 58, 89, 119, 150, 180, 211, 242, 272, 303, 333, 364}, 74 {0, -1, 30, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365}, 76 /* 1-based month, individual */ 86 createdate(int y, int m, int d) in createdate() argument 96 if (py->year == y + 1900) in createdate() [all …]
|
| /freebsd/contrib/llvm-project/openmp/runtime/src/i18n/ |
| H A D | en_US.txt | 4 #//===---------- [all...] |
| /freebsd/contrib/libfido2/src/ |
| H A D | io.c | 2 * Copyright (c) 2018-2022 Yubico AB. All rights reserved. 3 * Use of this source code is governed by a BSD-style 5 * SPDX-License-Identifier: BSD-2-Clause 20 uint8_t data[CTAP_MAX_REPORT_LEN - CTAP_INIT_HEADER_LEN]; in PACKED_TYPE() 24 uint8_t data[CTAP_MAX_REPORT_LEN - CTAP_CONT_HEADER_LEN]; in PACKED_TYPE() 34 tx_pkt(fido_dev_t *d, const void *pkt, size_t len, int *ms) 40 return (-1); 42 n = d->io.write(d->io_handle, pkt, len); 45 return (-1); 51 tx_empty(fido_dev_t *d, uint8_t cmd, int *ms) in tx_empty() argument [all …]
|
| /freebsd/sys/dev/axgbe/ |
| H A D | xgbe-txrx.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 9 * 1. Redistributions of source code must retain the above copyright 35 #include "xgbe-common.h" 63 axgbe_printf(1, "-- in xgbe_print_pkt_info() [all...] |
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/direct/ |
| H A D | dio_aligned_block.ksh | 1 #!/bin/ksh -p 2 # SPDX-License-Identifier: CDDL-1.0 11 # or https://opensource.org/licenses/CDDL-1.0. 37 # 1. Create a multi-block file 46 log_must rm -f $tmp_file 61 log_must stride_dd -i /dev/urandom -o $tmp_file -b $file_size -c 1 64 check_write $TESTPOOL $tmp_file $rs 1 0 "-D" 0 1 65 check_write $TESTPOOL $tmp_file $rs 2 0 "-D" 0 2 66 check_write $TESTPOOL $tmp_file $rs 4 0 "-D" 0 4 67 check_write $TESTPOOL $tmp_file $rs 8 0 "-D" 0 8 [all …]
|
| /freebsd/cddl/lib/libdtrace/ |
| H A D | tcp.d | 26 #pragma D depends_on library ip.d 27 #pragma D depends_on module kernel 28 #pragma D depends_on provider tcp 33 #pragma D binding "1.6.3" TCPS_CLOSED 35 #pragma D binding "1.6.3" TCPS_LISTEN 36 inline int TCPS_LISTEN = 1; 37 #pragma D binding "1.6.3" TCPS_SYN_SENT 39 #pragma D binding "1.6.3" TCPS_SYN_RECEIVED 41 #pragma D binding "1.6.3" TCPS_ESTABLISHED 43 #pragma D binding "1.6.3" TCPS_CLOSE_WAIT [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Support/ |
| H A D | DivisionByConstantInfo.cpp | 1 //===----- DivisionByConstantInfo.cpp - division by constant -*- C++ -*----===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 //===----------------------------------------------------------------------===// 19 /// the divisor not be 0, 1, or -1. Taken from "Hacker's Delight", Henry S. 21 SignedDivisionByConstantInfo SignedDivisionByConstantInfo::get(const APInt &D) { in get() argument 22 assert(!D.isZero() && "Precondition violation."); in get() 24 // We'd be endlessly stuck in the loop. in get() 25 assert(D.getBitWidth() >= 3 && "Does not work at smaller bitwidths."); in get() 28 APInt SignedMin = APInt::getSignedMinValue(D.getBitWidth()); in get() [all …]
|
| /freebsd/lib/libnetmap/ |
| H A D | nmport.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 11 * 1. Redistributions of source code must retain the above copyright 52 nmport_push_cleanup(struct nmport_d *d, struct nmport_cleanup_d *c) in nmport_push_cleanup() argument 54 c->next = d->clist; in nmport_push_cleanup() 55 d->clist = c; in nmport_push_cleanup() 59 nmport_pop_cleanup(struct nmport_d *d) in nmport_pop_cleanup() argument 63 top = d->clist; in nmport_pop_cleanup() 64 d->clist = d->clist->next; in nmport_pop_cleanup() 65 (*top->cleanup)(top, d); in nmport_pop_cleanup() [all …]
|
| /freebsd/crypto/heimdal/kdc/ |
| H A D | connect.c | 2 * Copyright (c) 1997-2005 Kungliga Tekniska Högskolan 10 * 1. Redistributions of source code must retain the above copyright 37 int enable_http = -1; 88 ports = realloc(ports, (num_ports + 1) * sizeof(*ports)); in add_port() 90 krb5_err (context, 1, errno, "realloc"); in add_port() 98 * add a triple but with service -> port lookup 112 * add the port with service -> port lookup or string -> number 125 port = sp->s_port; in add_port_string() 147 add_port_service(context, family, "kerberos-sec", 88, "udp"); in add_standard_ports() 148 add_port_service(context, family, "kerberos-sec", 88, "tcp"); in add_standard_ports() [all …]
|
| /freebsd/crypto/openssl/crypto/modes/asm/ |
| H A D | aes-gcm-armv8_64.pl | 2 # Copyright 2019-2025 The OpenSSL Project Authors. All Rights Reserved. 12 # derived from https://github.com/ARM-software/AArch64cryptolib, original 18 # Approach - assume we don't want to reload constants, so reserve ~half of vector register file for… 30 # | CTR block 4k+9 | AES block 4k+5 | GHASH block 4k+1 | 51 # INS ctr_next.d[0], constctr96_bottom64 // Keeping this in scalar registers to free up sp… 52 # INS ctr_next.d[1], ctr64X 53 # ADD rev_ctr32, #1 65 # INS res_curr.d[0], input_low 66 # INS res_curr.d[1], input_high 101 # MOV output_low, res_curr.d[0] [all …]
|
| H A D | aes-gcm-armv8-unroll8_64.pl | 2 # Copyright 2020-2023 The OpenSSL Project Authors. All Rights Reserved. 12 # derived from https://github.com/ARM-software/AArch64cryptolib, original 14 # licensed under OpenSSL and SPDX BSD-3-Clause licenses depending on where you 18 # Approach - We want to reload constants as we have plenty of spare ASIMD slots around crypto units… 30 # | CTR block 8k+14| AES block 8k+9 | GHASH block 8k+1 | 63 # INS ctr_next.d[0], constctr96_bottom64 // Keeping this in scalar registers to free up sp… 64 # INS ctr_next.d[1], ctr64X 65 # ADD rev_ctr32, #1 77 # INS res_curr.d[0], input_low 78 # INS res_curr.d[1], input_high [all …]
|
| /freebsd/sys/dev/hwpmc/ |
| H A D | hwpmc_uncore.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 10 * 1. Redistributions of source code must retain the above copyright 96 ("[ucf,%d] insane cpu number %d", __LINE__, cpu)); in uncore_pcpu_init() 98 PMCDBG1(MDP,INI,1,"uncore-init cpu=%d", cpu); in uncore_pcpu_init() 100 uncore_ri = md->pmd_classdep[PMC_MDEP_CLASS_INDEX_UCP].pcd_ri; in uncore_pcpu_init() 101 npmc = md->pmd_classdep[PMC_MDEP_CLASS_INDEX_UCP].pcd_num; in uncore_pcpu_init() 102 npmc += md->pmd_classdep[PMC_MDEP_CLASS_INDEX_UCF].pcd_num; in uncore_pcpu_init() 111 ("[uncore,%d] NULL per-cpu structures cpu=%d", __LINE__, cpu)); in uncore_pcpu_init() 113 for (n = 0, phw = cc->pc_uncorepmcs; n < npmc; n++, phw++) { in uncore_pcpu_init() [all …]
|
| /freebsd/sbin/gbde/ |
| H A D | test.sh | |
| /freebsd/sys/crypto/openssl/aarch64/ |
| H A D | aes-gcm-armv8_64.S | 1 /* Do not modify. This file is auto-generated from aes-gcm-armv8_64.pl. */ 5 .arch armv8-a+crypto 13 stp x19, x20, [sp, #-112]! 41 sub x5, x5, #1 //byte_len - 1 48 fmov d1, x10 //CTR block 1 51 add w12, w12, #1 //increment rev_ctr32 55 rev w9, w12 //CTR block 1 56 add w12, w12, #1 //CTR block 1 59 orr x9, x11, x9, lsl #32 //CTR block 1 62 fmov v1.d[1], x9 //CTR block 1 [all …]
|
| /freebsd/crypto/heimdal/lib/krb5/ |
| H A D | keytab_memory.c | 2 * Copyright (c) 1997 - 2001 Kungliga Tekniska Högskolan 10 * 1. Redistributions of source code must retain the above copyright 36 /* memory operations -------------------------------------------- */ 46 /* this mutex protects mkt_head, ->refcount, and ->next 56 struct mkt_data *d; in mkt_resolve() local 60 for (d = mkt_head; d != NULL; d = d->next) in mkt_resolve() 61 if (strcmp(d->name, name) == 0) in mkt_resolve() 63 if (d) { in mkt_resolve() 64 if (d->refcount < 1) in mkt_resolve() 66 "refcount < 1 %d", d->refcount); in mkt_resolve() [all …]
|
| /freebsd/lib/libc/tests/stdio/ |
| H A D | scanfloat_test.c | 1 /*- 8 * 1. Redistributions of source code must retain the above copyright 39 #include <atf-c.h> 47 delta = fabsl(a - b); in _eq() 56 double d = 0.0; in ATF_TC_BODY() local 62 ATF_REQUIRE_EQ(1, sscanf("3.141592", "%e", &f)); in ATF_TC_BODY() 65 ATF_REQUIRE_EQ(1, sscanf("3.141592653589793", "%lf", &d)); in ATF_TC_BODY() 66 ATF_REQUIRE(eq(DBL, d, 3.141592653589793)); in ATF_TC_BODY() 68 ATF_REQUIRE_EQ(1, sscanf("1.234568e+06", "%E", &f)); in ATF_TC_BODY() 71 ATF_REQUIRE_EQ(1, sscanf("-1.234568e6", "%lF", &d)); in ATF_TC_BODY() [all …]
|
| /freebsd/contrib/netbsd-tests/lib/libc/regex/data/ |
| H A D | subexp.in | 2 a(b)(c)d - abcd abcd b,c 3 a(((b)))c - abc abc b,b,b 4 a(b|(c))d - abd abd b,- 5 a(b*|c|e)d - abbd abbd bb 6 a(b*|c|e)d - acd acd c 7 a(b*|c|e)d - ad ad @d 8 a(b?)c - abc abc b 9 a(b?)c - ac ac @c 10 a(b+)c - abc abc b 11 a(b+)c - abbbc abbbc bbb [all …]
|
| /freebsd/contrib/lua/src/ |
| H A D | luac.c | 35 static int dumping=1; /* dump bytecodes? */ 56 if (*message=='-') in usage() 63 " -l list (use -l -l for full listing)\n" in usage() 64 " -o name output to file 'name' (default is \"%s\")\n" in usage() 65 " -p parse only\n" in usage() 66 " -s strip debug information\n" in usage() 67 " -v show version information\n" in usage() 68 " -- stop handling options\n" in usage() 69 " - stop handling options and process stdin\n" in usage() 81 for (i=1; i<argc; i++) in doargs() [all …]
|
| /freebsd/contrib/libarchive/libarchive/test/ |
| H A D | test_archive_pathmatch.c | 1 /*- 2 * Copyright (c) 2003-2007 Tim Kientzle 8 * 1. Redistributions of source code must retain the above copyright 34 * * - matches any sequence of chars, including '/' 35 * ? - matches any single char, including '/' 36 * [...] - matches any of a set of chars, '-' specifies a range, 40 * Trailing '-' in [...] is not special. 48 assertEqualInt(1, archive_pathmatch("a/b/c", "a/b/c", 0)); in DEFINE_TEST() 54 /* Null string and non-empt in DEFINE_TEST() [all...] |