fFilePath
char *fFilePath;
fFilePath(NULL),
free(fFilePath);
fFilePath = filePath != NULL ? strdup(filePath) : NULL;
if (filePath != NULL && fFilePath == NULL)
if (fFilePath != NULL) {
if (fFilePath != NULL)
strlcpy(_info.path, fFilePath, sizeof(_info.path));
FileDescriptorCloser fd(open(fFilePath, O_WRONLY));
FileDescriptorCloser fd(open(fFilePath, O_RDONLY));
char* fFilePath;
fFilePath = filePath.String();
fFilePath.GetParent(&fFilePathParent);
BEntry entry(fFilePath.Path());
BPath fFilePath;
status_t status = fFile.SetTo(fFilePath.Path(), B_READ_ONLY);
status_t status = fFile.SetTo(fFilePath.Path(),
status_t status = find_directory(B_USER_SETTINGS_DIRECTORY, &fFilePath);
status = fFilePath.Append(settingsFilename);
BPath fFilePath;
free(fFilePath);
fFilePath = NULL;
return fFilePath;
if (stat(fFilePath, &st) == 0 && S_ISREG(st.st_mode))
if (stat(fFilePath, &st) != 0 || !S_ISREG(st.st_mode))
error = set_string(fFilePath, filePath);