posix.cfg: Added support for lfind() and lsearch().

This commit is contained in:
orbitcowboy 2022-05-23 15:01:45 +02:00
parent d299d22fa2
commit 52ed651447
1 changed files with 55 additions and 0 deletions

View File

@ -3491,6 +3491,61 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
<not-bool/>
</arg>
</function>
<!-- https://man7.org/linux/man-pages/man3/lsearch.3.html -->
<!-- void *lfind(const void *key, const void *base, size_t *nmemb, size_t size, int(*compar)(const void *, const void *)); -->
<function name="lfind">
<returnValue type="void *"/>
<noreturn>false</noreturn>
<arg nr="1" direction="in">
<not-uninit/>
<not-null/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
<not-null/>
</arg>
<arg nr="3" direction="in">
<not-uninit/>
<not-null/>
<minsize type="argvalue" arg="4"/>
</arg>
<arg nr="4" direction="in">
<not-uninit/>
<not-bool/>
<valid>:1</valid>
</arg>
<arg nr="5" direction="in">
<not-uninit/>
<not-null/>
</arg>
</function>
<!-- https://man7.org/linux/man-pages/man3/lsearch.3.html -->
<!-- void *lsearch(const void *key, void *base, size_t *nmemb, size_t size, int(*compar)(const void *, const void *)); -->
<function name="lsearch">
<returnValue type="void *"/>
<noreturn>false</noreturn>
<arg nr="1" direction="in">
<not-uninit/>
<not-null/>
</arg>
<arg nr="2" direction="in">
<not-null/>
</arg>
<arg nr="3" direction="in">
<not-uninit/>
<not-null/>
<minsize type="argvalue" arg="4"/>
</arg>
<arg nr="4" direction="in">
<not-uninit/>
<not-bool/>
<valid>:1</valid>
</arg>
<arg nr="5" direction="in">
<not-uninit/>
<not-null/>
</arg>
</function>
<!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/regcomp.html -->
<!-- int regcomp(regex_t *restrict preg, const char *restrict pattern, int cflags); -->
<function name="regcomp">