bsd.cfg: Add strlcpy(), fix fts_children() (#1284)

This commit is contained in:
Sebastian 2018-06-08 15:42:49 +02:00 committed by GitHub
parent 335cb480bf
commit f129d8bd6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 2 deletions

View File

@ -26,8 +26,8 @@
</arg>
</function>
<!-- FTSENT * fts_children(FTS *ftsp, int options); -->
<function name="readpassphrase">
<returnValue type="fts_children"/>
<function name="fts_children">
<returnValue type="FTSENT *"/>
<noreturn>false</noreturn>
<arg nr="1">
<not-uninit/>
@ -157,6 +157,25 @@
<valid>0:</valid>
</arg>
</function>
<!-- https://www.freebsd.org/cgi/man.cgi?query=strlcpy
size_t strlcpy(char * restrict dst, const char * restrict src, size_t dstsize); -->
<function name="strlcpy">
<returnValue type="size_t"/>
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1">
<minsize type="argvalue" arg="3"/>
</arg>
<arg nr="2">
<not-null/>
<not-uninit/>
</arg>
<arg nr="3">
<not-uninit/>
<not-bool/>
<valid>0:</valid>
</arg>
</function>
<podtype name="FTS"/>
<podtype name="FTSENT"/>
</def>