mailing list of musl libc
 help / color / mirror / code / Atom feed
* [PATCH 1/2] define daddr_t type
@ 2019-06-07  5:14 Petr Vorel
  2019-06-07  5:14 ` [PATCH 2/2] define mt_fileno and mt_fileno struct mtget members as mt_blkno Petr Vorel
  2019-06-07  5:28 ` [PATCH 1/2] define daddr_t type Rich Felker
  0 siblings, 2 replies; 20+ messages in thread
From: Petr Vorel @ 2019-06-07  5:14 UTC (permalink / raw)
  To: musl; +Cc: Petr Vorel

According to kernel sources only mips (and sparc which we don't support)
defines daddr_t as long, other define int.

Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
---
 arch/mips/bits/alltypes.h.in    | 2 ++
 arch/mipsn32/bits/alltypes.h.in | 2 ++
 include/alltypes.h.in           | 1 +
 include/sys/types.h             | 1 +
 4 files changed, 6 insertions(+)

diff --git a/arch/mips/bits/alltypes.h.in b/arch/mips/bits/alltypes.h.in
index 66ca18ad..bd062a85 100644
--- a/arch/mips/bits/alltypes.h.in
+++ b/arch/mips/bits/alltypes.h.in
@@ -17,6 +17,8 @@ TYPEDEF struct { long long __ll; long double __ld; } max_align_t;
 TYPEDEF long time_t;
 TYPEDEF long suseconds_t;
 
+TYPEDEF long daddr_t;
+
 TYPEDEF struct { union { int __i[9]; volatile int __vi[9]; unsigned __s[9]; } __u; } pthread_attr_t;
 TYPEDEF struct { union { int __i[6]; volatile int __vi[6]; volatile void *volatile __p[6]; } __u; } pthread_mutex_t;
 TYPEDEF struct { union { int __i[6]; volatile int __vi[6]; volatile void *volatile __p[6]; } __u; } mtx_t;
diff --git a/arch/mipsn32/bits/alltypes.h.in b/arch/mipsn32/bits/alltypes.h.in
index 66ca18ad..bd062a85 100644
--- a/arch/mipsn32/bits/alltypes.h.in
+++ b/arch/mipsn32/bits/alltypes.h.in
@@ -17,6 +17,8 @@ TYPEDEF struct { long long __ll; long double __ld; } max_align_t;
 TYPEDEF long time_t;
 TYPEDEF long suseconds_t;
 
+TYPEDEF long daddr_t;
+
 TYPEDEF struct { union { int __i[9]; volatile int __vi[9]; unsigned __s[9]; } __u; } pthread_attr_t;
 TYPEDEF struct { union { int __i[6]; volatile int __vi[6]; volatile void *volatile __p[6]; } __u; } pthread_mutex_t;
 TYPEDEF struct { union { int __i[6]; volatile int __vi[6]; volatile void *volatile __p[6]; } __u; } mtx_t;
diff --git a/include/alltypes.h.in b/include/alltypes.h.in
index 4cc879b1..6ef6ebd4 100644
--- a/include/alltypes.h.in
+++ b/include/alltypes.h.in
@@ -18,6 +18,7 @@ TYPEDEF unsigned _Int64 uint64_t;
 TYPEDEF unsigned _Int64 u_int64_t;
 TYPEDEF unsigned _Int64 uintmax_t;
 
+TYPEDEF int daddr_t;
 TYPEDEF unsigned mode_t;
 TYPEDEF unsigned _Reg nlink_t;
 TYPEDEF _Int64 off_t;
diff --git a/include/sys/types.h b/include/sys/types.h
index 75e489c5..c50d21c9 100644
--- a/include/sys/types.h
+++ b/include/sys/types.h
@@ -29,6 +29,7 @@ extern "C" {
 #define __NEED_clock_t
 #define __NEED_suseconds_t
 #define __NEED_blksize_t
+#define __NEED_daddr_t
 
 #define __NEED_pthread_t
 #define __NEED_pthread_attr_t
-- 
2.21.0



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

end of thread, other threads:[~2019-06-10 20:30 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-07  5:14 [PATCH 1/2] define daddr_t type Petr Vorel
2019-06-07  5:14 ` [PATCH 2/2] define mt_fileno and mt_fileno struct mtget members as mt_blkno Petr Vorel
2019-06-07  5:31   ` Rich Felker
2019-06-07  5:42     ` Petr Vorel
2019-06-07  5:50       ` Rich Felker
2019-06-07  5:58         ` Petr Vorel
2019-06-07  6:01           ` Rich Felker
2019-06-07  5:28 ` [PATCH 1/2] define daddr_t type Rich Felker
2019-06-07  5:53   ` Petr Vorel
2019-06-07  5:58     ` Rich Felker
2019-06-07  6:06       ` Petr Vorel
2019-06-07  6:18         ` Rich Felker
2019-06-07  6:28           ` Petr Vorel
2019-06-07  7:22             ` Florian Weimer
2019-06-07  7:48               ` Petr Vorel
2019-06-07  9:21                 ` Petr Vorel
2019-06-07 12:52       ` Leah Neukirchen
2019-06-07 15:25         ` Rich Felker
2019-06-10 20:30           ` Rich Felker
2019-06-07 20:57         ` Petr Vorel

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).