From: Richard Pennington <rich@pennware.com>
To: musl@lists.openwall.com
Subject: Possible ARM struct stat problem.
Date: Sun, 27 May 2012 13:35:07 -0500 [thread overview]
Message-ID: <2314318.NDqLURy4mK@main.pennware.com> (raw)
[-- 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
next reply other threads:[~2012-05-27 18:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-27 18:35 Richard Pennington [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2314318.NDqLURy4mK@main.pennware.com \
--to=rich@pennware.com \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).