[LLVMdev] Which StatusInfo fields should have values set when dealing with win32 platform
Henrik Bach
henrik_bach_llvm at hotmail.com
Mon Dec 13 15:15:45 PST 2004
Hi,
Does any one have an idea which fields and how to the values correctly of
the StatusInfo struct when dealing with the information returned in the
BY_HANDLE_FILE_INFORMATION struct
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/by_handle_file_information_str.asp)
from windows instead of the unix stuff in getStatusInfo:
--- (excerpt start) -------------
info.fileSize = buf.st_size;
info.modTime.fromEpochTime(buf.st_mtime);
info.mode = buf.st_mode;
info.user = buf.st_uid;
info.group = buf.st_gid;
info.isDir = S_ISDIR(buf.st_mode);
if (info.isDir && path[path.length()-1] != '/')
path += '/';
--- (excerpt end) -------------
The getStatusInfo is used in the code of gccld and is missing in win32
Path.cpp file.
Henrik.
=============================================================
Henrik Bach
Open Source Developer
e-mail: henrik_bach_llvm at hotmail.com
=============================================================
Got Freedom?
Software Freedom Day 2004 - 28th of August
http://www.softwarefreedomday.org/
=============================================================
_________________________________________________________________
Del din verden med MSN Spaces http://spaces.msn.com
More information about the llvm-dev
mailing list