cppcheck/cfg/gnu.cfg

1012 lines
27 KiB
INI
Raw Normal View History

<?xml version="1.0"?>
<def format="2">
<memory>
<dealloc>free</dealloc>
<alloc init="true">get_current_dir_name</alloc>
</memory>
<memory>
<alloc init="true" arg="1">asprintf</alloc>
<dealloc>free</dealloc>
</memory>
<memory>
<alloc init="false" buffer-size="malloc">xmalloc</alloc>
<alloc init="true" buffer-size="calloc">xcalloc</alloc>
<dealloc>free</dealloc>
</memory>
<!-- https://linux.die.net/man/3/backtrace -->
<memory>
<alloc init="true">backtrace_symbols</alloc>
<dealloc>free</dealloc>
</memory>
<memory>
<alloc init="false" buffer-size="malloc">pvalloc</alloc>
<dealloc>free</dealloc>
</memory>
<!-- https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html -->
<define name="__builtin_alloca(size)" value="alloca(size)"/>
2019-02-28 22:55:17 +01:00
<!-- void xexit(int status); -->
<function name="xexit">
<noreturn>true</noreturn>
<arg nr="1" direction="in">
2019-02-28 22:55:17 +01:00
<not-uninit/>
<not-bool/>
2019-02-28 22:55:17 +01:00
</arg>
</function>
<!-- void * xmalloc(size_t size); -->
<function name="xmalloc">
<use-retval/>
<returnValue type="void *"/>
<noreturn>false</noreturn>
<arg nr="1" direction="in">
<not-uninit/>
<valid>0:</valid>
<not-bool/>
</arg>
</function>
2019-02-28 22:46:16 +01:00
<!-- char *xstrdup(const char *s); -->
<function name="xstrdup">
<noreturn>false</noreturn>
<returnValue type="char *"/>
<use-retval/>
<arg nr="1" direction="in">
2019-02-28 22:46:16 +01:00
<not-null/>
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- void * xcalloc(size_t nitems, size_t size); -->
<function name="xcalloc">
<use-retval/>
<noreturn>false</noreturn>
<returnValue type="void *"/>
<arg nr="1" direction="in">
<not-uninit/>
<valid>1:</valid>
</arg>
<arg nr="2" direction="in">
2019-02-28 22:48:39 +01:00
<not-uninit/>
<valid>0:</valid>
<not-bool/>
2019-02-28 22:48:39 +01:00
</arg>
</function>
<!-- void * xrealloc(void *block, size_t newsize); -->
<function name="xrealloc">
<use-retval/>
2019-02-28 22:48:39 +01:00
<returnValue type="void *"/>
<noreturn>false</noreturn>
<arg nr="1">
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
<valid>0:</valid>
<not-bool/>
</arg>
</function>
<!-- https://linux.die.net/man/3/pvalloc -->
<!-- void *pvalloc(size_t size); -->
<function name="pvalloc">
<use-retval/>
<returnValue type="void *"/>
<noreturn>false</noreturn>
<arg nr="1" direction="in">
<not-uninit/>
<valid>0:</valid>
</arg>
</function>
<!-- http://man7.org/linux/man-pages/man3/asprintf.3.html -->
<!-- int asprintf(char **strp, const char *fmt, ...); -->
<function name="asprintf">
<returnValue type="int"/>
<use-retval/>
<noreturn>false</noreturn>
<arg nr="1" direction="out">
<not-null/>
</arg>
<formatstr/>
<arg nr="2" direction="in">
<formatstr/>
<not-uninit/>
</arg>
</function>
<!-- http://man7.org/linux/man-pages/man3/asprintf.3.html -->
<!-- int vasprintf(char **strp, const char *fmt, va_list ap); -->
<function name="vasprintf">
<returnValue type="int"/>
<use-retval/>
<noreturn>false</noreturn>
<arg nr="1" direction="out">
<not-null/>
</arg>
<formatstr/>
<arg nr="2" direction="in">
<formatstr/>
<not-uninit/>
</arg>
<arg nr="3">
<not-uninit/>
</arg>
</function>
<!-- http://man7.org/linux/man-pages/man2/accept.2.html -->
<!-- int accept4(int sockfd, struct sockaddr *addr, socklen_t *addrlen, int flags); -->
<function name="accept4">
2017-08-02 14:34:06 +02:00
<returnValue type="int"/>
<noreturn>false</noreturn>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
<arg nr="2" direction="out">
<not-uninit/>
</arg>
<arg nr="3" direction="inout">
<not-uninit/>
<not-null/>
</arg>
<arg nr="4" direction="in">
<not-uninit/>
<not-bool/>
</arg>
<leak-ignore/>
</function>
<!-- https://www.gnu.org/software/libc/manual/html_node/Getopt-Long-Options.html#Getopt-Long-Options -->
<!-- int getopt_long(int argc, char * const argv[],
const char *optstring,
const struct option *longopts, int *longindex); -->
<function name="getopt_long,getopt_long_only">
<leak-ignore/>
<noreturn>false</noreturn>
<returnValue type="int"/>
<use-retval/>
<arg nr="1" direction="in">
<not-bool/>
<not-uninit/>
<valid>0:</valid>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
<not-null/>
</arg>
<arg nr="3" direction="in">
<not-null/>
<strz/>
</arg>
<arg nr="4" direction="in">
<not-null/>
</arg>
<arg nr="5" direction="out">
<not-bool/>
</arg>
</function>
<!-- void *__builtin_memset(void *s, int c, size_t n); -->
<define name="__builtin_memset" value="memset"/>
2015-05-11 08:53:54 +02:00
<!-- long long atoq(const char *nptr); -->
<function name="atoq">
2017-08-02 14:34:06 +02:00
<returnValue type="long long"/>
2015-05-11 08:53:54 +02:00
<use-retval/>
<noreturn>false</noreturn>
<arg nr="1" direction="in">
2015-05-11 08:53:54 +02:00
<not-null/>
<not-uninit/>
<not-bool/>
2015-05-11 08:53:54 +02:00
</arg>
</function>
<!-- char *strndupa(const char *s, size_t n); -->
<function name="strndupa">
2017-08-02 14:34:06 +02:00
<returnValue type="char *"/>
<use-retval/>
<noreturn>false</noreturn>
<arg nr="1" direction="in">
<not-null/>
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
<valid>0:</valid>
<not-bool/>
</arg>
</function>
<!-- http://man7.org/linux/man-pages/man3/strsep.3.html -->
<!-- char *strsep(char **stringp, const char *delim); -->
<function name="strsep">
<use-retval/>
2017-08-02 14:34:06 +02:00
<returnValue type="char *"/>
<noreturn>false</noreturn>
<arg nr="1" direction="inout">
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
<not-null/>
<not-bool/>
</arg>
</function>
<!-- char *strdupa(const char *s); -->
<function name="strdupa">
<use-retval/>
2017-08-02 14:34:06 +02:00
<returnValue type="char *"/>
<noreturn>false</noreturn>
<arg nr="1" direction="in">
<not-null/>
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- http://www.gnu.org/software/libc/manual/html_node/Backtraces.html -->
<!-- int backtrace (void **buffer, int size) -->
<function name="backtrace">
2017-08-02 14:34:06 +02:00
<returnValue type="int"/>
<noreturn>false</noreturn>
<arg nr="1" direction="out">
<not-null/>
<minsize type="argvalue" arg="2"/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- char ** backtrace_symbols (void *const *buffer, int size) -->
<function name="backtrace_symbols">
2017-08-02 14:34:06 +02:00
<returnValue type="char **"/>
<noreturn>false</noreturn>
2015-03-08 14:24:54 +01:00
<use-retval/>
<arg nr="1" direction="in">
<not-null/>
<not-uninit/>
<minsize type="argvalue" arg="2"/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- void backtrace_symbols_fd (void *const *buffer, int size, int fd) -->
<function name="backtrace_symbols_fd">
<noreturn>false</noreturn>
<returnValue type="void"/>
<arg nr="1" direction="in">
<not-null/>
<not-uninit/>
<minsize type="argvalue" arg="2"/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
</arg>
<arg nr="3" direction="in">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- char *qecvt(long double value, int ndigit, int * decpt, int * sign); -->
<function name="qecvt">
2017-08-02 14:34:06 +02:00
<returnValue type="char *"/>
<noreturn>false</noreturn>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
</arg>
<arg nr="3" direction="out">
<not-null/>
</arg>
<arg nr="4" direction="out">
<not-null/>
<not-bool/>
</arg>
</function>
<!-- char *qfcvt(double value, int ndigit, int * decpt, int * sign); -->
<function name="qfcvt">
2017-08-02 14:34:06 +02:00
<returnValue type="char *"/>
<noreturn>false</noreturn>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
</arg>
<arg nr="3" direction="out">
<not-null/>
</arg>
<arg nr="4" direction="out">
<not-null/>
<not-bool/>
</arg>
</function>
<!-- char *qgcvt(long double value, int ndigit, char *buf); -->
<function name="qgcvt">
2017-08-02 14:34:06 +02:00
<returnValue type="char *"/>
<noreturn>false</noreturn>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
</arg>
<arg nr="3" direction="out">
<not-null/>
<not-bool/>
</arg>
</function>
<!-- https://linux.die.net/man/3/ecvt_r -->
<!-- int ecvt_r (double value, int ndigit, int *decpt, int *neg, char *buf, size_t len); -->
<function name="ecvt_r">
2017-08-02 14:34:06 +02:00
<returnValue type="int"/>
<noreturn>false</noreturn>
2015-03-08 14:24:54 +01:00
<pure/>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
</arg>
<arg nr="3" direction="out">
<not-null/>
</arg>
<arg nr="4" direction="out">
<not-null/>
</arg>
<arg nr="5" direction="out">
<not-null/>
<minsize type="argvalue" arg="6"/>
</arg>
<arg nr="6" direction="in">
<not-uninit/>
<valid>0:</valid>
<not-bool/>
</arg>
<warn severity="style" reason="Obsolescent" alternatives="sprintf"/>
</function>
<!-- int fcvt_r (double value, int ndigit, int *decpt, int *neg, char *buf, size_t len); -->
<function name="fcvt_r">
2017-08-02 14:34:06 +02:00
<returnValue type="int"/>
<noreturn>false</noreturn>
2015-03-08 14:24:54 +01:00
<pure/>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
</arg>
<arg nr="3" direction="out">
<not-null/>
</arg>
<arg nr="4" direction="out">
<not-null/>
</arg>
<arg nr="5" direction="out">
<not-null/>
<minsize type="argvalue" arg="6"/>
</arg>
<arg nr="6" direction="in">
<not-uninit/>
<valid>0:</valid>
<not-bool/>
</arg>
<warn severity="style" reason="Obsolescent" alternatives="sprintf"/>
</function>
<!-- int qecvt_r (long double value, int ndigit, int *decpt, int *neg, char *buf, size_t len); -->
<function name="qecvt_r">
2017-08-02 14:34:06 +02:00
<returnValue type="int"/>
<noreturn>false</noreturn>
2015-03-08 14:24:54 +01:00
<pure/>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
</arg>
<arg nr="3" direction="out">
<not-null/>
</arg>
<arg nr="4" direction="out">
<not-null/>
</arg>
<arg nr="5" direction="out">
<not-null/>
<minsize type="argvalue" arg="6"/>
</arg>
<arg nr="6" direction="in">
<not-uninit/>
<valid>0:</valid>
<not-bool/>
</arg>
<warn severity="style" reason="Obsolescent" alternatives="sprintf"/>
</function>
<!-- int qfcvt_r (long double value, int ndigit, int *decpt, int *neg, char *buf, size_t len); -->
<function name="qfcvt_r">
2017-08-02 14:34:06 +02:00
<returnValue type="int"/>
<noreturn>false</noreturn>
2015-03-08 14:24:54 +01:00
<pure/>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
</arg>
<arg nr="3" direction="out">
<not-null/>
</arg>
<arg nr="4" direction="out">
<not-null/>
</arg>
<arg nr="5" direction="out">
<not-null/>
<minsize type="argvalue" arg="6"/>
</arg>
<arg nr="6" direction="in">
<not-uninit/>
<valid>0:</valid>
<not-bool/>
</arg>
<warn severity="style" reason="Obsolescent" alternatives="sprintf"/>
</function>
<!-- https://www.gnu.org/software/gnulib/manual/html_node/c_002dstrcasestr.html -->
<!-- size_t strcasestr(const char *s1, const char *s2); -->
<function name="strcasestr">
<use-retval/>
2017-08-02 14:34:06 +02:00
<returnValue type="size_t"/>
<noreturn>false</noreturn>
<leak-ignore/>
2015-03-08 14:24:54 +01:00
<pure/>
<arg nr="1" direction="in">
<not-null/>
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-null/>
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- http://linux.die.net/man/2/getresuid -->
<!-- int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); -->
<function name="getresuid">
2017-08-02 14:34:06 +02:00
<returnValue type="int"/>
<noreturn>false</noreturn>
<leak-ignore/>
<pure/>
<arg nr="1" direction="out">
<not-null/>
</arg>
<arg nr="2" direction="out">
<not-null/>
</arg>
<arg nr="3" direction="out">
<not-null/>
<not-bool/>
</arg>
</function>
<!-- http://linux.die.net/man/2/getresuid -->
<!-- int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); -->
<function name="getresgid">
2017-08-02 14:34:06 +02:00
<returnValue type="int"/>
<noreturn>false</noreturn>
<leak-ignore/>
<pure/>
<arg nr="1" direction="out">
<not-null/>
</arg>
<arg nr="2" direction="out">
<not-null/>
</arg>
<arg nr="3" direction="out">
<not-null/>
<not-bool/>
</arg>
</function>
<!-- http://man7.org/linux/man-pages/man2/setresuid.2.html -->
<!-- int setresuid(uid_t ruid, uid_t euid, uid_t suid);-->
<function name="setresuid">
2017-08-02 14:34:06 +02:00
<returnValue type="int"/>
<noreturn>false</noreturn>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
</arg>
<arg nr="3" direction="in">
<not-uninit/>
<not-bool/>
</arg>
<leak-ignore/>
</function>
<!-- http://man7.org/linux/man-pages/man2/setresuid.2.html -->
<!-- int setresgid(gid_t rgid, gid_t egid, gid_t sgid);-->
<function name="setresgid">
2017-08-02 14:34:06 +02:00
<returnValue type="int"/>
<noreturn>false</noreturn>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
</arg>
<arg nr="3" direction="in">
<not-uninit/>
<not-bool/>
</arg>
<leak-ignore/>
</function>
<!-- int inet_aton (const char *name, struct in_addr *addr); -->
<function name="inet_aton">
2017-08-02 14:34:06 +02:00
<returnValue type="int"/>
<noreturn>false</noreturn>
<arg nr="1">
<not-uninit/>
<not-null/>
</arg>
<arg nr="2">
<not-null/>
</arg>
<leak-ignore/>
</function>
<!-- uint32_t inet_network (const char *name); -->
<function name="inet_network">
2017-08-02 14:34:06 +02:00
<returnValue type="uint32_t"/>
<noreturn>false</noreturn>
<arg nr="1" direction="in">
<not-uninit/>
<not-null/>
<not-bool/>
</arg>
<leak-ignore/>
</function>
<!-- struct in_addr inet_makeaddr (uint32_t net, uint32_t local); -->
<function name="inet_makeaddr">
2017-08-02 14:34:06 +02:00
<returnValue type="struct in_addr"/>
<noreturn>false</noreturn>
<arg nr="1" direction="in">
<not-uninit/>
<valid>0:4294967295</valid>
<!-- 0:UINT32_MAX-->
</arg>
<arg nr="2" direction="in">
<not-uninit/>
<valid>0:4294967295</valid>
<!-- 0:UINT32_MAX-->
<not-bool/>
</arg>
<leak-ignore/>
</function>
<!-- https://linux.die.net/man/3/inet_lnaof -->
<!-- uint32_t inet_lnaof (struct in_addr addr); -->
<function name="inet_lnaof">
2017-08-02 14:34:06 +02:00
<returnValue type="uint32_t"/>
<noreturn>false</noreturn>
<arg nr="1" direction="in">
<not-uninit/>
<not-bool/>
</arg>
<leak-ignore/>
</function>
<!-- uint32_t inet_netof (struct in_addr addr); -->
<function name="inet_netof">
2017-08-02 14:34:06 +02:00
<returnValue type="uint32_t"/>
<noreturn>false</noreturn>
<arg nr="1" direction="in">
<not-uninit/>
<not-bool/>
</arg>
<leak-ignore/>
</function>
<!-- int inet_pton (int af, const char *cp, void *buf); -->
<function name="inet_pton">
2017-08-02 14:34:06 +02:00
<returnValue type="int"/>
<noreturn>false</noreturn>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
<not-null/>
</arg>
<arg nr="3" direction="out">
<not-null/>
<not-bool/>
</arg>
<leak-ignore/>
</function>
<!-- https://linux.die.net/man/3/inet_ntop -->
<!-- const char * inet_ntop (int af, const void *cp, char *buf, socklen_t len);-->
<function name="inet_ntop">
<returnValue type="const char *"/>
<noreturn>false</noreturn>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
<not-null/>
</arg>
<arg nr="3" direction="out">
<not-null/>
<minsize type="argvalue" arg="4"/>
</arg>
<arg nr="4" direction="in">
<not-uninit/>
<not-bool/>
</arg>
<leak-ignore/>
</function>
<!-- char *canonicalize_file_name(const char *path); -->
<function name="canonicalize_file_name">
2017-08-02 14:34:06 +02:00
<returnValue type="char *"/>
<use-retval/>
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1" direction="in">
<not-null/>
<not-bool/>
</arg>
</function>
<!-- https://linux.die.net/man/3/execvpe -->
<!-- int execvpe(const char *file, char *const argv[], char *const envp[]); -->
<function name="execvpe">
2017-08-02 14:34:06 +02:00
<returnValue type="int"/>
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1" direction="in">
<not-null/>
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
</arg>
<arg nr="3" direction="in">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- https://linux.die.net/man/3/mkostemp -->
<!-- int mkostemp(char *template, int flags);
int mkstemps(char *template, int suffixlen);-->
<function name="mkostemp,mkstemps">
2017-08-02 14:34:06 +02:00
<returnValue type="int"/>
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1" direction="inout">
<not-null/>
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- int mkostemps(char *template, int suffixlen, int flags); -->
<function name="mkostemps">
2017-08-02 14:34:06 +02:00
<returnValue type="int"/>
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1" direction="inout">
<not-null/>
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
</arg>
<arg nr="3" direction="in">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- see http://man7.org/linux/man-pages/man3/memmem.3.html -->
<!-- void *memmem(const void *haystack, size_t haystacklen,
const void *needle, size_t needlelen);-->
<function name="memmem">
<noreturn>false</noreturn>
<leak-ignore/>
<use-retval/>
2017-10-05 11:45:46 +02:00
<returnValue type="void *"/>
<arg nr="1" direction="in">
<not-null/>
<not-uninit/>
<minsize type="argvalue" arg="2"/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
<valid>0:</valid>
</arg>
<arg nr="3" direction="in">
<not-null/>
<not-uninit/>
<minsize type="argvalue" arg="4"/>
</arg>
<arg nr="4" direction="in">
<not-uninit/>
<valid>0:</valid>
<not-bool/>
</arg>
</function>
<!-- http://man7.org/linux/man-pages/man3/memrchr.3.html -->
<!-- void *memrchr(const void *s, int c, size_t n); -->
<function name="memrchr">
<noreturn>false</noreturn>
<leak-ignore/>
2017-10-05 11:45:46 +02:00
<returnValue type="void *"/>
<use-retval/>
<arg nr="1" direction="in">
<not-null/>
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
<not-bool/>
<valid>0:</valid>
</arg>
<arg nr="3" direction="in">
<not-uninit/>
<not-bool/>
<valid>0:</valid>
</arg>
</function>
<!-- http://man7.org/linux/man-pages/man3/rawmemchr.3.html -->
<!-- void *rawmemchr(const void *s, int c); -->
<function name="rawmemchr">
<noreturn>false</noreturn>
<leak-ignore/>
2017-10-05 11:45:46 +02:00
<returnValue type="void *"/>
<use-retval/>
<arg nr="1" direction="in">
<not-null/>
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
<not-bool/>
<valid>0:</valid>
</arg>
</function>
<!-- http://man7.org/linux/man-pages/man3/ffs.3.html -->
<!-- int ffsl(long int i);
int ffsll(long long int i); -->
<function name="ffsl,ffsll">
<use-retval/>
2017-08-02 14:34:06 +02:00
<returnValue type="int"/>
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1" direction="in">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- http://man7.org/linux/man-pages/man3/strchr.3.html -->
<!-- char *strchrnul(const char *s, int c); -->
<function name="strchrnul">
<use-retval/>
2017-08-02 14:34:06 +02:00
<returnValue type="char *"/>
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1" direction="in">
<not-null/>
<not-uninit/>
<strz/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- http://man7.org/linux/man-pages/man2/setrlimit.2.html -->
<!-- int prlimit(pid_t pid, int resource, const struct rlimit *new_limit,
struct rlimit *old_limit); -->
<function name="prlimit">
2017-08-02 14:34:06 +02:00
<returnValue type="int"/>
<noreturn>false</noreturn>
<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-bool/>
</arg>
</function>
<!-- see https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html -->
<define name="__builtin_expect(X,Y)" value="(X)"/>
<define name="__builtin_expect_with_probability(exp,c,probability)" value="(exp)"/>
<!-- see http://kernelnewbies.org/FAQ/LikelyUnlikely -->
<define name="likely(X)" value="(X)"/>
<define name="unlikely(X)" value="(X)"/>
<!-- int epoll_create(int size);
int epoll_create1(int flags); -->
<function name="epoll_create,epoll_create1">
<noreturn>false</noreturn>
2017-08-02 14:34:06 +02:00
<returnValue type="int"/>
<arg nr="1" direction="in">
<not-bool/>
<not-uninit/>
</arg>
</function>
<!-- https://linux.die.net/man/2/epoll_ctl -->
<!-- int epoll_ctl(int epfd, int op, int fd, struct epoll_event *event); -->
<function name="epoll_ctl">
2017-08-02 14:34:06 +02:00
<returnValue type="int"/>
<noreturn>false</noreturn>
<arg nr="1" direction="in">
<not-bool/>
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-bool/>
<not-uninit/>
</arg>
<arg nr="3" direction="in">
<not-bool/>
<not-uninit/>
</arg>
<arg nr="4" direction="inout">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- int epoll_wait(int epfd, struct epoll_event *events, int maxevents, int timeout); -->
<function name="epoll_wait">
2017-08-02 14:34:06 +02:00
<returnValue type="int"/>
<noreturn>false</noreturn>
<arg nr="1" direction="in">
<not-bool/>
<not-uninit/>
</arg>
<arg nr="2" direction="out">
<not-bool/>
<not-null/>
</arg>
<arg nr="3" direction="in">
<not-bool/>
<not-uninit/>
<valid>1:</valid>
</arg>
<arg nr="4" direction="in">
<not-bool/>
<not-uninit/>
</arg>
</function>
<!-- int epoll_pwait(int epfd, struct epoll_event *events, int maxevents, int timeout, const sigset_t *sigmask); -->
<function name="epoll_pwait">
2017-08-02 14:34:06 +02:00
<returnValue type="int"/>
<noreturn>false</noreturn>
<arg nr="1" direction="in">
<not-bool/>
<not-uninit/>
</arg>
<arg nr="2" direction="out">
<not-bool/>
<not-null/>
</arg>
<arg nr="3" direction="in">
<not-bool/>
<not-uninit/>
<valid>1:</valid>
</arg>
<arg nr="4" direction="in">
<not-bool/>
<not-uninit/>
</arg>
<arg nr="5" direction="in">
<not-bool/>
<not-null/>
<not-uninit/>
</arg>
</function>
<!-- int sethostname(const char *name, size_t len); -->
<function name="sethostname">
<noreturn>false</noreturn>
<returnValue type="int"/>
<arg nr="1" direction="in">
<not-null/>
<not-uninit/>
<minsize type="argvalue" arg="2"/>
</arg>
<arg nr="2">
<not-uninit/>
<valid>0:</valid>
</arg>
</function>
<!-- https://www.gnu.org/software/libc/manual/html_node/Translation-with-gettext.html -->
<!-- char * gettext (const char *msgid); -->
<function name="gettext">
<noreturn>false</noreturn>
<returnValue type="char *"/>
<use-retval/>
<leak-ignore/>
<arg nr="1" direction="in">
<not-null/>
<not-uninit/>
<strz/>
<not-bool/>
</arg>
</function>
<!-- _(string) is often defined as gettext(string) or string somewhere in projects. -->
<!-- See https://www.gnu.org/software/gettext//manual/html_node/Mark-Keywords.html -->
<define name="_(string)" value="string"/>
<!-- https://linux.die.net/man/3/dgettext -->
<!-- char * dgettext (const char *domainname, const char *msgid); -->
<function name="dgettext">
<noreturn>false</noreturn>
<returnValue type="char *"/>
<use-retval/>
<leak-ignore/>
<arg nr="1" direction="in">
<not-uninit/>
<strz/>
</arg>
<arg nr="2" direction="in">
<not-null/>
<not-uninit/>
<strz/>
<not-bool/>
</arg>
</function>
<!-- char * dcgettext (const char *domainname, const char *msgid, int category); -->
<function name="dcgettext">
<noreturn>false</noreturn>
<returnValue type="char *"/>
<use-retval/>
<leak-ignore/>
<arg nr="1" direction="in">
<not-uninit/>
<strz/>
</arg>
<arg nr="2" direction="in">
<not-null/>
<not-uninit/>
<strz/>
</arg>
<arg nr="3" direction="in">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html -->
<!-- void __builtin_trap (void) -->
<function name="__builtin_trap">
<noreturn>true</noreturn>
</function>
<!-- int __builtin_constant_p (exp) -->
<function name="__builtin_constant_p">
<noreturn>false</noreturn>
<returnValue type="int"/>
<arg nr="1"/>
</function>
<!-- https://gcc.gnu.org/onlinedocs/gcc/Return-Address.html -->
<!-- void * __builtin_return_address (unsigned int level) -->
<!-- void * __builtin_frame_address (unsigned int level) -->
<function name="__builtin_return_address,__builtin_frame_address">
<noreturn>false</noreturn>
<returnValue type="void *"/>
<use-retval/>
<arg nr="1" direction="in">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- void * __builtin_extract_return_addr (void *addr) -->
<!-- void * __builtin_frob_return_address (void *addr) -->
<function name="__builtin_extract_return_addr,__builtin_frob_return_address">
<noreturn>false</noreturn>
<returnValue type="void *"/>
<use-retval/>
<arg nr="1" direction="in">
<not-bool/>
</arg>
</function>
<!-- ########## Resource allocation ########## -->
<resource>
<dealloc>close</dealloc>
<alloc init="true">epoll_create</alloc>
</resource>
<resource>
<dealloc>close</dealloc>
<alloc init="true">epoll_create1</alloc>
</resource>
<podtype name="epoll_event"/>
</def>