bug-libsigsegv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: a question about the use of MAP_ANON in libsigsegv


From: Dennis Clarke
Subject: Re: a question about the use of MAP_ANON in libsigsegv
Date: Thu, 10 Aug 2023 16:49:44 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0

On 8/10/23 15:16, Bruno Haible wrote:
Hi Dennis,

-std=iso9899:1999 -pedantic -pedantic-errors
...
./stackvma-rofile.c:154:22: error: call to undeclared function
'getpagesize'; ISO C99 and later do not support implicit function
declarations [-Werror,-Wimplicit-function-declaration]
            pagesize = getpagesize ();
                       ^
./stackvma-rofile.c:169:36: error: use of undeclared identifier
'MAP_ANONYMOUS'
                                     MAP_ANONYMOUS | MAP_PRIVATE, -1, 0);
                                     ^

I explained already in
<https://lists.gnu.org/archive/html/bug-libsigsegv/2022-10/msg00000.html>
why this cannot work.

Bruno


but ... GNU is not a standard.

Whatever ... I'll never bother you again on that one. Guess the code is
 just not portable and never will be.




--
--
Dennis Clarke
RISC-V/SPARC/PPC/ARM/CISC
UNIX and Linux spoken
GreyBeard and suspenders optional




reply via email to

[Prev in Thread] Current Thread [Next in Thread]