| /freebsd/contrib/bc/tests/bc/ |
| H A D | sine.txt | 4 s(0) 5 s(0.5) 6 s(1) 7 s(2) 8 s(3) 9 s(-0.5) 10 s(-1) 11 s(-2) 12 s(-3) 13 s(p / 7) [all …]
|
| /freebsd/share/examples/mdoc/ |
| H A D | deshallify.sh | 5 sed -e 's/s shall define/s define/g' \ 6 -e 's/shall define/defines/g' \ 7 -e 's/shall attempt/attempts/g' \ 8 -e 's/shall include/includes/g' \ 9 -e 's/shall return zero and have/returns zero and has/g' \ 10 -e 's/shall return/returns/g' \ 11 -e 's/shall also include/also includes/g' \ 12 -e 's/pipe or FIFO shall be /pipe of FIFO are /g' \ 13 -e 's/s shall be /s are /g' \ 14 -e 's/shall be /is /g' \ [all …]
|
| /freebsd/sys/kern/ |
| H A D | subr_sbuf.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2000-2008 Poul-Henning Kamp 5 * Copyright (c) 2000-2008 Dag-Erling Smørgrav 67 #define SBUF_ISDYNAMIC(s) ((s)->s_flags & SBUF_DYNAMIC) argument 68 #define SBUF_ISDYNSTRUCT(s) ((s)->s_flags & SBUF_DYNSTRUCT) argument 69 #define SBUF_ISFINISHED(s) ((s)->s_flags & SBUF_FINISHED) argument 70 #define SBUF_ISDRAINATEOL(s) ((s)->s_flags & SBUF_DRAINATEOL) argument 71 #define SBUF_HASROOM(s) ((s)->s_len < (s)->s_size - 1) argument 72 #define SBUF_FREESPACE(s) ((s)->s_size - ((s)->s_len + 1)) argument [all …]
|
| /freebsd/contrib/bzip2/ |
| H A D | decompress.c | 2 /*-------------------------------------------------------------*/ 3 /*--- Decompression machinery ---*/ 4 /*--- decompress.c ---*/ 5 /*-------------------------------------------------------------*/ 7 /* ------------------------------------------------------------------ 9 lossless, block-sorting data compression. 12 Copyright (C) 1996-2019 Julian Seward <jseward@acm.org> 19 ------------------------------------------------------------------ */ 25 /*---------------------------------------------------*/ 27 void makeMaps_d ( DState* s ) in makeMaps_d() argument [all …]
|
| /freebsd/sys/modules/ossl/ |
| H A D | Makefile | 19 aes-armv4.S \ 20 bsaes-armv7.S \ 21 chacha-armv4.S \ 22 ghash-armv4.S \ 23 poly1305-armv4.S \ 24 sha1-armv4-large.S \ 25 sha256-armv4.S \ 26 sha512-armv4.S \ 31 chacha-armv8.S \ 32 chacha-armv8-sve.S \ [all …]
|
| /freebsd/sys/contrib/xz-embedded/linux/lib/xz/ |
| H A D | xz_dec_stream.c | 42 /* Position in variable-length integers and Check fields */ 45 /* Variable-length integer decoded by dec_vli() */ 164 * Fill s->temp by copying data starting from b->in[b->in_pos]. Caller 165 * must have set s->temp.pos to indicate how much data we are supposed 166 * to copy into s->temp.buf. Return true once s->temp.pos has reached 167 * s->temp.size. 169 static bool fill_temp(struct xz_dec *s, struct xz_buf *b) in fill_temp() argument 172 b->in_size - b->in_pos, s->temp.size - s->temp.pos); in fill_temp() 174 memcpy(s->temp.buf + s->temp.pos, b->in + b->in_pos, copy_size); in fill_temp() 175 b->in_pos += copy_size; in fill_temp() [all …]
|
| H A D | xz_dec_lzma2.c | 5 * Igor Pavlov <https://7-zip.org/> 35 * In multi-call mode, also these are true: 40 * Most of these variables are size_t to support single-call mode, 64 * End of the dictionary buffer. In multi-call mode, this is 65 * the same as the dictionary size. In single-call mode, this 78 * Maximum allowed dictionary size in multi-call mode. 79 * This is ignored in single-call mode. 107 * temp.buf or the caller-provided input buffer. 122 /* Probabilities for match lengths 2-9 */ 125 /* Probabilities for match lengths 10-17 */ [all …]
|
| /freebsd/sys/contrib/zlib/ |
| H A D | deflate.c | 1 /* deflate.c -- compress data using the deflation algorithm 2 * Copyright (C) 1995-2024 Jean-loup Gailly and Mark Adler 23 * A similar algorithm is used in comic (by Jan-Mark Wams) and freeze 33 * The idea of lazy evaluation of matches is due to Jan-Mark Wams, and 43 * "Algorithms" by R. Sedgewick, Addison-Wesley, p252. 46 * Data Compression with Finite Windows, Comm.ACM, 32,4 (1989) 490-595 55 " deflate 1.3.1 Copyright 1995-2024 Jean-loup Gailly and Mark Adler "; 70 typedef block_state (*compress_func)(deflate_state *s, int flush); 73 local block_state deflate_stored(deflate_state *s, int flush); 74 local block_state deflate_fast(deflate_state *s, int flush); [all …]
|
| /freebsd/usr.sbin/bluetooth/bthidd/ |
| H A D | session.c | 5 /*- 6 * SPDX-License-Identifier: BSD-2-Clause 59 bthid_session_p s; in session_open() local 64 if ((s = (bthid_session_p) malloc(sizeof(*s))) == NULL) in session_open() 67 s->srv = srv; in session_open() 68 memcpy(&s->bdaddr, &d->bdaddr, sizeof(s->bdaddr)); in session_open() 69 s->ctrl = -1; in session_open() 70 s->intr = -1; in session_open() 71 s->vkbd = -1; in session_open() 72 s->ctx = NULL; in session_open() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | StmtProfile.cpp | 1 //===---- StmtProfile.cpp - Profile implementation for Stmt ASTs ----------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 12 //===----------------------------------------------------------------------===// 41 void VisitStmt(const Stmt *S); 43 void VisitStmtNoChildren(const Stmt *S) { in VisitStmtNoChildren() argument 44 HandleStmtClass(S->getStmtClass()); in VisitStmtNoChildren() 49 #define STMT(Node, Base) void Visit##Node(const Node *S); 63 /// Visit identifiers that are not in Decl's or Type's. 66 /// Visit a nested-name-specifier that occurs within an expression [all …]
|
| /freebsd/contrib/wpa/src/fst/ |
| H A D | fst_session.c | 2 * FST module - FST Session implementation 28 #define fst_printf_session(s, level, format, ...) \ argument 30 (s)->id, (s)->data.fsts_id, \ 31 MAC2STR((s)->data.old_peer_addr), \ 32 MAC2STR((s)->data.new_peer_addr), \ 35 #define fst_printf_siface(s, iface, level, format, ...) \ argument 36 fst_printf_session((s), (level), "%s: " format, \ 39 #define fst_printf_sframe(s, is_old, level, format, ...) \ argument 40 fst_printf_siface((s), \ 41 (is_old) ? (s)->data.old_iface : (s)->data.new_iface, \ [all …]
|
| /freebsd/contrib/llvm-project/openmp/runtime/src/i18n/ |
| H A D | en_US.txt | 4 #//===---------- [all...] |
| /freebsd/contrib/byacc/ |
| H A D | error.c | 10 fprintf(stderr, "%s: f - %s\n", myname, msg); in fatal() 27 fprintf(stderr, "%s: f - cannot open \"%s\"\n", myname, filename); in open_error() 34 fprintf(stderr, "%s: e - line %d of \"%s\", missing '}'\n", in missing_brace() 42 fprintf(stderr, "%s: e - line %d of \"%s\", unexpected end-of-file\n", in unexpected_EOF() 50 const char *s; in print_pos() local 54 for (s = st_line; *s != '\n'; ++s) in print_pos() 56 if (isprint(UCH(*s)) || *s == '\t') in print_pos() 57 putc(*s, stderr); in print_pos() 62 for (s = st_line; s < st_cptr; ++s) in print_pos() 64 if (*s == '\t') in print_pos() [all …]
|
| /freebsd/crypto/openssl/crypto/sha/ |
| H A D | build.info | 4 IF[{- !$disabled{asm} -}] 5 $SHA1ASM_x86=sha1-586.S sha256-586.S sha512-586.S 8 sha1-x86_64.s sha256-x86_64.s sha512-x86_64.s sha1-mb-x86_64.s \ 9 sha256-mb-x86_64.s 12 $SHA1ASM_ia64=sha1-ia64.s sha256-ia64.s sha512-ia64.s 15 $SHA1ASM_sparcv9=sha1-sparcv9.S sha256-sparcv9.S sha512-sparcv9.S 18 $SHA1ASM_alpha=sha1-alpha.S 21 $SHA1ASM_mips32=sha1-mips.S sha256-mips.S 23 $SHA1ASM_mips64=$SHA1ASM_mips32 sha512-mips.S 26 $SHA1ASM_s390x=sha1-s390x.S sha256-s390x.S sha512-s390x.S [all …]
|
| /freebsd/contrib/netbsd-tests/net/if/ |
| H A D | t_ifconfig.sh | 1 # $NetBSD: t_ifconfig.sh,v 1.15 2017/01/20 08:35:33 ozaki-r Exp $ 32 "-lrumpnet -lrumpnet_net -lrumpnet_netinet -lrumpnet_netinet6 -lrumpnet_shmif" 33 RUMP_FLAGS="${RUMP_FLAGS} -lrumpdev" 50 atf_check -s exit:0 rump_server ${RUMP_FLAGS} ${RUMP_SERVER1} 55 atf_check -s exit:0 rump.ifconfig shmif0 create 56 atf_check -s exit:0 rump.ifconfig shmif0 destroy 59 atf_check -s exit:0 rump.ifconfig shmif0 create 60 atf_check -s exit:0 rump.ifconfig shmif0 linkstr shmbus 61 atf_check -s exit:0 rump.ifconfig shmif0 192.168.0.1/24 62 atf_check -s exit:0 rump.ifconfig shmif0 up [all …]
|
| /freebsd/crypto/openssl/crypto/ |
| H A D | params_idx.c | 18 /* Machine generated TRIE -- generated by util/perl/OpenSSL/paramnames.pm */ 19 int ossl_param_find_pidx(const char *s) in ossl_param_find_pidx() argument 21 switch(s[0]) { in ossl_param_find_pidx() 25 switch(s[1]) { in ossl_param_find_pidx() 29 if (strcmp("vp-info", s + 2) == 0) in ossl_param_find_pidx() 33 switch(s[2]) { in ossl_param_find_pidx() 37 if (strcmp("itional-random", s + 3) == 0) in ossl_param_find_pidx() 45 if (strcmp("ad", s + 2) == 0) in ossl_param_find_pidx() 49 switch(s[2]) { in ossl_param_find_pidx() 53 switch(s[3]) { in ossl_param_find_pidx() [all …]
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/builtins/ |
| H A D | udivmoddi4.c | 1 //===-- udivmoddi4.c - Implement __udivmoddi4 -----------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 //===----------------------------------------------------------------------===// 18 // Translated from Figure 3-40 of The PowerPC Compiler Writer's Guide 22 // warn-as-error 38 if (n.s.high == 0) { in __udivmoddi4() 39 if (d.s.high == 0) { in __udivmoddi4() 41 // --- in __udivmoddi4() 44 *rem = n.s.low % d.s.low; in __udivmoddi4() [all …]
|
| /freebsd/crypto/openssl/ssl/statem/ |
| H A D | statem_srvr.c | 2 * Copyright 1995-2025 The OpenSSL Project Authors. All Rights Reserved. 51 static CON_FUNC_RETURN tls_construct_encrypted_extensions(SSL_CONNECTION *s, 56 return sc->session->peer_rpk != NULL || sc->session->peer != NULL; in received_client_cert() 63 * The current state is in |s->statem.hand_state|. 68 static int ossl_statem_server13_read_transition(SSL_CONNECTION *s, int mt) in ossl_statem_server13_read_transition() argument 70 OSSL_STATEM *st = &s->statem; in ossl_statem_server13_read_transition() 77 switch (st->hand_state) { in ossl_statem_server13_read_transition() 82 if (s->hello_retry_request == SSL_HRR_PENDING) { in ossl_statem_server13_read_transition() 84 st->hand_state = TLS_ST_SR_CLNT_HELLO; in ossl_statem_server13_read_transition() 88 } else if (s->ext.early_data == SSL_EARLY_DATA_ACCEPTED in ossl_statem_server13_read_transition() [all …]
|
| H A D | extensions_clnt.c | 2 * Copyright 2016-2025 The OpenSSL Project Authors. All Rights Reserved. 16 EXT_RETURN tls_construct_ctos_renegotiate(SSL_CONNECTION *s, WPACKET *pkt, in tls_construct_ctos_renegotiate() argument 20 if (!s->renegotiate) { in tls_construct_ctos_renegotiate() 27 if (!SSL_CONNECTION_IS_DTLS(s) in tls_construct_ctos_renegotiate() 28 && (s->min_proto_version >= TLS1_3_VERSION in tls_construct_ctos_renegotiate() 29 || (ssl_security(s, SSL_SECOP_VERSION, 0, TLS1_VERSION, NULL) in tls_construct_ctos_renegotiate() 30 && s->min_proto_version <= TLS1_VERSION))) { in tls_construct_ctos_renegotiate() 43 SSLfatal(s, SSL_AD_INTERNAL_ERROR, ERR_R_INTERNAL_ERROR); in tls_construct_ctos_renegotiate() 53 || !WPACKET_sub_memcpy_u8(pkt, s->s3.previous_client_finished, in tls_construct_ctos_renegotiate() 54 s->s3.previous_client_finished_len) in tls_construct_ctos_renegotiate() [all …]
|
| H A D | statem_clnt.c | 2 * Copyright 1995-2025 The OpenSSL Project Authors. All Rights Reserved. 33 static MSG_PROCESS_RETURN tls_process_as_hello_retry_request(SSL_CONNECTION *s, 35 static MSG_PROCESS_RETURN tls_process_encrypted_extensions(SSL_CONNECTION *s, 38 static ossl_inline int cert_req_allowed(SSL_CONNECTION *s); 39 static int key_exchange_expected(SSL_CONNECTION *s); 40 static int ssl_cipher_list_to_bytes(SSL_CONNECTION *s, STACK_OF(SSL_CIPHER) *sk, 45 return sc->session->peer_rpk != NULL || sc->session->peer != NULL; in received_server_cert() 55 static ossl_inline int cert_req_allowed(SSL_CONNECTION *s) in cert_req_allowed() argument 57 /* TLS does not like anon-DH with client cert */ in cert_req_allowed() 58 if ((s->version > SSL3_VERSION in cert_req_allowed() [all …]
|
| /freebsd/contrib/mtree/ |
| H A D | compare.c | 3 /*- 76 len = printf("%s changed\n", RP(p)); \ 79 len = printf("%s: ", RP(p)); \ 85 printf("%*s", INDENTNAMELEN - (int)len, ""); \ 95 if (flags != p->fts_statp->st_flags) { \ 99 sf = flags_to_string(p->fts_statp->st_flags, "none"); \ 100 printf("%sflags (\"%s\"", tab, sf); \ 103 if (lchflags(p->fts_accpath, flags)) { \ 105 printf(", not modified: %s)\n", \ 109 printf(", modified to \"%s\")\n", sf); \ [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/AST/Interp/ |
| H A D | Interp.h | 1 //===--- Interp.h - Interpreter for the constexpr VM ------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 //===----------------------------------------------------------------------===// 43 bool ReturnValue(const InterpState &S, const T &V, APValue &R) { in ReturnValue() argument 44 R = V.toAPValue(S.getCtx()); in ReturnValue() 49 bool CheckExtern(InterpState &S, CodePtr OpPC, const Pointer &Ptr); 52 bool CheckArray(InterpState &S, CodePtr OpPC, const Pointer &Ptr); 55 bool CheckLive(InterpState &S, CodePtr OpPC, const Pointer &Ptr, 59 bool CheckDummy(InterpState &S, CodePtr OpPC, const Pointer &Ptr, [all …]
|
| /freebsd/contrib/lua/src/ |
| H A D | lundump.c | 40 static l_noret error (LoadState *S, const char *why) { in error() argument 41 luaO_pushfstring(S->L, "%s: bad binary format (%s)", S->name, why); in error() 42 luaD_throw(S->L, LUA_ERRSYNTAX); in error() 47 ** All high-level loads go through loadVector; you can change it to 50 #define loadVector(S,b,n) loadBlock(S,b,(n)*sizeof((b)[0])) argument 52 static void loadBlock (LoadState *S, void *b, size_t size) { in loadBlock() argument 53 if (luaZ_read(S->Z, b, size) != 0) in loadBlock() 54 error(S, "truncated chunk"); in loadBlock() 58 #define loadVar(S,x) loadVector(S,&x,1) argument 61 static lu_byte loadByte (LoadState *S) { in loadByte() argument [all …]
|
| /freebsd/contrib/elftoolchain/elfcopy/ |
| H A D | segments.c | 1 /*- 2 * Copyright (c) 2007-2010,2012 Kai Wang 37 ELFTC_VCSID("$Id: segments.c 3615 2018-05-17 04:12:24Z kaiwang27 $"); 42 * elfcopy's segment handling is relatively simpler and less powerful than 44 * but never re-generated. As a result, if the input object has incorrect 45 * program headers, the output object's program headers will remain incorrect 51 * corresponding segment list(s) and return 1. 54 add_to_inseg_list(struct elfcopy *ecp, struct section *s) in add_to_inseg_list() argument 59 if (ecp->ophnum == 0) in add_to_inseg_list() 69 * segment(s)' v_sec queue. These information are later used to in add_to_inseg_list() [all …]
|
| /freebsd/usr.bin/tr/ |
| H A D | str.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 56 next(STR *s) in next() argument 63 switch (s->state) { in next() 69 switch (*s->str) { in next() 71 s->state = EOS; in next() 74 s->lastch = backslash(s, &is_octal); in next() 77 if (bracket(s)) in next() 78 return (next(s)); in next() 81 clen = mbrtowc(&wch, s->str, MB_LEN_MAX, NULL); in next() [all …]
|