This is the mail archive of the glibc-bugs@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/188] New: st_atime define


Hi,
  I've just had a few hours of pain dealing with the results of the line:

# define st_atime st_atim.tv_sec  /* Backward compatibility.  */

in sysdeps/unix/sysv/linux/bits/stat.h (and various other versions of the file)
when I came a structure in other source with a member st_atime (hardly uncommon
- especially if it is in something dealing with files).

Is there really no neater way of dealing with this?  #define'ing something like
this is pretty brutal.

If nothing else could we have st_atim as something more like
st_atim_this_is_an_evil_hack_in_the_c_library  (well ok, something obvious anyway).

Dave

-- 
           Summary: st_atime define
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: gotom at debian dot or dot jp
        ReportedBy: redhat-bug at treblig dot org
                CC: glibc-bugs at sources dot redhat dot com


http://sources.redhat.com/bugzilla/show_bug.cgi?id=188

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]