/haiku/src/add-ons/kernel/file_systems/reiserfs/ |
H A D | DirItem.h | 91 const char *EntryNameAt(int32 index, size_t *nameLen = NULL) const 110 if (name && nameLen) { 118 *nameLen = strnlen(name, maxLength); 129 size_t nameLen = 0; in GetEntryNameAt() local 130 const char *name = EntryNameAt(index, &nameLen); in GetEntryNameAt() 131 if (name && nameLen > 0) { in GetEntryNameAt() 132 if (nameLen + 1 <= bufferSize) { in GetEntryNameAt() 133 strncpy(buffer, name, nameLen); in GetEntryNameAt() 134 buffer[nameLen] = 0; in GetEntryNameAt() 151 size_t nameLen = 0; in IndexOfName() local [all …]
|
H A D | Tree.cpp | 181 size_t nameLen, DirItem *foundItem, int32 *entryIndex) in FindDirEntry() argument 187 if (fVolume->GetKeyOffsetForName(name, nameLen, &offset) == B_OK) { in FindDirEntry() 200 if (itemNameLen == nameLen in FindDirEntry() 201 && !strncmp(name, itemName, nameLen)) { in FindDirEntry()
|
H A D | kernel_interface.cpp | 503 const char *name, int32 nameLen) in set_dirent_name() argument 505 size_t length = (buffer->d_name + nameLen + 1) - (char*)buffer; in set_dirent_name() 507 memcpy(buffer->d_name, name, nameLen); in set_dirent_name() 508 buffer->d_name[nameLen] = '\0'; in set_dirent_name() 579 size_t nameLen = 0; in reiserfs_read_dir() local 580 const char *name = item.EntryNameAt(index, &nameLen); in reiserfs_read_dir() 581 if (!name || nameLen == 0) // bad data: skip it gracefully in reiserfs_read_dir() 585 error = set_dirent_name(buffer, bufferSize, name, nameLen); in reiserfs_read_dir() 613 size_t nameLen = strlen(name); in reiserfs_read_dir() local 617 nameLen); in reiserfs_read_dir()
|
H A D | Volume.cpp | 602 size_t nameLen = 0; in _DetectHashFunction() local 603 const char *name = item.EntryNameAt(index, &nameLen); in _DetectHashFunction() 610 uint64 testOffset = key_offset_for_name(function, name, nameLen); in _DetectHashFunction() 639 size_t nameLen = 0; in _VerifyHashFunction() local 640 if (const char *name = item.EntryNameAt(index, &nameLen)) { in _VerifyHashFunction() 641 uint64 testOffset = key_offset_for_name(function, name, nameLen); in _VerifyHashFunction()
|
H A D | Tree.h | 59 size_t nameLen, DirItem *foundItem,
|
/haiku/src/add-ons/kernel/file_systems/netfs/client/ |
H A D | VolumeSupport.h | 14 int32 nameLen) in set_dirent_name() argument 16 size_t length = (buffer->d_name + nameLen + 1) - (char*)buffer; in set_dirent_name() 18 memcpy(buffer->d_name, name, nameLen); in set_dirent_name() 19 buffer->d_name[nameLen] = '\0'; in set_dirent_name()
|
H A D | ShareAttrDir.cpp | 91 int32 nameLen = strlen(name); in CreateAttribute() local 92 int32 size = sizeof(Attribute) + nameLen; in CreateAttribute()
|
H A D | VirtualVolume.cpp | 138 int32 nameLen = strlen(volume->GetName()); in AddChildVolume() local 139 if (nameLen == 0 || nameLen >= B_FILE_NAME_LENGTH) in AddChildVolume()
|
/haiku/src/tests/kits/midi/synth_file_reader/ |
H A D | SynthFileFormat.txt | 22 'INST' | instr[4] | nameLen[1] | name[nameLen] | dataSize[4] | data[dataSize] 52 'snd ' | sndId[4] | nameLen[1] | name[nameLen] | dataSize[4] | [28] |
|
/haiku/src/add-ons/kernel/file_systems/packagefs/util/ |
H A D | Utils.h | 31 size_t nameLen) in set_dirent_name() argument 33 size_t length = (buffer->d_name + nameLen + 1) - (char*)buffer; in set_dirent_name() 37 memcpy(buffer->d_name, name, nameLen); in set_dirent_name() 38 buffer->d_name[nameLen] = '\0'; in set_dirent_name()
|
/haiku/src/tools/ |
H A D | exec.c | 119 int oldValLen, valLen, nameLen; in main() local 128 nameLen = strlen(currentArg); in main() 132 if (strncmp(val, currentArg, nameLen) != 0 in main() 133 || isalnum(val[nameLen])) { in main() 144 memcpy(newVal + oldValLen, val + nameLen, valLen + 1); in main()
|
/haiku/src/system/libroot/posix/ |
H A D | user_group_common.cpp | 222 size_t nameLen; in parse_passwd_line() local 223 if (shell == NULL || (nameLen = strlen(name)) == 0 in parse_passwd_line() 225 || nameLen >= MAX_PASSWD_NAME_LEN in parse_passwd_line() 298 size_t nameLen; in parse_group_line() local 299 if (groupID == NULL || (nameLen = strlen(name)) == 0 || !isdigit(*groupID) in parse_group_line() 300 || nameLen >= MAX_GROUP_NAME_LEN in parse_group_line() 380 size_t nameLen; in parse_shadow_pwd_line() local 381 if (flagsString == NULL || (nameLen = strlen(name)) == 0 in parse_shadow_pwd_line() 382 || nameLen >= MAX_SHADOW_PWD_NAME_LEN in parse_shadow_pwd_line()
|
/haiku/src/build/libbe/support/ |
H A D | Archivable.cpp | 238 int nameLen = 0; in Demangle() local 244 nameLen = GetNumber(name); in Demangle() 245 out.Append(name, nameLen); in Demangle() 247 name += nameLen; in Demangle()
|
/haiku/src/tools/restest/ |
H A D | ResourceFile.cpp | 329 uint32 nameLen = strlen(item->GetName()); in GetResourcesSize() local 330 if (nameLen != 0) in GetResourcesSize() 331 infoTableSize += nameLen + 1; in GetResourcesSize() 377 uint32 nameLen = strlen(item->GetName()); in WriteResources() local 378 if (nameLen != 0) in WriteResources() 379 infoTableSize += nameLen + 1; in WriteResources() 463 uint32 nameLen = strlen(item->GetName()); in WriteResources() local 464 if (nameLen != 0) { in WriteResources() 465 memcpy(info->ri_name, item->GetName(), nameLen + 1); in WriteResources() 466 data = skip_bytes(data, nameLen + 1); in WriteResources() [all …]
|
/haiku/src/system/kernel/fs/ |
H A D | EntryCache.cpp | 130 const size_t nameLen = strlen(name); in Add() local 131 entry = (EntryCacheEntry*)malloc_etc(sizeof(EntryCacheEntry) + nameLen, in Add() 143 memcpy(entry->name, name, nameLen + 1); in Add()
|
/haiku/src/tests/add-ons/kernel/kernelland_emu/ |
H A D | module.cpp | 477 size_t nameLen = strlen(info->name); in GetNextLoadedModuleName() local 478 if (nameLen < *bufferSize) { in GetNextLoadedModuleName() 480 *bufferSize = nameLen; in GetNextLoadedModuleName() 522 size_t nameLen = name.length(); in ReadNextModuleName() local 523 if (nameLen < *bufferSize) { in ReadNextModuleName() 525 *bufferSize = nameLen; in ReadNextModuleName()
|
/haiku/src/add-ons/kernel/file_systems/userlandfs/server/ |
H A D | Volume.cpp | 151 size_t nameLen = strnlen(entry->d_name, B_FILE_NAME_LENGTH); in GetVNodeName() local 152 if (nameLen < bufferSize) { in GetVNodeName() 153 memcpy(buffer, entry->d_name, nameLen); in GetVNodeName() 154 buffer[nameLen] = '\0'; in GetVNodeName()
|
/haiku/src/build/libroot/ |
H A D | fs_attr_untyped.cpp | 288 int nameLen = strlen(name); in ReadDir() local 289 fListingIndex += nameLen + 1; in ReadDir() 296 nameLen = demangledName.length(); in ReadDir() 298 if (nameLen == 0) { in ReadDir()
|
/haiku/src/kits/support/ |
H A D | Archivable.cpp | 64 int nameLen; in demangle_class_name() local 66 while ((nameLen = strtoul(name, (char**)&name, 10))) { in demangle_class_name() 71 out.Append(name, nameLen); in demangle_class_name() 72 name += nameLen; in demangle_class_name()
|
/haiku/src/system/kernel/debug/ |
H A D | system_profiler.cpp | 877 size_t nameLen = strlen(team->Name()); in _TeamAdded() local 893 sizeof(system_profiler_team_added) + nameLen + 1 + argsLen, in _TeamAdded() 900 event->args_offset = nameLen + 1; in _TeamAdded() 901 strcpy(event->name + nameLen + 1, team->Args()); in _TeamAdded() 1069 size_t nameLen = strlen(scheduler->Name()); in _IOSchedulerAdded() local 1075 sizeof(system_profiler_io_scheduler_added) + nameLen, in _IOSchedulerAdded() 1300 size_t nameLen = name != NULL ? strlen(name) : 0; in _WaitObjectUsed() local 1304 _AllocateBuffer(sizeof(system_profiler_wait_object_info) + nameLen, in _WaitObjectUsed()
|
/haiku/src/add-ons/kernel/file_systems/userlandfs/kernel_add_on/ |
H A D | KernelRequestHandler.cpp | 142 int32 nameLen = request->name.GetSize(); in _HandleRequest() local 143 if (name && (nameLen <= 0)) in _HandleRequest() 146 name[nameLen - 1] = '\0'; // NULL-terminate to be safe in _HandleRequest() 293 int32 nameLen = request->name.GetSize(); in _HandleRequest() local 294 if (!name || nameLen <= 0) { in _HandleRequest() 298 name[nameLen - 1] = '\0'; // NULL-terminate to be safe in _HandleRequest()
|
H A D | kernel_interface.cpp | 632 int nameLen = strnlen(entry->d_name, B_FILE_NAME_LENGTH - 1); in userlandfs_read_dir() local 633 strncpy(name, entry->d_name, nameLen); in userlandfs_read_dir() 634 name[nameLen] = '\0'; in userlandfs_read_dir() 1027 int nameLen = strnlen(buffer->d_name, B_FILE_NAME_LENGTH - 1); in userlandfs_read_query() local 1028 strncpy(name, buffer->d_name, nameLen); in userlandfs_read_query() 1029 name[nameLen] = '\0'; in userlandfs_read_query()
|
/haiku/src/add-ons/kernel/file_systems/netfs/server/ |
H A D | AttributeDirectory.cpp | 50 int32 nameLen = strlen(name); in CreateAttribute() local 51 int32 size = sizeof(Attribute) + nameLen; in CreateAttribute()
|
/haiku/src/add-ons/kernel/file_systems/ramfs/ |
H A D | kernel_interface.cpp | 1318 size_t nameLen = strlen(name); in ramfs_read_dir() local 1321 size_t length = (buffer->d_name + nameLen + 1) - (char*)buffer; in ramfs_read_dir() 1325 memcpy(buffer->d_name, name, nameLen); in ramfs_read_dir() 1326 buffer->d_name[nameLen] = '\0'; in ramfs_read_dir() 1434 size_t nameLen = strlen(name); in ramfs_read_attr_dir() local 1437 size_t length = (buffer->d_name + nameLen + 1) - (char*)buffer; in ramfs_read_attr_dir() 1441 memcpy(buffer->d_name, name, nameLen); in ramfs_read_attr_dir() 1442 buffer->d_name[nameLen] = '\0'; in ramfs_read_attr_dir() 1908 size_t nameLen = strlen(name); in ramfs_read_index_dir() local 1911 size_t length = (buffer->d_name + nameLen + 1) - (char*)buffer; in ramfs_read_index_dir() [all …]
|
/haiku/src/add-ons/kernel/bus_managers/fdt/ |
H A D | fdt_module.cpp | 93 int nameLen = 0; in fdt_register_node() local 94 const char *name = fdt_get_name(gFDT, node, &nameLen); in fdt_register_node() 98 fdt_strerror(nameLen)); in fdt_register_node()
|