mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] _GNU_SOURCE and _LARGEFILE_SOURCE
@ 2024-09-18  0:29 Brian Cain
  2024-09-18  2:57 ` Markus Wichmann
  0 siblings, 1 reply; 5+ messages in thread
From: Brian Cain @ 2024-09-18  0:29 UTC (permalink / raw)
  To: musl, Alex Bennée

In the "WHATSNEW" text, there's an item from 0.9.2 that states "- make 
_GNU_SOURCE imply _LARGEFILE64_SOURCE".  Is that intended to be the case 
generally?  I ask because in 25e6fee2 (remove LFS64 programming 
interfaces (macro-only) from _GNU_SOURCE, 2022-09-27) it stated 
"portable software should be prepared for them not to exist" and "the 
intent is that this be a very short-term measure and that the macros be 
removed entirely in the next release cycle."

This comes up because in the QEMU project, there's a linux multiarch 
test case that uses readdir64 and it does define _GNU_SOURCE but does 
not define _LARGEFILE64_SOURCE and as such the cross compiler complains 
that there's no declaration of readdir64 before the call site.  I 
suppose that the test case would be more portable if it defined 
_LARGEFILE64_SOURCE.  But I'd also be happy to send a patch to musl that 
could have _GNU_SOURCE imply _LARGEFILE64_SOURCE (again?) if that's 
desired.  But - I gather that defining the macros is not what we want.  
Instead of macros I should add declarations for readdir64() and its 
LFS64 friends, but only when _LARGEFILE64_SOURCE is defined?

-Brian


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

end of thread, other threads:[~2024-09-19 18:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-18  0:29 [musl] _GNU_SOURCE and _LARGEFILE_SOURCE Brian Cain
2024-09-18  2:57 ` Markus Wichmann
2024-09-18  5:06   ` Brian Cain
2024-09-18 14:24     ` Markus Wichmann
2024-09-19 18:30       ` Markus Wichmann

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