/freebsd/sys/rpc/ |
H A D | clnt_dg.c | 3 /*- 4 * SPDX-License-Identifier: BSD-3-Clause 11 * - Redistributions of source code must retain the above copyright notice, 13 * - Redistributions in binary form must reproduce the above copyright notice, 16 * - Neither the name of Sun Microsystems, Inc. nor the names of its 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 33 * Copyright (c) 1986-1991 by Sun Microsystems Inc. 62 * Disable RPC exponential back-off for FreeBSD.org systems. 152 int cu_sent; /* number of in-flight RPCs */ 163 * NB: The rpch->cl_auth is initialized to null authentication. [all …]
|
/freebsd/sys/cam/ctl/ |
H A D | ctl_frontend_iscsi.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 95 &ping_timeout, 5, "Interval between ping (NOP-Out) requests, in seconds"); 123 __func__, S->cs_initiator_addr, \ 124 S->cs_initiator_name, ## __VA_ARGS__); \ 132 S->cs_initiator_addr, \ 133 S->cs_initiator_name, ## __VA_ARGS__); \ 137 #define CFISCSI_SESSION_LOCK(X) mtx_lock(&X->cs_lock) 138 #define CFISCSI_SESSION_UNLOCK(X) mtx_unlock(&X->cs_lock) [all …]
|
/freebsd/tools/tools/nanobsd/ |
H A D | legacy.sh | 3 # Copyright (c) 2005 Poul-Henning Kamp All rights reserved. 25 # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 [ -n "$NANO_SECTS" ] || NANO_SECTS=63 32 [ -n "$NANO_HEADS" ] || NANO_HEADS=16 44 cs = $3 * $4 47 cyl = int ($1 / cs) 51 dsl = int (($7 + cs - 1) / cs) 57 csl = int (($6 + cs - 1) / cs) 61 isl = int ((cyl - dsl - csl) / $2) 63 isl = int (($5 + cs - 1) / cs) [all …]
|
/freebsd/lib/libnetgraph/ |
H A D | msg.c | 4 * Copyright (c) 1996-1999 Whistle Communications, Inc. 22 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. 27 * RESULTING FROM OR ARISING OUT OF ANY USE OF THIS SOFTWARE, INCLUDING 32 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 55 static int NgDeliverMsg(int cs, const char *path, 59 * Send a message to a node using control socket node "cs". 60 * Returns -1 if error and sets errno appropriately. 64 NgSendMsg(int cs, const char *path, in NgSendMsg() argument 79 if (NgDeliverMsg(cs, path, &msg, args, arglen) < 0) in NgSendMsg() 80 return (-1); in NgSendMsg() [all …]
|
H A D | sock.c | 4 * Copyright (c) 1996-1999 Whistle Communications, Inc. 22 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. 27 * RESULTING FROM OR ARISING OUT OF ANY USE OF THIS SOFTWARE, INCLUDING 32 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 56 * Returns -1 if error and sets errno. 62 int cs = -1; /* control socket */ in NgMkSockNode() local 63 int ds = -1; /* data socket */ in NgMkSockNode() 73 if ((cs = socket(AF_NETGRAPH, SOCK_DGRAM, NG_CONTROL)) < 0) { in NgMkSockNode() 81 cs = socket(AF_NETGRAPH, SOCK_DGRAM, NG_CONTROL); in NgMkSockNode() 82 if (cs >= 0) in NgMkSockNode() [all …]
|
H A D | netgraph.3 | 1 .\" Copyright (c) 1996-1999 Whistle Communications, Inc. 19 .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. 24 .\" RESULTING FROM OR ARISING OUT OF ANY USE OF THIS SOFTWARE, INCLUDING 29 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 62 .Fn NgNameNode "int cs" "const char *path" "const char *fmt" ... 65 .Fa "int cs" "const char *path" "int cookie" "int cmd" "const void *arg" 69 .Fn NgSendAsciiMsg "int cs" "const char *path" "const char *fmt" ... 72 .Fa "int cs" "const char *path" "struct ng_mesg *msg" "const void *arg" 76 .Fn NgRecvMsg "int cs" "struct ng_mesg *rep" "size_t replen" "char *path" 78 .Fn NgAllocRecvMsg "int cs" "struct ng_mesg **rep" "char *path" [all …]
|
/freebsd/contrib/blocklist/bin/ |
H A D | conf.c | 3 /*- 28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 76 ((const struct sockaddr_if *)(const void *)(a))->sif_name 80 #define FSTAR -1 81 #define FEQUAL -2 108 goto out; in conf_getnum() 120 return -1; in conf_getnum() 123 return -1; in conf_getnum() 124 out: in conf_getnum() 127 return -1; in conf_getnum() [all …]
|
/freebsd/contrib/nvi/regex/ |
H A D | regex2.h | 3 /*- 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 39 * First, the stuff that ends up in the outside-world include file 45 = struct re_guts *re_g; // none of your business :-) 66 * - OPLUS_ and O_PLUS are *inside* the loop they create. 67 * - OQUEST_ and O_QUEST are *outside* the bypass they create. 68 * - OCH_ and O_CH are *outside* the multi-way branch they create, while 80 #define OEND (1) /* endmarker - */ 82 #define OBOL (3) /* left anchor - */ 83 #define OEOL (4) /* right anchor - */ [all …]
|
H A D | regcomp.c | 3 /*- 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 62 RCHAR_T *end; /* end of string (-> NUL normally) */ 70 # define NPAREN 10 /* we need to remember () 1-9 for back refs */ 71 sopno pbegin[NPAREN]; /* -> ( ([0] unused) */ 72 sopno pend[NPAREN]; /* -> ) ([0] unused) */ 88 static void p_b_term(struct parse *p, cset *cs); 89 static void p_b_cclass(struct parse *p, cset *cs); 90 static void p_b_eclass(struct parse *p, cset *cs); 100 static void freeset(struct parse *p, cset *cs); [all …]
|
/freebsd/usr.bin/truss/ |
H A D | setup.c | 1 /*- 2 * SPDX-License-Identifier: BSD-4-Clause 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * Various setup functions for truss. Not the cleanest-written code, 128 { "FreeBSD a.out", &freebsd32 }, 131 { "FreeBSD a.out", &freebsd }, 153 if (pid == -1) in setup_and_wait() 180 } while (ret && retry-- > 0); in start_tracing() 191 * Restore a process back to it's pre-truss state. 193 * applies if truss was told to monitor an already-existing [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | regex2.h | 1 /*- 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 58 * - OPLUS_ and O_PLUS are *inside* the loop they create. 59 * - OQUEST_ and O_QUEST are *outside* the bypass they create. 60 * - OCH_ and O_CH are *outside* the multi-way branch they create, while 78 #define OEND (1LU<<OPSHIFT) /* endmarker - */ 80 #define OBOL (3LU<<OPSHIFT) /* left anchor - */ 81 #define OEOL (4LU<<OPSHIFT) /* right anchor - */ 82 #define OANY (5LU<<OPSHIFT) /* . - */ 96 #define OBOW (19LU<<OPSHIFT) /* begin word - */ [all …]
|
/freebsd/lib/libc/regex/ |
H A D | regcomp.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 37 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 62 * Branching context, used to keep track of branch state for all of the branch- 66 * also for whether we're in a sub-expression or not. 85 const char *end; /* end of string (-> NUL normally) */ 93 # define NPAREN 10 /* we need to remember () 1-9 for back refs */ 94 sopno pbegin[NPAREN]; /* -> ( ([0] unused) */ 95 sopno pend[NPAREN]; /* -> ) ([0] unused) */ 98 int pflags; /* other parsing flags -- legacy escapes? */ [all …]
|
H A D | regex2.h | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 37 * First, the stuff that ends up in the outside-world include file 43 = struct re_guts *re_g; // none of your business :-) 64 * - OPLUS_ and O_PLUS are *inside* the loop they create. 65 * - OQUEST_ and O_QUEST are *outside* the bypass they create. 66 * - OCH_ and O_CH are *outside* the multi-way branch they create, while 84 #define OEND (1L<<OPSHIFT) /* endmarker - */ 86 #define OBOL (3L<<OPSHIFT) /* left anchor - */ [all …]
|
/freebsd/lib/libc/locale/ |
H A D | mbrtocXX_iconv.h | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 61 _ConversionState *cs; in mbrtocXX_l() local 68 ps = &(XLOCALE_CTYPE(locale)->mbrtocXX); in mbrtocXX_l() 69 cs = (_ConversionState *)ps; in mbrtocXX_l() 70 handle = &cs->iconv; in mbrtocXX_l() 73 if (s == NULL || !cs->initialized) { in mbrtocXX_l() 76 cs->initialized = false; in mbrtocXX_l() 78 return (-1); in mbrtocXX_l() [all …]
|
H A D | cXXrtomb_iconv.h | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 57 _ConversionState *cs; in cXXrtomb_l() local 65 ps = &(XLOCALE_CTYPE(locale)->cXXrtomb); in cXXrtomb_l() 66 cs = (_ConversionState *)ps; in cXXrtomb_l() 67 handle = &cs->iconv; in cXXrtomb_l() 70 if (s == NULL || !cs->initialized) { in cXXrtomb_l() 73 cs->initialized = false; in cXXrtomb_l() 75 return (-1); in cXXrtomb_l() [all …]
|
/freebsd/contrib/nvi/vi/ |
H A D | v_word.c | 1 /*- 25 * There are two types of "words". Bigwords are easy -- groups of anything 30 * word. Otherwise, figure out if the next character is in a different group. 34 * same as "eeee" -- in particular, single character words, and commands that 36 * you have to resolve the cursor after each search so that the look-ahead to 37 * figure out what type of "word" the cursor is in will be correct. 39 * Empty lines, and lines that consist of only white-space characters count 50 * One historic note -- in the original vi, the 'w', 'W' and 'B' commands 56 * command, go absolutely nuts. If the lines contained only white-space 60 * implementation treats all of these cases as a single white-space word. [all …]
|
/freebsd/sys/dev/gpio/ |
H A D | gpiospi.c | 1 /*- 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 74 device_set_desc(dev, "GPIO SPI bit-banging driver"); in gpio_spi_probe() 83 d = sc->sc_freq / 1000000; in gpio_delay() 97 sc->sc_dev = dev; in gpio_spi_attach() 98 sc->sc_busdev = device_get_parent(dev); in gpio_spi_attach() 104 sc->sc_sclk = value & 0xff; in gpio_spi_attach() 109 sc->sc_mosi = value & 0xff; in gpio_spi_attach() 115 sc->sc_miso = value & 0xff; in gpio_spi_attach() 120 sc->sc_cs0 = value & 0xff; in gpio_spi_attach() [all …]
|
/freebsd/usr.sbin/ppp/ |
H A D | slcompress.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 37 * - Initial distribution. 85 register struct cstate *tstate = comp->tstate; in sl_compress_init() 88 for (i = max_state; i > 0; --i) { in sl_compress_init() 90 tstate[i].cs_next = &tstate[i - 1]; in sl_compress_init() 94 comp->last_cs = &tstate[0]; in sl_compress_init() 95 comp->last_recv = 255; in sl_compress_init() 96 comp->last_xmit = 255; in sl_compress_init() [all …]
|
/freebsd/sys/net/ |
H A D | slcompress.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 37 * - Initial distribution. 53 #define INCR(counter) ++comp->counter; 65 struct cstate *tstate = comp->tstate; in sl_compress_init() 67 if (max_state == -1) { in sl_compress_init() 68 max_state = MAX_STATES - 1; in sl_compress_init() 72 bzero((char *)comp->tstate, sizeof(comp->tstate)); in sl_compress_init() 73 bzero((char *)comp->rstate, sizeof(comp->rstate)); in sl_compress_init() [all …]
|
/freebsd/contrib/tcpdump/ |
H A D | cpack.c | 1 /*- 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 34 #include "netdissect-stdinc.h" 44 size_t misalignment = (size_t)(p - buf) % alignment; in nd_cpack_next_boundary() 49 return p + (alignment - misalignment); in nd_cpack_next_boundary() 57 nd_cpack_align_and_reserve(struct cpack_state *cs, size_t wordsize) in nd_cpack_align_and_reserve() argument 62 next = nd_cpack_next_boundary(cs->c_buf, cs->c_next, wordsize); in nd_cpack_align_and_reserve() 65 if (next - cs->c_buf + wordsize > cs->c_len) in nd_cpack_align_and_reserve() 73 nd_cpack_advance(struct cpack_state *cs, const size_t toskip) in nd_cpack_advance() argument 76 if (cs->c_next - cs->c_buf + toskip > cs->c_len) in nd_cpack_advance() [all …]
|
/freebsd/sys/contrib/device-tree/src/arm64/hisilicon/ |
H A D | hi6220-coresight.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 14 compatible = "arm,coresight-dynamic-funnel", "arm,primecell"; 17 clock-names = "apb_pclk"; 19 out-ports { 22 remote-endpoint = 28 in-ports { 31 remote-endpoint = 39 compatible = "arm,coresight-tmc", "arm,primecell"; 42 clock-names = "apb_pclk"; 44 in-ports { [all …]
|
/freebsd/usr.bin/hexdump/ |
H A D | parse.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 42 FU *endfu; /* format at end-of-data */ 84 nextfs = &tfs->nextfs; in add() 85 nextfu = &tfs->nextfu; in add() 98 nextfu = &tfu->nextfu; in add() 99 tfu->reps = 1; in add() 107 tfu->reps = atoi(savep); in add() 108 tfu->flags = F_SETREP; in add() [all …]
|
/freebsd/lib/msun/src/ |
H A D | s_sincosl.c | 1 /*- 2 * Copyright (c) 2007, 2010-2013 Steven G. Kargl 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 47 sincosl(long double x, long double *sn, long double *cs) in sincosl() argument 61 * If x = +-0 or x is a subnormal number, then sin(x) = x and in sincosl() 66 *cs = 1; in sincosl() 68 __kernel_sincosl(x, 0, 0, sn, cs); in sincosl() 74 *sn = x - x; in sincosl() 75 *cs = x - x; in sincosl() 84 __kernel_sincosl(y[0], y[1], 1, sn, cs); in sincosl() [all …]
|
/freebsd/sys/arm/freescale/imx/ |
H A D | imx_spi.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * Driver for imx Enhanced Configurable SPI; master-mode only. 115 #define CS_MASK 0x03 /* Mask flag bits out of chipsel. */ 143 {"fsl,imx51-ecspi", true}, 144 {"fsl,imx53-ecspi", true}, 145 {"fsl,imx6dl-ecspi", true}, 146 {"fsl,imx6q-ecspi", true}, 147 {"fsl,imx6sx-ecspi", true}, [all …]
|
/freebsd/lib/libfetch/ |
H A D | http.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 4 * Copyright (c) 2000-2014 Dag-Erling Smørgrav 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 35 *- 59 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 137 int eof; /* end-of-file flag */ 153 if (fetch_getln(io->conn) == -1) in http_new_chunk() 154 return (-1); in http_new_chunk() 156 if (io->conn->buflen < 2 || !isxdigit((unsigned char)*io->conn->buf)) in http_new_chunk() [all …]
|