Skip to content

Commit 1c23366

Browse files
committed
posix.cfg: Add configuration for function getnameinfo()
Reference: https://pubs.opengroup.org/onlinepubs/9699919799/functions/getnameinfo.html
1 parent ba3414a commit 1c23366

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

‎cfg/posix.cfg‎

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2822,6 +2822,44 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
28222822
<not-bool/>
28232823
</arg>
28242824
</function>
2825+
<!-- int getnameinfo(const struct sockaddr *restrict sa,
2826+
socklen_t salen,
2827+
char *restrict node,
2828+
socklen_t nodelen,
2829+
char *restrict service,
2830+
socklen_t servicelen,
2831+
int flags); -->
2832+
<function name="getnameinfo">
2833+
<noreturn>false</noreturn>
2834+
<returnValue type="int"/>
2835+
<leak-ignore/>
2836+
<arg nr="1" direction="in">
2837+
<not-uninit/>
2838+
<minsize type="argvalue" arg="2"/>
2839+
</arg>
2840+
<arg nr="2" direction="in">
2841+
<not-uninit/>
2842+
<valid>0:</valid>
2843+
</arg>
2844+
<arg nr="3" direction="out">
2845+
<minsize type="argvalue" arg="4"/>
2846+
</arg>
2847+
<arg nr="4" direction="in">
2848+
<not-uninit/>
2849+
<valid>0:</valid>
2850+
</arg>
2851+
<arg nr="5" direction="out">
2852+
<minsize type="argvalue" arg="6"/>
2853+
</arg>
2854+
<arg nr="6" direction="in">
2855+
<not-uninit/>
2856+
<valid>0:</valid>
2857+
</arg>
2858+
<arg nr="7" direction="in">
2859+
<not-uninit/>
2860+
<not-bool/>
2861+
</arg>
2862+
</function>
28252863
<!-- const char *gai_strerror(int ecode); -->
28262864
<function name="gai_strerror">
28272865
<noreturn>false</noreturn>

0 commit comments

Comments
 (0)