Home
last modified time | relevance | path

Searched +full:max +full:- +full:msg (Results 1 – 25 of 710) sorted by relevance

12345678910>>...29

/freebsd/sys/sys/
H A Dmsg.h1 /* $NetBSD: msg.h,v 1.4 1994/06/29 06:44:43 cgd Exp $ */
3 /*-
4 * SVID compatible msg.h file
33 * The MSG_NOERROR identifier value, the msqid_ds struct and the msg struct
65 struct ipc_perm_old msg_perm; /* msg queue permission bits */
66 struct msg *__msg_first; /* first message in the queue */
67 struct msg *__msg_last; /* last message in the queue */
70 msglen_t msg_qbytes; /* max # of bytes on the queue */
85 * "msg" in "struct msg" and the names of all of the nonstandard members
90 struct ipc_perm msg_perm; /* msg queue permission bits */
[all …]
/freebsd/lib/libopenbsd/
H A Dimsg-buffer.c1 /* $OpenBSD: imsg-buffer.c,v 1.7 2015/07/12 18:40:49 nicm Exp $ */
43 if ((buf->buf = malloc(len)) == NULL) { in ibuf_open()
47 buf->size = buf->max = len; in ibuf_open()
48 buf->fd = -1; in ibuf_open()
54 ibuf_dynamic(size_t len, size_t max) in ibuf_dynamic() argument
58 if (max < len) in ibuf_dynamic()
64 if (max > 0) in ibuf_dynamic()
65 buf->max = max; in ibuf_dynamic()
75 /* on static buffers max is eq size and so the following fails */ in ibuf_realloc()
76 if (buf->wpos + len > buf->max) { in ibuf_realloc()
[all …]
/freebsd/crypto/heimdal/lib/krb5/
H A Dlog.c2 * Copyright (c) 1997-2006 Kungliga Tekniska Högskolan
41 int max; member
51 fp = realloc(f->val, (f->len + 1) * sizeof(*f->val)); in log_realloc()
54 f->len++; in log_realloc()
55 f->val = fp; in log_realloc()
56 fp += f->len - 1; in log_realloc()
107 { NULL, -1 }
113 while(table->s && strcasecmp(table->s, s)) in find_value()
115 return table->val; in find_value()
129 f->program = strdup(program); in krb5_initlog()
[all …]
/freebsd/sys/dev/bnxt/bnxt_re/
H A Dqplib_sp.c2 * Copyright (c) 2015-2024, Broadcom. All rights reserved. The term
52 if (!_is_chip_gen_p5_p7(rcfw->res->cctx)) in bnxt_qplib_is_atomic_cap()
54 pcie_capability_read_word(rcfw->pdev, PCI_EXP_DEVCTL2, &pcie_ctl2); in bnxt_qplib_is_atomic_cap()
61 struct bnxt_qplib_cmdqmsg msg = {}; in bnxt_qplib_query_version() local
67 bnxt_qplib_fill_cmdqmsg(&msg, &req, &resp, NULL, sizeof(req), in bnxt_qplib_query_version()
69 rc = bnxt_qplib_rcfw_send_message(rcfw, &msg); in bnxt_qplib_query_version()
71 dev_err(&rcfw->pdev->dev, "QPLIB: Failed to query version\n"); in bnxt_qplib_query_version()
83 struct bnxt_qplib_cmdqmsg msg = {}; in bnxt_qplib_get_dev_attr() local
94 cctx = rcfw->res->cctx; in bnxt_qplib_get_dev_attr()
95 attr = rcfw->res->dattr; in bnxt_qplib_get_dev_attr()
[all …]
/freebsd/contrib/lib9p/
H A Dpack.c29 * Based on libixp code: ©2007-2010 Kris Maglione <maglione.k at Gmail>
63 * using msg to track position and direction within request/response.
66 * just len itself, converted to signed), or -1 if we ran out of space.
68 * Note that if we return -1, subsequent l9p_iov_io() calls with
69 * the same (and not-reset) msg and len > 0 will also return -1.
73 l9p_iov_io(struct l9p_message *msg, void *buffer, size_t len) in l9p_iov_io() argument
78 assert(msg != NULL); in l9p_iov_io()
83 if (msg->lm_cursor_iov >= msg->lm_niov) in l9p_iov_io()
84 return (-1); in l9p_iov_io()
89 size_t idx = msg->lm_cursor_iov; in l9p_iov_io()
[all …]
/freebsd/sys/netgraph/
H A Dng_vlan_rotate.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2019-2021 IKS Service GmbH
64 {"max", &ng_parse_uint8_type},
174 vrp->conf.max = NG_VLANROTATE_MAX_VLANS; in ng_vlanrotate_constructor()
176 vrp->stats.drops = counter_u64_alloc(M_WAITOK); in ng_vlanrotate_constructor()
177 vrp->stats.excessive = counter_u64_alloc(M_WAITOK); in ng_vlanrotate_constructor()
178 vrp->stats.incomplete = counter_u64_alloc(M_WAITOK); in ng_vlanrotate_constructor()
180 vrp->stats.histogram[i] = counter_u64_alloc(M_WAITOK); in ng_vlanrotate_constructor()
196 dst = &vrp->ordered_hook; in ng_vlanrotate_newhook()
[all …]
H A Dng_message.h5 /*-
6 * Copyright (c) 1996-1999 Whistle Communications, Inc.
24 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.
49 #define NG_TYPESIZ 32 /* max type name len (including null) */
50 #define NG_HOOKSIZ 32 /* max hook name len (including null) */
51 #define NG_NODESIZ 32 /* max node name len (including null) */
52 #define NG_PATHSIZ 512 /* max path len (including null) */
53 #define NG_CMDSTRSIZ 32 /* max command string (including null) */
101 #define NGF_ORIG 0x00000000 /* the msg is the original request */
156 #define NGM_LINK_IS_UP 32 /* e.g. carrier found - no data */
[all …]
/freebsd/tests/sys/netgraph/
H A Dbasic.c1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
34 #include <atf-c.h>
48 char msg[] = "test"; in ATF_TC_BODY() local
54 ng_send_data("a", msg, sizeof(msg)); in ATF_TC_BODY()
69 char msg[] = "test"; in ATF_TC_BODY() local
91 ng_send_data("a", msg, sizeof(msg)); in ATF_TC_BODY()
97 ng_send_data("a", msg, sizeof(msg)); in ATF_TC_BODY()
156 char msg[] = "test"; in ATF_TC_BODY() local
157 const int MAX = 1000; in ATF_TC_BODY() local
[all …]
H A Dvlan_rotate.c1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
34 #include <atf-c.h>
58 static struct frame msg = { variable
84 v[i] = EVL_VLANOFTAG(ntohs(f->vlan[i].tag)); in get_vlan()
103 for (len = 9; len > 0; len--) in _basic()
106 msg.vlan[len].proto = htons(ETHERTYPE_IP); in _basic()
108 for (rot = -len + 1; rot < len; rot++) in _basic()
113 snprintf(cmd, sizeof(cmd), "setconf { min=0 max=9 rot=%d }", rot); in _basic()
116 ng_send_data("a", &msg, sizeof(msg)); in _basic()
[all …]
/freebsd/sys/dev/vnic/
H A Dnic.h64 /* Min/Max packet size */
66 #define NIC_HW_MAX_FRS 9200 /* 9216 max packet including FCS */
68 /* Max pkinds */
75 * BGX0-LMAC0-CHAN0 - VNIC CHAN0
76 * BGX0-LMAC1-CHAN0 - VNIC CHAN16
78 * BGX1-LMAC0-CHAN0 - VNIC CHAN128
80 * BGX1-LMAC3-CHAN0 - VNIC CHAN174
87 /* TNS bypass mode: 1-1 mapping between VNIC and BGX:LMAC */
90 #define NIC_MAX_CPI_PER_LMAC 64 /* Max when CPI_ALG is IP diffserv */
132 /* MSI-X interrupts */
[all …]
/freebsd/crypto/openssl/crypto/cmp/
H A Dcmp_local.h2 * Copyright 2007-2025 The OpenSSL Project Authors. All Rights Reserved.
3 * Copyright Nokia 2007-2019
4 * Copyright Siemens AG 2015-2019
42 /* HTTP-based transfer */
50 int msg_timeout; /* max seconds to wait for each CMP message round trip */
51 int total_timeout; /* max number of seconds an enrollment may take, incl. */
52 int tls_used; /* whether to use TLS for client-side HTTP connections */
76 * when validating message protection; this is used for 3GPP-style E.7
89 EVP_MD *pbm_owf; /* one-way function (OWF), default: SHA256 */
91 int pbm_mac; /* NID of MAC algorithm, default: HMAC-SHA1 as per RFC 4210 */
[all …]
/freebsd/sys/dev/firmware/arm/
H A Dscmi.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
134 struct scmi_msg msg; member
139 #define msg_to_req(m) __containerof((m), struct scmi_req, msg)
152 (&((_sc)->trs->inflight_ht[(_tk) & (_sc)->trs->inflight_mask]))
199 sc->dev = dev; in scmi_attach()
202 if (node == -1) in scmi_attach()
211 device_printf(dev, "Transport - max_msg:%d max_payld_sz:%lu reply_timo_ms:%d\n", in scmi_attach()
214 sc->sysctl_root = SYSCTL_ADD_NODE(NULL, SYSCTL_STATIC_CHILDREN(_hw), in scmi_attach()
216 sysctl_trans = SYSCTL_ADD_NODE(NULL, SYSCTL_CHILDREN(sc->sysctl_root), in scmi_attach()
[all …]
/freebsd/include/rpc/
H A Dsvc.h3 /*-
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
34 * svc.h, Server-side remote procedure call interface.
36 * Copyright (C) 1986-1993 by Sun Microsystems, Inc.
76 #define RPC_SVC_CONNMAXREC_SET 0 /* set max rec size, enable nonblock */
110 /* XXX - fvdl stick this here for ABI backward compat reasons */
112 /* catch-all function */
[all …]
/freebsd/sys/arm/broadcom/bcm2835/
H A Dbcm2835_cpufreq.c1 /*-
2 * Copyright (C) 2013-2015 Daisuke Aoyama <aoyama@peach.ne.jp>
71 #define MIN_OVER_VOLTAGE -16
73 #define MSG_ERROR -999999999
85 /* ARM->VC mailbox property semaphore */
115 { "broadcom,bcm2835-vc", 1 },
116 { "broadcom,bcm2708-vc", 1 },
153 union msg_get_clock_rate_body msg; in bcm2835_cpufreq_get_clock_rate() local
172 memset(&msg, 0, sizeof(msg)); in bcm2835_cpufreq_get_clock_rate()
173 msg.req.clock_id = clock_id; in bcm2835_cpufreq_get_clock_rate()
[all …]
/freebsd/contrib/wpa/src/wps/
H A Dwps_er_ssdp.c2 * Wi-Fi Protected Setup - External Registrar (SSDP)
28 int max_age = -1; in wps_er_ssdp_rx()
33 nread = recvfrom(sd, buf, sizeof(buf) - 1, 0, in wps_er_ssdp_rx()
38 if (er->filter_addr.s_addr && in wps_er_ssdp_rx()
39 er->filter_addr.s_addr != addr.sin_addr.s_addr) in wps_er_ssdp_rx()
47 if (sd == er->multicast_sd) { in wps_er_ssdp_rx()
48 /* Reply to M-SEARCH */ in wps_er_ssdp_rx()
52 /* Unsolicited message (likely NOTIFY or M-SEARCH) */ in wps_er_ssdp_rx()
62 if (pos[-1] == '\r') in wps_er_ssdp_rx()
63 pos[-1] = '\0'; in wps_er_ssdp_rx()
[all …]
/freebsd/crypto/krb5/src/lib/rpc/
H A Dpmap_rmt.c44 #include "k5-platform.h"
62 #include <port-sockets.h>
63 #include "socket-utils.h"
72 * pmapper remote-call-service interface.
97 addr->sin_port = htons(PMAPPORT); in pmap_rmtcall()
116 addr->sin_port = 0; in pmap_rmtcall()
132 if (xdr_u_int32(xdrs, &(cap->prog)) && in xdr_rmtcall_args()
133 xdr_u_int32(xdrs, &(cap->vers)) && in xdr_rmtcall_args()
134 xdr_u_int32(xdrs, &(cap->proc))) { in xdr_rmtcall_args()
136 if (! xdr_u_int32(xdrs, &(cap->arglen))) in xdr_rmtcall_args()
[all …]
H A Dsvc_udp.c41 * achieving execute-at-most-once semantics.)
44 #include "k5-platform.h"
51 #include <port-sockets.h>
52 #include <socket-utils.h>
59 #define rpc_buffer(xprt) ((xprt)->xp_p1)
60 #ifndef MAX
61 #define MAX(a, b) ((a > b) ? a : b) macro
85 * kept in xprt->xp_p2
94 #define su_data(xprt) ((struct svcudp_data *)(xprt->xp_p2))
103 * xprt->xp_sock is the registered socket number and xprt->xp_port is the
[all …]
/freebsd/lib/libc/rpc/
H A Dclnt_bcast.c3 /*-
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
33 * Copyright (c) 1986-1991 by Sun Microsystems Inc.
42 * The following is kludged-up support for simple rpc broadcasts.
71 #include "un-namespace.h"
75 #define MAXBCAST 20 /* Max no of broadcasting transports */
84 * The current parameter xdr packet size is limited by the max tsdu
[all …]
H A Dsvc_dg.c3 /*-
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
34 * Copyright (c) 1986-1991 by Sun Microsystems Inc.
40 * Does some caching in the hopes of achieving execute-at-most-once semantics.
60 #include "un-namespace.h"
65 #define su_data(xprt) ((struct svc_dg_data *)((xprt)->xp_p2))
66 #define rpc_buffer(xprt) ((xprt)->xp_p1)
[all …]
/freebsd/crypto/openssh/openbsd-compat/regress/
H A Dclosefromtest.c30 fail(char *msg) in fail() argument
32 fprintf(stderr, "closefrom: %s\n", msg); in fail()
39 int i, max, fds[NUM_OPENS]; in main() local
43 if ((fds[i] = open("/dev/null", O_RDONLY)) == -1) in main()
45 max = i - 1; in main()
48 closefrom(fds[max]); in main()
49 if (close(fds[max]) != -1) in main()
53 for (i = 0; i < max; i++) in main()
54 if (read(fds[i], buf, sizeof(buf)) == -1) in main()
60 if (close(fds[i]) != -1) in main()
/freebsd/tools/test/stress2/misc/
H A Dmachipc2.sh32 ps -p1 | grep -q launchd || exit 0
37 # Test fails without the -lpthread. Need to investigate why.
38 cc -o machipc2 -Wall -Wextra -O2 -g machipc2.c -lmach -lpthread || exit 1
42 (cd ../testcases/swap; ./swap -t 5m -i 20 -h -v) &
46 rm -f /tmp/machipc2
132 } msg;
134 msg.header.msgh_remote_port = remote_port;
135 msg.header.msgh_local_port = MACH_PORT_NULL;
136 msg.header.msgh_bits = MACH_MSGH_BITS (MACH_MSG_TYPE_COPY_SEND, 0) |
138 msg.header.msgh_size = sizeof msg;
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/ubsan/
H A Dubsan_diag.cpp1 //===-- ubsan_diag.cpp ----------------------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 //===----------------------------------------------------------------------===//
41 stack->Unwind(max_depth, pc, bp, context, top, bottom, fast); in ubsan_GetStackTrace()
47 if (!flags()->print_stacktrace) in MaybePrintStackTrace()
52 common_flags()->fast_unwind_on_fatal); in MaybePrintStackTrace()
79 if (!common_flags()->print_summary) in MaybeReportErrorSummary()
81 if (!flags()->report_error_type) in MaybeReportErrorSummary()
97 const AddressInfo &AI = Loc.getSymbolizedStack()->info; in MaybeReportErrorSummary()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DSourceMgr.cpp1 //===- SourceMgr.cpp - Manager for Simple Source Buffers & Diagnostics ----===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
13 //===----------------------------------------------------------------------===//
75 if (Loc.getPointer() >= Buffers[i].Buffer->getBufferStart() && in FindBufferContainingLoc()
78 Loc.getPointer() <= Buffers[i].Buffer->getBufferEnd()) in FindBufferContainingLoc()
91 size_t Sz = Buffer->getBufferSize(); in GetOrCreateOffsetCache()
92 assert(Sz <= std::numeric_limits<T>::max()); in GetOrCreateOffsetCache()
93 StringRef S = Buffer->getBuffer(); in GetOrCreateOffsetCache()
96 Offsets->push_back(static_cast<T>(N)); in GetOrCreateOffsetCache()
[all …]
/freebsd/contrib/pam_modules/pam_passwdqc/
H A Dpam_passwdqc.c2 * Copyright (c) 2000-2002 by Solar Designer. See LICENSE.
66 40, /* max */
81 "Re-type new password: "
137 struct pam_message msg, *pmsg; in converse() local
145 pmsg = &msg; in converse()
146 msg.msg_style = style; in converse()
147 msg.msg = (char *)text; in converse()
150 return conv->conv(1, (lo_const struct pam_message **)&pmsg, resp, in converse()
151 conv->appdata_ptr); in converse()
182 if ((int)strlen(newpass) > params->qc.max) { in check_max()
[all …]
/freebsd/contrib/unbound/iterator/
H A Diter_utils.h2 * iterator/iter_utils.h - iterative resolver module utility functions.
66 /* max number of lookups in the cache for target nameserver names.
69 /* max number of lookups in the cache for parentside glue for nameserver names
71 * It is a little larger than the nonpside max, so it allows a couple extra
89 * do-not-query-addresses.
95 * @param dnssec_lame: set to 1, if a known dnssec-lame server is selected
116 * Allocate dns_msg from parsed msg, in regional.
118 * @param msg
[all...]

12345678910>>...29