Home
last modified time | relevance | path

Searched refs:strlen (Results 1201 - 1225 of 9111) sorted by relevance

1...<<41424344454647484950>>...365

/kernel/linux/linux-6.6/fs/hpfs/
H A Dea.c254 le16_to_cpu(fnode->ea_offs) + le16_to_cpu(fnode->acl_size_s) + le16_to_cpu(fnode->ea_size_s) + strlen(key) + size + 5 <= 0x200) { in hpfs_set_ea()
257 ea->namelen = strlen(key); in hpfs_set_ea()
262 fnode->ea_size_s = cpu_to_le16(le16_to_cpu(fnode->ea_size_s) + strlen(key) + size + 5); in hpfs_set_ea()
284 pos = le32_to_cpu(fnode->ea_size_l) + 5 + strlen(key) + size; in hpfs_set_ea()
352 h[1] = strlen(key); in hpfs_set_ea()
360 hpfs_i(inode)->i_ea_size += 5 + strlen(key) + size; in hpfs_set_ea()
/kernel/linux/linux-6.6/fs/orangefs/
H A Dxattr.c111 if (strlen(name) >= ORANGEFS_MAX_XATTR_NAMELEN) in orangefs_inode_getxattr()
160 new_op->upcall.req.getxattr.key_sz = strlen(name) + 1; in orangefs_inode_getxattr()
254 if (strlen(name) >= ORANGEFS_MAX_XATTR_NAMELEN) in orangefs_inode_removexattr()
269 new_op->upcall.req.removexattr.key_sz = strlen(name) + 1; in orangefs_inode_removexattr()
331 if (strlen(name) >= ORANGEFS_MAX_XATTR_NAMELEN) in orangefs_inode_setxattr()
363 new_op->upcall.req.setxattr.keyval.key_sz = strlen(name) + 1; in orangefs_inode_setxattr()
/kernel/linux/linux-6.6/include/linux/
H A Dfortify-string.h42 extern __kernel_size_t __underlying_strlen(const char *p) __RENAME(strlen); variable
117 * If strlen(@q) >= @size, the copy of @q will stop after @size bytes,
120 * If strlen(@q) < @size, following the copy of @q, trailing NUL bytes
187 * possible for strlen() to be used on compile-time strings for use in
191 * strlen - Return count of characters in a NUL-terminated string
203 #define strlen(p) \ macro
221 /* Defined after fortified strlen() to reuse it. */
230 * If strlen(@q) >= @size, the copy of @q will be truncated at
234 * over-reads when calculating strlen(@q), it is still possible.
250 q_len = strlen( in strlcpy()
[all...]
/kernel/linux/linux-6.6/tools/perf/util/
H A Dtime-utils.c31 if (strlen(++end) > 9) in parse_nsec_time()
38 for (i = strlen(nsec_buf); i < 9; i++) in parse_nsec_time()
192 if (endptr != str + strlen(str)) in parse_percent()
293 len = strlen(str); in percent_comma_split()
331 int len = strlen(ostr), ret; in one_percent_convert()
404 while (p1 < ostr + strlen(ostr)) { in perf_time__range_alloc()
/kernel/linux/linux-6.6/tools/testing/selftests/resctrl/
H A Dresctrlfs.c171 length = (int)strlen(cache_str); in get_cache_size()
367 if (strlen(grp_name) == 0) in create_grp()
439 if (strlen(ctrlgrp)) in write_bm_pid_to_resctrl()
456 if (strlen(mongrp)) { in write_bm_pid_to_resctrl()
516 if (strlen(ctrlgrp) != 0) in write_schemata()
593 int slen = strlen(str); in fgrep()
/kernel/linux/linux-6.6/security/tomoyo/
H A Daudit.c259 len += strlen(domainname) + strlen(header) + 10; in tomoyo_init_log()
268 len += strlen(realpath) + 80 + strlen(bprm_info); in tomoyo_init_log()
272 len += 18 + strlen(symlink); in tomoyo_init_log()
385 len = kmalloc_size_roundup(strlen(buf) + 1); in tomoyo_write_log2()
388 * Don't go beyond strlen(entry->log). in tomoyo_write_log2()
/kernel/liteos_a/fs/fat/virpart/src/
H A Dvirpart.c140 if (strlen(virtualinfo.devpartpath) <= strlen(devHead)) { in los_set_virpartparam()
146 if (memcmp(virtualinfo.devpartpath, devHead, strlen(devHead)) != 0) { in los_set_virpartparam()
153 minSize = dstNameSize < strlen(virtualinfo.devpartpath) ? dstNameSize : strlen(virtualinfo.devpartpath); in los_set_virpartparam()
466 if (strlen(relpath) > MAX_LFNAME_LENGTH) { in fatfs_virstatfs_internel()
/kernel/liteos_a/shell/full/src/base/
H A Dshmsg.c74 if ((string == NULL) || (strlen(string) == 0)) { in ShellSaveHistoryCmd()
217 len = strlen(cmdType); in ShellMsgTypeGet()
219 if ((len == strlen(curCmdItem->cmd->cmdKey)) && in ShellMsgTypeGet()
287 len = strlen(msg); in ShellMsgParse()
288 /* 2: strlen("./") */ in ShellMsgParse()
290 cmdLen = strlen(cmd); in ShellMsgParse()
310 if ((ret != LOS_OK) || (strlen(output) == 0)) { in ShellMsgParse()
/kernel/liteos_a/testsuites/unittest/common/include/
H A DosTest.h422 #define FILEPATHLEN_ENOENT (strlen(FILEPATH_ENOENT) +1U)
425 #define FILEPATHLEN_NOACCESS (strlen(FILEPATH_NOACCESS) +1U)
428 #define FILEPATHLEN_000 (strlen(FILEPATH_000) +1U)
431 #define FILEPATHLEN_775 (strlen(FILEPATH_775) +1U)
434 #define FILEPATHLEN_755 (strlen(FILEPATH_755) +1U)
437 #define FILEPATHLEN_RELATIVE (strlen(FILEPATH_RELATIVE) +1U)
/kernel/liteos_a/apps/shell/src/
H A Dshmsg.c72 if (strlen(cmdNode->cmdString) == 0) { in GetCmdline()
389 if (strlen(cmdName) != CMD_EXIT_COMMAND_BYTES || strncmp(cmdName, CMD_EXIT_COMMAND, CMD_EXIT_COMMAND_BYTES) != 0) { in CheckExit()
493 unsigned int removeLen = strlen("./"); /* "./" needs to be removed if it exists */ in PreHandleCmdline()
498 unsigned int cmdBufLen = strlen(cmdBuf); in PreHandleCmdline()
510 shiftLen = strlen(shiftStr); in PreHandleCmdline()
520 execLen = strlen(execCmd); in PreHandleCmdline()
/third_party/cups-filters/filter/
H A Dsys5ippprinter.c212 optbuflen = strlen(argv[5]) + 256; in main()
665 if (strlen(filter) > 1023) in exec_filters()
849 p2 = p1 + strlen(option); in get_option_in_str()
891 p1 = p2 + strlen(option); in set_option_in_str()
896 memmove(p2, p1, strlen(buf) - (buf - p1) + 1); in set_option_in_str()
902 p1 = buf + strlen(buf); in set_option_in_str()
/third_party/cups-filters/cupsfilters/
H A Dpdftoippprinter.c99 p1 = p2 + strlen(option); in set_option_in_str()
112 memmove(p2, p1, strlen(buf) - (p1 - buf) + 1); in set_option_in_str()
118 p1 = buf + strlen(buf); in set_option_in_str()
253 optbuflen = strlen(argv[5]) + 256; in apply_filters()
714 if (strlen(filter) > 1023) in exec_filters()
881 p2 = p1 + strlen(option); in get_option_in_str()
/third_party/libsnd/src/
H A Dmat5.c209 psf_binheader_writef (psf, "bb", BHWv (filename), BHWz (strlen (filename)), BHWv (buffer), BHWz (strlen (buffer) + 1)) ; in mat5_write_header()
223 psf_binheader_writef (psf, "44b", BHW4 (MAT5_TYPE_SCHAR), BHW4 (strlen (sr_name)), BHWv (sr_name), BHWz (16)) ; in mat5_write_header()
237 psf_binheader_writef (psf, "44b", BHW4 (MAT5_TYPE_SCHAR), BHW4 (strlen (wd_name)), BHWv (wd_name), BHWz (strlen (wd_name))) ; in mat5_write_header()
271 if (strlen (buffer) >= 124) in mat5_read_header()
/third_party/mbedtls/programs/ssl/
H A Dssl_mail_client.c461 strlen(pers))) != 0) { in main()
475 if (strlen(opt.ca_file)) { in main()
504 if (strlen(opt.crt_file)) { in main()
516 if (strlen(opt.key_file)) { in main()
691 strlen(opt.user_name)); in main()
710 strlen(opt.user_pwd)); in main()
/third_party/libwebsockets/plugins/ssh-base/
H A Dkex-25519.c416 if (_genhash_update_len(&ctx, pss->V_C, strlen(pss->V_C))) in kex_ecdh()
419 strlen(pss->vhd->ops->server_string))) in kex_ecdh()
432 lws_p32((uint8_t *)&be, (uint32_t)(8 + (int)strlen(keyt) + LWS_SIZE_EC25519)); in kex_ecdh()
436 if (_genhash_update_len(&ctx, keyt, strlen(keyt))) in kex_ecdh()
487 lws_sized_blob(&p, keyt, (uint32_t)strlen(keyt)); in kex_ecdh()
499 lws_sized_blob(&p, keyt, (uint32_t)strlen(keyt)); in kex_ecdh()
/third_party/ltp/testcases/lib/
H A Dtst_net_vars.c376 size_t length = strlen(ret); in get_ipv6_network()
426 unsigned int index = strlen(net); in get_host_from_ip()
430 if (index == strlen(ip)) in get_host_from_ip()
434 if (index > 0 && index < strlen(ip)) { in get_host_from_ip()
435 len = strlen(ip) - index - 1; in get_host_from_ip()
481 p_buf += strlen(p_buf); in get_ipv4_network()
/third_party/mksh/
H A Dos2.c257 size_t namelen = strlen(name) + 1; in stat()
272 size_t namelen = strlen(name) + 1; in access()
299 size_t x_namelen = strlen(name) + MAX_X_SUFFIX_LEN + 1; in access_stat_ex()
384 write(fd, argv[i], strlen(argv[i])); in make_response_file()
518 tp = alloc(offsetof(struct temp, tffn[0]) + strlen(name) + 1, APERM); in add_temp()
519 memcpy(tp->tffn, name, strlen(name) + 1); in add_temp()
/third_party/musl/libc-test/src/functionalext/fortify/
H A Dunistd.c239 size_t n = strlen(buf) + 2; in unistd_dynamic_chk_006()
278 size_t n = strlen(buf) + SSIZE_MAX; in unistd_dynamic_chk_007()
319 size_t n = strlen(buf) + 2; in unistd_dynamic_chk_008()
359 size_t n = strlen(buf) + SSIZE_MAX; in unistd_dynamic_chk_009()
475 size_t n = strlen(buf) + 2; in unistd_dynamic_chk_012()
515 size_t n = strlen(buf) + SSIZE_MAX; in unistd_dynamic_chk_013()
/third_party/pulseaudio/src/pulsecore/
H A Dlog.c175 p = file_path + strlen(t->file); in pa_log_set_target()
261 a += strlen(pa_path_get_filename(symbols[j])); in get_backtrace()
280 e += strlen(sym); in get_backtrace()
567 if ((pa_write(log_fd, metadata, strlen(metadata), &write_type) < 0) in pa_log_levelv_meta()
568 || (pa_write(log_fd, t, strlen(t), &write_type) < 0) in pa_log_levelv_meta()
569 || (bt && pa_write(log_fd, bt, strlen(bt), &write_type) < 0) in pa_log_levelv_meta()
/third_party/pulseaudio/src/pulse/
H A Dproplist.c51 if (strlen(key) <= 0) in pa_proplist_key_valid()
95 prop->nbytes = strlen(value)+1; in pa_proplist_sets()
132 prop->nbytes = strlen(v)+1; in proplist_setn()
233 prop->nbytes = strlen(v)+1; in pa_proplist_setf()
293 if (strlen((char*) prop->value) != prop->nbytes-1) in pa_proplist_gets()
553 if (proplist_setn(pl, key, key_len, v, strlen(v)) < 0) { in pa_proplist_from_string()
584 if (proplist_setn(pl, key, key_len, v, strlen(v)) < 0) { in pa_proplist_from_string()
/third_party/skia/src/pdf/
H A DSkPDFMetadata.cpp242 extra += 4; // strlen("&amp;") - strlen("&") in count_xml_escape_size()
244 extra += 3; // strlen("&lt;") - strlen("<") in count_xml_escape_size()
259 size_t beforeLen = before ? strlen(before) : 0; in escape_xml()
260 size_t afterLen = after ? strlen(after) : 0; in escape_xml()
272 memcpy(out, kAmp, strlen(kAmp)); in escape_xml()
273 out += strlen(kAmp); in escape_xml()
275 memcpy(out, kLt, strlen(kLt)); in escape_xml()
276 out += strlen(kL in escape_xml()
[all...]
/third_party/skia/tests/
H A DPDFPrimitivesTest.cpp68 assert_eql(reporter, skString, str, strlen(str)); in assert_eq()
151 SkPDFUnion name4 = SkPDFUnion::Name(SkString(nameInput4, strlen(nameInput4) + 1)); in TestPDFUnion()
335 if (floatString[len] != '\0' || strlen(floatString) != len) { in check_pdf_scalar_serialization()
379 REPORTER_ASSERT(reporter, len == strlen(buffer)); in DEF_TEST()
407 SkGlyphRun run = make_run(len, glyphs, pos, font, clusters, strlen(text), text); in DEF_TEST()
430 SkGlyphRun run = make_run(len, glyphs, pos, font, clusters, strlen(text), text); in DEF_TEST()
/third_party/toybox/toys/pending/
H A Dmodprobe.c78 if (opts) optlen = strlen(opts); in add_opts()
79 opts = xrealloc(opts, optlen + strlen(toadd) + 2); in add_opts()
227 if (!strlen(line)) continue; in config_action()
233 tokens[2] = line + strlen(tokens[0]) + strlen(tokens[1]) + 2; in config_action()
387 opt = xrealloc(opt, lopt + 2 + strlen(var) + 2); in add_cmdopt()
/third_party/python/Parser/
H A Dpegen_errors.c279 next_newline = cur_line + strlen(cur_line); in get_error_line_from_tokenizer_buffers()
305 Py_ssize_t len = strlen(fstring_msg) + strlen(errmsg); in _PyPegen_raise_error_known_location()
313 memcpy(new_errmsg, fstring_msg, strlen(fstring_msg)); in _PyPegen_raise_error_known_location()
314 memcpy(new_errmsg + strlen(fstring_msg), errmsg, strlen(errmsg)); in _PyPegen_raise_error_known_location()
/third_party/python/Modules/clinic/
H A D_pickle.c.h368 if (strlen(encoding) != (size_t)encoding_length) { in _pickle_Unpickler___init__()
386 if (strlen(errors) != (size_t)errors_length) { in _pickle_Unpickler___init__()
703 if (strlen(encoding) != (size_t)encoding_length) { in _pickle_load()
721 if (strlen(errors) != (size_t)errors_length) { in _pickle_load()
806 if (strlen(encoding) != (size_t)encoding_length) { in _pickle_loads()
824 if (strlen(errors) != (size_t)errors_length) { in _pickle_loads()

Completed in 22 milliseconds

1...<<41424344454647484950>>...365