Home
last modified time | relevance | path

Searched refs:tmp_buf (Results 1 – 20 of 20) sorted by relevance

/freebsd-11-stable/contrib/amd/wire-test/
HDwire-test.c55 char *testhost, *proto, *tmp_buf; in main() local
70 tmp_buf = print_wires(); in main()
71 if (tmp_buf) { in main()
72 fprintf(stderr, "%s", tmp_buf); in main()
73 XFREE(tmp_buf); in main()
/freebsd-11-stable/contrib/amd/amd/
HDamq_subr.c267 static char tmp_buf[MAXPATHLEN]; in amqproc_pawd_1_svc() local
270 tmp_buf[0] = prev_buf[0] = '\0'; /* default is empty string: no match */ in amqproc_pawd_1_svc()
287 xstrlcpy(tmp_buf, mp->am_path, sizeof(tmp_buf)); in amqproc_pawd_1_svc()
288 xstrlcat(tmp_buf, &dir[len], sizeof(tmp_buf)); in amqproc_pawd_1_svc()
292 if (STREQ(tmp_buf, prev_buf)) in amqproc_pawd_1_svc()
295 xstrlcpy(prev_buf, tmp_buf, sizeof(prev_buf)); in amqproc_pawd_1_svc()
300 tmp_buf, MAX_PAWD_TRIES); in amqproc_pawd_1_svc()
302 res = tmp_buf; in amqproc_pawd_1_svc()
/freebsd-11-stable/contrib/wpa/src/p2p/
HDp2p_build.c601 struct wpabuf *tmp_buf = NULL; in p2p_buf_add_service_instance() local
613 tmp_buf = wpabuf_alloc(MAX_SVC_ADV_IE_LEN + 256 + P2PS_HASH_LEN); in p2p_buf_add_service_instance()
614 if (!tmp_buf) in p2p_buf_add_service_instance()
621 ie_len = p2p_buf_add_ie_hdr(tmp_buf); in p2p_buf_add_service_instance()
625 wpabuf_put_u8(tmp_buf, P2P_ATTR_ADVERTISED_SERVICE); in p2p_buf_add_service_instance()
626 attr_len = wpabuf_put(tmp_buf, sizeof(u16)); in p2p_buf_add_service_instance()
628 p2p_buf_update_ie_hdr(tmp_buf, ie_len); in p2p_buf_add_service_instance()
629 pos = wpabuf_put(tmp_buf, 0); in p2p_buf_add_service_instance()
633 p2p_buf_add_service_info(tmp_buf, p2p, 0, 0, P2PS_WILD_HASH_STR, in p2p_buf_add_service_instance()
646 p2p_buf_add_service_info(tmp_buf, p2p, in p2p_buf_add_service_instance()
[all …]
/freebsd-11-stable/contrib/amd/amq/
HDpawd.c240 char tmp_buf[MAXPATHLEN], *wd; in main() local
243 wd = getawd(tmp_buf, sizeof(tmp_buf)); in main()
245 fprintf(stderr, "pawd: %s\n", tmp_buf); in main()
/freebsd-11-stable/crypto/openssl/crypto/x509/
HDx509_obj.c84 char tmp_buf[80]; in X509_NAME_oneline() local
115 i2t_ASN1_OBJECT(tmp_buf, sizeof(tmp_buf), ne->object); in X509_NAME_oneline()
116 s = tmp_buf; in X509_NAME_oneline()
/freebsd-11-stable/crypto/openssl/crypto/evp/
HDdigest.c300 unsigned char *tmp_buf; in EVP_MD_CTX_copy_ex() local
314 tmp_buf = out->md_data; in EVP_MD_CTX_copy_ex()
317 tmp_buf = NULL; in EVP_MD_CTX_copy_ex()
322 if (tmp_buf) in EVP_MD_CTX_copy_ex()
323 out->md_data = tmp_buf; in EVP_MD_CTX_copy_ex()
/freebsd-11-stable/usr.sbin/camdd/
HDcamdd.c291 uint8_t *tmp_buf; member
568 free(file_dev->tmp_buf); in camdd_free_dev()
814 struct camdd_buf *tmp_buf; in camdd_buf_sg_create() local
861 for (i = 0, tmp_buf = STAILQ_FIRST(&buf->src_list); in camdd_buf_sg_create()
862 i < buf->src_count && tmp_buf != NULL; i++, in camdd_buf_sg_create()
863 tmp_buf = STAILQ_NEXT(tmp_buf, src_links)) { in camdd_buf_sg_create()
865 if (tmp_buf->buf_type == CAMDD_BUF_DATA) { in camdd_buf_sg_create()
868 tmp_data = &tmp_buf->buf_type_spec.data; in camdd_buf_sg_create()
885 tmp_ind = &tmp_buf->buf_type_spec.indirect; in camdd_buf_sg_create()
909 if ((tmp_buf != NULL) || (i != data->sg_count)) { in camdd_buf_sg_create()
[all …]
/freebsd-11-stable/sys/arm/ti/twl/
HDtwl.c226 uint8_t tmp_buf[TWL_MAX_IIC_DATA_SIZE + 1]; in twl_write() local
233 tmp_buf[0] = reg; in twl_write()
234 memcpy(&tmp_buf[1], buf, cnt); in twl_write()
250 msg.buf = tmp_buf; in twl_write()
/freebsd-11-stable/lib/libc/db/hash/
HDhash_bigkey.c436 memmove(hashp->tmp_buf, (save_p->page) + off, len); in __big_return()
437 val->data = (u_char *)hashp->tmp_buf; in __big_return()
460 if (hashp->tmp_buf) in collect_data()
461 free(hashp->tmp_buf); in collect_data()
462 if ((hashp->tmp_buf = (char *)malloc(totlen)) == NULL) in collect_data()
490 memmove(&hashp->tmp_buf[len], (bufp->page) + bp[1], mylen); in collect_data()
HDhash.h98 char *tmp_buf; /* Temporary Buffer for BIG data */ member
HDhash.c421 if (hashp->tmp_buf) in hdestroy()
422 free(hashp->tmp_buf); in hdestroy()
/freebsd-11-stable/contrib/libarchive/libarchive/
HDarchive_write_set_format_shar.c432 char tmp_buf[3]; in _uuencode_line() local
433 tmp_buf[0] = inbuf[0]; in _uuencode_line()
435 tmp_buf[1] = '\0'; in _uuencode_line()
437 tmp_buf[1] = inbuf[1]; in _uuencode_line()
438 tmp_buf[2] = '\0'; in _uuencode_line()
439 uuencode_group(tmp_buf, buf); in _uuencode_line()
/freebsd-11-stable/contrib/ntp/sntp/libevent/test/
HDregress_buffer.c1849 struct evbuffer *buf = NULL, *tmp_buf = NULL; in test_evbuffer_peek_first_gt() local
1854 tmp_buf = evbuffer_new(); in test_evbuffer_peek_first_gt()
1855 evbuffer_add_printf(tmp_buf, "Contents of chunk 100\n"); in test_evbuffer_peek_first_gt()
1856 evbuffer_add_buffer(buf, tmp_buf); in test_evbuffer_peek_first_gt()
1857 evbuffer_add_printf(tmp_buf, "Contents of chunk 1\n"); in test_evbuffer_peek_first_gt()
1858 evbuffer_add_buffer(buf, tmp_buf); in test_evbuffer_peek_first_gt()
1878 if (tmp_buf) in test_evbuffer_peek_first_gt()
1879 evbuffer_free(tmp_buf); in test_evbuffer_peek_first_gt()
1885 struct evbuffer *buf = NULL, *tmp_buf = NULL; in test_evbuffer_peek() local
1896 tmp_buf = evbuffer_new(); in test_evbuffer_peek()
[all …]
/freebsd-11-stable/crypto/openssl/ssl/
HDs3_clnt.c2533 unsigned char tmp_buf[SSL_MAX_MASTER_KEY_LENGTH]; in ssl3_send_client_key_exchange() local
2562 tmp_buf[0] = s->client_version >> 8; in ssl3_send_client_key_exchange()
2563 tmp_buf[1] = s->client_version & 0xff; in ssl3_send_client_key_exchange()
2564 if (RAND_bytes(&(tmp_buf[2]), sizeof(tmp_buf) - 2) <= 0) in ssl3_send_client_key_exchange()
2567 s->session->master_key_length = sizeof(tmp_buf); in ssl3_send_client_key_exchange()
2573 n = RSA_public_encrypt(sizeof(tmp_buf), in ssl3_send_client_key_exchange()
2574 tmp_buf, p, rsa, RSA_PKCS1_PADDING); in ssl3_send_client_key_exchange()
2579 tmp_buf[0] = 0x70; in ssl3_send_client_key_exchange()
2597 tmp_buf, in ssl3_send_client_key_exchange()
2598 sizeof(tmp_buf)); in ssl3_send_client_key_exchange()
[all …]
/freebsd-11-stable/sys/dev/ocs_fc/
HDocs_mgmt.c1131 char tmp_buf[80]; in get_chip_type() local
1144 ocs_snprintf(tmp_buf, 2, "%d", rev_id); in get_chip_type()
1145 strcat(result_buf, tmp_buf); in get_chip_type()
1153 ocs_snprintf(tmp_buf, 3, " %c", ((rev_id & 0xf0) >> 4) + 'A'); in get_chip_type()
1154 strcat(result_buf, tmp_buf); in get_chip_type()
1155 ocs_snprintf(tmp_buf, 2, "%d", rev_id & 0x0f); in get_chip_type()
1156 strcat(result_buf, tmp_buf); in get_chip_type()
1165 ocs_snprintf(tmp_buf, 2, "%d", rev_id & 0x0f); in get_chip_type()
1166 strcat(result_buf, tmp_buf); in get_chip_type()
1171 ocs_snprintf(tmp_buf, 3, " %c", ((rev_id & 0xf0) >> 4) + 'A'); in get_chip_type()
[all …]
/freebsd-11-stable/contrib/binutils/gas/
HDread.c1007 char *tmp_buf = 0; in read_a_source_file() local
1032 tmp_buf = xmalloc (tmp_len + 1); in read_a_source_file()
1033 memcpy (tmp_buf, s, tmp_len); in read_a_source_file()
1048 tmp_buf = xrealloc (tmp_buf, tmp_len + num); in read_a_source_file()
1049 memcpy (tmp_buf + tmp_len, buffer, num); in read_a_source_file()
1056 s = tmp_buf; in read_a_source_file()
1090 if (tmp_buf) in read_a_source_file()
1091 free (tmp_buf); in read_a_source_file()
/freebsd-11-stable/sys/cam/scsi/
HDscsi_pass.c1441 uint8_t *tmp_buf; in passmemsetup() local
1464 tmp_buf = malloc(lengths[i], M_SCSIPASS, in passmemsetup()
1466 io_req->kern_bufs[i] = tmp_buf; in passmemsetup()
1467 *data_ptrs[i] = tmp_buf; in passmemsetup()
1472 tmp_buf, lengths[i], io_req->user_bufs[i], in passmemsetup()
/freebsd-11-stable/sys/dev/mlx4/mlx4_ib/
HDmlx4_ib_cq.c432 struct mlx4_ib_cq_buf tmp_buf; in mlx4_ib_resize_cq() local
438 tmp_buf = cq->buf; in mlx4_ib_resize_cq()
449 mlx4_ib_free_cq_buf(dev, &tmp_buf, tmp_cqe); in mlx4_ib_resize_cq()
/freebsd-11-stable/contrib/gcc/config/rs6000/
HDrs6000.c18001 char tmp_buf[512]; in macho_branch_islands() local
18021 strcpy (tmp_buf, "\n"); in macho_branch_islands()
18022 strcat (tmp_buf, label); in macho_branch_islands()
18029 strcat (tmp_buf, ":\n\tmflr r0\n\tbcl 20,31,"); in macho_branch_islands()
18030 strcat (tmp_buf, label); in macho_branch_islands()
18031 strcat (tmp_buf, "_pic\n"); in macho_branch_islands()
18032 strcat (tmp_buf, label); in macho_branch_islands()
18033 strcat (tmp_buf, "_pic:\n\tmflr r11\n"); in macho_branch_islands()
18035 strcat (tmp_buf, "\taddis r11,r11,ha16("); in macho_branch_islands()
18036 strcat (tmp_buf, name_buf); in macho_branch_islands()
[all …]
/freebsd-11-stable/contrib/ofed/opensm/opensm/
HDosm_qos_parser_y.y2739 char tmp_buf[30]; in __setup_simple_qos_levels() local
2746 sprintf(tmp_buf, "%s%u", __SIMPLE_QOS_LEVEL_NAME, i); in __setup_simple_qos_levels()
2747 osm_qos_policy_simple_qos_levels[i].name = strdup(tmp_buf); in __setup_simple_qos_levels()