mailing list of musl libc
 help / color / mirror / code / Atom feed
* Possible ARM struct stat problem.
@ 2012-05-27 18:35 Richard Pennington
  2012-05-27 19:43 ` Rich Felker
  0 siblings, 1 reply; 9+ messages in thread
From: Richard Pennington @ 2012-05-27 18:35 UTC (permalink / raw)
  To: musl

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

Hi,

I think a found a problem with the struct stat definition for the ARM. It 
needed a bit more padding. I've attached a diff and wrote about it on my blog 
if you'd like more information.

http://ellcc.org/blog/?p=121

-Rich

[-- Attachment #2: stat.diff --]
[-- Type: text/x-patch, Size: 570 bytes --]

Index: stat.h
===================================================================
--- stat.h	(revision 2928)
+++ stat.h	(working copy)
@@ -11,12 +11,19 @@
 	uid_t st_uid;
 	gid_t st_gid;
 	dev_t st_rdev;
-	int __st_rdev_padding;
+	int __st_rdev_padding[2];
 	off_t st_size;
 	blksize_t st_blksize;
+	int __st_rdev_padding2[1];
 	blkcnt_t st_blocks;
 	struct timespec st_atim;
 	struct timespec st_mtim;
 	struct timespec st_ctim;
 	ino_t st_ino;
 };
+
+#ifdef _BSD_SOURCE
+#define st_atimespec st_atim
+#define st_mtimespec st_mtim
+#define st_ctimespec st_ctim
+#endif

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

end of thread, other threads:[~2012-06-26  3:12 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-27 18:35 Possible ARM struct stat problem Richard Pennington
2012-05-27 19:43 ` Rich Felker
2012-05-27 23:03   ` Szabolcs Nagy
2012-05-28 13:13   ` Richard Pennington
2012-06-26  2:15   ` John Spencer
2012-06-26  2:50     ` Rich Felker
2012-06-26  2:52       ` Richard Pennington
2012-06-26  3:01         ` Rich Felker
2012-06-26  3:12       ` John Spencer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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 NNTP newsgroup(s).