This is the mail archive of the glibc-bugs@sourceware.org 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/17786] [mips] O32 st_dev has the wrong type


https://sourceware.org/bugzilla/show_bug.cgi?id=17786

--- Comment #4 from Matthew Fortune <matthew.fortune at imgtec dot com> ---
I'm a complete newbie to dealing with versioned structs in glibc. As far as I
can tell I would add a STAT_VER making the new one the 'LINUX' one and rename
the old one to a specific version. I called it simply GLIBC2 but that may not
be an appropriate name. I guess this should be done for O32 only and leave
N32/N64 as is? I can then see that there is an __xstat_conv function that will
need updating which doesn't look too challenging but I don't know what to do
with stat64.

Apologies for all the questions, I'm afraid there are so many layers to all
this I'm struggling to find the way through.

This is the list of stat versions I think would be needed:

/* Versions of the `struct stat' data structure.  */
#define _STAT_VER_LINUX_OLD     1
#define _STAT_VER_KERNEL        1
#define _STAT_VER_SVR4          2
#define _STAT_VER_GLIBC2        3
#define _STAT_VER_GLIBC2_21     4
#define _STAT_VER_LINUX         4
#define _STAT_VER               _STAT_VER_LINUX /* The one defined below.  */

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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