Searched refs:nameLength (Results 1 - 25 of 79) sorted by relevance

1234

/haiku/src/system/kernel/vm/
H A DVMUtils.cpp24 int nameLength = 0; local
27 nameLength = strlen(volumeName);
28 if (nameLength == 0) {
31 nameLength = strlen(volumeName);
32 if (nameLength == 0) {
34 nameLength = strlen(volumeName);
38 BStackOrHeapArray<char, 128> basePath(nameLength + 2);
41 int32 len = snprintf(basePath, nameLength + 2, "/%s", volumeName);
/haiku/src/apps/cortex/support/
H A DProfileTarget.cpp65 uint32 nameLength; member in class:fnDumpEntry
67 fnDumpEntry(uint32 _n) : nameLength(_n) {
68 maxPad.SetTo(' ', nameLength);
76 namePad.SetTo(' ', nameLength-strlen(entry.name));
92 uint32 nameLength = 0; local
97 if((*it).first.Length() > nameLength)
98 nameLength = (*it).first.Length();
105 for_each(sorted.begin(), sorted.end(), fnDumpEntry(nameLength));
/haiku/headers/private/kernel/
H A Dreal_time_clock.h41 size_t nameLength);
43 size_t nameLength);
/haiku/src/system/boot/loader/file_systems/packagefs/
H A DPackageSettingsItem.h40 bool SetName(const char* name, size_t nameLength) argument
42 fName = (char*)malloc(nameLength + 1);
46 memcpy(fName, name, nameLength);
47 fName[nameLength] = '\0';
85 EntryKey(Entry* parent, const char* name, size_t nameLength) argument
89 fNameLength(nameLength)
142 size_t nameLength) const;
H A DPackageSettingsItem.cpp127 size_t nameLength = componentEnd - path; local
129 Entry* entry = FindEntry(parent, name, nameLength);
132 if (entry == NULL || !entry->SetName(name, nameLength)) {
160 size_t nameLength) const
162 return fEntries.Lookup(EntryKey(parent, name, nameLength));
/haiku/src/tests/system/kernel/file_corruption/fs/
H A DDirectory.cpp40 size_t nameLength, bool& _exactMatch) const;
46 size_t nameLength, uint64 blockIndex);
48 size_t nameLength);
98 size_t nameLength, uint64 blockIndex,
221 DirEntryBlock::FindInsertionIndex(const char* name, size_t nameLength, argument
241 cmp = compare_names(entryName, entryNameLength, name, nameLength);
276 DirEntryBlock::InsertEntry(int32 index, const char* name, size_t nameLength, argument
294 memmove(entryNames + nameOffset + nameLength + 2,
303 fBlock->nameEnds[i] = fBlock->nameEnds[i - 1] + nameLength;
311 memcpy(entryNames + nameOffset, name, nameLength);
320 ReplaceEntryName(int32 index, const char* name, size_t nameLength) argument
376 uint32 nameLength = nameEnd - nameOffset; local
489 uint16 nameLength = nameEnd - previousEnd; local
557 size_t nameLength = strlen(name); local
627 size_t nameLength = strlen(name); local
761 size_t nameLength = strlen(name); local
852 size_t nameLength = strlen(name); local
1104 _UpdateOrInsertKey(LevelInfo* infos, int32 level, const char* name, size_t nameLength, uint64 blockIndex, bool insertKey, Transaction& transaction) argument
[all...]
/haiku/src/add-ons/kernel/file_systems/btrfs/
H A DAttribute.cpp90 size_t nameLength = strlen(fName); local
93 status_t status = _Lookup(fName, nameLength, &entries, &length);
98 status = _FindEntry(entries, length, fName, nameLength, &entry);
118 size_t nameLength = strlen(fName);
121 status_t status = _Lookup(fName, nameLength, &entries, &length);
126 status = _FindEntry(entries, length, fName, nameLength, &entry);
147 Attribute::_Lookup(const char* name, size_t nameLength, argument
150 uint32 hash = calculate_crc((uint32)~1, (uint8*)name, nameLength);
181 const char* name, size_t nameLength, btrfs_dir_entry** _entry)
180 _FindEntry(btrfs_dir_entry* entries, size_t length, const char* name, size_t nameLength, btrfs_dir_entry** _entry) argument
H A DAttribute.h55 status_t _Lookup(const char* name, size_t nameLength,
61 size_t nameLength,
H A DDirectoryIterator.h30 * \param nameLength Length of name being searched
33 status_t Lookup(const char* name, size_t nameLength, ino_t* _id);
/haiku/src/tests/system/kernel/unit/
H A DTestSuite.cpp48 TestSuite::FindTest(const char* name, int32 nameLength) const
50 if (nameLength < 0)
51 nameLength = strlen(name);
54 if (strlen(test->Name()) == (size_t)nameLength
55 && strncmp(test->Name(), name, nameLength) == 0) {
H A DTestSuite.h22 int32 nameLength = -1) const;
/haiku/src/kits/app/
H A DMessageUtils.cpp52 size_t nameLength = 0; local
54 nameLength = strlen(ref->name) + 1;
55 if (*size < nameLength)
58 memcpy((void *)buffer, (const void *)ref->name, nameLength);
61 *size = sizeof(ref->device) + sizeof(ref->directory) + nameLength;
/haiku/src/add-ons/kernel/file_systems/ext2/
H A DDirectoryIterator.h36 size_t nameLength, ino_t id, uint8 type);
50 status_t _AllocateBestEntryInBlock(uint8 nameLength, uint16& pos,
53 uint8 nameLength, ino_t id, uint8 fileType,
57 const char* name, uint8 nameLength, ino_t id,
H A DDirectoryIterator.cpp262 uint8 nameLength = _nameLength > EXT2_NAME_LENGTH ? EXT2_NAME_LENGTH local
270 status = _AllocateBestEntryInBlock(nameLength, pos, newLength);
272 return _AddEntry(transaction, name, nameLength, id, type, newLength,
306 return _SplitIndexedBlock(transaction, name, nameLength, id, type,
315 return _AddEntry(transaction, name, nameLength, id, type, fBlockSize, 0,
330 size_t nameLength = EXT2_NAME_LENGTH; local
331 status = Get(buffer, &nameLength, &id);
333 if (length == nameLength
334 && strncmp(name, buffer, nameLength) == 0) {
446 DirectoryIterator::_AllocateBestEntryInBlock(uint8 nameLength, uint1 argument
504 _AddEntry(Transaction& transaction, const char* name, uint8 nameLength, ino_t id, uint8 type, uint16 newLength, uint16 pos, bool hasPrevious) argument
544 _SplitIndexedBlock(Transaction& transaction, const char* name, uint8 nameLength, ino_t id, uint8 type, uint32 newBlocksPos, bool firstSplit) argument
[all...]
/haiku/src/kits/media/
H A DMediaAddOn.cpp305 int32 nameLength = name ? (int32)strlen(name) : -1; local
343 *(int32*)buf = nameLength; buf += sizeof(int32);
344 if (nameLength > 0) {
345 memcpy(buf, name, nameLength);
346 buf += nameLength;
385 int32 nameLength; local
410 nameLength = *(int32*)buf; buf += sizeof(int32);
411 if (nameLength >= 0) { // if nameLength is -1, we leave name = 0
412 name = new(std::nothrow) char [nameLength
[all...]
/haiku/headers/private/package/
H A Dpackagefs.h93 uint32 nameLength; member in struct:PackageFSActivationChangeItem
/haiku/src/libs/gnu/
H A Dxattr.cpp249 size_t nameLength = strlen(attributeName.name); local
250 totalSize += nameLength + 1;
252 if (remainingSize > nameLength) {
254 buffer += nameLength + 1;
255 remainingSize -= nameLength + 1;
/haiku/src/bin/rc/
H A Drc.cpp133 size_t nameLength = strlen(name); local
136 if (nameLength > extLength)
137 return strcmp(name + nameLength - extLength, ext) == 0;
/haiku/src/tools/elfsymbolpatcher/
H A DElfImage.cpp72 int32 nameLength = strlen(name); local
74 char foundName[nameLength + 1];
78 if (debug_next_image_symbol(iterator, foundName, nameLength + 1,
/haiku/src/system/boot/loader/file_systems/fat/
H A DDirectory.cpp112 uint32 nameLength; member in struct:FATFS::dir_cookie
127 nameLength = 0;
143 if (count > (MAX_UTF16_NAME_LENGTH - nameLength))
146 nameLength += count;
147 memcpy(nameBuffer + (MAX_UTF16_NAME_LENGTH - nameLength),
161 const uint16* utf16 = nameBuffer + (MAX_UTF16_NAME_LENGTH - nameLength);
163 for (uint32 i = 0; i < nameLength; i++) {
181 if (i + 1 >= nameLength)
256 size_t nameLength = strlen(name); local
262 extensionLength = nameLength
[all...]
/haiku/src/add-ons/kernel/file_systems/packagefs/indices/
H A DQuery.cpp69 size_t nameLength = strlen(name); local
70 if (nameLength >= bufferSize)
73 memcpy(buffer, name, nameLength + 1);
74 return nameLength + 1;
/haiku/src/add-ons/kernel/file_systems/exfat/
H A DDirectoryIterator.h48 status_t Lookup(const char* name, size_t nameLength,
H A DDirectoryIterator.cpp121 DirectoryIterator::Lookup(const char* name, size_t nameLength, ino_t* _id) argument
141 char utf8Name[nameLength + 1];
144 if (lengthOrStatus > 0 && (size_t)lengthOrStatus == nameLength
145 && strncmp(utf8Name, name, nameLength) == 0) {
/haiku/src/system/kernel/
H A Dreal_time_clock.cpp254 _user_set_timezone(int32 timezoneOffset, const char *name, size_t nameLength) argument
265 if (name != NULL && nameLength > 0) {
296 _user_get_timezone(int32 *_timezoneOffset, char *userName, size_t nameLength) argument
307 || user_strlcpy(userName, sTimezoneName, nameLength) < 0))
/haiku/src/kits/package/hpkg/
H A DPackageWriterImpl.cpp114 Attribute* FindEntryChild(const char* fileName, size_t nameLength) const
116 BString name(fileName, nameLength);
117 return (size_t)name.Length() == nameLength
256 Entry(char* name, size_t nameLength, int fd, bool isImplicit) argument
259 fNameLength(nameLength),
271 static Entry* Create(const char* name, size_t nameLength, int fd, argument
274 char* clonedName = (char*)malloc(nameLength + 1);
277 memcpy(clonedName, name, nameLength);
278 clonedName[nameLength] = '\0';
280 Entry* entry = new(std::nothrow) Entry(clonedName, nameLength, f
315 HasName(const char* name, size_t nameLength) argument
1294 _RegisterEntry(Entry* parent, const char* name, size_t nameLength, int fd, bool isImplicit) argument
[all...]

Completed in 252 milliseconds

1234