Lines Matching refs:pStat
45 inline void set_file_type(const struct stat& file_stat, oslFileStatus* pStat) in set_file_type() argument
49 pStat->eType = osl_File_Type_Link; in set_file_type()
51 pStat->eType = osl_File_Type_Directory; in set_file_type()
53 pStat->eType = osl_File_Type_Regular; in set_file_type()
55 pStat->eType = osl_File_Type_Fifo; in set_file_type()
57 pStat->eType = osl_File_Type_Socket; in set_file_type()
59 pStat->eType = osl_File_Type_Special; in set_file_type()
61 pStat->eType = osl_File_Type_Unknown; in set_file_type()
63 pStat->uValidFields |= osl_FileStatus_Mask_Type; in set_file_type()
66 inline void set_file_access_mask(const struct stat& file_stat, oslFileStatus* pStat) in set_file_access_mask() argument
70 pStat->uAttributes |= osl_File_Attribute_OwnRead; in set_file_access_mask()
73 pStat->uAttributes |= osl_File_Attribute_OwnWrite; in set_file_access_mask()
76 pStat->uAttributes |= osl_File_Attribute_OwnExe; in set_file_access_mask()
80 pStat->uAttributes |= osl_File_Attribute_GrpRead; in set_file_access_mask()
83 pStat->uAttributes |= osl_File_Attribute_GrpWrite; in set_file_access_mask()
86 pStat->uAttributes |= osl_File_Attribute_GrpExe; in set_file_access_mask()
90 pStat->uAttributes |= osl_File_Attribute_OthRead; in set_file_access_mask()
93 pStat->uAttributes |= osl_File_Attribute_OthWrite; in set_file_access_mask()
96 pStat->uAttributes |= osl_File_Attribute_OthExe; in set_file_access_mask()
98 pStat->uValidFields |= osl_FileStatus_Mask_Attributes; in set_file_access_mask()
101 …ile_access_rights(const struct stat& file_stat, int S_IR, int S_IW, int S_IX, oslFileStatus* pStat) in set_file_access_rights() argument
110 pStat->uValidFields |= osl_FileStatus_Mask_Attributes; in set_file_access_rights()
113 pStat->uAttributes |= osl_File_Attribute_ReadOnly; in set_file_access_rights()
116 pStat->uAttributes |= osl_File_Attribute_Executable; in set_file_access_rights()
147 inline void set_file_access_rights(const struct stat& file_stat, oslFileStatus* pStat) in set_file_access_rights() argument
151 set_file_access_rights(file_stat, S_IRUSR, S_IWUSR, S_IXUSR, pStat); in set_file_access_rights()
155 set_file_access_rights(file_stat, S_IRGRP, S_IWGRP, S_IXGRP, pStat); in set_file_access_rights()
159 set_file_access_rights(file_stat, S_IROTH, S_IWOTH, S_IXOTH, pStat); in set_file_access_rights()
163 inline void set_file_hidden_status(const rtl::OUString& file_path, oslFileStatus* pStat) in set_file_hidden_status() argument
165 …pStat->uAttributes = osl::systemPathIsHiddenFileOrDirectoryEntry(file_path) ? osl_File_Attribute… in set_file_hidden_status()
166 pStat->uValidFields |= osl_FileStatus_Mask_Attributes; in set_file_hidden_status()
172 …String& file_path, const struct stat& file_stat, const sal_uInt32 uFieldMask, oslFileStatus* pStat) in set_file_attributes() argument
174 set_file_hidden_status(file_path, pStat); in set_file_attributes()
175 set_file_access_mask(file_stat, pStat); in set_file_attributes()
180 set_file_access_rights(file_stat, pStat); in set_file_attributes()
183 inline void set_file_access_time(const struct stat& file_stat, oslFileStatus* pStat) in set_file_access_time() argument
185 pStat->aAccessTime.Seconds = file_stat.st_atime; in set_file_access_time()
186 pStat->aAccessTime.Nanosec = 0; in set_file_access_time()
187 pStat->uValidFields |= osl_FileStatus_Mask_AccessTime; in set_file_access_time()
190 inline void set_file_modify_time(const struct stat& file_stat, oslFileStatus* pStat) in set_file_modify_time() argument
192 pStat->aModifyTime.Seconds = file_stat.st_mtime; in set_file_modify_time()
193 pStat->aModifyTime.Nanosec = 0; in set_file_modify_time()
194 pStat->uValidFields |= osl_FileStatus_Mask_ModifyTime; in set_file_modify_time()
197 inline void set_file_size(const struct stat& file_stat, oslFileStatus* pStat) in set_file_size() argument
201 pStat->uFileSize = file_stat.st_size; in set_file_size()
202 pStat->uValidFields |= osl_FileStatus_Mask_FileSize; in set_file_size()
221 inline oslFileError set_link_target_url(const rtl::OUString& file_path, oslFileStatus* pStat) in set_link_target_url() argument
227 …oslFileError osl_error = osl_getFileURLFromSystemPath(link_target.pData, &pStat->ustrLinkTargetURL… in set_link_target_url()
231 pStat->uValidFields |= osl_FileStatus_Mask_LinkTargetURL; in set_link_target_url()
236 DirectoryItem_Impl * pImpl, oslFileStatus* pStat, rtl::OUString& file_path) in setup_osl_getFileStatus() argument
238 if ((NULL == pImpl) || (NULL == pStat)) in setup_osl_getFileStatus()
246 pStat->uValidFields = 0; in setup_osl_getFileStatus()
257 oslFileError SAL_CALL osl_getFileStatus(oslDirectoryItem Item, oslFileStatus* pStat, sal_uInt32 uFi… in osl_getFileStatus() argument
262 oslFileError osl_error = setup_osl_getFileStatus(pImpl, pStat, file_path); in osl_getFileStatus()
279 set_file_type(file_stat, pStat); in osl_getFileStatus()
280 set_file_access_time(file_stat, pStat); in osl_getFileStatus()
281 set_file_modify_time(file_stat, pStat); in osl_getFileStatus()
282 set_file_size(file_stat, pStat); in osl_getFileStatus()
283 set_file_attributes(file_path, file_stat, uFieldMask, pStat); in osl_getFileStatus()
288 osl_error = set_link_target_url(file_path, pStat); in osl_getFileStatus()
296 pStat->eType = pImpl->getFileType(); in osl_getFileStatus()
297 pStat->uValidFields |= osl_FileStatus_Mask_Type; in osl_getFileStatus()
303 …if ((osl_error = osl_getFileURLFromSystemPath(file_path.pData, &pStat->ustrFileURL)) != osl_File_E… in osl_getFileStatus()
306 pStat->uValidFields |= osl_FileStatus_Mask_FileURL; in osl_getFileStatus()
311 osl_systemPathGetFileNameOrLastDirectoryPart(file_path.pData, &pStat->ustrFileName); in osl_getFileStatus()
312 pStat->uValidFields |= osl_FileStatus_Mask_FileName; in osl_getFileStatus()