Move some signal constants from posix.cfg to std.cfg. Add some more interfaces to posix.cfg

This commit is contained in:
amai2012 2019-04-26 19:26:04 +02:00
parent d724f86e01
commit b5ee9d97ef
2 changed files with 28 additions and 7 deletions

View File

@ -4127,6 +4127,24 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
<not-bool/>
</arg>
</function>
<!-- pubs.opengroup.org/onlinepubs/9699919799/functions/sighold.html -->
<function name="sighold,sigignore,sigpause,sigrelse">
<noreturn>false</noreturn>
<returnValue type="int"/>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
</function>
<function name="sigset">
<noreturn>false</noreturn>
<returnValue type="void*"/>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
</arg>
</function>
<!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/getrusage.html -->
<!-- http://man7.org/linux/man-pages/man2/getrusage.2.html-->
<!-- int getrusage(int who, struct rusage *usage);-->
@ -4641,22 +4659,17 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
<define name="S_IFDIR" value="0040000"/>
<define name="S_IFCHR" value="0020000"/>
<define name="S_IFIFO" value="0010000"/>
<!-- see http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/signal.h.html -->
<!-- see http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/signal.h.html
Some other signals are defined in std.cfg! -->
<define name="SIGHUP" value="1"/>
<define name="SIGINT" value="2"/>
<define name="SIGQUIT" value="3"/>
<define name="SIGILL" value="4"/>
<define name="SIGTRAP" value="5"/>
<define name="SIGABRT" value="6"/>
<define name="SIGBUS" value="7"/>
<define name="SIGFPE" value="8"/>
<define name="SIGKILL" value="9"/>
<define name="SIGUSR1" value="10"/>
<define name="SIGSEGV" value="11"/>
<define name="SIGUSR2" value="12"/>
<define name="SIGPIPE" value="13"/>
<define name="SIGALRM" value="14"/>
<define name="SIGTERM" value="15"/>
<define name="SIGCHLD" value="17"/>
<define name="SIGCONT" value="18"/>
<define name="SIGSTOP" value="19"/>

View File

@ -7574,4 +7574,12 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
<podtype name="std::atomic_ptrdiff_t"/>
<podtype name="std::atomic_intmax_t"/>
<podtype name="std::atomic_uintmax_t"/>
<!-- https://en.cppreference.com/w/c/program/SIG_types
Values are in alignment with posix.cfg -->
<define name="SIGTERM" value="15"/>
<define name="SIGSEGV" value="11"/>
<define name="SIGINT" value="2"/>
<define name="SIGKILL" value="9"/>
<define name="SIGABRT" value="6"/>
<define name="SIGFPE" value="8"/>
</def>