Lines Matching defs:fileName

99 	Attribute* FindEntryChild(const char* fileName) const
108 if (strcmp(fileName, childName) == 0)
115 Attribute* FindEntryChild(const char* fileName, size_t nameLength) const
117 BString name(fileName, nameLength);
464 PackageWriterImpl::Init(const char* fileName,
468 return _Init(NULL, false, fileName, parameters);
511 PackageWriterImpl::AddEntry(const char* fileName, int fd)
515 if (strcmp(fileName, B_HPKG_PACKAGE_INFO_FILE_NAME) == 0) {
561 BEntry packageInfoEntry(fileName);
568 fileName, strerror(result));
575 return _RegisterEntry(fileName, fd);
643 PackageWriterImpl::_Init(BPositionIO* file, bool keepFile, const char* fileName,
646 status_t result = inherited::Init(file, keepFile, fileName, parameters);
891 PackageWriterImpl::_IsEntryInPackage(const char* fileName)
893 const char* originalFileName = fileName;
904 if (*fileName == '\0')
907 const char* nextSlash = strchr(fileName, '/');
911 size_t length = strlen(fileName);
912 entry = entry->GetChild(fileName, length);
913 fileName += length;
922 entry = entry->GetChild(fileName, nextSlash - fileName);
924 fileName = nextComponent;
932 if (fstatat(entry->FD(), *fileName != '\0' ? fileName : NULL, &st,
944 fileName = originalFileName;
947 if (*fileName == '\0')
950 const char* nextSlash = strchr(fileName, '/');
954 return attribute->FindEntryChild(fileName) != NULL;
962 attribute = attribute->FindEntryChild(fileName, nextSlash - fileName);
964 fileName = nextComponent;
1048 int dirFD, Entry* entry, const char* fileName, char* pathBuffer)
1052 SubPathAdder pathAdder(fListener, pathBuffer, fileName);
1056 Attribute* entryAttribute = parentAttribute->FindEntryChild(fileName);
1068 fd = openat(dirFD, fileName,
1251 PackageWriterImpl::_RegisterEntry(const char* fileName, int fd)
1253 if (*fileName == '\0') {
1260 while (*fileName != 0) {
1261 const char* nextSlash = strchr(fileName, '/');
1264 entry = _RegisterEntry(entry, fileName, strlen(fileName), fd,
1276 if (nextSlash == fileName) {
1278 entry = _RegisterEntry(entry, fileName, 1, lastComponent ? fd : -1,
1281 entry = _RegisterEntry(entry, fileName, nextSlash - fileName,
1285 fileName = nextComponent;
1400 PackageWriterImpl::_AddEntry(int dirFD, Entry* entry, const char* fileName,
1405 SubPathAdder pathAdder(fListener, pathBuffer, fileName);
1417 fd = openat(dirFD, fileName,
1446 entryAttribute = fTopAttribute->FindEntryChild(fileName);
1478 B_HPKG_ATTRIBUTE_ID_DIRECTORY_ENTRY, fileName);
1512 ssize_t bytesRead = readlinkat(dirFD, fileName, path,