From: Joel Sherrill <joel@rtems.org>
To: newlib@sourceware.org
Subject: [PATCH] libc/sys/rtems/include/machine/_types.h: Define daddr_t to be 64 bits for RTEMS
Date: Tue, 27 Oct 2020 17:22:33 -0500 [thread overview]
Message-ID: <20201027222233.15202-1-joel@rtems.org> (raw)
This type needs to be able to represent a position on a disk or
file system.
---
newlib/libc/sys/rtems/include/machine/_types.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/newlib/libc/sys/rtems/include/machine/_types.h b/newlib/libc/sys/rtems/include/machine/_types.h
index 8e2d9a3ef..781142b7c 100644
--- a/newlib/libc/sys/rtems/include/machine/_types.h
+++ b/newlib/libc/sys/rtems/include/machine/_types.h
@@ -30,6 +30,9 @@ typedef __uint64_t _CLOCK_T_;
typedef int _CLOCKID_T_;
#define __machine_clockid_t_defined
+typedef __int64_t daddr_t;
+#define __daddr_t_defined
+
typedef int __accmode_t; /* access permissions */
typedef __uint32_t __fixpt_t; /* fixed point number */
typedef int __lwpid_t; /* Thread ID (a.k.a. LWP) */
--
2.24.3
next reply other threads:[~2020-10-27 22:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-27 22:22 Joel Sherrill [this message]
2020-10-28 6:43 ` Sebastian Huber
2020-10-28 14:53 ` Joel Sherrill
2020-10-28 14:55 ` Sebastian Huber
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=20201027222233.15202-1-joel@rtems.org \
--to=joel@rtems.org \
--cc=newlib@sourceware.org \
/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.
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).