posix.cfg: Add setsockopt() and getsockopt() (#1944)

Found by daca@home
This commit is contained in:
Sebastian 2019-07-02 15:14:31 +02:00 committed by GitHub
parent b530b3dfff
commit 6ba3b2703a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 49 additions and 0 deletions

View File

@ -1633,6 +1633,55 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
<not-bool/>
</arg>
</function>
<!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/setsockopt.html -->
<!-- int setsockopt(int socket, int level, int option_name,
const void *option_value, socklen_t option_len); -->
<function name="setsockopt">
<noreturn>false</noreturn>
<returnValue type="int"/>
<leak-ignore/>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
</arg>
<arg nr="3" direction="in">
<not-uninit/>
</arg>
<arg nr="4" direction="in">
<not-null/>
<minsize type="argvalue" arg="5"/>
</arg>
<arg nr="5" direction="in">
<not-uninit/>
<valid>0:</valid>
</arg>
</function>
<!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/getsockopt.html -->
<!-- int getsockopt(int socket, int level, int option_name,
void *restrict option_value, socklen_t *restrict option_len); -->
<function name="getsockopt">
<noreturn>false</noreturn>
<returnValue type="int"/>
<leak-ignore/>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
</arg>
<arg nr="3" direction="in">
<not-uninit/>
</arg>
<arg nr="4" direction="out">
<not-null/>
</arg>
<arg nr="5" direction="inout">
<not-null/>
<not-uninit/>
</arg>
</function>
<!-- int nice(int incr); -->
<function name="nice">
<noreturn>false</noreturn>