Home
last modified time | relevance | path

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

12345678910>>...19

/kernel/linux/linux-5.10/arch/alpha/lib/
Dstrncpy.S21 .globl strncpy symbol
22 .ent strncpy
23 strncpy: label
82 .end strncpy
83 EXPORT_SYMBOL(strncpy)
/kernel/liteos_m/testsuites/sample/kernel/lms/
DIt_los_lms_019.c57 (VOID)strncpy(buf, src, 8); /* no trigger overflow */ in TestCase()
59 (VOID)strncpy(buf, src, 9); /* no trigger overflow */ in TestCase()
61 (VOID)strncpy(buf, src, 20); /* no trigger overflow */ in TestCase()
63 (VOID)strncpy(buf, src, 21); /* trigger buf overflow */ in TestCase()
/kernel/linux/linux-5.10/fs/hmdfs/
Dhmdfs_client.c433 strncpy(req->path, path, path_len); in hmdfs_client_start_readdir()
476 strncpy(mkdir_req->path, path, path_len); in hmdfs_client_start_mkdir()
477 strncpy(mkdir_req->path + path_len + 1, name, name_len); in hmdfs_client_start_mkdir()
524 strncpy(create_req->path, path, path_len); in hmdfs_client_start_create()
525 strncpy(create_req->path + path_len + 1, name, name_len); in hmdfs_client_start_create()
567 strncpy(rmdir_req->path, path, path_len); in hmdfs_client_start_rmdir()
568 strncpy(rmdir_req->path + path_len + 1, name, name_len); in hmdfs_client_start_rmdir()
596 strncpy(unlink_req->path, path, path_len); in hmdfs_client_start_unlink()
597 strncpy(unlink_req->path + path_len + 1, name, name_len); in hmdfs_client_start_unlink()
634 strncpy(rename_req->path, old_path, old_path_len); in hmdfs_client_start_rename()
[all …]
/kernel/linux/linux-5.10/include/scsi/
Dfc_encode.h171 strncpy(ct->payload.spn.fr_name, in fc_ct_ns_fill()
181 strncpy(ct->payload.snn.fr_name, in fc_ct_ns_fill()
263 strncpy((char *)&entry->value, in fc_ct_ms_fill()
275 strncpy((char *)&entry->value, in fc_ct_ms_fill()
287 strncpy((char *)&entry->value, in fc_ct_ms_fill()
299 strncpy((char *)&entry->value, in fc_ct_ms_fill()
311 strncpy((char *)&entry->value, in fc_ct_ms_fill()
323 strncpy((char *)&entry->value, in fc_ct_ms_fill()
335 strncpy((char *)&entry->value, in fc_ct_ms_fill()
347 strncpy((char *)&entry->value, in fc_ct_ms_fill()
[all …]
/kernel/linux/linux-5.10/fs/orangefs/
Dnamei.c43 strncpy(new_op->upcall.req.create.d_name, in orangefs_create()
139 strncpy(new_op->upcall.req.lookup.d_name, dentry->d_name.name, in orangefs_lookup()
194 strncpy(new_op->upcall.req.remove.d_name, dentry->d_name.name, in orangefs_unlink()
248 strncpy(new_op->upcall.req.sym.entry_name, in orangefs_symlink()
251 strncpy(new_op->upcall.req.sym.target, symname, ORANGEFS_NAME_MAX - 1); in orangefs_symlink()
324 strncpy(new_op->upcall.req.mkdir.d_name, in orangefs_mkdir()
404 strncpy(new_op->upcall.req.rename.d_old_name, in orangefs_rename()
407 strncpy(new_op->upcall.req.rename.d_new_name, in orangefs_rename()
/kernel/linux/linux-5.10/tools/perf/arch/x86/util/
Dheader.c35 strncpy(&vendor[0], (char *)(&b), 4); in __get_cpuid()
36 strncpy(&vendor[4], (char *)(&d), 4); in __get_cpuid()
37 strncpy(&vendor[8], (char *)(&c), 4); in __get_cpuid()
/kernel/linux/linux-5.10/drivers/staging/greybus/Documentation/firmware/
Dfirmware.c66 strncpy((char *)&intf_load.firmware_tag, firmware_tag, in update_intf_firmware()
104 strncpy((char *)&backend_fw_info.firmware_tag, firmware_tag, in update_backend_firmware()
132 strncpy((char *)&backend_update.firmware_tag, firmware_tag, in update_backend_firmware()
/kernel/linux/linux-5.10/arch/powerpc/lib/
Dstring.S15 _GLOBAL(strncpy)
33 EXPORT_SYMBOL(strncpy)
/kernel/linux/linux-5.10/drivers/acpi/acpica/
Dtbfind.c60 strncpy(header.oem_id, oem_id, ACPI_OEM_ID_SIZE); in acpi_tb_find_table()
61 strncpy(header.oem_table_id, oem_table_id, ACPI_OEM_TABLE_ID_SIZE); in acpi_tb_find_table()
/kernel/linux/linux-5.10/block/
Dcmdline-parser.c53 strncpy(new_subpart->name, partdef, length); in parse_subpart()
112 strncpy(newparts->name, bdevdef, length); in parse_parts()
125 strncpy(buf, bdevdef, length); in parse_parts()
/kernel/linux/linux-5.10/drivers/power/supply/
Dmax1721x_battery.c387 strncpy(info->ManufacturerName, DEF_MFG_NAME, in devm_w1_max1721x_add_device()
406 strncpy(info->DeviceName, DEF_DEV_NAME_MAX17211, in devm_w1_max1721x_add_device()
410 strncpy(info->DeviceName, DEF_DEV_NAME_MAX17215, in devm_w1_max1721x_add_device()
414 strncpy(info->DeviceName, DEF_DEV_NAME_UNKNOWN, in devm_w1_max1721x_add_device()
/kernel/liteos_a/kernel/extended/lms/
Dlms_libc.c109 #undef strncpy
110 char *strncpy(char *dest, const char *src, size_t n) in strncpy() function
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dqueue_stack_map.c24 strncpy(file, "./test_queue_map.o", sizeof(file)); in test_queue_stack_map_by_type()
26 strncpy(file, "./test_stack_map.o", sizeof(file)); in test_queue_stack_map_by_type()
/kernel/liteos_m/components/lms/
Dlms_libc.c109 #undef strncpy
110 char *strncpy(char *dest, const char *src, size_t n) in strncpy() function
/kernel/linux/linux-5.10/arch/x86/lib/
Dstring_32.c33 char *strncpy(char *dest, const char *src, size_t count) in strncpy() function
49 EXPORT_SYMBOL(strncpy);
/kernel/linux/linux-5.10/block/partitions/
Dibm.c114 strncpy(type, label->vol.vollbl, 4); in find_label()
115 strncpy(name, label->vol.volid, 6); in find_label()
117 strncpy(type, label->lnx.vollbl, 4); in find_label()
118 strncpy(name, label->lnx.volid, 6); in find_label()
/kernel/linux/linux-5.10/drivers/cpuidle/
Ddt_idle_states.c88 strncpy(idle_state->name, state_node->name, CPUIDLE_NAME_LEN - 1); in init_state_node()
89 strncpy(idle_state->desc, desc, CPUIDLE_DESC_LEN - 1); in init_state_node()
/kernel/linux/linux-5.10/tools/usb/usbip/libsrc/
Dusbip_device_driver.c96 strncpy(dev->path, path, SYSFS_PATH_MAX - 1); in read_usb_vudc_device()
116 strncpy(dev->busid, name, SYSFS_BUS_ID_SIZE - 1); in read_usb_vudc_device()
/kernel/linux/linux-5.10/net/netfilter/
Dnft_osf.c48 strncpy((char *)dest, "unknown", NFT_OSF_MAXGENRELEN); in nft_osf_eval()
56 strncpy((char *)dest, os_match, NFT_OSF_MAXGENRELEN); in nft_osf_eval()
/kernel/linux/linux-5.10/tools/testing/selftests/sync/
Dsync.c74 strncpy(data.name, name, sizeof(data.name) - 1); in sync_merge()
201 strncpy(data.name, name, sizeof(data.name) - 1); in sw_sync_fence_create()
/kernel/linux/linux-5.10/drivers/staging/blackbox/
Dblackbox_core.c191 strncpy(info->event, event, min(strlen(event), in format_error_info()
193 strncpy(info->module, module, min(strlen(module), in format_error_info()
195 strncpy(info->category, get_category(module, event), in format_error_info()
198 strncpy(info->error_desc, error_desc, min(strlen(error_desc), in format_error_info()
406 strncpy(info->category, get_category(info->module, info->event), in do_save_last_log()
/kernel/linux/linux-5.10/drivers/bus/fsl-mc/
Ddprc.c453 strncpy(obj_desc->type, rsp_params->type, 16); in dprc_get_obj()
455 strncpy(obj_desc->label, rsp_params->label, 16); in dprc_get_obj()
494 strncpy(cmd_params->obj_type, obj_type, 16); in dprc_set_obj_irq()
567 strncpy(cmd_params->obj_type, obj_type, 16); in dprc_get_obj_region()
/kernel/linux/linux-5.10/tools/power/cpupower/utils/idle_monitor/
Dcpuidle_sysfs.c162 strncpy(cpuidle_cstates[num].name, tmp, CSTATE_NAME_LEN - 1); in cpuidle_register()
168 strncpy(cpuidle_cstates[num].desc, tmp, CSTATE_DESC_LEN - 1); in cpuidle_register()
/kernel/linux/linux-5.10/fs/xfs/
Dxfs_xattr.c118 strncpy(offset, prefix, prefix_len); in __xfs_xattr_put_listent()
120 strncpy(offset, (char *)name, namelen); /* real name */ in __xfs_xattr_put_listent()
/kernel/linux/linux-5.10/tools/power/cpupower/bench/
Dparse.c135 strncpy(config->governor, "ondemand", sizeof(config->governor)); in prepare_default_config()
211 strncpy(config->governor, val, in prepare_config()

12345678910>>...19