summaryrefslogtreecommitdiff
path: root/sal/osl/unx
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2012-01-19 11:05:51 +0000
committerMichael Meeks <michael.meeks@suse.com>2012-01-19 11:07:20 +0000
commit0c17acbb321ced2afe2f0ff6769291549838ebaa (patch)
tree3abb6f3ba42f3b25d4a2a91179d6978f03fc2f7f /sal/osl/unx
parent877663b9c262be9b5d8620f756a4cfdf97195279 (diff)
fix SvStream to not disagree with sal on sizeof struct stat
A temporary tweak to restore build-ability; the oslDirectory change needs a little more thought & public exposure, but rsc no longer crashes during compile ...
Diffstat (limited to 'sal/osl/unx')
-rw-r--r--sal/osl/unx/file_stat.cxx20
1 files changed, 18 insertions, 2 deletions
diff --git a/sal/osl/unx/file_stat.cxx b/sal/osl/unx/file_stat.cxx
index 9cbb39af0edc..0477a52e555a 100644
--- a/sal/osl/unx/file_stat.cxx
+++ b/sal/osl/unx/file_stat.cxx
@@ -448,15 +448,31 @@ oslFileError SAL_CALL osl_setFileTime (
return osl_psz_setFileTime( path, pCreationTime, pLastAccessTime, pLastWriteTime );
}
-oslFileError
-SAL_CALL osl_statFilePath( const char *cpFilePath, struct stat *statb )
+sal_Bool
+SAL_CALL osl_identicalDirectoryItem( oslDirectoryItem a, oslDirectoryItem b)
{
+ DirectoryItem_Impl *pA = (DirectoryItem_Impl *) a;
+ DirectoryItem_Impl *pB = (DirectoryItem_Impl *) b;
+ if (a == b)
+ return sal_True;
+ /* same name => same item, unless renaming / moving madness has occurred */
+ if (rtl_ustr_compare_WithLength(
+ pA->m_ustrFilePath->buffer, pA->m_ustrFilePath->length,
+ pB->m_ustrFilePath->buffer, pB->m_ustrFilePath->length ) == 0)
+ return sal_True;
+
+ fprintf (stderr, "We have to do an inode compare !\n");
+
+ /*
int rc = stat_c( cpFilePath, statb );
+ Stat.st_ino == ...
if (rc == -1)
return oslTranslateFileError(OSL_FET_ERROR, errno);
else
return osl_File_E_None;
+ */
+ return sal_False;
}
oslFileError