Skip to contentSkip to conversation

vmcore-dmesg: don't enforce largefile handling

PATCH In review Yegor Yefremov 2 participants 3 messages Jun 10, 2014 – Jun 11, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vmcore-dmesg: don't enforce largefile handling

Breaks build on !largefile toolchains.

Instead simply use whatever mode is selected by toolchain / CFLAGS.

---
 vmcore-dmesg/vmcore-dmesg.c | 2 --
 1 file changed, 2 deletions(-)
vmcore-dmesg/vmcore-dmesg.c +0 -2
index f47ee11..9bb1cc2 100644
@@ -1,6 +1,4 @@
 #define _XOPEN_SOURCE 600
-#define _LARGEFILE_SOURCE 1
-#define _FILE_OFFSET_BITS 64
 #include <endian.h>
 #include <byteswap.h>
 #include <stdio.h>
Signature · 7 lines
1.8.3.2


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
#1 lore raw
Quoted 3 lines · Yegor Yefremov

Breaks build on !largefile toolchains.

Instead simply use whatever mode is selected by toolchain / CFLAGS.

Perhaps the use of configure or something similar is in order to select these options if they are available. It seems to me that one would want them if one can have them.

Quoted 26 lines
---
 vmcore-dmesg/vmcore-dmesg.c | 2 --
 1 file changed, 2 deletions(-)
vmcore-dmesg/vmcore-dmesg.c +0 -2
index f47ee11..9bb1cc2 100644
@@ -1,6 +1,4 @@
 #define _XOPEN_SOURCE 600
-#define _LARGEFILE_SOURCE 1
-#define _FILE_OFFSET_BITS 64
 #include <endian.h>
 #include <byteswap.h>
 #include <stdio.h>
Signature · 7 lines
1.8.3.2


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

#2 lore raw
Quoted 8 lines · Simon Horman
Quoted 3 lines · Yegor Yefremov

Breaks build on !largefile toolchains.

Instead simply use whatever mode is selected by toolchain / CFLAGS.

Perhaps the use of configure or something similar is in order to select these options if they are available. It seems to me that one would want them if one can have them.

Do you mean something like this: AC_SYS_LARGEFILE
(https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/System-Services.html)?

Quoted 21 lines
Quoted 21 lines
---
 vmcore-dmesg/vmcore-dmesg.c | 2 --
 1 file changed, 2 deletions(-)
vmcore-dmesg/vmcore-dmesg.c +0 -3
index f47ee11..9bb1cc2 100644
@@ -1,6 +1,4 @@
 #define _XOPEN_SOURCE 600
-#define _LARGEFILE_SOURCE 1
-#define _FILE_OFFSET_BITS 64
 #include <endian.h>
 #include <byteswap.h>
 #include <stdio.h>
--

1.8.3.2

Quoted 5 lines
Quoted 5 lines

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec