public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH][BZ 18234] struct stat is not posix conform
@ 2015-05-20 16:17 Szabolcs Nagy
  2015-05-20 16:24 ` Florian Weimer
  2015-05-20 17:55 ` Carlos O'Donell
  0 siblings, 2 replies; 11+ messages in thread
From: Szabolcs Nagy @ 2015-05-20 16:17 UTC (permalink / raw)
  To: GNU C Library; +Cc: Marcus Shawcroft, Ramana Radhakrishnan

[-- Attachment #1: Type: text/plain, Size: 401 bytes --]

the generic definition of struct stat on linux miss the
st_atim, st_mtim and st_ctim members when _POSIX_C_SOURCE
is defined (affects at least aarch64 and arm).

i did not see regressions on aarch64.

2015-05-20  Szabolcs Nagy  <szabolcs.nagy@arm.com>

	[BZ #18234]
	* sysdeps/unix/sysv/linux/generic/bits/stat.h (struct stat): Make
	st_atim, st_ctim, st_mtim visible under __USE_XOPEN2K8.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: stat.diff --]
[-- Type: text/x-patch; name=stat.diff, Size: 675 bytes --]

diff --git a/sysdeps/unix/sysv/linux/generic/bits/stat.h b/sysdeps/unix/sysv/linux/generic/bits/stat.h
index 42cb198..82e6b1d 100644
--- a/sysdeps/unix/sysv/linux/generic/bits/stat.h
+++ b/sysdeps/unix/sysv/linux/generic/bits/stat.h
@@ -66,7 +66,7 @@ struct stat
     __blksize_t st_blksize;	/* Optimal block size for I/O.  */
     int __pad2;
     __field64(__blkcnt_t, __blkcnt64_t, st_blocks);  /* 512-byte blocks */
-#ifdef __USE_MISC
+#ifdef __USE_XOPEN2K8
     /* Nanosecond resolution timestamps are stored in a format
        equivalent to 'struct timespec'.  This is the type used
        whenever possible but the Unix namespace rules do not allow the

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-05-22  9:24 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-20 16:17 [PATCH][BZ 18234] struct stat is not posix conform Szabolcs Nagy
2015-05-20 16:24 ` Florian Weimer
2015-05-20 16:54   ` Carlos O'Donell
2015-05-20 17:55 ` Carlos O'Donell
2015-05-20 19:25   ` Joseph Myers
2015-05-20 21:55     ` Szabolcs Nagy
2015-05-21 14:03       ` Siddhesh Poyarekar
2015-05-21 17:28         ` Szabolcs Nagy
2015-05-21 17:39           ` Siddhesh Poyarekar
2015-05-22 14:22             ` Szabolcs Nagy
2015-05-21 21:17           ` Carlos O'Donell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).