Home
last modified time | relevance | path

Searched refs:strnlen (Results 1 – 25 of 44) sorted by relevance

12

/xnu-11215/libsyscall/wrappers/
H A Dsystem-version-compat.c69 size_t path_str_len = strnlen(orig_path, MAXPATHLEN); in _system_version_compat_check_path_suffix()
141 size_t path_str_len = strnlen(orig_path, sizeof(new_path)); in _system_version_compat_open_shim()
158 size_t newpathlen = strnlen(new_path, MAXPATHLEN); in _system_version_compat_open_shim()
H A D_libc_funcptr.c303 strnlen(const char *s, size_t maxlen) in strnlen() function
305 return _libkernel_string_functions->strnlen(s, maxlen); in strnlen()
H A D_libkernel_init.h108 size_t (*strnlen)(const char *s, size_t maxlen); member
/xnu-11215/libkern/c++/
H A DOSString.cpp79 newLength = (unsigned int) strnlen(cString, kMaxStringLength); in initWithCString()
121 cStringLength = (unsigned int)strnlen(cString, inlength); in initWithStringOfLength()
158 length = (unsigned int) strnlen(cString, kMaxStringLength); in initWithCStringNoCopy()
H A DOSSymbol.cpp443 .smrk_len = strnlen(cString, kMaxStringLength), in withCString()
501 .smrk_len = strnlen(cString, kMaxStringLength), in withCStringNoCopy()
/xnu-11215/libsyscall/wrappers/string/
H A Dstrings.h72 size_t strnlen(const char *, size_t);
/xnu-11215/osfmk/kern/
H A Dext_paniclog.c78 size_t data_id_size = strnlen(data_id, MAX_DATA_ID_SIZE - 1); in ext_paniclog_handle_alloc_with_uuid()
308 size_req += (strnlen(tmp->data_id, MAX_DATA_ID_SIZE - 1) + 1) + in ext_paniclog_get_size_required()
367 data_id_size = strnlen(tmp->data_id, MAX_DATA_ID_SIZE - 1) + 1; in ext_paniclog_write_panicdata()
508 size_t data_id_len = strnlen(data_id[i], MAX_DATA_ID_SIZE); in ext_paniclog_multiple_handles_test()
631 size_t data_id_len = strnlen(data_id, MAX_DATA_ID_SIZE); in ext_paniclog_write_panicdata_test()
H A Dexclaves_storage.c54 return (strnlen(str, size) < size) ? 0 : ERANGE; in verify_string_length()
H A Dexclaves.c471 if (strnlen(uresource.r_name, name_buf_len) == name_buf_len) { in _exclaves_ctl_trap()
704 if (strnlen(notification_resource_user->r_name, name_buf_len) in _exclaves_ctl_trap()
/xnu-11215/osfmk/libsa/
H A Dstring.h516 extern size_t strnlen(const char *__counted_by(n)s, size_t n) __stateful_pure;
521 strnlen(const char *const __counted_by(n) s __xnu_force_overload, size_t n) in strnlen() function
531 strnlen((BUF), sizeof(BUF)); \
533 #define strbuflen_2(BUF, LEN) strnlen(BUF, LEN)
/xnu-11215/doc/primitives/
H A Dstring-handling.md48 * `strn` functions (strnlen, strncat, etc), unsafe for writing;
62 for a NUL terminator. `strn` functions for reading (`strncmp`, `strnlen`) are
106 * `strbuflen(buffer, length)`: like `strnlen`;
244 `strnlen` (they do the same thing, but having a separate `strbuflen` function
/xnu-11215/san/memory/
H A Dmemintrinsics.h88 return strnlen(src, sz); in __nosan_strnlen()
/xnu-11215/tests/
H A Dtest_sysctl_kern_procargs_25397314.m104 currentLen = strnlen(cursor, bufferSize - ((uintptr_t)cursor - (uintptr_t)buffer));
122 currentLen = strnlen(cursor, bufferSize - ((uintptr_t)cursor - (uintptr_t)buffer));
/xnu-11215/bsd/tests/
H A Dbsd_tests.c199 namelen = strnlen(t->xt_name, XNUPOST_TNAME_MAXLEN - 1) + 1; in xnupost_copyout_test()
/xnu-11215/bsd/dev/dtrace/
H A Ddtrace_subr.c210 pdesc->p_name_length = (int) strnlen(pdesc->p_name, sizeof(pdesc->p_name)); in dtrace_proc_waitfor()
/xnu-11215/osfmk/conf/
H A Dfiles.arm6477 osfmk/arm64/strnlen.s standard
/xnu-11215/osfmk/kdp/
H A Dkdp_common.c336 if (res != KERN_SUCCESS || strnlen(optbuffer, sizeof(optbuffer)) == sizeof(optbuffer)) { in kdp_generic_copyin_string()
/xnu-11215/bsd/kern/
H A Dchunklist.c101 len = strnlen(root_path, MAXPATHLEN); in construct_chunklist_path()
/xnu-11215/libkern/os/
H A Dlog_encode.c449 str_length = strnlen(value.pch, precision); in log_encode_fmt()
/xnu-11215/iokit/Kernel/
H A DIORegistryEntry.cpp1356 len = (int) strnlen( compName, sizeof(io_name_t)); in getPathComponent()
1358 locLen = 1 + ((int) strnlen( loc, sizeof(io_name_t))); in getPathComponent()
1647 len2 = (int) strnlen(path, 65536); in fromPath()
H A DIODeviceTreeSupport.cpp953 nlen = (unsigned int) strnlen(names, lastName - names); in CompareKey()
1480 nlen = 1 + ((unsigned int) strnlen(names, lastName - names)); in IODTFindSlotName()
/xnu-11215/bsd/security/audit/
H A Daudit_bsm_token.c912 strnlen(so->sun_path, sizeof(so->sun_path))); in au_to_sock_unix()
914 slen = strnlen(so->sun_path, sizeof(so->sun_path)); in au_to_sock_unix()
/xnu-11215/osfmk/vm/
H A Dvm_memory_entry.c1600 if (strnlen(our_id, TRANSFER_ENTITLEMENT_MAX_LENGTH) < TRANSFER_ENTITLEMENT_MAX_LENGTH && in mach_memory_entry_ownership()
1601 strnlen(their_id, TRANSFER_ENTITLEMENT_MAX_LENGTH) < TRANSFER_ENTITLEMENT_MAX_LENGTH) { in mach_memory_entry_ownership()
/xnu-11215/bsd/netinet6/
H A Din6_ifattach.c135 hostnlen = strnlen(hostname, sizeof(hostname)); in get_rand_iid()
/xnu-11215/bsd/nfs/
H A Dnfs.h252 (int)strnlen(str, INT_MAX)

12