Home
last modified time | relevance | path

Searched refs:strncpy (Results 1 – 25 of 59) sorted by relevance

123

/Zephyr-Core-2.7.6/subsys/net/lib/sockets/
Dsockets_misc.c15 strncpy(buf, p, len); in z_impl_zsock_gethostname()
/Zephyr-Core-2.7.6/subsys/fs/
Dshell.c57 strncpy(path, name, len); in create_abs_path()
65 strncpy(path, name, len); in create_abs_path()
68 strncpy(path, cwd, len); in create_abs_path()
77 strncpy(path, name, len); in create_abs_path()
121 strncpy(cwd, path, sizeof(cwd)); in cmd_cd()
134 strncpy(path, cwd, sizeof(path)); in cmd_ls()
/Zephyr-Core-2.7.6/subsys/portability/cmsis_rtos_v2/
Dsemaphore.c47 strncpy(semaphore->name, init_sema_attrs.name, in osSemaphoreNew()
50 strncpy(semaphore->name, attr->name, in osSemaphoreNew()
Dmutex.c52 strncpy(mutex->name, init_mutex_attrs.name, in osMutexNew()
55 strncpy(mutex->name, attr->name, sizeof(mutex->name) - 1); in osMutexNew()
Dtimer.c68 strncpy(timer->name, init_timer_attrs.name, in osTimerNew()
71 strncpy(timer->name, attr->name, sizeof(timer->name) - 1); in osTimerNew()
Dmempool.c74 strncpy(mslab->name, init_mslab_attrs.name, in osMemoryPoolNew()
77 strncpy(mslab->name, attr->name, sizeof(mslab->name) - 1); in osMemoryPoolNew()
Devent_flags.c51 strncpy(events->name, init_event_flags_attrs.name, in osEventFlagsNew()
54 strncpy(events->name, attr->name, sizeof(events->name) - 1); in osEventFlagsNew()
Dmsgq.c72 strncpy(msgq->name, init_msgq_attrs.name, in osMessageQueueNew()
75 strncpy(msgq->name, attr->name, sizeof(msgq->name) - 1); in osMessageQueueNew()
Dthread.c206 strncpy(tid->name, init_thread_attrs.name, in osThreadNew()
209 strncpy(tid->name, attr->name, sizeof(tid->name) - 1); in osThreadNew()
/Zephyr-Core-2.7.6/tests/benchmarks/footprints/src/
Dlibc.c32 strncpy(new_string, const_string, len); in run_libc()
/Zephyr-Core-2.7.6/subsys/net/lib/utils/
Daddr_utils.c56 strncpy(host, addr_str, host_len + 1); in net_getaddrinfo_addr_str()
/Zephyr-Core-2.7.6/tests/bluetooth/at/src/
Dmain.c63 strncpy((char *)buf->data, example_data, len); in test_at()
/Zephyr-Core-2.7.6/subsys/net/lib/tftp/
Dtftp_client.c39 strncpy(ptr, remote_file, TFTP_MAX_FILENAME_SIZE); in make_request()
49 strncpy(ptr, mode, TFTP_MAX_MODE_SIZE); in make_request()
/Zephyr-Core-2.7.6/lib/libc/minimal/include/
Dstring.h20 extern char *strncpy(char *_MLIBC_RESTRICT d, const char *_MLIBC_RESTRICT s,
/Zephyr-Core-2.7.6/subsys/bluetooth/host/
Dsettings.c54 strncpy(&path[len], subsys, path_size - len); in bt_settings_encode_key()
77 strncpy(&path[len], key, path_size - len); in bt_settings_encode_key()
/Zephyr-Core-2.7.6/tests/bluetooth/bsim_bt/bsim_test_audio/src/
Dvcs_client_test.c109 strncpy(g_vocs_desc, description, sizeof(g_vocs_desc) - 1); in vocs_description_cb()
193 strncpy(g_aics_desc, description, sizeof(g_aics_desc) - 1); in aics_description_cb()
433 strncpy(expected_aics_desc, "New Input Description", in test_aics()
525 strncpy(expected_description, "New Output Description", in test_vocs()
Dvcs_test.c101 strncpy(g_vocs_desc, description, sizeof(g_vocs_desc) - 1); in vocs_description_cb()
165 strncpy(g_aics_desc, description, sizeof(g_aics_desc) - 1); in aics_description_cb()
341 strncpy(expected_aics_desc, "New Input Description", in test_aics_standalone()
417 strncpy(expected_description, "New Output Description", in test_vocs_standalone()
Dmics_client_test.c110 strncpy(g_aics_desc, description, sizeof(g_aics_desc) - 1); in aics_description_cb()
360 strncpy(expected_aics_desc, "New Input Description", in test_aics()
Dmics_test.c107 strncpy(g_aics_desc, description, sizeof(g_aics_desc) - 1); in aics_description_cb()
284 strncpy(expected_aics_desc, "New Input Description", in test_aics_server_only()
/Zephyr-Core-2.7.6/tests/subsys/settings/nvs/src/
Dsettings_test_nvs.c190 strncpy(argv, name, len); in c2_handle_get()
221 strncpy(argv, name, len); in c2_handle_set()
/Zephyr-Core-2.7.6/subsys/net/l2/virtual/
Dvirtual.c274 strncpy(buf, ctx->name, MIN(len, sizeof(ctx->name))); in net_virtual_get_name()
294 strncpy(ctx->name, name, CONFIG_NET_L2_VIRTUAL_MAX_NAME_LEN); in net_virtual_set_name()
/Zephyr-Core-2.7.6/drivers/ethernet/
Deth_native_posix_adapt.c70 strncpy(ifr.ifr_name, if_name, IFNAMSIZ - 1); in eth_iface_create()
/Zephyr-Core-2.7.6/samples/boards/reel_board/mesh_badge/src/
Dreel_board.c197 strncpy(stat->name, name, sizeof(stat->name) - 1); in add_hello()
205 strncpy(stat->name, name, sizeof(stat->name) - 1); in add_hello()
408 strncpy(buf, bt_get_name(), sizeof(buf) - 1); in show_main()
/Zephyr-Core-2.7.6/tests/subsys/settings/fcb/src/
Dsettings_test_fcb.c240 strncpy(argv, name, len); in c2_handle_get()
271 strncpy(argv, name, len); in c2_handle_set()
/Zephyr-Core-2.7.6/scripts/coccinelle/
Dsymbols.txt198 strncpy

123