strncpy
extern char * strncpy(char *, const char *, size_t);
extern char *strncpy(char *dest, const char *src, size_t n);
extern char * strncpy(char *,const char *, __kernel_size_t);
strncpy(to, (void *) from, len);
extern char *strncpy(char *dest, const char *src, size_t count);
EXPORT_SYMBOL(strncpy);
strncpy(dest, source, dest_size);
strncpy(target[0].a, target[1].a, size);
strncpy(target.a, src, size);
strncpy(p_buf, buf, p_buf_len);
strncpy(p_buf, buf, p_buf_len);
strncpy(p_buf, buf, p_buf_len);
strncpy(p_buf, buf, p_buf_len);
char *strncpy(char * const POS p, const char *q, __kernel_size_t size)
macro(strncpy), \
extern char *__underlying_strncpy(char *p, const char *q, __kernel_size_t size) __RENAME(strncpy);
extern char * strncpy(char *,const char *, __kernel_size_t);
EXPORT_SYMBOL(strncpy);
strncpy(small, large_src, sizeof(small) + 1)
strncpy(instance.buf, large_src, sizeof(instance.buf) + 1)
KUNIT_ASSERT_TRUE(test, strncpy(pad.buf, src, sizeof_buf - 1)
KUNIT_ASSERT_TRUE(test, strncpy(pad.buf, src, sizeof_buf)
KUNIT_ASSERT_TRUE(test, strncpy(pad.buf, src, sizeof_buf + 1)
KUNIT_ASSERT_TRUE(test, strncpy(pad.buf, src, sizeof_buf + 2)
strncpy(local_vifs[i].vif.vif_name,
strncpy(dst, src, size - 1);
strncpy(x, s + *i, 3);
strncpy(x, s + *i, 2);
strncpy(tmp, path, sizeof(tmp));
strncpy(depfile_path, name, depfile_prefix_len);
strncpy(list_item, item_str(), list_width - item_x);
strncpy(instr, init, sizeof(dialog_input_result) - 1);
strncpy(menu_item, item, menu_width - item_x);
strncpy(k_menu_items[index].str,
strncpy(result, init, *result_len);
strncpy(buf->p + buf->pos, s, len);
strncpy(dir, objfile, dirlen);
strncpy(name, TASKSTATS_GENL_NAME, sizeof(name) - 1);
strncpy(tasks[task_count].command, comm,
strncpy(cpumask, optarg, sizeof(cpumask));
strncpy(cpumask, optarg, sizeof(cpumask));
strncpy(cpumask, "1", sizeof(cpumask));
strncpy(buffer, line, 511);
strncpy(obj_name, *argv, MAX_OBJ_NAME_LEN - 1);
strncpy(obj_name, *argv, MAX_OBJ_NAME_LEN - 1);
strncpy(file_copy, file, PATH_MAX - 1)[PATH_MAX - 1] = '\0';
strncpy(name, basename(file_copy), MAX_OBJ_NAME_LEN - 1)[MAX_OBJ_NAME_LEN - 1] = '\0';
strncpy(chomped_fmt, fmt, l - 1);
strncpy(errdir, ent->mnt_dir, sizeof(errdir)-1);
strncpy(device_path, device, sizeof(device_path) - 1);
strncpy(uleds_dev.name, argv[1], LED_MAX_NAME_SIZE);
strncpy(cached->subsys, subsys, sizeof(cached->subsys) - 1);
strncpy(attr.map_name, map_name, sizeof(attr.map_name));
strncpy(reason, opt->flags & PARSE_OPT_CANSKIP ?
strncpy(ys->mcast_groups[i].name,
strncpy(&vendor[0], (char *)(&b), 4);
strncpy(&vendor[4], (char *)(&d), 4);
strncpy(&vendor[8], (char *)(&c), 4);
strncpy((char *)info, filter, len);
strncpy(cmd.signal.name, name, sizeof(cmd.signal.name) - 1);
strncpy(buf, str, len);
strncpy(tracing_instance, path, sizeof(tracing_instance) - 1);
strncpy(new->name, name, len);
strncpy(cut_name, st->name, 16);
strncpy(spec, str, len);
strncpy(name, struct_offset, cnt);
strncpy(path, ent->d_name, sizeof(path));
strncpy(comm.comm, comm_str, 16);
strncpy(mmap->filename, filename, sizeof(mmap->filename));
strncpy(buf_pos, pos, len);
strncpy(input, buf, len+1);
strncpy(buildid_dir, dir, MAXPATHLEN-1);
strncpy(buildid_dir, DEBUG_CACHE_DIR, MAXPATHLEN-1);
strncpy(buffer, string, i);
strncpy(dso_dir, filename, last_slash - filename);
strncpy(log_name, name, MAX_LOG_NAME - 5);
strncpy(jd->dir, name, PATH_MAX);
strncpy(buf, event + cut, max_len);
strncpy(path_buf, "/bad-path/", sz);
strncpy(uprobe_reg, sdt_reg, sdt_len);
strncpy(msg, "Lost Auxiliary Trace Buffer", sizeof(msg) - 1);
strncpy(debuglink, data->d_buf, size);
strncpy((char *) &entry->comm, comm, sizeof(entry->comm));
strncpy(event->cgroup.path, path + mount_len, path_len);
strncpy(nsec_buf, end, 9);
strncpy(blk, cpumask + len - blklen, blklen);
strncpy(config->governor, optarg, 14);
strncpy(config->governor, "ondemand", sizeof(config->governor));
strncpy(config->governor, val,
strncpy(new_gov, passed_gov, 20);
strncpy(cpu_top->core_info[cpu].core_cpu_list, "-1", CPULIST_BUFFER);
strncpy(amd_fam14h_monitor.name, "Fam_14h",
strncpy(amd_fam14h_monitor.name, "Fam_12h",
strncpy(cpuidle_cstates[num].name, tmp, CSTATE_NAME_LEN - 1);
strncpy(cpuidle_cstates[num].desc, tmp, CSTATE_DESC_LEN - 1);
strncpy(rapl_zones[rapl_zone_count].name, zone->name, CSTATE_NAME_LEN - 1);
strncpy(number, begin, end - begin);
strncpy(pcounter->name, name, ARRAY_SIZE(pcounter->name) - 1);
strncpy(msrp->name, name, NAME_BYTES - 1);
strncpy(sp->path, path, PATH_BYTES - 1);
strncpy(pinfo->device, perf_device, ARRAY_SIZE(pinfo->device) - 1);
strncpy(pinfo->event, perf_event, ARRAY_SIZE(pinfo->event) - 1);
strncpy(pinfo->name, name, ARRAY_SIZE(pinfo->name) - 1);
strncpy(cpu_effective_str, buf, 1024);
strncpy(work, child->output, sizeof(work) - 1);
strncpy((char *)addr.salg_name, alg_name,
strncpy((char *)addr.salg_type, "hash", sizeof(addr.salg_type));
strncpy(work, child->output, sizeof(work) - 1);
strncpy(bpf_vlog_copy, bpf_vlog, sizeof(bpf_vlog_copy));
strncpy(root, mount, len);
strncpy(addr.sun_path, path, sizeof(addr.sun_path) - 1);
strncpy(srv_un.sun_path, path, sizeof(srv_un.sun_path));
strncpy(cli_un.sun_path, path, sizeof(cli_un.sun_path));
strncpy((char *)args.name, name, sizeof(args.name) - 1);
strncpy(media_device, optarg, sizeof(media_device) - 1);
strncpy(media_device, optarg, sizeof(media_device) - 1);
strncpy(video_dev, optarg, sizeof(video_dev) - 1);
strncpy(dev_queue_read_ahead_path, path,
strncpy(path, optarg, sizeof(path) - 1);
strncpy(CANIF, ifname, sizeof(CANIF) - 1);
strncpy(ifr.ifr_name, CANIF, sizeof(ifr.ifr_name));
strncpy(desc.a_algo, a, ALGO_LEN - 1);
strncpy(desc.e_algo, e, ALGO_LEN - 1);
strncpy(desc.c_algo, c, ALGO_LEN - 1);
strncpy(desc.ae_algo, ae, ALGO_LEN - 1);
strncpy(desc.a_algo, ah_list[0], ALGO_LEN - 1);
strncpy(addr_str, inet_ntoa(addr), IPV4_STR_SZ - 1);
strncpy(to_str, inet_ntoa(*(struct in_addr *)&to), IPV4_STR_SZ - 1);
strncpy(from_str, inet_ntoa(from), IPV4_STR_SZ - 1);
strncpy(alg.u.alg.alg_name, desc->a_algo, ALGO_LEN - 1);
strncpy(alg.u.alg.alg_name, desc->c_algo, ALGO_LEN - 1);
strncpy(alg.u.aead.alg_name, desc->ae_algo, ALGO_LEN - 1);
strncpy(alg.u.alg.alg_name, desc->e_algo, ALGO_LEN - 1);
strncpy(alg.u.alg.alg_name, desc->a_algo, ALGO_LEN);
strncpy(p->subflow_addrs, optarg,
strncpy(timebuf, "00:00:00", buflen-1);
#define strscpy strncpy
strncpy(ifr.ifr_name, tun_name, IFNAMSIZ - 1);
strncpy(ao->alg_name, alg, 64);
strncpy(logdir, optarg, LOGDIR_NAME_SIZE - 1);
strncpy(first_line, page->data, pos - page->data);
strncpy(last_line, pos, end - pos);
strncpy(buffer, mntpoint, 256);
strncpy(data.name, name, sizeof(data.name) - 1);
strncpy(data.name, name, sizeof(data.name) - 1);
strncpy(ctrl_cdev, optarg, CDEV_NAME_SIZE);
strncpy(p, resize_msg->buf, resize_msg->len);
strncpy(p, resize_msg->buf, bytes);
strncpy(r, begin, s);
strncpy(taa_data->run_thread_comm, comm, MAX_COMM);
strncpy(taa_data->current_comm, comm, MAX_COMM);
strncpy(mp, mount_point, sizeof_mp - 1);
strncpy(udev->path, path, SYSFS_PATH_MAX - 1);
strncpy(udev->busid, name, SYSFS_BUS_ID_SIZE - 1);
strncpy(dev->busid, name, SYSFS_BUS_ID_SIZE - 1);
strncpy(dev->path, path, SYSFS_PATH_MAX - 1);
strncpy(request.busid, busid, SYSFS_BUS_ID_SIZE-1);
strncpy(ikm->name, nested_name, MAX_DA_NAME_LEN);
strncpy(ikm->desc, desc, MAX_DESCRIPTION);
strncpy(curr_reactor, start, strlen(start));
strncpy(ifr.ifr_name, tun_name, IFNAMSIZ);
strncpy(ifr.ifr_name, tun_name, IFNAMSIZ);