* [PATCH] mlist: use fixed-width integer types for struct linux_dirent64 d_ino and d_off
@ 2022-12-07 21:11 Michael Forney
0 siblings, 0 replies; only message in thread
From: Michael Forney @ 2022-12-07 21:11 UTC (permalink / raw)
To: mblaze
ino64_t and off64_t are non-standard types and musl will no longer
expose them without __LARGEFILE64_SOURCE in the next release.
Internally, the kernel uses u64 and s64 for these fields, so replace
them with uint64_t and int64_t respectively.
---
mlist.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mlist.c b/mlist.c
index 5debf99..20061d9 100644
--- a/mlist.c
+++ b/mlist.c
@@ -111,8 +111,8 @@ list(char *prefix, char *file)
#include <sys/syscall.h>
struct linux_dirent64 {
- ino64_t d_ino; /* 64-bit inode number */
- off64_t d_off; /* 64-bit offset to next structure */
+ uint64_t d_ino; /* 64-bit inode number */
+ int64_t d_off; /* 64-bit offset to next structure */
unsigned short d_reclen; /* Size of this dirent */
unsigned char d_type; /* File type */
char d_name[]; /* Filename (null-terminated) */
--
2.37.3
--
You received this message because you are subscribed to the Google Groups "mblaze" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mblaze+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mblaze/85c82c7c2dd07febc84e0958244c7eb48e1a83de.1670448134.git.mforney%40mforney.org.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-12-07 21:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-07 21:11 [PATCH] mlist: use fixed-width integer types for struct linux_dirent64 d_ino and d_off Michael Forney
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mblaze/
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).