[Issue 5206] stat_t is not the same as struct stat

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Dec 30 09:42:45 PST 2010


http://d.puremagic.com/issues/show_bug.cgi?id=5206


Iain Buclaw <ibuclaw at ubuntu.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuclaw at ubuntu.com


--- Comment #2 from Iain Buclaw <ibuclaw at ubuntu.com> 2010-12-30 09:40:34 PST ---
This should really be set to true for all glibc systems.

However, the current implementation is buggy:

timespec    st_atim;
timespec    st_mtim;
timespec    st_ctim;
alias st_atim.tv_sec st_atime;
alias st_mtim.tv_sec st_mtime;
alias st_ctim.tv_sec st_ctime;


The three aliases aren't actually usable, because:

Error: struct core.sys.posix.sys.stat.stat_t 'tv_sec' is not a member
Error: struct core.sys.posix.sys.stat.stat_t member tv_sec is not accessible
Error: this for tv_sec needs to be type timespec not type stat_t


Regards

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list