mailing list of musl libc
 help / color / mirror / code / Atom feed
* open64 and similar
@ 2019-07-10 22:03 Andrew Bell
  2019-07-10 22:43 ` Rich Felker
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Bell @ 2019-07-10 22:03 UTC (permalink / raw)
  To: musl

[-- Attachment #1: Type: text/plain, Size: 396 bytes --]

musl does the following:

#define open64 open

This can cause an infinite loop for the following code:

class Foo
{
public:
  int open64()
    {  open(); }
};

Perhaps it would be better to supply open64 and have it call open, rather
than #define it?  There are several other xxx64 functions also defined that
could cause problems with unfortunate code.

-- 
Andrew Bell
andrew.bell.ia@gmail.com

[-- Attachment #2: Type: text/html, Size: 743 bytes --]

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

end of thread, other threads:[~2019-07-11  1:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-10 22:03 open64 and similar Andrew Bell
2019-07-10 22:43 ` Rich Felker
2019-07-11  1:58   ` Rich Felker

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