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/18234] New: st_atim, st_mtim, st_ctim stat struct members are missing on aarch64


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

            Bug ID: 18234
           Summary: st_atim, st_mtim, st_ctim stat struct members are
                    missing on aarch64
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: nszabolcs at gmail dot com
                CC: drepper.fsp at gmail dot com

the generic definition of struct stat on linux seems to miss members required
by the standard (sysdeps/unix/sysv/linux/generic/bits/stat.h)

http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_stat.h.html

the following code fails on aarch64 linux:

define _POSIX_C_SOURCE 200809L
#include <sys/stat.h>
void f()
{
struct stat x;
struct timespec *p = &x.st_atim; // error: 'struct stat' has no member named
'st_atim'
struct timespec *q = &x.st_mtim;
struct timespec *r = &x.st_ctim;
}

-- 
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]