| /xnu-11215/libkern/c++/ |
| H A D | OSString.cpp | 94 kfree_data(string, length); in initWithCString() 97 string = newString; in initWithCString() 138 kfree_data(string, length); in initWithStringOfLength() 142 string = newString; in initWithStringOfLength() 165 string = const_cast<char *>(cString); in initWithCStringNoCopy() 253 kfree_data(string, length); in free() 269 return string; in getCStringNoCopy() 276 string[index] = aChar; in setChar() 288 return string[index]; in getChar() 354 if (*dataPtr++ != string[i]) { in isEqualTo() [all …]
|
| H A D | OSSymbol.cpp | 77 .smrk_string = sym->string, in OSSymbol_get_key() 343 if (sym->string >= startAddr && sym->string < endAddr) { in checkForPageUnload() 349 memcpy(s, sym->string, sym->length); in checkForPageUnload() 359 sym->string = s; in checkForPageUnload() 480 newSymb->string = const_cast<char *>(cString); in withCString() 486 newSymb->string = s; in withCString() 526 newSymb->string = const_cast<char *>(cString); in withCStringNoCopy() 624 if (!(flags & kOSStringNoCopy) && string) { in smr_free() 625 kfree_data(string, length); in smr_free() 663 kfree_data(string, length); in free() [all …]
|
| H A D | OSUnserializeXML.y | 424 string: STRING 1054 if (!object->string) { in yylex() 1080 if (!object->string) { in yylex() 1168 if (o->string) { in cleanupObjects() 1170 free(o->string); in cleanupObjects() 1325 OSString *string; in buildString() local 1327 string = OSString::withCString(o->string); in buildString() 1332 free(o->string); in buildString() 1333 o->string = 0; in buildString() 1334 o->object = string; in buildString() [all …]
|
| /xnu-11215/EXTERNAL_HEADERS/CoreEntitlements/ |
| H A D | QueryHelpers.h | 74 …atchString(string) (CEQueryOperation_t){.opcode = kCEOpMatchString, .parameters = {.stringParamete… argument 75 …hDynamicString(string, len) (CEQueryOperation_t){.opcode = CEDynamic(kCEOpMatchString), .parameter… argument 148 …llowed(string) (CEQueryOperation_t){.opcode = kCEOpStringValueAllowed, .parameters = {.stringParam… argument 149 …ingAllowed(string, len) (CEQueryOperation_t){.opcode = CEDynamic(kCEOpStringValueAllowed), .parame… argument 161 …wed(string) (CEQueryOperation_t){.opcode = kCEOpStringPrefixValueAllowed, .parameters = {.stringPa… argument 162 …string, len) (CEQueryOperation_t){.opcode = CEDynamic(kCEOpStringPrefixValueAllowed), .parameters … argument
|
| /xnu-11215/libkern/ |
| H A D | OSKextVersion.c | 121 const char * string; in __OSKextVersionStageForString() local 127 string = *string_p; in __OSKextVersionStageForString() 129 if (__vers_isspace(string[0]) || string[0] == '\0') { in __OSKextVersionStageForString() 132 switch (string[0]) { in __OSKextVersionStageForString() 134 if (__vers_isdigit(string[1])) { in __OSKextVersionStageForString() 135 *string_p = &string[1]; in __OSKextVersionStageForString() 141 *string_p = &string[1]; in __OSKextVersionStageForString() 147 *string_p = &string[1]; in __OSKextVersionStageForString() 153 *string_p = &string[1]; in __OSKextVersionStageForString() 155 } else if (string[1] == 'c' && __vers_isdigit(string[2])) { in __OSKextVersionStageForString() [all …]
|
| /xnu-11215/tools/trace/ |
| H A D | wqtrace.lua | 52 return string.format("UI[%x]", pri); 54 return string.format("IN[%x]", pri); 56 return string.format("DF[%x]", pri); 72 return string.format("MG", pri); 74 return string.format("UI", pri); 76 return string.format("IN", pri); 78 return string.format("DF", pri); 80 return string.format("UT", pri); 82 return string.format("BG", pri); 84 return string.format("MT", pri); [all …]
|
| H A D | bridgetime.lua | 19 return string.format("%s %6.9f %-30s", 26 return string.format("%6.9f", secs); 32 return string.format("%6.9f", secs); 37 return string.format("%6.9f", secs);
|
| H A D | kqtrace.lua | 31 local prefix = string.format("%s %6.9f %-17s [%05d.%06x] %-28s\t", 34 prefix = prefix .. string.format(" 0x%16x", buf.arg1) 58 return string.format("??[0x%x]", qos) 206 return string.format('[%d]', filt)
|
| /xnu-11215/doc/primitives/ |
| H A D | string-handling.md | 3 xnu implements most POSIX C string functions, including the inherited subset of 33 that does this might need to write the string function. 43 # The problems with string functions 45 POSIX/BSD string handling functions come in many variants: 95 string? 100 string is passed without bounds as a NUL-terminated string to downstream users. 110 terminated string; 112 terminated string; 114 _one_ NUL-terminated string: 146 This code converts the string pointer to a NUL-terminated string too early, [all …]
|
| /xnu-11215/bsd/net/ |
| H A D | net_str_id.c | 75 net_str_id_find_internal(const char *string, u_int32_t *out_id, in net_str_id_find_internal() argument 81 if (string == NULL || out_id == NULL || kind >= NSI_MAX_KIND) { in net_str_id_find_internal() 84 if (strlen(string) > NET_ID_STR_MAX_LEN) { in net_str_id_find_internal() 93 if (strlcmp(entry->nsi_string, string, entry->nsi_length) == 0) { in net_str_id_find_internal() 104 const uint32_t string_length = (uint32_t)strlen(string) + 1; in net_str_id_find_internal() 112 strlcpy(entry->nsi_string, string, string_length); in net_str_id_find_internal()
|
| H A D | trie_utility.c | 102 if (HIGH_ASCII(string[i])) { in net_trie_has_high_ascii() 299 if (trie->memory == NULL || string == NULL || string_length == 0) { in net_trie_insert() 308 if (net_trie_has_high_ascii(string, string_length)) { in net_trie_insert() 317 byte[i] = string[j]; in net_trie_insert() 320 memcpy(byte, string, string_length); in net_trie_insert() 462 if (trie->memory == NULL || string == NULL || string_length == 0) { in net_trie_search() 484 NET_TRIE_LOG(LOG_DEBUG, "%c", string[string_idx]); in net_trie_search() 493 NET_TRIE_LOG(LOG_DEBUG, "%c", string[string_idx]); in net_trie_search() 546 next = TRIE_CHILD_GET(trie, current, string[string_idx]); in net_trie_search() 572 if (HIGH_ASCII(string[string_idx])) { in net_trie_search() [all …]
|
| /xnu-11215/bsd/dev/dtrace/scripts/ |
| H A D | ip.d | 43 string ip_daddr; 44 string ip_saddr; 67 string ip_saddr; /* source address */ 68 string ip_daddr; /* destination address */ 117 string if_name; /* interface name */ 148 string ipv4_protostr; /* next level protocol, as a string */ 152 string ipv4_saddr; /* source address, string */ 153 string ipv4_daddr; /* destination address, string */ 192 string ipv6_nextstr; /* next header protocol, as a string */ 196 string ipv6_saddr; /* source address, string */ [all …]
|
| H A D | io.d | 85 string dev_name; /* name of device */ 86 string dev_statname; /* name of device + instance/minor */ 87 string dev_pathname; /* pathname of device */ 103 string fi_name; /* name (basename of fi_pathname) */ 104 string fi_dirname; /* directory (dirname of fi_pathname) */ 105 string fi_pathname; /* full pathname */ 107 string fi_fs; /* filesystem */ 108 string fi_mount; /* mount point of file system */
|
| /xnu-11215/tools/tests/ |
| H A D | Makefile.common | 105 FILTER_OUT_SUBSTRING=$(strip $(foreach string,$(2),$(if $(findstring $(1),$(string)),,$(string)))) 106 FILTER_SUBSTRING=$(strip $(foreach string,$(2),$(if $(findstring $(1),$(string)),$(string),)))
|
| /xnu-11215/tools/kt-dump/ |
| H A D | kt-dump.cpp | 146 decode_string(const macho_section<char> &sec_cstring, const char *string) in decode_string() argument 156 if (string) { in decode_string() 157 uintptr_t string_p = reinterpret_cast<uintptr_t>(string); in decode_string() 392 std::string 397 return std::string{to_str}; in uuid() 427 dump(const std::string &imgname, const char *indent = "") in dump() 491 do_fat_macho(const std::string filename, std::span<uint8_t> contents) in do_fat_macho() 654 return do_simple_macho(path.filename().string(), contents); in do_file() 656 return do_fat_macho(path.filename().string(), contents); in do_file() 729 std::string path_arg; in main() [all …]
|
| /xnu-11215/libkern/libkern/ |
| H A D | version.h.template | 40 /* VERSION_VARIANT, version_variant is a string that contains the revision, 62 /* OSBUILD_CONFIG, osbuild_config is a one-word string describing the build 66 /* OSTYPE, ostype, is a string as returned by uname -s */ 69 /* OSRELEASE, osrelease, is a string as returned by uname -r */ 105 /* osbuilder is a string as returned by uname -r */ 108 /* version is a string of the following form, as returned by uname -v:
|
| /xnu-11215/tests/ipc/ |
| H A D | mach_msg2.c | 51 char string[64]; member 218 char *content = ((aux_buffer_t *)data_vec[1].msgv_data)->string; in do_msg_rcv() 329 memcpy(aux.string, buf_string, sizeof(aux.string)); 443 memcpy(aux.string, buf_string, sizeof(aux.string)); 465 ret = strcmp(buf_string, ((aux_buffer_t *)data_vec[1].msgv_data)->string); 520 int ret = strcmp(aux->string, MESSAGE_AUX_STR); in workloop_cb() 521 T_EXPECT_EQ(ret, 0, "aux content should match. Got: %s", aux->string); in workloop_cb() 591 memcpy(aux.string, buf_string, sizeof(aux.string));
|
| /xnu-11215/osfmk/libsa/ |
| H A D | Makefile | 10 string.h 13 string.h
|
| /xnu-11215/tools/lldbmacros/ |
| H A D | ioreg.py | 872 def CompareStringToOSSymbol(string, os_sym): argument 885 if string > os_sym_str: 887 elif string < os_sym_str: 938 return self._meta.className.string 1386 if key_str == str(propertyTable.dictionary[idx].key.string): 1406 def GetString(string): argument 1409 out_string = "{0:s}".format(CastIOKitClass(string, 'OSString *').string) 1758 print(string.format(preoslog_header.size, preoslog_size)) 1885 string = "{:<32s}: " 1886 name_prop_list.append( string.format(data) ); [all …]
|
| /xnu-11215/tests/bounded_array_ref_src/ |
| H A D | test_policy.h | 23 static std::string message; 38 std::string tracking_policy::message = "";
|
| /xnu-11215/iokit/System/ |
| H A D | OSUnserializeXMLSharedImplementation.h | 2665 if (!object->string) { in yylex() 2687 object->string[0] = 0; in yylex() 2691 if (!object->string) { in yylex() 2779 if (o->string) { in cleanupObjects() 2781 free(o->string); in cleanupObjects() 2936 OSString *string; in buildString() local 2938 string = OSString::withCString(o->string); in buildString() 2943 free(o->string); in buildString() 2944 o->string = 0; in buildString() 2945 o->object = string; in buildString() [all …]
|
| /xnu-11215/libkern/libkern/c++/ |
| H A D | OSUnserializeXMLSharedImplementation.h | 2665 if (!object->string) { in yylex() 2687 object->string[0] = 0; in yylex() 2691 if (!object->string) { in yylex() 2779 if (o->string) { in cleanupObjects() 2781 free(o->string); in cleanupObjects() 2936 OSString *string; in buildString() local 2938 string = OSString::withCString(o->string); in buildString() 2943 free(o->string); in buildString() 2944 o->string = 0; in buildString() 2945 o->object = string; in buildString() [all …]
|
| H A D | OSString.h | 126 char * OS_PTRAUTH_SIGNED_PTR("OSString.string") string; 131 char * OS_PTRAUTH_SIGNED_PTR("OSString.string") string;
|
| /xnu-11215/bsd/kern/ |
| H A D | kern_malloc.c | 159 STRDUP_external(const char *string, int type); 161 STRDUP_external(const char *string, int type __unused) in STRDUP_external() argument 166 len = strlen(string) + 1; in STRDUP_external() 169 memcpy(copy, string, len); in STRDUP_external()
|
| /xnu-11215/tests/ |
| H A D | preoslog.c | 21 check_for_substrings(const char* string, size_t len) in check_for_substrings() argument 27 res = res || strnstr(string, g_preoslog_buffer_string[i], len) == NULL ? FALSE : TRUE; in check_for_substrings()
|