2017-08-28 22:48:39 +02:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<def format="2">
|
2019-09-08 19:17:15 +02:00
|
|
|
<!-- int timerisset(struct timeval *tvp); -->
|
|
|
|
<function name="timerisset">
|
|
|
|
<noreturn>false</noreturn>
|
|
|
|
<leak-ignore/>
|
|
|
|
<use-retval/>
|
|
|
|
<returnValue type="int"/>
|
|
|
|
<arg nr="1" direction="in">
|
|
|
|
<not-uninit/>
|
|
|
|
<not-null/>
|
|
|
|
</arg>
|
|
|
|
</function>
|
|
|
|
<!-- void timerclear(struct timeval *tvp); -->
|
|
|
|
<function name="timerclear">
|
|
|
|
<noreturn>false</noreturn>
|
|
|
|
<leak-ignore/>
|
|
|
|
<returnValue type="void"/>
|
|
|
|
<arg nr="1" direction="inout">
|
|
|
|
<not-null/>
|
|
|
|
</arg>
|
|
|
|
</function>
|
|
|
|
<!-- void timeradd(struct timeval *a, struct timeval *b, struct timeval *res);-->
|
|
|
|
<!-- void timersub(struct timeval *a, struct timeval *b, struct timeval *res);-->
|
|
|
|
<function name="timeradd,timersub">
|
|
|
|
<noreturn>false</noreturn>
|
|
|
|
<leak-ignore/>
|
|
|
|
<returnValue type="void"/>
|
|
|
|
<arg nr="1" direction="in">
|
|
|
|
<not-uninit/>
|
|
|
|
<not-null/>
|
|
|
|
</arg>
|
|
|
|
<arg nr="2" direction="in">
|
|
|
|
<not-uninit/>
|
|
|
|
<not-null/>
|
|
|
|
</arg>
|
|
|
|
<arg nr="3" direction="out">
|
|
|
|
<not-null/>
|
|
|
|
</arg>
|
|
|
|
</function>
|
|
|
|
<!-- int timercmp(struct timeval *a, struct timeval *b, CMP)-->
|
|
|
|
<define name="timercmp(a,b,CMP)" value="(((a)->tv_sec == (b)->tv_sec) ? ((a)->tv_usec CMP (b)->tv_usec) : ((a)->tv_sec CMP (b)->tv_sec))"/>
|
2017-08-28 22:48:39 +02:00
|
|
|
<!-- https://www.freebsd.org/cgi/man.cgi?query=fts&sektion=3 -->
|
|
|
|
<!-- FTS * fts_open(char * const *path_argv, int options, int (*compar)(const FTSENT * const *, const FTSENT * const *)); -->
|
|
|
|
<function name="fts_open">
|
|
|
|
<returnValue type="FTS *"/>
|
|
|
|
<noreturn>false</noreturn>
|
|
|
|
<arg nr="1">
|
|
|
|
<not-uninit/>
|
|
|
|
</arg>
|
|
|
|
<arg nr="2">
|
|
|
|
<not-uninit/>
|
|
|
|
</arg>
|
|
|
|
<arg nr="3">
|
|
|
|
<not-uninit/>
|
|
|
|
<not-null/>
|
|
|
|
</arg>
|
|
|
|
</function>
|
|
|
|
<!-- FTSENT * fts_read(FTS *ftsp); -->
|
|
|
|
<function name="fts_read">
|
|
|
|
<returnValue type="FTSENT *"/>
|
|
|
|
<noreturn>false</noreturn>
|
|
|
|
<arg nr="1">
|
|
|
|
<not-uninit/>
|
|
|
|
<not-null/>
|
|
|
|
</arg>
|
|
|
|
</function>
|
|
|
|
<!-- FTSENT * fts_children(FTS *ftsp, int options); -->
|
2018-06-08 15:42:49 +02:00
|
|
|
<function name="fts_children">
|
|
|
|
<returnValue type="FTSENT *"/>
|
2017-08-28 22:48:39 +02:00
|
|
|
<noreturn>false</noreturn>
|
|
|
|
<arg nr="1">
|
|
|
|
<not-uninit/>
|
|
|
|
</arg>
|
|
|
|
<arg nr="2">
|
|
|
|
<not-uninit/>
|
|
|
|
</arg>
|
|
|
|
</function>
|
|
|
|
<!-- int fts_set(FTS *ftsp, FTSENT *f, int options); -->
|
|
|
|
<function name="fts_set">
|
|
|
|
<returnValue type="int"/>
|
|
|
|
<noreturn>false</noreturn>
|
|
|
|
<arg nr="1">
|
|
|
|
<not-uninit/>
|
|
|
|
</arg>
|
|
|
|
<arg nr="3">
|
|
|
|
<not-uninit/>
|
|
|
|
</arg>
|
|
|
|
<arg nr="2">
|
|
|
|
<not-uninit/>
|
|
|
|
</arg>
|
|
|
|
</function>
|
|
|
|
<!-- void fts_set_clientptr(FTS *ftsp, void *clientdata); -->
|
|
|
|
<function name="fts_set_clientptr">
|
|
|
|
<returnValue type="void"/>
|
|
|
|
<noreturn>false</noreturn>
|
|
|
|
<arg nr="1">
|
|
|
|
<not-uninit/>
|
|
|
|
</arg>
|
|
|
|
<arg nr="2">
|
|
|
|
<not-uninit/>
|
|
|
|
</arg>
|
|
|
|
</function>
|
|
|
|
<!-- void * fts_get_clientptr(FTS *ftsp); -->
|
|
|
|
<function name="fts_get_clientptr">
|
|
|
|
<returnValue type="void *"/>
|
|
|
|
<noreturn>false</noreturn>
|
|
|
|
<arg nr="1">
|
|
|
|
<not-uninit/>
|
|
|
|
</arg>
|
|
|
|
</function>
|
|
|
|
<!-- FTS * fts_get_stream(FTSENT *f); -->
|
|
|
|
<function name="fts_get_stream">
|
|
|
|
<returnValue type="FTS *"/>
|
|
|
|
<noreturn>false</noreturn>
|
|
|
|
<arg nr="1">
|
|
|
|
<not-uninit/>
|
|
|
|
</arg>
|
|
|
|
</function>
|
|
|
|
<!-- int fts_close(FTS *ftsp); -->
|
|
|
|
<function name="fts_close">
|
|
|
|
<returnValue type="int"/>
|
|
|
|
<noreturn>false</noreturn>
|
|
|
|
<arg nr="1">
|
|
|
|
<not-uninit/>
|
|
|
|
</arg>
|
|
|
|
</function>
|
|
|
|
<!-- https://www.freebsd.org/cgi/man.cgi?query=readpassphrase
|
|
|
|
char *readpassphrase(const char *prompt, char *buf, size_t bufsiz, int flags); -->
|
|
|
|
<function name="readpassphrase">
|
|
|
|
<returnValue type="char *"/>
|
|
|
|
<noreturn>false</noreturn>
|
|
|
|
<arg nr="1">
|
|
|
|
<not-uninit/>
|
|
|
|
</arg>
|
|
|
|
<arg nr="2">
|
|
|
|
<not-null/>
|
|
|
|
<minsize type="argvalue" arg="3"/>
|
|
|
|
</arg>
|
|
|
|
<arg nr="3">
|
|
|
|
<not-uninit/>
|
|
|
|
<not-null/>
|
|
|
|
</arg>
|
|
|
|
<arg nr="4">
|
|
|
|
<not-uninit/>
|
|
|
|
</arg>
|
|
|
|
<leak-ignore/>
|
|
|
|
</function>
|
|
|
|
<!-- https://www.freebsd.org/cgi/man.cgi?query=setfib&sektion=2
|
|
|
|
int setfib(int fib); -->
|
|
|
|
<function name="setfib">
|
|
|
|
<returnValue type="int"/>
|
|
|
|
<noreturn>false</noreturn>
|
|
|
|
<arg nr="1">
|
|
|
|
<not-uninit/>
|
|
|
|
</arg>
|
|
|
|
</function>
|
|
|
|
<!-- https://www.freebsd.org/cgi/man.cgi?query=strtonum
|
|
|
|
long long strtonum(const char *nptr, long long minval, long long maxval, const char **errstr); -->
|
|
|
|
<function name="strtonum">
|
|
|
|
<returnValue type="long long"/>
|
|
|
|
<noreturn>false</noreturn>
|
|
|
|
<arg nr="1">
|
|
|
|
<not-uninit/>
|
|
|
|
<not-null/>
|
|
|
|
</arg>
|
|
|
|
<arg nr="2">
|
|
|
|
<not-uninit/>
|
|
|
|
</arg>
|
|
|
|
<arg nr="3">
|
|
|
|
<not-uninit/>
|
|
|
|
</arg>
|
|
|
|
<arg nr="4">
|
|
|
|
<not-uninit/>
|
|
|
|
</arg>
|
|
|
|
<leak-ignore/>
|
|
|
|
</function>
|
2018-05-30 16:47:00 +02:00
|
|
|
<!-- https://www.freebsd.org/cgi/man.cgi?query=strlcat
|
|
|
|
size_t strlcat(char *dst, const char *src, size_t size); -->
|
|
|
|
<function name="strlcat">
|
|
|
|
<returnValue type="size_t"/>
|
|
|
|
<noreturn>false</noreturn>
|
|
|
|
<leak-ignore/>
|
|
|
|
<arg nr="1">
|
|
|
|
<not-null/>
|
|
|
|
<not-uninit/>
|
|
|
|
<strz/>
|
|
|
|
<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>
|
2018-06-08 15:42:49 +02:00
|
|
|
<!-- 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>
|
2018-08-16 21:37:40 +02:00
|
|
|
<!-- https://www.freebsd.org/cgi/man.cgi?query=arc4random -->
|
|
|
|
<!-- uint32_t arc4random(void); -->
|
|
|
|
<function name="arc4random">
|
|
|
|
<noreturn>false</noreturn>
|
|
|
|
<returnValue type="uint32_t"/>
|
|
|
|
<use-retval/>
|
|
|
|
</function>
|
|
|
|
<!-- void arc4random_buf(void *buf, size_t nbytes); -->
|
|
|
|
<function name="arc4random_buf">
|
|
|
|
<noreturn>false</noreturn>
|
|
|
|
<returnValue type="void"/>
|
|
|
|
<leak-ignore/>
|
|
|
|
<arg nr="1">
|
|
|
|
<not-null/>
|
|
|
|
<minsize type="argvalue" arg="2"/>
|
|
|
|
</arg>
|
|
|
|
<arg nr="2">
|
|
|
|
<not-uninit/>
|
|
|
|
<valid>1:</valid>
|
|
|
|
</arg>
|
|
|
|
</function>
|
|
|
|
<!-- uint32_t arc4random_uniform(uint32_t upper_bound); -->
|
|
|
|
<function name="arc4random_uniform">
|
|
|
|
<noreturn>false</noreturn>
|
|
|
|
<returnValue type="uint32_t"/>
|
|
|
|
<use-retval/>
|
|
|
|
<arg nr="1">
|
|
|
|
<not-uninit/>
|
|
|
|
<valid>2:</valid>
|
|
|
|
</arg>
|
|
|
|
</function>
|
|
|
|
<!-- void arc4random_stir(void); -->
|
|
|
|
<function name="arc4random_stir">
|
|
|
|
<noreturn>false</noreturn>
|
|
|
|
</function>
|
|
|
|
<!-- void arc4random_addrandom(unsigned char *dat, int datlen); -->
|
|
|
|
<function name="arc4random_addrandom">
|
|
|
|
<noreturn>false</noreturn>
|
|
|
|
<leak-ignore/>
|
|
|
|
<arg nr="1">
|
|
|
|
<minsize type="argvalue" arg="2"/>
|
|
|
|
</arg>
|
|
|
|
<arg nr="2">
|
|
|
|
<not-uninit/>
|
|
|
|
<valid>0:</valid>
|
|
|
|
</arg>
|
|
|
|
</function>
|
2019-10-30 09:39:50 +01:00
|
|
|
<!-- https://www.freebsd.org/cgi/man.cgi?query=mmap -->
|
|
|
|
<!-- void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset); -->
|
|
|
|
<!-- In contrast to POSIX, the BSD mmap requires fd to be -1 if MAP_ANONYMOUS or MAP_ANON is specified -->
|
|
|
|
<function name="mmap">
|
|
|
|
<use-retval/>
|
|
|
|
<returnValue type="void *"/>
|
|
|
|
<noreturn>false</noreturn>
|
|
|
|
<leak-ignore/>
|
|
|
|
<arg nr="1" direction="in">
|
|
|
|
<not-uninit/>
|
|
|
|
</arg>
|
|
|
|
<arg nr="2" direction="in">
|
|
|
|
<not-uninit/>
|
|
|
|
<valid>1:</valid>
|
|
|
|
</arg>
|
|
|
|
<arg nr="3" direction="in">
|
|
|
|
<not-uninit/>
|
|
|
|
</arg>
|
|
|
|
<arg nr="4" direction="in">
|
|
|
|
<not-uninit/>
|
|
|
|
</arg>
|
|
|
|
<arg nr="5" direction="in">
|
|
|
|
<not-uninit/>
|
|
|
|
<valid>-1:</valid>
|
|
|
|
</arg>
|
|
|
|
<arg nr="6" direction="in">
|
|
|
|
<not-uninit/>
|
|
|
|
<not-bool/>
|
|
|
|
</arg>
|
|
|
|
</function>
|
2017-08-28 22:48:39 +02:00
|
|
|
<podtype name="FTS"/>
|
|
|
|
<podtype name="FTSENT"/>
|
|
|
|
</def>
|