Home
last modified time | relevance | path

Searched refs:coap_malloc (Results 1 – 10 of 10) sorted by relevance

/net-tools-2.7.6/libcoap/include/coap/
Dmem.h70 static inline void *coap_malloc(size_t size) { in coap_malloc() function
101 static inline void *coap_malloc(size_t size) { in coap_malloc() function
/net-tools-2.7.6/libcoap/src/
Dstr.c18 str *s = coap_malloc(sizeof(str) + size + 1); in coap_new_string()
Dasync.c40 s = (coap_async_state_t *)coap_malloc(sizeof(coap_async_state_t) + in coap_register_async()
Duri.c415 result = coap_malloc(length + 1 + sizeof(coap_uri_t)); in coap_new_uri()
437 result = (coap_uri_t *)coap_malloc( uri->query.length + uri->host.length + in coap_clone_uri()
Dcoap_io.c111 return (struct coap_endpoint_t *)coap_malloc(sizeof(struct coap_endpoint_t)); in coap_malloc_posix_endpoint()
351 packet = (coap_packet_t *)coap_malloc(need); in coap_malloc_packet()
Dresource.c35 ((coap_##Type##_t *)coap_malloc(sizeof(coap_##Type##_t)))
/net-tools-2.7.6/libcoap/examples/
Dcoap-rd.c71 rd = (rd_t *)coap_malloc(sizeof(rd_t)); in rd_new()
154 tmp.s = (unsigned char *)coap_malloc(tmp.length); in hnd_put_resource()
300 buf = (char *)coap_malloc(BUFSIZE); in add_source_address()
369 rd->data.s = (unsigned char *)coap_malloc(rd->data.length); in make_rd()
404 loc = (unsigned char *)coap_malloc(LOCSIZE); in hnd_post_rd()
472 buf = (unsigned char *)coap_malloc(ins.length + 2); in hnd_post_rd()
488 buf = (unsigned char *)coap_malloc(rt.length + 2); in hnd_post_rd()
Dclient.c579 node = coap_malloc(sizeof(coap_list_t) + sizeof(coap_option) + length); in new_option_node()
802 if ( (proxy.s = coap_malloc(proxy.length + 1)) == NULL) { in cmdline_proxy()
903 buf->s = (unsigned char *)coap_malloc(len); in cmdline_input()
924 buf->s = (unsigned char *)coap_malloc(buf->length); in cmdline_input_from_file()
937 buf->s = (unsigned char *)coap_malloc(buf->length); in cmdline_input_from_file()
1078 output_file.s = (unsigned char *)coap_malloc(output_file.length + 1); in main()
Detsi_iot_01.c82 p = (coap_payload_t *)coap_malloc(sizeof(coap_payload_t) + size); in coap_new_payload()
260 uri = (coap_dynamic_uri_t *)coap_malloc(sizeof(coap_dynamic_uri_t) + l); in hnd_post_test()
/net-tools-2.7.6/
Dcoap-client.c622 node = coap_malloc(sizeof(coap_list_t) + sizeof(coap_option) + length); in new_option_node()
719 node = coap_malloc(sizeof(coap_list_t) + sizeof(coap_option) + in clone_option()