| /xnu-11215/libsyscall/wrappers/ |
| H A D | system-version-compat.c | 69 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.c | 303 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.h | 108 size_t (*strnlen)(const char *s, size_t maxlen); member
|
| /xnu-11215/libkern/c++/ |
| H A D | OSString.cpp | 79 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 D | OSSymbol.cpp | 443 .smrk_len = strnlen(cString, kMaxStringLength), in withCString() 501 .smrk_len = strnlen(cString, kMaxStringLength), in withCStringNoCopy()
|
| /xnu-11215/libsyscall/wrappers/string/ |
| H A D | strings.h | 72 size_t strnlen(const char *, size_t);
|
| /xnu-11215/osfmk/kern/ |
| H A D | ext_paniclog.c | 78 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 D | exclaves_storage.c | 54 return (strnlen(str, size) < size) ? 0 : ERANGE; in verify_string_length()
|
| H A D | exclaves.c | 471 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 D | string.h | 516 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 D | string-handling.md | 48 * `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 D | memintrinsics.h | 88 return strnlen(src, sz); in __nosan_strnlen()
|
| /xnu-11215/tests/ |
| H A D | test_sysctl_kern_procargs_25397314.m | 104 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 D | bsd_tests.c | 199 namelen = strnlen(t->xt_name, XNUPOST_TNAME_MAXLEN - 1) + 1; in xnupost_copyout_test()
|
| /xnu-11215/bsd/dev/dtrace/ |
| H A D | dtrace_subr.c | 210 pdesc->p_name_length = (int) strnlen(pdesc->p_name, sizeof(pdesc->p_name)); in dtrace_proc_waitfor()
|
| /xnu-11215/osfmk/conf/ |
| H A D | files.arm64 | 77 osfmk/arm64/strnlen.s standard
|
| /xnu-11215/osfmk/kdp/ |
| H A D | kdp_common.c | 336 if (res != KERN_SUCCESS || strnlen(optbuffer, sizeof(optbuffer)) == sizeof(optbuffer)) { in kdp_generic_copyin_string()
|
| /xnu-11215/bsd/kern/ |
| H A D | chunklist.c | 101 len = strnlen(root_path, MAXPATHLEN); in construct_chunklist_path()
|
| /xnu-11215/libkern/os/ |
| H A D | log_encode.c | 449 str_length = strnlen(value.pch, precision); in log_encode_fmt()
|
| /xnu-11215/iokit/Kernel/ |
| H A D | IORegistryEntry.cpp | 1356 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 D | IODeviceTreeSupport.cpp | 953 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 D | audit_bsm_token.c | 912 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 D | vm_memory_entry.c | 1600 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 D | in6_ifattach.c | 135 hostnlen = strnlen(hostname, sizeof(hostname)); in get_rand_iid()
|
| /xnu-11215/bsd/nfs/ |
| H A D | nfs.h | 252 (int)strnlen(str, INT_MAX)
|