Searched refs:nameLen (Results 1 - 25 of 32) sorted by relevance

12

/haiku/src/add-ons/kernel/file_systems/netfs/client/
H A DVolumeSupport.h14 int32 nameLen)
16 size_t length = (buffer->d_name + nameLen + 1) - (char*)buffer;
18 memcpy(buffer->d_name, name, nameLen);
19 buffer->d_name[nameLen] = '\0';
13 set_dirent_name(struct dirent* buffer, size_t bufferSize, const char* name, int32 nameLen) argument
H A DShareAttrDir.cpp91 int32 nameLen = strlen(name);
92 int32 size = sizeof(Attribute) + nameLen;
H A DVirtualVolume.cpp138 int32 nameLen = strlen(volume->GetName()); local
139 if (nameLen == 0 || nameLen >= B_FILE_NAME_LENGTH)
H A DShareVolume.cpp1573 int32 nameLen = reply->name.GetSize(); local
1574 if (!name || nameLen < 2)
1578 error = set_dirent_name(buffer, bufferSize, name, nameLen - 1);
1953 int32 nameLen = entryInfo.name.GetSize(); local
1954 if (!name || nameLen < 2)
2010 error = set_dirent_name(buffer, bufferSize, name, nameLen - 1);
2129 int32 nameLen = entryInfo.name.GetSize(); local
2130 if (!name || nameLen < 2)
/haiku/src/add-ons/kernel/file_systems/reiserfs/
H A DDirItem.h91 const char *EntryNameAt(int32 index, size_t *nameLen = NULL) const
110 if (name && nameLen) {
118 *nameLen = strnlen(name, maxLength);
129 size_t nameLen = 0; local
130 const char *name = EntryNameAt(index, &nameLen);
131 if (name && nameLen > 0) {
132 if (nameLen + 1 <= bufferSize) {
133 strncpy(buffer, name, nameLen);
134 buffer[nameLen] = 0;
148 size_t nameLen local
[all...]
H A DTree.cpp181 size_t nameLen, DirItem *foundItem, int32 *entryIndex)
187 if (fVolume->GetKeyOffsetForName(name, nameLen, &offset) == B_OK) {
189 //offset, (int)nameLen, name, nameLen));
200 if (itemNameLen == nameLen
201 && !strncmp(name, itemName, nameLen)) {
180 FindDirEntry(uint32 dirID, uint32 objectID, const char *name, size_t nameLen, DirItem *foundItem, int32 *entryIndex) argument
H A DTree.h59 size_t nameLen, DirItem *foundItem,
H A Dkernel_interface.cpp500 const char *name, int32 nameLen)
502 size_t length = (buffer->d_name + nameLen + 1) - (char*)buffer;
504 memcpy(buffer->d_name, name, nameLen);
505 buffer->d_name[nameLen] = '\0';
577 size_t nameLen = 0; local
578 const char *name = item.EntryNameAt(index, &nameLen);
579 if (!name || nameLen == 0) // bad data: skip it gracefully
584 nameLen);
609 size_t nameLen = strlen(name); local
613 nameLen);
499 set_dirent_name(struct dirent *buffer, size_t bufferSize, const char *name, int32 nameLen) argument
[all...]
H A DVolume.cpp618 size_t nameLen = 0; local
619 const char *name = item.EntryNameAt(index, &nameLen);
626 uint64 testOffset = key_offset_for_name(function, name, nameLen);
655 size_t nameLen = 0; local
656 if (const char *name = item.EntryNameAt(index, &nameLen)) {
657 uint64 testOffset = key_offset_for_name(function, name, nameLen);
/haiku/src/add-ons/kernel/file_systems/packagefs/util/
H A DUtils.h31 size_t nameLen)
33 size_t length = (buffer->d_name + nameLen + 1) - (char*)buffer;
37 memcpy(buffer->d_name, name, nameLen);
38 buffer->d_name[nameLen] = '\0';
30 set_dirent_name(struct dirent* buffer, size_t bufferSize, const char* name, size_t nameLen) argument
/haiku/src/tools/
H A Dexec.c119 int oldValLen, valLen, nameLen; local
128 nameLen = strlen(currentArg);
132 if (strncmp(val, currentArg, nameLen) != 0
133 || isalnum(val[nameLen])) {
144 memcpy(newVal + oldValLen, val + nameLen, valLen + 1);
/haiku/src/build/libbe/support/
H A DArchivable.cpp238 int nameLen = 0; local
244 nameLen = GetNumber(name);
245 out.Append(name, nameLen);
247 name += nameLen;
/haiku/src/system/libroot/posix/
H A Duser_group_common.cpp222 size_t nameLen; local
223 if (shell == NULL || (nameLen = strlen(name)) == 0
225 || nameLen >= MAX_PASSWD_NAME_LEN
298 size_t nameLen; local
299 if (groupID == NULL || (nameLen = strlen(name)) == 0 || !isdigit(*groupID)
300 || nameLen >= MAX_GROUP_NAME_LEN
380 size_t nameLen; local
381 if (flagsString == NULL || (nameLen = strlen(name)) == 0
382 || nameLen >= MAX_SHADOW_PWD_NAME_LEN
/haiku/src/tools/restest/
H A DResourceFile.cpp329 uint32 nameLen = strlen(item->GetName()); local
330 if (nameLen != 0)
331 infoTableSize += nameLen + 1;
377 uint32 nameLen = strlen(item->GetName()); local
378 if (nameLen != 0)
379 infoTableSize += nameLen + 1;
463 uint32 nameLen = strlen(item->GetName()); local
464 if (nameLen != 0) {
465 memcpy(info->ri_name, item->GetName(), nameLen + 1);
466 data = skip_bytes(data, nameLen
[all...]
/haiku/src/tests/add-ons/kernel/kernelland_emu/
H A Dmodule.cpp475 size_t nameLen = strlen(info->name); local
476 if (nameLen < *bufferSize) {
478 *bufferSize = nameLen;
520 size_t nameLen = name.length(); local
521 if (nameLen < *bufferSize) {
523 *bufferSize = nameLen;
/haiku/src/add-ons/kernel/file_systems/userlandfs/server/
H A DVolume.cpp151 size_t nameLen = strnlen(entry->d_name, B_FILE_NAME_LENGTH); local
152 if (nameLen < bufferSize) {
153 memcpy(buffer, entry->d_name, nameLen);
154 buffer[nameLen] = '\0';
/haiku/src/build/libroot/
H A Dfs_attr_untyped.cpp246 int nameLen = strlen(name); local
247 fListingIndex += nameLen + 1;
254 nameLen = demangledName.length();
256 if (nameLen == 0) {
/haiku/src/add-ons/kernel/file_systems/netfs/server/
H A DAttributeDirectory.cpp50 int32 nameLen = strlen(name);
51 int32 size = sizeof(Attribute) + nameLen;
/haiku/src/add-ons/kernel/file_systems/ramfs/
H A Dkernel_interface.cpp1296 size_t nameLen = strlen(name); local
1299 size_t length = (buffer->d_name + nameLen + 1) - (char*)buffer;
1303 memcpy(buffer->d_name, name, nameLen);
1304 buffer->d_name[nameLen] = '\0';
1415 size_t nameLen = strlen(name); local
1418 size_t length = (buffer->d_name + nameLen + 1) - (char*)buffer;
1422 memcpy(buffer->d_name, name, nameLen);
1423 buffer->d_name[nameLen] = '\0';
1889 size_t nameLen = strlen(name); local
1892 size_t length = (buffer->d_name + nameLen
[all...]
H A DQuery.cpp1219 size_t nameLen = strlen(entry->GetName()); local
1223 size_t length = (dirent->d_name + nameLen + 1) - (char*)dirent;
1232 memcpy(dirent->d_name, entry->GetName(), nameLen);
1233 dirent->d_name[nameLen] = '\0';
/haiku/src/kits/support/
H A DArchivable.cpp64 int nameLen; local
66 while ((nameLen = strtoul(name, (char**)&name, 10))) {
71 out.Append(name, nameLen);
72 name += nameLen;
/haiku/src/system/kernel/debug/
H A Dsystem_profiler.cpp871 size_t nameLen = strlen(team->Name()); local
887 sizeof(system_profiler_team_added) + nameLen + 1 + argsLen,
894 event->args_offset = nameLen + 1;
895 strcpy(event->name + nameLen + 1, team->Args());
1055 size_t nameLen = strlen(scheduler->Name()); local
1061 sizeof(system_profiler_io_scheduler_added) + nameLen,
1285 size_t nameLen = name != NULL ? strlen(name) : 0; local
1289 _AllocateBuffer(sizeof(system_profiler_wait_object_info) + nameLen,
/haiku/src/add-ons/kernel/file_systems/userlandfs/kernel_add_on/
H A DKernelRequestHandler.cpp142 int32 nameLen = request->name.GetSize(); local
143 if (name && (nameLen <= 0))
146 name[nameLen - 1] = '\0'; // NULL-terminate to be safe
293 int32 nameLen = request->name.GetSize(); local
294 if (!name || nameLen <= 0) {
298 name[nameLen - 1] = '\0'; // NULL-terminate to be safe
H A Dkernel_interface.cpp632 int nameLen = strnlen(entry->d_name, B_FILE_NAME_LENGTH - 1); local
633 strncpy(name, entry->d_name, nameLen);
634 name[nameLen] = '\0';
1027 int nameLen = strnlen(buffer->d_name, B_FILE_NAME_LENGTH - 1); local
1028 strncpy(name, buffer->d_name, nameLen);
1029 name[nameLen] = '\0';
/haiku/src/kits/storage/
H A DResourceFile.cpp1257 uint32 nameLen = strlen(name); local
1258 memcpy(info->ri_name, name, nameLen + 1);
1259 data = skip_bytes(data, nameLen + 1);
1260 info->ri_name_size = nameLen + 1;

Completed in 254 milliseconds

12