/freebsd/sys/ddb/ |
H A D | db_ps.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 55 static void dumpthread(volatile struct proc *p, volatile struct thread *td, 57 static void db_ps_proc(struct proc *p); 61 * At least one non-optional show-command must be implemented using 71 dump_args(volatile struct proc *p) in dump_args() argument 109 struct proc *p; db_ps() local 139 db_ps_proc(struct proc * p) db_ps_proc() argument 145 char state[9]; db_ps_proc() local 262 dumpthread(volatile struct proc * p,volatile struct thread * td,int all) dumpthread() argument 264 char state[9], wprefix; dumpthread() local 447 struct proc *p; DB_SHOW_COMMAND() local [all...] |
/freebsd/sys/geom/vinum/ |
H A D | geom_vinum_state.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 46 struct gv_plex *p; in gv_setstate() local 47 char *obj, *state; in gv_setstate() local 57 state = gctl_get_param(req, "state", NULL); in gv_setstate() 58 if (state == NULL) { in gv_setstate() 59 gctl_error(req, "no state given"); in gv_setstate() 72 sc = gp->softc; in gv_setstate() 76 if (gv_volstatei(state) < 0) { in gv_setstate() 77 gctl_error(req, "invalid volume state '%s'", state); in gv_setstate() [all …]
|
/freebsd/contrib/libarchive/libarchive/ |
H A D | archive_read_support_filter_lzop.c | 1 /*- 2 * Copyright (c) 2003-2007 Tim Kientzle 135 const unsigned char *p; in lzop_bidder_bid() local 140 p = __archive_read_filter_ahead(filter, LZOP_HEADER_MAGIC_LEN, &avail); in lzop_bidder_bid() 141 if (p == NULL || avail == 0) in lzop_bidder_bid() 144 if (memcmp(p, LZOP_HEADER_MAGIC, LZOP_HEADER_MAGIC_LEN)) in lzop_bidder_bid() 153 * decompression directly. We can, however, try to run "lzop -d" 161 r = __archive_read_program(self, "lzop -d"); in lzop_bidder_init() 165 self->code = ARCHIVE_FILTER_LZOP; in lzop_bidder_init() 166 self->name = "lzop"; in lzop_bidder_init() [all …]
|
H A D | archive_write_add_filter_b64encode.c | 1 /*- 66 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 70 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 83 struct private_b64encode *state; in archive_write_add_filter_b64encode() local 85 archive_check_magic(&a->archive, ARCHIVE_WRITE_MAGIC, in archive_write_add_filter_b64encode() 88 state = calloc(1, sizeof(*state)); in archive_write_add_filter_b64encode() 89 if (state == NULL) { in archive_write_add_filter_b64encode() 90 archive_set_error(f->archive, ENOMEM, in archive_write_add_filter_b64encode() 94 archive_strcpy(&state->name, "-"); in archive_write_add_filter_b64encode() 95 state->mode = 0644; in archive_write_add_filter_b64encode() [all …]
|
H A D | archive_write_add_filter_uuencode.c | 1 /*- 72 struct private_uuencode *state; in archive_write_add_filter_uuencode() local 74 archive_check_magic(&a->archive, ARCHIVE_WRITE_MAGIC, in archive_write_add_filter_uuencode() 77 state = calloc(1, sizeof(*state)); in archive_write_add_filter_uuencode() 78 if (state == NULL) { in archive_write_add_filter_uuencode() 79 archive_set_error(f->archive, ENOMEM, in archive_write_add_filter_uuencode() 83 archive_strcpy(&state->name, "-"); in archive_write_add_filter_uuencode() 84 state->mode = 0644; in archive_write_add_filter_uuencode() 86 f->data = state; in archive_write_add_filter_uuencode() 87 f->name = "uuencode"; in archive_write_add_filter_uuencode() [all …]
|
H A D | xxhash.c | 2 xxHash - Fast Hash algorithm 3 Copyright (C) 2012-2014, Yann Collet. 4 BSD 2-Clause License (http://www.opensource.org/licenses/bsd-license.php) 30 - xxHash source repository : http://code.google.com/p/xxhash/ 55 ** When this option is enabled, xxHash output for null input pointers will be the same as a null-le… 61 ** By default, xxHash library provides endian-independent Hash values, based on little-endian conve… 62 ** Results are therefore identical for little-endian and big-endian CPU. 63 ** This comes at a performance cost for big-endian CPU, since some swapping is required to emulate … 64 ** Should endian-independence be of no importance for your application, you may set the #define bel… 65 ** It will improve speed for Big-endian CPU. [all …]
|
H A D | archive_read_support_filter_gzip.c | 1 /*- 2 * Copyright (c) 2003-2007 Tim Kientzle 123 * number of bytes in header. If pbits is non-NULL, it receives a 131 struct private_data *state in peek_at_header() argument 133 void *state in peek_at_header() 137 const unsigned char *p; in peek_at_header() local 142 (void)state; /* UNUSED */ in peek_at_header() 148 p = __archive_read_filter_ahead(filter, len, &avail); in peek_at_header() 149 if (p == NULL || avail == 0) in peek_at_header() 151 /* We only support deflation- third byte must be 0x08. */ in peek_at_header() [all …]
|
H A D | archive_read_support_filter_lz4.c | 1 /*- 197 r = __archive_read_program(self, "lz4 -d -q"); in lz4_reader_init() 201 self->code = ARCHIVE_FILTER_LZ4; in lz4_reader_init() 202 self->name = "lz4"; in lz4_reader_init() 221 struct private_data *state; in lz4_reader_init() local 223 self->code = ARCHIVE_FILTER_LZ4; in lz4_reader_init() 224 self->name = "lz4"; in lz4_reader_init() 226 state = calloc(1, sizeof(*state)); in lz4_reader_init() 227 if (state == NULL) { in lz4_reader_init() 228 archive_set_error(&self->archive->archive, ENOMEM, in lz4_reader_init() [all …]
|
/freebsd/cddl/lib/libdtrace/ |
H A D | sctp.d | 67 /* SCTP association state strings. */ 69 inline string sctp_state_string[int32_t state] = 70 state & SCTP_STATE_ABOUT_TO_BE_FREED ? "state-closed" : 71 state & SCTP_STATE_SHUTDOWN_PENDING ? "state-shutdown-pending" : 72 (state & SCTP_STATE_MASK) == SCTP_STATE_EMPTY ? "state-closed" : 73 (state & SCTP_STATE_MASK) == SCTP_STATE_INUSE ? "state-closed" : 74 (state & SCTP_STATE_MASK) == SCTP_STATE_COOKIE_WAIT ? "state-cookie-wait" : 75 (state & SCTP_STATE_MASK) == SCTP_STATE_COOKIE_ECHOED ? "state-cookie-echoed" : 76 (state & SCTP_STATE_MASK) == SCTP_STATE_OPEN ? "state-established" : 77 (state & SCTP_STATE_MASK) == SCTP_STATE_SHUTDOWN_SENT ? "state-shutdown-sent" : [all …]
|
H A D | tcp.d | 31 * Convert a TCP state value to a string. 102 /* TCP connection state strings. */ 104 inline string tcp_state_string[int32_t state] = 105 state == TCPS_CLOSED ? "state-closed" : 106 state == TCPS_LISTEN ? "state-listen" : 107 state == TCPS_SYN_SENT ? "state-syn-sent" : 108 state == TCPS_SYN_RECEIVED ? "state-syn-received" : 109 state == TCPS_ESTABLISHED ? "state-established" : 110 state == TCPS_CLOSE_WAIT ? "state-close-wait" : 111 state == TCPS_FIN_WAIT_1 ? "state-fin-wait-1" : [all …]
|
/freebsd/sys/contrib/openzfs/module/zstd/lib/common/ |
H A D | xxhash.c | 2 * xxHash - Fast Hash algorithm 3 * Copyright (c) 2012-2020, Yann Collet, Facebook, Inc. 6 * - xxHash homepage: http://www.xxhash.com 7 * - xxHash source repository : https://github.com/Cyan4973/xxHash 9 * This source code is licensed under both the BSD-style license (found in the 12 * You may select, at your option, one of the above-listed licenses. 21 * Unfortunately, on some target/compiler combinations, the generated assembly is sub-optimal. 44 …* When this option is enabled, xxHash output for null input pointers will be the same as a null-le… 50 …* By default, xxHash library provides endian-independent Hash values, based on little-endian conve… 51 * Results are therefore identical for little-endian and big-endian CPU. [all …]
|
/freebsd/sys/dev/bhnd/nvram/ |
H A D | bhnd_nvram_data_sprom_subr.c | 1 /*- 2 * Copyright (c) 2015-2016 Landon Fuller <landonf@FreeBSD.org> 50 static int bhnd_sprom_opcode_reset(bhnd_sprom_opcode_state *state); 52 static int bhnd_sprom_opcode_set_type(bhnd_sprom_opcode_state *state, 55 static int bhnd_sprom_opcode_set_var(bhnd_sprom_opcode_state *state, 57 static int bhnd_sprom_opcode_clear_var(bhnd_sprom_opcode_state *state); 59 static int bhnd_sprom_opcode_flush_bind(bhnd_sprom_opcode_state *state); 61 static int bhnd_sprom_opcode_read_opval32(bhnd_sprom_opcode_state *state, 64 static int bhnd_sprom_opcode_step(bhnd_sprom_opcode_state *state, 69 (_state)->input - (_state)->layout->bindings, ##__VA_ARGS__) [all …]
|
/freebsd/contrib/byacc/ |
H A D | verbose.c | 8 static void print_conflicts(int state); 9 static void print_core(int state); 11 static void print_nulls(int state); 12 static void print_shifts(action *p); 13 static void print_state(int state); 14 static void print_reductions(action *p, int defred2); 42 (long)(nrules - 2), (long)nstates); in verbose() 69 Value_t *p; in log_unused() local 77 for (p = ritem + rrhs[i]; *p >= 0; ++p) in log_unused() 78 fprintf(verbose_file, " %s", symbol_name[*p]); in log_unused() [all …]
|
/freebsd/contrib/libucl/src/ |
H A D | ucl_sexp.c | 35 if (p >= end) { \ 36 if (state != read_ebrace) { \ 37 ucl_create_err (&parser->err,\ 39 state = parse_err; \ 43 switch (*p) { \ 45 state = read_obrace; \ 48 state = read_ebrace; \ 53 state = read_length; \ 62 const unsigned char *p, *end; in ucl_parse_csexp() local 73 } state = start_parse; in ucl_parse_csexp() local [all …]
|
H A D | ucl_parser.c | 48 #define ucl_chunk_skipc(chunk, p) \ argument 50 if (*(p) == '\n') { \ 51 (chunk)->line ++; \ 52 (chunk)->column = 0; \ 54 else (chunk)->column ++; \ 55 (p++); \ 56 (chunk)->pos ++; \ 57 (chunk)->remain --; \ 64 struct ucl_chunk *chunk = parser->chunks; in ucl_set_err() 66 if (parser->cur_file) { in ucl_set_err() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Tooling/Transformer/ |
H A D | Parsing.cpp | 1 //===--- Parsing.cpp - Parsing function implementations ---------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 51 ParseState State; member 128 return it->second; in findOptional() 132 ParseProgress<ResultType> makeParseProgress(ParseState State, in makeParseProgress() argument 134 return ParseProgress<ResultType>{State, std::move(Result)}; in makeParseProgress() 138 size_t Pos = S.OriginalInput.size() - S.Input.size(); in makeParseError() 153 // Parses a single expected character \c c from \c State, skipping preceding 155 static ExpectedProgress<std::nullopt_t> parseChar(char c, ParseState State) { in parseChar() argument [all …]
|
/freebsd/sys/contrib/openzfs/module/icp/algs/edonr/ |
H A D | edonr.c | 9 * or http://opensource.org/licenses/CDDL-1.0. 23 * Based on Edon-R implementation for SUPERCOP, based on NIST API. 26 * Copyright (c) 2023 Tino Reichardt <milky-zfs@mcmilk.de> 35 * - we define this pragma to make gcc happy 38 #pragma GCC diagnostic ignored "-Wframe-larger-than=" 54 #define hashState512(x) ((x)->pipe->p512) 57 #define rotl64(x, n) (((x) << (n)) | ((x) >> (64 - (n)))) 114 Q512(size_t bitlen, const uint64_t *data, uint64_t *p) in Q512() argument 119 bl -= EdonR512_BLOCK_BITSIZE, data += 16) { in Q512() 151 /* First row of quasigroup e-transformations */ in Q512() [all …]
|
/freebsd/contrib/expat/xmlwf/ |
H A D | xmlmime.c | 9 Copyright (c) 1997-2000 Thai Open Source Software Center Ltd 11 Copyright (c) 2016-2018 Sebastian Pipping <sebastian@pipping.org> 12 Copyright (c) 2018 Marco Maggi <marco.maggi-ipsu@poste.it> 42 int state = init; in getTok() local 47 if (state == inAtom) in getTok() 54 if (state == inAtom) in getTok() 58 if (state == inAtom) in getTok() 60 if (state != inString) in getTok() 61 state++; in getTok() 64 if (state > init) in getTok() [all …]
|
H A D | ct.c | 9 Copyright (c) 1997-2000 Thai Open Source Software Center Ltd 11 Copyright (c) 2016-2017 Sebastian Pipping <sebastian@pipping.org> 39 int state = init; in getTok() local 49 if (state == inAtom) in getTok() 53 if (state == inAtom) in getTok() 55 if (state != inString) in getTok() 56 state++; in getTok() 59 if (state > init) in getTok() 60 --state; in getTok() 61 else if (state != inString) in getTok() [all …]
|
/freebsd/usr.sbin/cron/lib/ |
H A D | env.c | 30 char **p = (char **) malloc(sizeof(char **)); in env_init() local 32 if (p) in env_init() 33 p[0] = NULL; in env_init() 34 return (p); in env_init() 41 char **p; in env_free() local 43 if ((p = envp)) in env_free() 44 for (; *p; p++) in env_free() 45 free(*p); in env_free() 54 char **p; in env_copy() local 58 p = (char **) malloc((count+1) * sizeof(char *)); /* 1 for the NULL */ in env_copy() [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
H A D | ProgramStateTrait.h | 1 //ProgramStateTrait.h - Partial implementations of ProgramStateTrait -*- C++ -*- 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 14 //===----------------------------------------------------------------------===// 31 /// Declares a program state trait for type \p Type called \p Name, and 51 /// Declares a factory for objects of type \p Type in the program state 52 /// manager. The type must provide a ::Factory sub-class. Commonly used for 75 /// Declares an immutable map of type \p NameTy, suitable for placement into 79 /// State = State->set<Name>(K, V); 80 /// const Value *V = State->get<Name>(K); // Returns NULL if not in the map. [all …]
|
/freebsd/contrib/ntp/html/ |
H A D | clock.html | 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 4 <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> 6 <title>Clock State Machine</title> 10 <h3>Clock State Machine</h3> 11 <p>Last update: 12 <!-- #BeginDate format:En2m -->4-Aug-2011 23:40<!-- #EndDate --> 13 UTC</p> 21 <li class="inline"><a href="#state">State Transition Function</a></li> 25 …p>In the NTPv4 specification and reference implementation a state machine is used to manage the sy… 26 …p> The state machine is activated upon receipt of an update by the clock discipline algorithm. its… [all …]
|
/freebsd/usr.bin/indent/ |
H A D | lexi.c | 1 /*- 2 * SPDX-License-Identifier: BSD-4-Clause 112 int typename_top = -1; 118 * O = /[0-7]/; D = /[0-9]/; NZ = /[1-9]/; 119 * H = /[a-f0-9]/i; B = /[0-1]/; HP = /0x/i; 120 * BP = /0b/i; E = /e[+\-]?/i D+; P = /p[+\-]?/i D+; 123 * D+ E FS? -> $float; 124 * D* "." D+ E? FS? -> $float; 125 * D+ "." E? FS? -> $float; HP H+ IS? -> $int; 126 * HP H+ P FS? -> $float; NZ D* IS? -> $int; [all …]
|
/freebsd/crypto/heimdal/appl/telnet/libtelnet/ |
H A D | enc_des.c | 1 /*- 51 #include "misc-proto.h" 53 #include "crypto-headers.h" 65 #define FAILED -1 84 int state[2]; member 149 fbp->state[0] = fbp->state[1] = FAILED; in fb64_init() 150 fbp->fb_feed[0] = IAC; in fb64_init() 151 fbp->fb_feed[1] = SB; in fb64_init() 152 fbp->fb_feed[2] = TELOPT_ENCRYPT; in fb64_init() 153 fbp->fb_feed[3] = ENCRYPT_IS; in fb64_init() [all …]
|
/freebsd/contrib/telnet/libtelnet/ |
H A D | enc_des.c | 1 /*- 45 #include "key-proto.h" 46 #include "misc-proto.h" 58 #define FAILED -1 67 int state[2]; member 140 fbp->state[0] = fbp->state[1] = FAILED; in fb64_init() 141 fbp->fb_feed[0] = IAC; in fb64_init() 142 fbp->fb_feed[1] = SB; in fb64_init() 143 fbp->fb_feed[2] = TELOPT_ENCRYPT; in fb64_init() 144 fbp->fb_feed[3] = ENCRYPT_IS; in fb64_init() [all …]
|