Example #1
0
File: stat.c Project: mariuz/haiku
int
_lstat_beos(const char* path, struct stat_beos* beosStat)
{
	struct stat stat;
	if (_lstat_current(path, &stat) != 0)
		return -1;

	convert_to_stat_beos(&stat, beosStat);

	return 0;
}
Example #2
0
status_t
BDirectory::_GetStatFor(const char* path, struct stat_beos* st) const
{
	struct stat newStat;
	status_t error = _GetStatFor(path, &newStat);
	if (error != B_OK)
		return error;

	convert_to_stat_beos(&newStat, st);
	return B_OK;
}
Example #3
0
File: stat.c Project: mariuz/haiku
int
_fstat_beos(int fd, struct stat_beos* beosStat)
{
	struct stat stat;
	if (_fstat_current(fd, &stat) != 0)
		return -1;

	convert_to_stat_beos(&stat, beosStat);

	return 0;
}
Example #4
0
bool
FavoritesMenu::ShouldShowModel(const Model* model)
{
	if (fIsSavePanel && model->IsFile())
		return false;

	if (!fRefFilter || model->Node() == NULL)
		return true;
	
	struct stat_beos statBeOS;
	convert_to_stat_beos(model->StatBuf(), &statBeOS);

	return fRefFilter->Filter(model->EntryRef(), model->Node(), &statBeOS,
		model->MimeType());
}