Searched refs:buffer (Results 226 - 250 of 1522) sorted by relevance

1234567891011>>

/freebsd-11.0-release/sys/dev/cardbus/
H A Dcardbus_device.c79 if (cis->len + 1 > sizeof(cis->buffer)) {
83 cis->buffer[cis->len++] = id;
86 if (cis->len + 2 + len > sizeof(cis->buffer)) {
90 cis->buffer[cis->len++] = id;
91 cis->buffer[cis->len++] = len;
93 cis->buffer[cis->len++] = tupledata[i];
164 return (uiomove(devi->sc_cis.buffer + uio->uio_offset,
/freebsd-11.0-release/contrib/unbound/sldns/
H A Dparse.c222 sldns_bgetc(sldns_buffer *buffer) argument
224 if (!sldns_buffer_available_at(buffer, buffer->_position, sizeof(uint8_t))) {
225 sldns_buffer_set_position(buffer, sldns_buffer_limit(buffer));
226 /* sldns_buffer_rewind(buffer);*/
229 return (int)sldns_buffer_read_u8(buffer);
385 sldns_bskipcs(sldns_buffer *buffer, const char *s) argument
391 while(sldns_buffer_available_at(buffer, buffer
[all...]
/freebsd-11.0-release/lib/libc/net/
H A Dgetservent.c136 char *buffer; member in struct:servent_state
225 parse_result(struct servent *serv, char *buffer, size_t bufsize, argument
235 aliases = (char **)_ALIGN(&buffer[resultbuflen + 1]);
236 aliases_size = (buffer + bufsize - (char *)aliases) / sizeof(char *);
242 memcpy(buffer, resultbuf, resultbuflen);
243 buffer[resultbuflen] = '\0';
245 if (servent_unpack(buffer, serv, aliases, aliases_size, errnop) != 0)
299 char *buffer; local
326 buffer = va_arg(ap, char *);
367 compat_src, name, proto, serv, buffer,
504 char *buffer; local
676 char *buffer; local
863 serv_id_func(char *buffer, size_t *buffer_size, va_list ap, void *cache_mdata) argument
938 serv_marshal_func(char *buffer, size_t *buffer_size, void *retval, va_list ap, void *cache_mdata) argument
1039 serv_unmarshal_func(char *buffer, size_t buffer_size, void *retval, va_list ap, void *cache_mdata) argument
1108 getservbyname_r(const char *name, const char *proto, struct servent *serv, char *buffer, size_t bufsize, struct servent **result) argument
1145 getservbyport_r(int port, const char *proto, struct servent *serv, char *buffer, size_t bufsize, struct servent **result) argument
1182 getservent_r(struct servent *serv, char *buffer, size_t bufsize, struct servent **result) argument
1278 wrap_getservbyname_r(struct key key, struct servent *serv, char *buffer, size_t bufsize, struct servent **res) argument
1286 wrap_getservbyport_r(struct key key, struct servent *serv, char *buffer, size_t bufsize, struct servent **res) argument
1294 wrap_getservent_r(struct key key, struct servent *serv, char *buffer, size_t bufsize, struct servent **res) argument
[all...]
H A Dgetnetnamadr.c61 net_id_func(char *buffer, size_t *buffer_size, va_list ap, void *cache_mdata) argument
83 memcpy(buffer, &lookup_type, sizeof(enum nss_lookup_type));
84 memcpy(buffer + sizeof(enum nss_lookup_type), name, size + 1);
99 memcpy(buffer, &lookup_type, sizeof(enum nss_lookup_type));
100 memcpy(buffer + sizeof(enum nss_lookup_type), &net,
102 memcpy(buffer + sizeof(enum nss_lookup_type) + sizeof(uint32_t),
119 net_marshal_func(char *buffer, size_t *buffer_size, void *retval, va_list ap, argument
177 memset(buffer, 0, desired_size);
178 p = buffer + sizeof(struct netent) + sizeof(char *);
179 memcpy(buffer
208 net_unmarshal_func(char *buffer, size_t buffer_size, void *retval, va_list ap, void *cache_mdata) argument
338 getnetbyname_r(const char *name, struct netent *ne, char *buffer, size_t buflen, struct netent **result, int *h_errorp) argument
370 getnetbyaddr_r(uint32_t addr, int af, struct netent *ne, char *buffer, size_t buflen, struct netent **result, int *h_errorp) argument
[all...]
H A Dgetprotoent.c88 __proto_id_func(char *buffer, size_t *buffer_size, va_list ap, argument
110 memcpy(buffer, &lookup_type, sizeof(enum nss_lookup_type));
111 memcpy(buffer + sizeof(enum nss_lookup_type), name, size + 1);
124 memcpy(buffer, &lookup_type, sizeof(enum nss_lookup_type));
125 memcpy(buffer + sizeof(enum nss_lookup_type), &proto,
142 __proto_marshal_func(char *buffer, size_t *buffer_size, void *retval, argument
198 memset(buffer, 0, desired_size);
199 p = buffer + sizeof(struct protoent) + sizeof(char *);
200 memcpy(buffer + sizeof(struct protoent), &p, sizeof(char *));
224 memcpy(buffer,
229 __proto_unmarshal_func(char *buffer, size_t buffer_size, void *retval, va_list ap, void *cache_mdata) argument
417 char *buffer; local
472 getprotoent_r(struct protoent *pptr, char *buffer, size_t buflen, struct protoent **result) argument
[all...]
/freebsd-11.0-release/contrib/apr-util/crypto/
H A Dapr_sha1.c182 static void maybe_byte_reverse(apr_uint32_t *buffer, int count) argument
189 cp = (apr_byte_t *) buffer;
221 const unsigned char *buffer,
236 memcpy(((apr_byte_t *) sha_info->data) + sha_info->local, buffer, i);
238 buffer += i;
249 memcpy(sha_info->data, buffer, SHA_BLOCKSIZE);
250 buffer += SHA_BLOCKSIZE;
255 memcpy(sha_info->data, buffer, count);
264 const apr_byte_t *buffer = (const apr_byte_t *) buf; local
279 apr_xlate_conv_buffer(ebcdic2ascii_xlate, buffer,
220 apr_sha1_update_binary(apr_sha1_ctx_t *sha_info, const unsigned char *buffer, unsigned int count) argument
[all...]
/freebsd-11.0-release/usr.sbin/bluetooth/hcsecd/
H A Dhcsecd.c74 char buffer[HCSECD_BUFFER_SIZE]; local
153 event = (ng_hci_event_pkt_t *) buffer;
156 n = recvfrom(sock, buffer, sizeof(buffer), 0,
268 uint8_t buffer[HCSECD_BUFFER_SIZE]; local
271 memset(buffer, 0, sizeof(buffer));
273 cmd = (ng_hci_cmd_pkt_t *) buffer;
307 if (sendto(sock, buffer, sizeof(*cmd) + cmd->length, 0,
327 uint8_t buffer[HCSECD_BUFFER_SIZ local
[all...]
/freebsd-11.0-release/crypto/heimdal/lib/gssapi/mech/
H A Dgss_krb5.c100 gss_buffer_desc buffer; local
173 buffer.value = data.data;
174 buffer.length = data.length;
179 &buffer);
192 gss_buffer_desc buffer; local
197 buffer.value = rk_UNCONST(identity);
198 buffer.length = strlen(identity);
205 GSS_KRB5_REGISTER_ACCEPTOR_IDENTITY_X, &buffer);
219 gss_buffer_desc buffer; local
225 buffer
439 gss_buffer_desc buffer; local
489 gss_buffer_desc buffer; local
522 gss_buffer_desc buffer; local
813 gss_buffer_desc buffer; local
874 gss_buffer_desc buffer; local
897 gss_buffer_desc buffer; local
925 gss_buffer_desc buffer; local
[all...]
/freebsd-11.0-release/contrib/ncurses/progs/
H A Ddump_entry.c435 /* Returns the nominal length of the buffer assuming it is termcap format,
439 * fixed-size buffer. Generally they strip the newlines from the text, but may
440 * not do it until after the buffer is read. Also, "tc=" resolution may be
441 * expanded in the same buffer. This function is useful for measuring the size
442 * of the best fixed-buffer implementation; the worst case may be much worse.
465 indent_DYN(DYNBUF * buffer, int level) argument
470 strncpy_DYN(buffer, "\t", (size_t) 1);
603 char buffer[MAX_TERMINFO_LENGTH + EXTRA_CAP]; local
613 wrap_concat(buffer); \
650 assert(strlen(name) < sizeof(buffer)
1230 char buffer[MAX_TERMINFO_LENGTH]; local
[all...]
/freebsd-11.0-release/contrib/unbound/daemon/
H A Dworker.c248 if(!LDNS_QR_WIRE(sldns_buffer_begin(c->buffer))
249 || LDNS_OPCODE_WIRE(sldns_buffer_begin(c->buffer)) !=
251 || LDNS_QDCOUNT(sldns_buffer_begin(c->buffer)) > 1) {
279 if(!LDNS_QR_WIRE(sldns_buffer_begin(c->buffer))
280 || LDNS_OPCODE_WIRE(sldns_buffer_begin(c->buffer)) !=
282 || LDNS_QDCOUNT(sldns_buffer_begin(c->buffer)) > 1) {
502 error_encode(repinfo->c->buffer, LDNS_RCODE_SERVFAIL,
532 repinfo->c->buffer, 0, 1, worker->scratchpad,
534 error_encode(repinfo->c->buffer, LDNS_RCODE_SERVFAIL,
540 server_stats_insrcode(&worker->stats, repinfo->c->buffer);
[all...]
/freebsd-11.0-release/contrib/compiler-rt/lib/tsan/rtl/
H A Dtsan_md5.cc38 unsigned char buffer[64]; member in struct:__tsan::__anon923
167 internal_memcpy(&ctx->buffer[used], data, size);
171 internal_memcpy(&ctx->buffer[used], data, free);
174 body(ctx, ctx->buffer, 64);
182 internal_memcpy(ctx->buffer, data, size);
190 ctx->buffer[used++] = 0x80;
195 internal_memset(&ctx->buffer[used], 0, free);
196 body(ctx, ctx->buffer, 64);
201 internal_memset(&ctx->buffer[used], 0, free - 8);
204 ctx->buffer[5
[all...]
/freebsd-11.0-release/sys/security/mac/
H A Dmac_socket.c529 char *buffer; local
539 buffer = malloc(mac->m_buflen, M_MACTEMP, M_WAITOK);
540 error = copyinstr(mac->m_string, buffer, mac->m_buflen, NULL);
542 free(buffer, M_MACTEMP);
547 error = mac_socket_internalize_label(intlabel, buffer);
548 free(buffer, M_MACTEMP);
561 char *buffer, *elements; local
579 buffer = malloc(mac->m_buflen, M_MACTEMP, M_WAITOK | M_ZERO);
584 error = mac_socket_externalize_label(intlabel, elements, buffer,
588 error = copyout(buffer, ma
600 char *elements, *buffer; local
[all...]
/freebsd-11.0-release/usr.bin/nl/
H A Dnl.c95 * Dynamically allocated buffer suitable for string representation of ints.
259 /* Allocate a buffer suitable for preformatting line number. */
262 err(EXIT_FAILURE, "cannot allocate preformatting buffer");
274 char *buffer; local
287 buffer = NULL;
289 while ((linelen = getline(&buffer, &buffersize, stdin)) > 0) {
294 if (memcmp(buffer + delimlen * idx, delim,
298 if (buffer[delimlen * (idx + 1)] == '\n') {
314 if (buffer[0] == '\n' && ++adjblank < nblank)
320 donumber = (buffer[
[all...]
/freebsd-11.0-release/contrib/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_printf.cc41 // Appends number in a given base to buffer. If its length is less than
60 RAW_CHECK_MSG((uptr)pos < kMaxLen, "AppendNumber buffer overflow");
237 // hand, the bigger the buffer is, the more the chance the error report will
241 char *buffer = local_buffer; local
243 // First try to print a message using a local buffer, and then fall back to
244 // mmaped buffer.
249 buffer = (char*)MmapOrDie(kLen, "Report");
253 // Check that data fits into the current buffer.
264 needed_length += internal_snprintf(buffer, buffer_size,
268 needed_length += internal_snprintf(buffer
315 internal_snprintf(char *buffer, uptr length, const char *format, ...) argument
[all...]
/freebsd-11.0-release/sys/netgraph/bluetooth/hci/
H A Dng_hci_misc.c107 NG_HCI_BUFF_ACL_SIZE(unit->buffer, ep->pkt_size);
108 NG_HCI_BUFF_ACL_TOTAL(unit->buffer, ep->num_pkts);
110 NG_HCI_BUFF_SCO_SIZE(unit->buffer, ep->pkt_size);
111 NG_HCI_BUFF_SCO_TOTAL(unit->buffer, ep->num_pkts);
141 NG_HCI_BUFF_CMD_SET(unit->buffer, 1);
160 NG_HCI_BUFF_ACL_TOTAL(unit->buffer, size);
161 NG_HCI_BUFF_ACL_FREE(unit->buffer, size);
163 NG_HCI_BUFF_SCO_TOTAL(unit->buffer, size);
164 NG_HCI_BUFF_SCO_FREE(unit->buffer, size);
289 NG_HCI_BUFF_ACL_TOTAL(unit->buffer, num_pkt
[all...]
/freebsd-11.0-release/lib/libedit/
H A Dfilecomplete.c451 ctemp = find_word_start_func(li->buffer, li->cursor);
454 while (ctemp > li->buffer
475 *point = (int)(li->cursor - li->buffer);
477 *end = (int)(li->lastchar - li->buffer);
480 int cur_off = (int)(li->cursor - li->buffer);
616 sh_find_word_start(const Char *buffer, const Char *cursor) argument
618 const Char *word_start = buffer;
620 while (buffer < cursor) {
621 if (*buffer == '\\')
622 buffer
[all...]
H A Dchared.c54 /* value to leave unused in line buffer */
68 size = (size_t)(el->el_line.lastchar - el->el_line.buffer);
70 vu->cursor = (int)(el->el_line.cursor - el->el_line.buffer);
71 (void)memcpy(vu->buf, el->el_line.buffer, size * sizeof(*vu->buf));
104 return; /* can't go past end of buffer */
164 if (el->el_line.cursor - num < el->el_line.buffer)
165 num = (int)(el->el_line.cursor - el->el_line.buffer);
399 el->el_line.buffer = el_malloc(EL_BUFSIZ *
400 sizeof(*el->el_line.buffer));
401 if (el->el_line.buffer
[all...]
/freebsd-11.0-release/crypto/openssl/crypto/ec/
H A Deck_prn.c146 unsigned char *buffer = NULL; local
257 if ((buffer = OPENSSL_malloc(buf_len)) == NULL) {
284 if ((p != NULL) && !ASN1_bn_print(bp, "Polynomial:", p, buffer,
288 if ((p != NULL) && !ASN1_bn_print(bp, "Prime:", p, buffer, off))
291 if ((a != NULL) && !ASN1_bn_print(bp, "A: ", a, buffer, off))
293 if ((b != NULL) && !ASN1_bn_print(bp, "B: ", b, buffer, off))
297 buffer, off))
301 buffer, off))
306 buffer, off))
310 buffer, of
[all...]
/freebsd-11.0-release/sys/dev/pms/RefTisa/tisa/sassata/sas/ini/
H A Ditdinit.c253 char *buffer; local
275 buffer = &tmpBuffer[0];
278 osti_memset(buffer, 0, buffLen);
286 osti_memset(buffer, 0, buffLen);
300 buffer,
305 if (osti_strncmp(buffer, "0x", 2) == 0)
307 OperatingOption->MaxTargets = osti_strtoul (buffer, &pLastUsedChar, 0);
311 OperatingOption->MaxTargets = osti_strtoul (buffer, &pLastUsedChar, 10);
327 buffer,
332 if (osti_strncmp(buffer, "
[all...]
/freebsd-11.0-release/crypto/heimdal/lib/gssapi/krb5/
H A Dcfx.c217 _gk_allocate_buffer(OM_uint32 *minor_status, gss_iov_buffer_desc *buffer, size_t size) argument
219 if (buffer->type & GSS_IOV_BUFFER_FLAG_ALLOCATED) {
220 if (buffer->buffer.length == size)
222 free(buffer->buffer.value);
225 buffer->buffer.value = malloc(size);
226 buffer->buffer
[all...]
/freebsd-11.0-release/contrib/llvm/lib/Support/
H A DMD5.cpp204 memcpy(&buffer[used], Ptr, Size);
208 memcpy(&buffer[used], Ptr, free);
211 body(makeArrayRef(buffer, 64));
219 memcpy(buffer, Ptr, Size);
237 buffer[used++] = 0x80;
242 memset(&buffer[used], 0, free);
243 body(makeArrayRef(buffer, 64));
248 memset(&buffer[used], 0, free - 8);
251 buffer[56] = lo;
252 buffer[5
[all...]
/freebsd-11.0-release/sys/boot/usb/
H A Dusb_busdma_loader.c51 if (pc->buffer) {
55 res->buffer = USB_ADD_BYTES(pc->buffer, offset);
75 if (!pc->buffer) {
79 res->buffer = USB_ADD_BYTES(page->buffer, offset);
86 res->buffer = USB_ADD_BYTES(pc->buffer, offset);
109 memcpy(buf_res.buffer, ptr, buf_res.length);
133 memcpy(ptr, res.buffer, re
[all...]
/freebsd-11.0-release/usr.bin/dtc/
H A Dinput_buffer.cc61 char c = buffer[cursor];
72 c = buffer[cursor];
92 return input_buffer(&buffer[offset], s);
107 if (str[i] != buffer[cursor + i])
128 outInt = strtoull(&buffer[cursor], &end, 0);
129 if (end == &buffer[cursor])
133 cursor = end - buffer;
757 if (buffer[i] == '\n')
768 if (buffer[i] == '\n')
775 fwrite(&buffer[line_star
[all...]
/freebsd-11.0-release/crypto/heimdal/lib/gssapi/
H A Dtest_context.c322 iov[1].buffer.length = header.length;
323 iov[1].buffer.value = header.data;
326 iov[1].buffer.length = 0;
327 iov[1].buffer.value = NULL;
330 iov[2].buffer.length = token.length;
331 iov[2].buffer.value = token.data;
334 iov[3].buffer.length = trailer.length;
335 iov[3].buffer.value = trailer.data;
338 iov[3].buffer.length = 0;
339 iov[3].buffer
[all...]
/freebsd-11.0-release/contrib/gcclibs/libcpp/
H A Dtraditional.c47 /* Memory buffer holding the trad_arg array. */
52 buffer. The argument continues until the character before the
59 /* The offset of the macro name in the output buffer. */
96 /* Ensures we have N bytes' space in the output buffer, and
121 const uchar *cur = pfile->buffer->cur;
132 pfile->buffer->cur = cur;
139 The asterisk and following comment is copied to the buffer pointed
146 input buffer. */
152 cpp_buffer *buffer = pfile->buffer; local
268 cpp_buffer *buffer = pfile->buffer; local
285 cpp_buffer *buffer = pfile->overlaid_buffer; local
[all...]

Completed in 322 milliseconds

1234567891011>>