Searched refs:buflen (Results 201 - 225 of 660) sorted by relevance

1234567891011>>

/freebsd-11-stable/contrib/wpa/src/utils/
H A Djson.c511 size_t buflen; local
518 os_strlen(token->string), &buflen);
521 ret = wpabuf_alloc_ext_data(buf, buflen);
552 char *buf, size_t buflen)
560 ret = os_snprintf(buf + len, buflen - len, "[%d:%s:%s]",
563 if (os_snprintf_error(buflen - len, ret)) {
567 json_print_token(token->child, depth + 1, buf, buflen);
568 json_print_token(token->sibling, depth, buf, buflen);
572 void json_print_tree(struct json_token *root, char *buf, size_t buflen) argument
575 json_print_token(root, 1, buf, buflen);
551 json_print_token(struct json_token *token, int depth, char *buf, size_t buflen) argument
[all...]
/freebsd-11-stable/lib/libc/tests/nss/
H A Dgetserv_test.c172 sdump_servent(struct servent *serv, char *buffer, size_t buflen) argument
177 written = snprintf(buffer, buflen, "%s %d %s",
180 if (written > (int)buflen)
182 buflen -= written;
187 written = snprintf(buffer, buflen, " %s", *cp);
189 if (written > (int)buflen)
191 buflen -= written;
193 if (buflen == 0)
197 snprintf(buffer, buflen, " noaliases");
199 snprintf(buffer, buflen, " (nul
[all...]
H A Dgetproto_test.c167 sdump_protoent(struct protoent *pe, char *buffer, size_t buflen) argument
172 written = snprintf(buffer, buflen, "%s %d",
175 if (written > (int)buflen)
177 buflen -= written;
182 written = snprintf(buffer, buflen, " %s", *cp);
184 if (written > (int)buflen)
186 buflen -= written;
188 if (buflen == 0)
192 snprintf(buffer, buflen, " noaliases");
194 snprintf(buffer, buflen, " (nul
[all...]
H A Dgetrpc_test.c166 sdump_rpcent(struct rpcent *rpc, char *buffer, size_t buflen) argument
171 written = snprintf(buffer, buflen, "%s %d",
174 if (written > (int)buflen)
176 buflen -= written;
181 written = snprintf(buffer, buflen, " %s", *cp);
183 if (written > (int)buflen)
185 buflen -= written;
187 if (buflen == 0)
191 snprintf(buffer, buflen, " noaliases");
193 snprintf(buffer, buflen, " (nul
[all...]
H A Dgetgr_test.c172 sdump_group(struct group *grp, char *buffer, size_t buflen) argument
177 written = snprintf(buffer, buflen, "%s:%s:%d:",
180 if (written > (int)buflen)
182 buflen -= written;
187 written = snprintf(buffer, buflen, "%s%s",
190 if (written > (int)buflen)
192 buflen -= written;
194 if (buflen == 0)
198 snprintf(buffer, buflen, "nomem");
200 snprintf(buffer, buflen, "(nul
[all...]
/freebsd-11-stable/contrib/netbsd-tests/lib/libbpfjit/
H A Dt_cop.c74 return args->buflen;
147 .buflen = sizeof(pkt),
165 "that returns the buflen argument");
180 .buflen = sizeof(pkt),
213 .buflen = sizeof(pkt),
246 .buflen = sizeof(pkt),
282 .buflen = sizeof(pkt),
324 .buflen = sizeof(pkt),
402 .buflen = sizeof(pkt),
420 "that returns the buflen argumen
[all...]
/freebsd-11-stable/sys/net80211/
H A Dieee80211_crypto_wep.c331 size_t buflen, data_len; local
359 buflen = m->m_len - off;
361 if (buflen > data_len)
362 buflen = data_len;
363 data_len -= buflen;
364 for (k = 0; k < buflen; k++) {
385 buflen = m->m_len;
414 size_t buflen, data_len; local
442 buflen = m->m_len - off;
444 if (buflen > data_le
[all...]
/freebsd-11-stable/contrib/netbsd-tests/net/bpfjit/
H A Dt_cop.c82 return args->buflen;
159 .buflen = sizeof(pkt),
183 "that returns the buflen argument");
198 .buflen = sizeof(pkt),
237 .buflen = sizeof(pkt),
276 .buflen = sizeof(pkt),
318 .buflen = sizeof(pkt),
366 .buflen = sizeof(pkt),
460 .buflen = sizeof(pkt),
484 "that returns the buflen argumen
[all...]
/freebsd-11-stable/contrib/libarchive/libarchive/
H A Darchive_blake2s_ref.c219 size_t left = S->buflen;
223 S->buflen = 0;
235 memcpy( S->buf + S->buflen, in, inlen );
236 S->buflen += inlen;
252 blake2s_increment_counter( S, ( uint32_t )S->buflen );
254 memset( S->buf + S->buflen, 0, BLAKE2S_BLOCKBYTES - S->buflen ); /* Padding */
/freebsd-11-stable/contrib/wpa/wpa_supplicant/
H A Dwifi_display.c353 char *buf, size_t buflen)
364 res = wpa_snprintf_hex(buf, buflen, wpabuf_head(ie),
377 return wpa_snprintf_hex(buf, buflen,
388 size_t buflen; local
399 buflen = wpabuf_len(wfd_subelems);
401 while (i + WIFI_DISPLAY_SUBELEM_HEADER_LEN < buflen) {
403 if (i + WIFI_DISPLAY_SUBELEM_HEADER_LEN + elen > buflen)
352 wifi_display_subelem_get(struct wpa_global *global, char *cmd, char *buf, size_t buflen) argument
/freebsd-11-stable/usr.bin/procstat/
H A Dprocstat_files.c91 addr_to_string(struct sockaddr_storage *ss, char *buffer, int buflen) argument
102 strlcpy(buffer, "-", buflen);
104 strlcpy(buffer, sun->sun_path, buflen);
109 snprintf(buffer, buflen, "%s:%d", inet_ntoa(sin->sin_addr),
117 snprintf(buffer, buflen, "%s.%d", buffer2,
120 strlcpy(buffer, "-", buflen);
124 strlcpy(buffer, "", buflen);
/freebsd-11-stable/contrib/tcpdump/
H A Dprint-bgp.c533 const u_char *pptr, u_int itemlen, char *buf, u_int buflen)
554 snprintf(buf, buflen, "%s/%d", ipaddr_string(ndo, &addr), plen);
566 const u_char *pptr, u_int itemlen, char *buf, u_int buflen)
603 snprintf(buf, buflen, "%s/%d, label:%u %s",
672 const u_char *pptr, char *buf, u_int buflen)
688 snprintf(buf + offset, buflen - offset, ", Source %s",
702 snprintf(buf + offset, buflen - offset, ", Group %s",
757 const u_char *pptr, char *buf, u_int buflen)
773 snprintf(buf, buflen, "default route target");
801 snprintf(buf, buflen, "origi
532 decode_prefix4(netdissect_options *ndo, const u_char *pptr, u_int itemlen, char *buf, u_int buflen) argument
565 decode_labeled_prefix4(netdissect_options *ndo, const u_char *pptr, u_int itemlen, char *buf, u_int buflen) argument
671 bgp_vpn_sg_print(netdissect_options *ndo, const u_char *pptr, char *buf, u_int buflen) argument
756 decode_rt_routing_info(netdissect_options *ndo, const u_char *pptr, char *buf, u_int buflen) argument
812 decode_labeled_vpn_prefix4(netdissect_options *ndo, const u_char *pptr, char *buf, u_int buflen) argument
863 decode_mdt_vpn_nlri(netdissect_options *ndo, const u_char *pptr, char *buf, u_int buflen) argument
920 decode_multicast_vpn(netdissect_options *ndo, const u_char *pptr, char *buf, u_int buflen) argument
1027 decode_labeled_vpn_l2(netdissect_options *ndo, const u_char *pptr, char *buf, u_int buflen) argument
1119 decode_prefix6(netdissect_options *ndo, const u_char *pd, u_int itemlen, char *buf, u_int buflen) argument
1152 decode_labeled_prefix6(netdissect_options *ndo, const u_char *pptr, u_int itemlen, char *buf, u_int buflen) argument
1197 decode_labeled_vpn_prefix6(netdissect_options *ndo, const u_char *pptr, char *buf, u_int buflen) argument
1236 decode_clnp_prefix(netdissect_options *ndo, const u_char *pptr, char *buf, u_int buflen) argument
1266 decode_labeled_vpn_clnp_prefix(netdissect_options *ndo, const u_char *pptr, char *buf, u_int buflen) argument
[all...]
/freebsd-11-stable/sys/cddl/contrib/opensolaris/common/nvpair/
H A Dopensolaris_nvpair.c2391 nvs_getsize_pairs(nvstream_t *nvs, nvlist_t *nvl, size_t *buflen) argument
2395 uint64_t nvsize = *buflen;
2409 *buflen = nvsize;
2414 nvs_operation(nvstream_t *nvs, nvlist_t *nvl, size_t *buflen) argument
2424 if ((err = nvs->nvs_ops->nvs_nvlist(nvs, nvl, buflen)) != 0)
2437 err = nvs_getsize_pairs(nvs, nvl, buflen);
2550 nvlist_common(nvlist_t *nvl, char *buf, size_t *buflen, int encoding, argument
2563 if (buflen == NULL || nvl == NULL ||
2577 if (buf == NULL || *buflen < sizeof (nvs_header_t))
2587 if (buf == NULL || *buflen < sizeo
2643 nvlist_pack(nvlist_t *nvl, char **bufp, size_t *buflen, int encoding, int kmflag) argument
2655 nvlist_xpack(nvlist_t *nvl, char **bufp, size_t *buflen, int encoding, nv_alloc_t *nva) argument
2706 nvlist_unpack(char *buf, size_t buflen, nvlist_t **nvlp, int kmflag) argument
2717 nvlist_xunpack(char *buf, size_t buflen, nvlist_t **nvlp, nv_alloc_t *nva) argument
2757 nvs_native_create(nvstream_t *nvs, nvs_native_t *native, char *buf, size_t buflen) argument
3097 nvs_native(nvstream_t *nvs, nvlist_t *nvl, char *buf, size_t *buflen) argument
3136 nvs_xdr_create(nvstream_t *nvs, XDR *xdr, char *buf, size_t buflen) argument
3224 uint_t nelem, buflen; local
3584 nvs_xdr(nvstream_t *nvs, nvlist_t *nvl, char *buf, size_t *buflen) argument
[all...]
/freebsd-11-stable/usr.bin/netstat/
H A Dsctp.c160 sctp_skip_xinpcb_ifneed(char *buf, const size_t buflen, size_t *offset) argument
167 while (*offset < buflen) {
174 while (*offset < buflen) {
182 while (*offset < buflen) {
189 while (*offset < buflen) {
208 char *buf, const size_t buflen, size_t *offset, int *indent)
223 while (*offset < buflen) {
244 while (*offset < buflen) {
328 char *buf, const size_t buflen, size_t *offset)
371 sctp_skip_xinpcb_ifneed(buf, buflen, offse
207 sctp_process_tcb(struct xsctp_tcb *xstcb, char *buf, const size_t buflen, size_t *offset, int *indent) argument
327 sctp_process_inpcb(struct xsctp_inpcb *xinpcb, char *buf, const size_t buflen, size_t *offset) argument
[all...]
/freebsd-11-stable/contrib/wpa/hs20/client/
H A Dest.c124 size_t buflen; local
129 buflen = os_strlen(url) + 100;
130 buf = os_malloc(buflen);
134 os_snprintf(buf, buflen, "%s/cacerts", url);
605 size_t buflen; local
611 buflen = os_strlen(url) + 100;
612 buf = os_malloc(buflen);
616 os_snprintf(buf, buflen, "%s/csrattrs", url);
680 size_t buflen, resp_len, len, pkcs7_len; local
701 buflen
[all...]
/freebsd-11-stable/crypto/openssl/crypto/asn1/
H A Da_strex.c193 static int do_buf(unsigned char *buf, int buflen, argument
201 q = buf + buflen;
207 if (buflen & 3) {
213 if (buflen & 1) {
246 i = UTF8_getc(p, buflen, &c);
249 buflen -= i;
290 int buflen)
297 q = buf + buflen;
306 return buflen << 1;
289 do_hex_dump(char_io *io_ch, void *arg, unsigned char *buf, int buflen) argument
/freebsd-11-stable/sys/sparc64/sparc64/
H A Diommu.c854 bus_size_t buflen, int flags, bus_dma_segment_t *segs, int *segp)
885 KASSERT(buflen != 0, ("%s: buflen == 0!", __func__));
886 if (buflen > dt->dt_maxsize)
895 error = iommu_dvma_vallocseg(dt, is, map, voffs, buflen, amask,
903 map->dm_flags |= iommu_use_streaming(is, map, buflen) != 0 ?
905 for (; buflen > 0; ) {
912 if (buflen < sgsize)
913 sgsize = buflen;
915 buflen
853 iommu_dvmamap_load_phys(bus_dma_tag_t dt, bus_dmamap_t map, vm_paddr_t buf, bus_size_t buflen, int flags, bus_dma_segment_t *segs, int *segp) argument
968 iommu_dvmamap_load_buffer(bus_dma_tag_t dt, bus_dmamap_t map, void *buf, bus_size_t buflen, pmap_t pmap, int flags, bus_dma_segment_t *segs, int *segp) argument
[all...]
/freebsd-11-stable/tools/regression/netinet/ipbroadcast/
H A Dipbroadcast.c129 size_t buflen; local
153 buflen = DEFAULT_PAYLOAD_SIZE;
177 buflen = atoi(optarg);
289 buf = malloc(buflen);
297 iov[0].iov_len = buflen;
/freebsd-11-stable/sbin/dhclient/
H A Dpacket.c163 unsigned char *data, int buflen)
193 if (ntohs(ip->ip_len) != buflen)
195 ntohs(ip->ip_len), buflen);
208 if (len + data > buf + bufix + buflen) {
221 if (len + data != buf + bufix + buflen)
162 decode_udp_ip_header(unsigned char *buf, int bufix, struct sockaddr_in *from, unsigned char *data, int buflen) argument
/freebsd-11-stable/lib/libc/resolv/
H A Dres_send.c304 const u_char *buf, int buflen, u_char *ans, int anssiz)
322 (stdout, ";; res_send()\n"), buf, buflen);
323 v_circuit = (statp->options & RES_USEVC) || buflen > PACKETSZ;
439 act = (*statp->qhook)(&nsap, &buf, &buflen,
476 n = send_vc(statp, buf, buflen, ans, anssiz, &terrno,
489 buf, buflen, ans, anssiz, &terrno,
525 act = (*statp->rhook)(nsap, buf, buflen,
621 const u_char *buf, int buflen, u_char *ans, int anssiz,
709 ns_put16((u_short)buflen, (u_char*)&len);
712 iov[1] = evConsIovec(tmp, buflen);
303 res_nsend(res_state statp, const u_char *buf, int buflen, u_char *ans, int anssiz) argument
620 send_vc(res_state statp, const u_char *buf, int buflen, u_char *ans, int anssiz, int *terrno, int ns) argument
822 send_dg(res_state statp, int kq, const u_char *buf, int buflen, u_char *ans, int anssiz, int *terrno, int ns, int tries, int *v_circuit, int *gotsomewhere) argument
[all...]
/freebsd-11-stable/contrib/binutils/gas/
H A Dsb.c115 scrub_from_sb (char *buf, int buflen) argument
119 if (copy > buflen)
120 copy = buflen;
/freebsd-11-stable/contrib/tcp_wrappers/
H A Dworkarounds.c125 int fix_recvfrom(sock, buf, buflen, flags, from, fromlen)
128 int buflen;
137 if ((ret = recvfrom(sock, buf, buflen, flags, from, fromlen)) >= 0) {
/freebsd-11-stable/sys/sys/
H A Dbus_dma.h196 bus_size_t buflen, bus_dmamap_callback_t *callback,
334 void *buf, bus_size_t buflen, struct pmap *pmap,
338 vm_paddr_t paddr, bus_size_t buflen,
/freebsd-11-stable/contrib/wpa/src/common/
H A Dcli.c211 int write_cmd(char *buf, size_t buflen, const char *cmd, int argc, char *argv[]) argument
217 end = buf + buflen;
231 buf[buflen - 1] = '\0';
/freebsd-11-stable/sys/dev/smbus/
H A Dsmbus.c138 size_t buflen)
144 snprintf(buf, buflen, "addr=0x%x", devi->addr);
145 else if (buflen)
137 smbus_child_location_str(device_t parent, device_t child, char *buf, size_t buflen) argument

Completed in 406 milliseconds

1234567891011>>