posix.cfg: Add setsockopt() and getsockopt() (#1944)
Found by daca@home
This commit is contained in:
parent
b530b3dfff
commit
6ba3b2703a
|
@ -1633,6 +1633,55 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
|
||||||
<not-bool/>
|
<not-bool/>
|
||||||
</arg>
|
</arg>
|
||||||
</function>
|
</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); -->
|
<!-- int nice(int incr); -->
|
||||||
<function name="nice">
|
<function name="nice">
|
||||||
<noreturn>false</noreturn>
|
<noreturn>false</noreturn>
|
||||||
|
|
Loading…
Reference in New Issue