Home
last modified time | relevance | path

Searched refs:strlen (Results 1 – 25 of 1715) sorted by relevance

12345678910>>...69

/linux/fs/btrfs/tests/
H A Dextent-buffer-tests.c26 u32 value_len = strlen(value); in test_btrfs_split_item()
104 strlen(split1)); in test_btrfs_split_item()
105 if (memcmp(buf, split1, strlen(split1))) { in test_btrfs_split_item()
108 (int)strlen(split1), buf, split1); in test_btrfs_split_item()
128 strlen(split2)); in test_btrfs_split_item()
129 if (memcmp(buf, split2, strlen(split2))) { in test_btrfs_split_item()
159 strlen(split3)); in test_btrfs_split_item()
160 if (memcmp(buf, split3, strlen(split3))) { in test_btrfs_split_item()
182 strlen(split4)); in test_btrfs_split_item()
183 if (memcmp(buf, split4, strlen(split4))) { in test_btrfs_split_item()
[all …]
/linux/tools/iio/
H A Dlsiio.c30 return strlen(str) > strlen(prefix) && in check_prefix()
31 strncmp(str, prefix, strlen(prefix)) == 0; in check_prefix()
36 return strlen(str) > strlen(postfix) && in check_postfix()
37 strcmp(str + strlen(str) - strlen(postfix), postfix) == 0; in check_postfix()
64 ret = sscanf(dev_dir_name + strlen(iio_dir) + strlen(type_device), "%i", in dump_one_device()
87 ret = sscanf(dev_dir_name + strlen(iio_dir) + strlen(type_trigger), in dump_one_trigger()
H A Diio_utils.c339 if (strcmp(ent->d_name + strlen(ent->d_name) - strlen("_en"), in build_channel_array()
381 if (strcmp(ent->d_name + strlen(ent->d_name) - strlen("_en"), in build_channel_array()
424 strlen(ent->d_name) - in build_channel_array()
425 strlen("_en")); in build_channel_array()
579 strlen(ent->d_name) > strlen(type) && in find_type_by_name()
599 filename = malloc(strlen(iio_dir) + strlen(type) in find_type_by_name()
658 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in _write_sysfs_int()
754 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in _write_sysfs_string()
861 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in read_sysfs_posint()
908 char *temp = malloc(strlen(basedir) + strlen(filename) + 2); in read_sysfs_float()
[all …]
H A Diio_utils.h55 return strlen(str) >= strlen(suffix) && in iioutils_check_suffix()
56 strncmp(str+strlen(str)-strlen(suffix), in iioutils_check_suffix()
57 suffix, strlen(suffix)) == 0; in iioutils_check_suffix()
/linux/tools/perf/arch/s390/util/
H A Dheader.c61 if (!strncmp(line, SYSINFO_MANU, strlen(SYSINFO_MANU))) { in get_cpuid()
62 line2 = line + strlen(SYSINFO_MANU); in get_cpuid()
70 if (!strncmp(line, SYSINFO_TYPE, strlen(SYSINFO_TYPE))) { in get_cpuid()
71 line2 = line + strlen(SYSINFO_TYPE); in get_cpuid()
79 if (!strncmp(line, SYSINFO_MODEL, strlen(SYSINFO_MODEL))) { in get_cpuid()
80 line2 = line + strlen(SYSINFO_MODEL); in get_cpuid()
104 if (strncmp(line, SRVLVL_CPUMF, strlen(SRVLVL_CPUMF))) in get_cpuid()
107 line2 = line + strlen(SRVLVL_CPUMF); in get_cpuid()
110 strlen(SRVLVL_VERSION))) { in get_cpuid()
117 strlen(SRVLVL_AUTHORIZATION))) { in get_cpuid()
/linux/tools/testing/selftests/proc/
H A Dproc-pid-vm.c355 const size_t len = strlen(buf0) + strlen(str_vsyscall); in main()
367 assert(memcmp(buf, buf0, strlen(buf0)) == 0); in main()
369 assert(memcmp(buf + strlen(buf0), str_vsyscall, strlen(str_vsyscall)) == 0); in main()
387 assert(rv >= strlen(buf0)); in main()
388 assert(memcmp(buf, buf0, strlen(buf0)) == 0); in main()
394 assert(memmem(buf, rv, RSS1, strlen(RSS1)) || in main()
395 memmem(buf, rv, RSS2, strlen(RSS2))); in main()
397 memmem(buf, rv, PSS2, strlen(PSS2))); in main()
443 assert(rv >= strlen(bufr)); in main()
447 memmem(buf, rv, RSS2, strlen(RSS2))); in main()
[all …]
/linux/arch/um/os-Linux/
H A Dumid.c47 len = strlen(dir); in make_uml_dir()
52 uml_dir = malloc(strlen(dir) + 1); in make_uml_dir()
100 len = strlen(dir) + strlen("/") + strlen(ent->d_name) + 1; in remove_files_and_dir()
215 n = strlen(uml_dir) + UMID_LEN + sizeof("/pid"); in create_pid_file()
231 n = write(fd, pid, strlen(pid)); in create_pid_file()
232 if (n != strlen(pid)) in create_pid_file()
243 if (strlen(name) > UMID_LEN - 1) in set_umid()
277 set_umid(&tmp[strlen(uml_dir)]); in make_umid()
366 if (name[strlen(name) - 1] == '/') { in set_uml_dir()
371 uml_dir = malloc(strlen(name) + 2); in set_uml_dir()
[all …]
/linux/arch/um/drivers/
H A Dvector_user.h14 #define TRANS_RAW_LEN strlen(TRANS_RAW)
17 #define TRANS_TAP_LEN strlen(TRANS_TAP)
20 #define TRANS_GRE_LEN strlen(TRANS_GRE)
23 #define TRANS_L2TPV3_LEN strlen(TRANS_L2TPV3)
26 #define TRANS_HYBRID_LEN strlen(TRANS_HYBRID)
29 #define TRANS_BESS_LEN strlen(TRANS_BESS)
/linux/tools/tracing/rtla/src/
H A Dutils.c325 if (strlen(comm_prefix) >= MAX_PATH) { in set_comm_sched_attr()
420 if (strlen(arg) < 4) in parse_prio()
605 if (strlen(start) >= sizeof_self_cg) in get_self_cgroup()
635 char cgroup_path[MAX_PATH - strlen("/cgroup.procs")]; in set_pid_cgroup()
649 sizeof(cgroup_path) - strlen(cgroup_path)); in set_pid_cgroup()
655 snprintf(&cgroup_path[strlen(cgroup_path)], in set_pid_cgroup()
669 retval = write(cg_fd, pid_str, strlen(pid_str)); in set_pid_cgroup()
693 char cgroup_path[MAX_PATH - strlen("/cgroup.procs")]; in set_comm_cgroup()
700 if (strlen(comm_prefix) >= MAX_PATH) { in set_comm_cgroup()
714 sizeof(cgroup_path) - strlen(cgroup_path)); in set_comm_cgroup()
[all …]
/linux/security/apparmor/
H A Dpolicy_unpack_test.c15 (3 + strlen(TEST_STRING_NAME) + 1)
71 *(buf + 1) = strlen(TEST_STRING_NAME) + 1; in build_aa_ext_struct()
76 *(buf + 1) = strlen(TEST_STRING_DATA) + 1; in build_aa_ext_struct()
80 *(buf + 1) = strlen(TEST_U32_NAME) + 1; in build_aa_ext_struct()
82 *(buf + 3 + strlen(TEST_U32_NAME) + 1) = AA_U32; in build_aa_ext_struct()
87 *(buf + 1) = strlen(TEST_U64_NAME) + 1; in build_aa_ext_struct()
94 *(buf + 1) = strlen(TEST_BLOB_NAME) + 1; in build_aa_ext_struct()
98 memcpy(buf + 3 + strlen(TEST_BLOB_NAME) + 6, in build_aa_ext_struct()
103 *(buf + 1) = strlen(TEST_ARRAY_NAME) + 1; in build_aa_ext_struct()
262 + strlen(TEST_STRING_DATA) - 1; in policy_unpack_test_unpack_str_out_of_bounds()
[all …]
/linux/arch/alpha/lib/
H A Dev67-strlen.S25 .globl strlen
26 .ent strlen
28 strlen: label
50 .end strlen
51 EXPORT_SYMBOL(strlen)
H A Dstrlen.S21 .globl strlen
22 .ent strlen
24 strlen: label
58 .end strlen
59 EXPORT_SYMBOL(strlen)
/linux/drivers/s390/net/
H A Dsmsgiucv_app.c33 #define ENV_SENDER_LEN (strlen(ENV_SENDER_STR) + 8 + 1)
35 #define ENV_PREFIX_LEN (strlen(ENV_PREFIX_STR) + \
36 strlen(SMSG_PREFIX) + 1)
38 #define ENV_TEXT_LEN(msg) (strlen(ENV_TEXT_STR) + strlen((msg)) + 1)
127 if (sender && strlen(sender) > 0 && strcmp(from, sender) != 0) in smsg_app_callback()
131 msg += strlen(SMSG_PREFIX); in smsg_app_callback()
175 int len = strlen(sender); in smsgiucv_app_init()
/linux/net/ceph/
H A Dcls_lock_client.c32 int name_len = strlen(lock_name); in ceph_cls_lock()
33 int cookie_len = strlen(cookie); in ceph_cls_lock()
34 int tag_len = strlen(tag); in ceph_cls_lock()
35 int desc_len = strlen(desc); in ceph_cls_lock()
99 int name_len = strlen(lock_name); in ceph_cls_unlock()
100 int cookie_len = strlen(cookie); in ceph_cls_unlock()
151 int name_len = strlen(lock_name); in ceph_cls_break_lock()
152 int cookie_len = strlen(cookie); in ceph_cls_break_lock()
197 int name_len = strlen(lock_name); in ceph_cls_set_cookie()
199 int tag_len = strlen(tag); in ceph_cls_set_cookie()
[all …]
/linux/arch/mips/rb532/
H A Dprom.c38 return strncmp(arg, tag, strlen(tag)) == 0; in match_tag()
45 num = arg + strlen(tag); in tag2ul()
77 board = prom_argv[i] + strlen(BOARD_TAG); in prom_setup_cmdline()
86 cp += strlen(prom_argv[i]); in prom_setup_cmdline()
90 i = strlen(arcs_cmdline); in prom_setup_cmdline()
94 cp += strlen(arcs_cmdline); in prom_setup_cmdline()
/linux/fs/smb/client/
H A Dcifs_spnego.c101 HOST_KEY_LEN + strlen(hostname) + in cifs_get_spnego_key()
109 desc_len += USER_KEY_LEN + strlen(sesInfo->user_name); in cifs_get_spnego_key()
121 dp = description + strlen(description); in cifs_get_spnego_key()
131 dp = description + strlen(description); in cifs_get_spnego_key()
143 dp = description + strlen(description); in cifs_get_spnego_key()
147 dp = description + strlen(description); in cifs_get_spnego_key()
152 dp = description + strlen(description); in cifs_get_spnego_key()
156 dp = description + strlen(description); in cifs_get_spnego_key()
/linux/mm/damon/
H A Ddbgfs-test.h23 answers = str_to_ints(question, strlen(question), &nr_integers); in damon_dbgfs_test_str_to_ints()
29 answers = str_to_ints(question, strlen(question), &nr_integers); in damon_dbgfs_test_str_to_ints()
35 answers = str_to_ints(question, strlen(question), &nr_integers); in damon_dbgfs_test_str_to_ints()
40 answers = str_to_ints(question, strlen(question), &nr_integers); in damon_dbgfs_test_str_to_ints()
47 answers = str_to_ints(question, strlen(question), &nr_integers); in damon_dbgfs_test_str_to_ints()
54 answers = str_to_ints(question, strlen(question), &nr_integers); in damon_dbgfs_test_str_to_ints()
61 answers = str_to_ints(question, strlen(question), &nr_integers); in damon_dbgfs_test_str_to_ints()
66 answers = str_to_ints(question, strlen(question), &nr_integers); in damon_dbgfs_test_str_to_ints()
/linux/arch/mips/fw/arc/
H A Dcmdline.c50 int len = strlen(used_arc[i][0]); in move_firmware_args()
55 cp += strlen(used_arc[i][1]); in move_firmware_args()
61 cp += strlen(s); in move_firmware_args()
89 int len = strlen(ignored[i]); in prom_init_cmdline()
96 cp += strlen(prom_argv(actr)); in prom_init_cmdline()
/linux/drivers/acpi/acpica/
H A Dutnonansi.c131 if (strlen(source) >= dest_size) { in acpi_ut_safe_strcpy()
142 if ((strlen(dest) + strlen(source)) >= dest_size) { in acpi_ut_safe_strcat()
157 actual_transfer_length = ACPI_MIN(max_transfer_length, strlen(source)); in acpi_ut_safe_strncat()
159 if ((strlen(dest) + actual_transfer_length) >= dest_size) { in acpi_ut_safe_strncat()
/linux/drivers/zorro/
H A Dgen-devlist.c54 if (strlen(line) > 5 && line[5] == ' ') { in main()
58 if (manuf_len + strlen(c) + 1 > MAX_NAME_SIZE) { in main()
63 if (manuf_len + strlen(c) + 1 > MAX_NAME_SIZE) { in main()
76 } else if (strlen(line) > 4 && line[4] == ' ') { in main()
84 manuf_len = strlen(c); in main()
/linux/drivers/md/
H A Ddm-ima.c28 int l = strlen(*buf); in fix_separator_chars()
232 device_data_buf_len = strlen(device_data_buf); in dm_ima_measure_on_table_load()
258 target_data_buf_len = strlen(target_data_buf); in dm_ima_measure_on_table_load()
454 l = strlen(device_table_data); in dm_ima_measure_on_device_resume()
458 capacity_len = strlen(capacity_str); in dm_ima_measure_on_device_resume()
486 unsigned int remove_all_len = strlen(remove_all_str); in dm_ima_measure_on_device_remove()
567 l = strlen(device_table_data); in dm_ima_measure_on_device_remove()
575 capacity_len = strlen(capacity_str); in dm_ima_measure_on_device_remove()
610 unsigned int inactive_len = strlen(inactive_str); in dm_ima_measure_on_table_clear()
653 l = strlen(device_table_data); in dm_ima_measure_on_table_clear()
[all …]
/linux/usr/
H A Dgen_init_cpio.c40 unsigned int name_len = strlen(name) + 1; in push_string()
57 unsigned int name_len = strlen(name) + 1; in push_rest()
97 (unsigned)strlen(name)+1, /* namesize */ in cpio_trailer()
129 (unsigned)strlen(name) + 1,/* namesize */ in cpio_mkslink()
178 (unsigned)strlen(name) + 1,/* namesize */ in cpio_mkgeneric()
388 namesize = strlen(name) + 1; in cpio_mkfile()
479 dname = malloc(strlen(line)); in cpio_mkfile_line()
485 dname_len = strlen(name) + 1; in cpio_mkfile_line()
493 len = strlen(name) + 1; in cpio_mkfile_line()
643 size_t slen = strlen(line); in main()
[all …]
/linux/kernel/debug/kdb/
H A Dkdb_io.c40 int slen = strlen(buffer); in kgdb_transition_check()
244 int len = strlen(buffer); in kdb_read()
340 len = strlen(tmpbuffer); in kdb_read()
371 len_tmp = strlen(tmpbuffer) - len; in kdb_read()
537 len1 = strlen(searched)-1; in kdb_search_string()
538 len2 = strlen(searchfor); in kdb_search_string()
693 len = strlen(kdb_prompt_str); in vkdb_printf()
706 len = strlen(kdb_buffer); in vkdb_printf()
736 len = strlen(kdb_buffer); in vkdb_printf()
761 retlen = strlen(kdb_buffer); in vkdb_printf()
[all …]
/linux/tools/testing/selftests/powerpc/stringloops/
H A DMakefile6 TEST_GEN_PROGS := memcmp_64 strlen
18 $(OUTPUT)/strlen: strlen.c string.c
21 $(OUTPUT)/strlen_32: strlen.c
/linux/tools/bpf/bpftool/
H A Dmain.c219 if (strlen(str) < strlen(pfx)) in is_prefix()
222 return !memcmp(str, pfx, strlen(pfx)); in is_prefix()
240 strncat(msg, "' or '", sizeof(msg) - strlen(msg) - 1); in detect_common_prefix()
241 strncat(msg, ref, sizeof(msg) - strlen(msg) - 1); in detect_common_prefix()
244 strncat(msg, "'", sizeof(msg) - strlen(msg) - 1); in detect_common_prefix()
362 if (strlen(buf) == sizeof(buf) - 1) { in do_batch()
372 strlen(contline) == 0) { in do_batch()
383 if (strlen(buf) + strlen(contline) + 1 > sizeof(buf)) { in do_batch()
388 buf[strlen(buf) - 2] = '\0'; in do_batch()

12345678910>>...69