"Fossies" - the Fresh Open Source Software Archive

Member "cppcheck-1.89/cfg/posix.cfg" (1 Sep 2019, 152721 Bytes) of package /windows/misc/cppcheck-1.89.zip:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "posix.cfg": 1.88_vs_1.89.

    1 <?xml version="1.0"?>
    2 <!-- Description of the interfaces described by previous and current POSIX standards.
    3      Current reference: http://pubs.opengroup.org/onlinepubs/9699919799/ -->
    4 <def format="2">
    5   <!-- http://man7.org/linux/man-pages/man3/a64l.3.html -->
    6   <!-- long a64l(const char *str64); -->
    7   <function name="a64l">
    8     <use-retval/>
    9     <returnValue type="long"/>
   10     <noreturn>false</noreturn>
   11     <leak-ignore/>
   12     <arg nr="1" direction="in">
   13       <not-null/>
   14       <not-uninit/>
   15       <not-bool/>
   16     </arg>
   17   </function>
   18   <!-- http://man7.org/linux/man-pages/man3/a64l.3.html -->
   19   <!-- char *l64a(long value); -->
   20   <function name="l64a">
   21     <use-retval/>
   22     <returnValue type="char *"/>
   23     <noreturn>false</noreturn>
   24     <leak-ignore/>
   25     <arg nr="1" direction="in">
   26       <not-uninit/>
   27       <not-bool/>
   28       <!-- The behavior of l64a() is undefined when value is negative. -->
   29       <!-- If value is zero, it returns an empty string. -->
   30       <valid>0:</valid>
   31     </arg>
   32   </function>
   33   <!-- int isalnum_l(int c, locale_t locale) -->
   34   <function name="isalnum_l">
   35     <use-retval/>
   36     <pure/>
   37     <returnValue type="int">arg1&gt;=0x30 &amp;&amp; arg1&lt;=0x39 || arg1&gt;=0x41 &amp;&amp; arg1 &lt;=0x5A || arg1&gt;=0x61 &amp;&amp; arg1 &lt;=0x7A</returnValue>
   38     <noreturn>false</noreturn>
   39     <leak-ignore/>
   40     <arg nr="1" direction="in">
   41       <not-uninit/>
   42       <valid>0:255</valid>
   43     </arg>
   44     <arg nr="2" direction="in">
   45       <not-uninit/>
   46     </arg>
   47   </function>
   48   <!-- int isalpha_l(int c, locale_t locale); -->
   49   <function name="isalpha_l">
   50     <use-retval/>
   51     <pure/>
   52     <returnValue type="int">arg1&gt;='A' &amp;&amp; arg1&lt;='Z' || arg1&gt;='a' &amp;&amp; arg1 &lt;='z'</returnValue>
   53     <noreturn>false</noreturn>
   54     <leak-ignore/>
   55     <arg nr="1" direction="in">
   56       <not-uninit/>
   57       <valid>0:255</valid>
   58     </arg>
   59     <arg nr="2" direction="in">
   60       <not-uninit/>
   61     </arg>
   62   </function>
   63   <!-- int isblank_l(int c, locale_t locale); -->
   64   <function name="isblank_l">
   65     <use-retval/>
   66     <pure/>
   67     <returnValue type="int">arg1==' ' || arg1=='\t'</returnValue>
   68     <noreturn>false</noreturn>
   69     <leak-ignore/>
   70     <arg nr="1" direction="in">
   71       <not-uninit/>
   72       <valid>0:255</valid>
   73     </arg>
   74     <arg nr="2" direction="in">
   75       <not-uninit/>
   76     </arg>
   77   </function>
   78   <!-- int iscntrl_l(int c, locale_t locale); -->
   79   <function name="iscntrl_l">
   80     <use-retval/>
   81     <pure/>
   82     <returnValue type="int">arg1==0x7F || arg1&lt;=0x1F</returnValue>
   83     <noreturn>false</noreturn>
   84     <leak-ignore/>
   85     <arg nr="1" direction="in">
   86       <not-uninit/>
   87       <valid>0:255</valid>
   88     </arg>
   89     <arg nr="2" direction="in">
   90       <not-uninit/>
   91     </arg>
   92   </function>
   93   <!-- int isdigit_l(int c, locale_t locale); -->
   94   <function name="isdigit_l">
   95     <use-retval/>
   96     <pure/>
   97     <returnValue type="int">arg1&gt;='0' &amp;&amp; arg1&lt;='9'</returnValue>
   98     <noreturn>false</noreturn>
   99     <leak-ignore/>
  100     <arg nr="1" direction="in">
  101       <not-uninit/>
  102       <valid>0:255</valid>
  103     </arg>
  104     <arg nr="2" direction="in">
  105       <not-uninit/>
  106     </arg>
  107   </function>
  108   <!-- int isgraph_l(int c, locale_t locale); -->
  109   <function name="isgraph_l">
  110     <use-retval/>
  111     <pure/>
  112     <returnValue type="int">arg1&gt;=0x21 &amp;&amp; arg1&lt;=0x7E</returnValue>
  113     <noreturn>false</noreturn>
  114     <leak-ignore/>
  115     <arg nr="1" direction="in">
  116       <not-uninit/>
  117       <valid>0:255</valid>
  118     </arg>
  119     <arg nr="2" direction="in">
  120       <not-uninit/>
  121     </arg>
  122   </function>
  123   <!-- int islower_l(int c, locale_t locale); -->
  124   <function name="islower_l">
  125     <use-retval/>
  126     <pure/>
  127     <returnValue type="int">arg1&gt;=0x61 &amp;&amp; arg1&lt;=0x7A</returnValue>
  128     <noreturn>false</noreturn>
  129     <leak-ignore/>
  130     <arg nr="1" direction="in">
  131       <not-uninit/>
  132       <valid>0:255</valid>
  133     </arg>
  134     <arg nr="2" direction="in">
  135       <not-uninit/>
  136     </arg>
  137   </function>
  138   <!-- int isprint_l(int c, locale_t locale); -->
  139   <function name="isprint_l">
  140     <use-retval/>
  141     <pure/>
  142     <returnValue type="int">arg1&gt;=0x20 &amp;&amp; arg1&lt;=0x7E</returnValue>
  143     <noreturn>false</noreturn>
  144     <leak-ignore/>
  145     <arg nr="1" direction="in">
  146       <not-uninit/>
  147       <valid>0:255</valid>
  148     </arg>
  149     <arg nr="2" direction="in">
  150       <not-uninit/>
  151     </arg>
  152   </function>
  153   <!-- int ispunct_l(int c, locale_t locale); -->
  154   <function name="ispunct_l">
  155     <use-retval/>
  156     <pure/>
  157     <returnValue type="int">arg1&gt;=0x21 &amp;&amp; arg1&lt;=0x2F || arg1&gt;=0x3A &amp;&amp; arg1&lt;=0x40 || arg1&gt;=0x5B &amp;&amp; arg1&lt;=0x60 || arg1&gt;=0x7B &amp;&amp; arg1&lt;=0x7E</returnValue>
  158     <noreturn>false</noreturn>
  159     <leak-ignore/>
  160     <arg nr="1" direction="in">
  161       <not-uninit/>
  162       <valid>0:255</valid>
  163     </arg>
  164     <arg nr="2" direction="in">
  165       <not-uninit/>
  166     </arg>
  167   </function>
  168   <!-- int isspace_l(int c, locale_t locale); -->
  169   <function name="isspace_l">
  170     <use-retval/>
  171     <pure/>
  172     <returnValue type="int">arg1&gt;=0x09 &amp;&amp; arg1&lt;=0x0D || arg1==0x20</returnValue>
  173     <noreturn>false</noreturn>
  174     <leak-ignore/>
  175     <arg nr="1" direction="in">
  176       <not-uninit/>
  177       <valid>0:255</valid>
  178     </arg>
  179     <arg nr="2" direction="in">
  180       <not-uninit/>
  181     </arg>
  182   </function>
  183   <!-- int isascii(int c); -->
  184   <function name="isascii">
  185     <use-retval/>
  186     <pure/>
  187     <returnValue type="int">arg1&gt;=0 &amp;&amp; arg1&lt;=0x7F</returnValue>
  188     <noreturn>false</noreturn>
  189     <leak-ignore/>
  190     <arg nr="1" direction="in">
  191       <not-uninit/>
  192       <valid>0:255</valid>
  193     </arg>
  194   </function>
  195   <!-- int isupper_l(int c, locale_t locale) -->
  196   <function name="isupper_l">
  197     <use-retval/>
  198     <pure/>
  199     <returnValue type="int">arg1&gt;=0x41 &amp;&amp; arg1&lt;=0x5A</returnValue>
  200     <noreturn>false</noreturn>
  201     <leak-ignore/>
  202     <arg nr="1" direction="in">
  203       <not-uninit/>
  204       <valid>0:255</valid>
  205     </arg>
  206     <arg nr="2" direction="in">
  207       <not-uninit/>
  208     </arg>
  209   </function>
  210   <!-- int isxdigit_l(int c, locale_t locale) -->
  211   <function name="isxdigit_l">
  212     <use-retval/>
  213     <pure/>
  214     <returnValue type="int">arg1&gt;=0x30 &amp;&amp; arg1&lt;=0x39 || arg1&gt;=0x41 &amp;&amp; arg1&lt;=0x46 || arg1&gt;=0x61 &amp;&amp; arg1&lt;=0x66</returnValue>
  215     <noreturn>false</noreturn>
  216     <leak-ignore/>
  217     <arg nr="1" direction="in">
  218       <not-uninit/>
  219       <valid>0:255</valid>
  220     </arg>
  221     <arg nr="2" direction="in">
  222       <not-uninit/>
  223     </arg>
  224   </function>
  225   <!-- http://man7.org/linux/man-pages/man2/accept.2.html -->
  226   <!-- int accept(int sockfd, struct sockaddr *addr, socklen_t *addrlen); -->
  227   <function name="accept">
  228     <noreturn>false</noreturn>
  229     <leak-ignore/>
  230     <returnValue type="int"/>
  231     <arg nr="1" direction="in">
  232       <not-uninit/>
  233       <valid>0:</valid>
  234     </arg>
  235     <arg nr="2" direction="out">
  236       <not-uninit/>
  237     </arg>
  238     <arg nr="3" direction="inout">
  239       <not-uninit/>
  240       <not-bool/>
  241     </arg>
  242   </function>
  243   <!-- http://pubs.opengroup.org/onlinepubs/9699919799/functions/access.html -->
  244   <!-- int access(const char *pathname, int amode); -->
  245   <function name="access">
  246     <use-retval/>
  247     <returnValue type="int"/>
  248     <noreturn>false</noreturn>
  249     <leak-ignore/>
  250     <arg nr="1" direction="in">
  251       <not-uninit/>
  252       <not-null/>
  253     </arg>
  254     <arg nr="2" direction="in">
  255       <not-uninit/>
  256       <not-bool/>
  257     </arg>
  258   </function>
  259   <!-- http://man7.org/linux/man-pages/man3/adjtime.3.html -->
  260   <!-- int adjtime(const struct timeval *delta, struct timeval *olddelta); -->
  261   <function name="adjtime">
  262     <noreturn>false</noreturn>
  263     <leak-ignore/>
  264     <returnValue type="int"/>
  265     <arg nr="1" direction="in">
  266       <not-uninit/>
  267     </arg>
  268     <arg nr="2" direction="out">
  269       <not-bool/>
  270     </arg>
  271   </function>
  272   <resource>
  273     <alloc>dlopen</alloc>
  274     <dealloc>dlclose</dealloc>
  275   </resource>
  276   <!-- int bind(int socket, const struct sockaddr *address, socklen_t address_len); -->
  277   <function name="bind">
  278     <noreturn>false</noreturn>
  279     <returnValue type="int"/>
  280     <leak-ignore/>
  281     <arg nr="1" direction="in">
  282       <not-bool/>
  283       <not-uninit/>
  284       <valid>0:</valid>
  285     </arg>
  286     <arg nr="2" direction="in">
  287       <not-null/>
  288       <minsize type="argvalue" arg="3"/>
  289     </arg>
  290     <arg nr="3" direction="in">
  291       <not-uninit/>
  292       <not-bool/>
  293       <valid>0:</valid>
  294     </arg>
  295   </function>
  296   <!-- int listen(int sockfd, int backlog); -->
  297   <function name="listen">
  298     <noreturn>false</noreturn>
  299     <returnValue type="int"/>
  300     <leak-ignore/>
  301     <arg nr="1" direction="in">
  302       <not-bool/>
  303       <not-uninit/>
  304       <valid>0:</valid>
  305     </arg>
  306     <arg nr="2" direction="in">
  307       <not-bool/>
  308       <not-uninit/>
  309     </arg>
  310   </function>
  311   <!-- int getpeername(int sockfd, struct sockaddr *addr, socklen_t *addrlen); -->
  312   <!-- int getsockname(int sockfd, struct sockaddr *addr, socklen_t *addrlen); -->
  313   <function name="getpeername,getsockname">
  314     <noreturn>false</noreturn>
  315     <returnValue type="int"/>
  316     <leak-ignore/>
  317     <arg nr="1" direction="in">
  318       <not-uninit/>
  319       <not-bool/>
  320       <valid>0:</valid>
  321     </arg>
  322     <arg nr="2" direction="out">
  323       <not-null/>
  324     </arg>
  325     <arg nr="3" direction="in">
  326       <not-null/>
  327       <not-uninit/>
  328     </arg>
  329   </function>
  330   <!-- int connect(int socket, const struct sockaddr *address, socklen_t address_len); -->
  331   <function name="connect">
  332     <noreturn>false</noreturn>
  333     <returnValue type="int"/>
  334     <arg nr="1" direction="in">
  335       <not-uninit/>
  336       <not-bool/>
  337       <valid>0:</valid>
  338     </arg>
  339     <arg nr="2" direction="in">
  340       <not-null/>
  341       <not-uninit/>
  342     </arg>
  343     <arg nr="3" direction="in">
  344       <not-uninit/>
  345     </arg>
  346   </function>
  347   <!-- see http://pubs.opengroup.org/onlinepubs/9699919799/functions/dlopen.html -->
  348   <!-- void *dlopen(const char *file, int mode); -->
  349   <function name="dlopen">
  350     <noreturn>false</noreturn>
  351     <leak-ignore/>
  352     <returnValue type="void*"/>
  353     <arg nr="1" direction="in">
  354       <not-uninit/>
  355     </arg>
  356     <arg nr="2" direction="in">
  357       <not-uninit/>
  358       <not-bool/>
  359     </arg>
  360   </function>
  361   <!-- see http://pubs.opengroup.org/onlinepubs/9699919799/functions/dlsym.html -->
  362   <!-- void *dlsym(void *restrict handle, const char *restrict name); -->
  363   <function name="dlsym">
  364     <noreturn>false</noreturn>
  365     <leak-ignore/>
  366     <use-retval/>
  367     <returnValue type="void*"/>
  368     <arg nr="1">
  369       <not-uninit/>
  370     </arg>
  371     <arg nr="2" direction="in">
  372       <not-uninit/>
  373     </arg>
  374   </function>
  375   <!-- see http://pubs.opengroup.org/onlinepubs/9699919799/functions/dlclose.html -->
  376   <!-- int dlclose(void *handle); -->
  377   <function name="dlclose">
  378     <noreturn>false</noreturn>
  379     <leak-ignore/>
  380     <returnValue type="int"/>
  381     <arg nr="1">
  382       <not-uninit/>
  383     </arg>
  384   </function>
  385   <!-- int dup(int fildes);
  386      see http://pubs.opengroup.org/onlinepubs/9699919799/functions/dup.html -->
  387   <function name="dup">
  388     <noreturn>false</noreturn>
  389     <returnValue type="int"/>
  390     <use-retval/>
  391     <arg nr="1" direction="in">
  392       <not-bool/>
  393       <not-uninit/>
  394       <valid>0:</valid>
  395     </arg>
  396   </function>
  397   <!-- int dup2(int fildes1, int filedes2);
  398      see http://pubs.opengroup.org/onlinepubs/9699919799/functions/dup.html -->
  399   <function name="dup2">
  400     <noreturn>false</noreturn>
  401     <returnValue type="int"/>
  402     <arg nr="1" direction="in">
  403       <not-bool/>
  404       <not-uninit/>
  405       <valid>0:</valid>
  406     </arg>
  407     <arg nr="2" direction="in">
  408       <not-bool/>
  409       <not-uninit/>
  410       <valid>0:</valid>
  411     </arg>
  412   </function>
  413   <!-- int gettimeofday(struct timeval *tv, struct timezone *tz); -->
  414   <function name="gettimeofday">
  415     <noreturn>false</noreturn>
  416     <returnValue type="int"/>
  417     <leak-ignore/>
  418     <arg nr="1" direction="out"/>
  419     <arg nr="2" direction="out">
  420       <not-bool/>
  421     </arg>
  422   </function>
  423   <!-- int settimeofday(const struct timeval *tv, const struct timezone *tz); -->
  424   <function name="settimeofday">
  425     <noreturn>false</noreturn>
  426     <returnValue type="int"/>
  427     <leak-ignore/>
  428     <arg nr="1" direction="in">
  429       <not-uninit/>
  430     </arg>
  431     <arg nr="2" direction="in">
  432       <not-uninit/>
  433       <not-bool/>
  434     </arg>
  435   </function>
  436   <!-- void FD_CLR(int fd, fd_set *set); -->
  437   <function name="FD_CLR">
  438     <noreturn>false</noreturn>
  439     <returnValue type="void"/>
  440     <leak-ignore/>
  441     <arg nr="1" direction="in">
  442       <not-uninit/>
  443       <valid>0:</valid>
  444     </arg>
  445     <arg nr="2" direction="inout">
  446       <not-null/>
  447     </arg>
  448   </function>
  449   <!-- int FD_ISSET(int fd, fd_set *set); -->
  450   <function name="FD_ISSET">
  451     <noreturn>false</noreturn>
  452     <leak-ignore/>
  453     <returnValue type="int"/>
  454     <arg nr="1" direction="in">
  455       <not-uninit/>
  456       <valid>0:</valid>
  457     </arg>
  458     <arg nr="2" direction="in">
  459       <not-null/>
  460       <not-bool/>
  461     </arg>
  462   </function>
  463   <!-- void FD_SET(int fd, fd_set *set); -->
  464   <function name="FD_SET">
  465     <noreturn>false</noreturn>
  466     <returnValue type="void"/>
  467     <leak-ignore/>
  468     <arg nr="1" direction="in">
  469       <not-uninit/>
  470       <valid>0:</valid>
  471     </arg>
  472     <arg nr="2" direction="inout">
  473       <not-null/>
  474     </arg>
  475   </function>
  476   <!-- void FD_ZERO(fd_set *set);-->
  477   <function name="FD_ZERO">
  478     <noreturn>false</noreturn>
  479     <leak-ignore/>
  480     <returnValue type="void"/>
  481     <arg nr="1" direction="out">
  482       <not-null/>
  483     </arg>
  484   </function>
  485   <!-- http://pubs.opengroup.org/onlinepubs/009695399/functions/fdatasync.html -->
  486   <!-- int fdatasync(int fildes); -->
  487   <function name="fdatasync">
  488     <noreturn>false</noreturn>
  489     <leak-ignore/>
  490     <returnValue type="int"/>
  491     <arg nr="1" direction="in">
  492       <not-uninit/>
  493       <not-bool/>
  494       <valid>0:</valid>
  495     </arg>
  496   </function>
  497   <!-- http://pubs.opengroup.org/onlinepubs/9699919799/functions/fnmatch.html -->
  498   <!-- int fnmatch(const char *pattern, const char *string, int flags); -->
  499   <function name="fnmatch">
  500     <pure/>
  501     <use-retval/>
  502     <returnValue type="int"/>
  503     <noreturn>false</noreturn>
  504     <leak-ignore/>
  505     <arg nr="1" direction="in">
  506       <not-uninit/>
  507       <not-null/>
  508     </arg>
  509     <arg nr="2" direction="in">
  510       <not-uninit/>
  511       <not-null/>
  512     </arg>
  513     <arg nr="3" direction="in">
  514       <not-uninit/>
  515       <not-bool/>
  516     </arg>
  517   </function>
  518   <!-- http://pubs.opengroup.org/onlinepubs/009695399/functions/fsync.html -->
  519   <!-- int fsync(int fildes); -->
  520   <function name="fsync">
  521     <noreturn>false</noreturn>
  522     <leak-ignore/>
  523     <returnValue type="int"/>
  524     <arg nr="1" direction="in">
  525       <not-uninit/>
  526       <not-bool/>
  527       <valid>0:</valid>
  528     </arg>
  529   </function>
  530   <!-- http://pubs.opengroup.org/onlinepubs/9699919799/functions/truncate.html -->
  531   <!-- int truncate(const char *path, off_t length); -->
  532   <function name="truncate">
  533     <noreturn>false</noreturn>
  534     <leak-ignore/>
  535     <returnValue type="int"/>
  536     <arg nr="1" direction="in">
  537       <not-null/>
  538       <not-uninit/>
  539     </arg>
  540     <arg nr="2" direction="in">
  541       <not-uninit/>
  542       <not-bool/>
  543     </arg>
  544   </function>
  545   <!-- int ftruncate(int fd, off_t length); -->
  546   <function name="ftruncate">
  547     <noreturn>false</noreturn>
  548     <leak-ignore/>
  549     <returnValue type="int"/>
  550     <arg nr="1" direction="in">
  551       <not-uninit/>
  552     </arg>
  553     <arg nr="2" direction="in">
  554       <not-uninit/>
  555       <not-bool/>
  556     </arg>
  557   </function>
  558   <!-- int flock(int fd, int operation); -->
  559   <function name="flock">
  560     <noreturn>false</noreturn>
  561     <leak-ignore/>
  562     <returnValue type="int"/>
  563     <arg nr="1" direction="in">
  564       <not-uninit/>
  565       <valid>0:</valid>
  566     </arg>
  567     <arg nr="2" direction="in">
  568       <not-uninit/>
  569       <not-bool/>
  570     </arg>
  571   </function>
  572   <!-- int lockf(int fd, int cmd, off_t len); -->
  573   <function name="lockf">
  574     <noreturn>false</noreturn>
  575     <leak-ignore/>
  576     <returnValue type="int"/>
  577     <arg nr="1" direction="in">
  578       <not-uninit/>
  579       <valid>0:</valid>
  580     </arg>
  581     <arg nr="2" direction="in">
  582       <not-uninit/>
  583       <not-bool/>
  584     </arg>
  585     <arg nr="3" direction="in">
  586       <not-uninit/>
  587       <not-bool/>
  588     </arg>
  589   </function>
  590   <!-- void flockfile(FILE *filehandle); -->
  591   <!-- void funlockfile(FILE *filehandle); -->
  592   <function name="flockfile,funlockfile">
  593     <noreturn>false</noreturn>
  594     <returnValue type="void"/>
  595     <arg nr="1" direction="inout">
  596       <not-uninit/>
  597     </arg>
  598   </function>
  599   <!-- int ftrylockfile(FILE *filehandle); -->
  600   <function name="ftrylockfile">
  601     <noreturn>false</noreturn>
  602     <use-retval/>
  603     <returnValue type="int"/>
  604     <arg nr="1" direction="inout">
  605       <not-uninit/>
  606     </arg>
  607   </function>
  608   <!-- int symlinkat(const char *oldpath, int newdirfd, const char *newpath); -->
  609   <function name="symlinkat">
  610     <noreturn>false</noreturn>
  611     <leak-ignore/>
  612     <returnValue type="int"/>
  613     <arg nr="1" direction="in">
  614       <not-null/>
  615       <not-uninit/>
  616     </arg>
  617     <arg nr="2" direction="in">
  618       <not-null/>
  619       <not-uninit/>
  620       <not-bool/>
  621     </arg>
  622     <arg nr="3" direction="in">
  623       <not-null/>
  624       <not-uninit/>
  625     </arg>
  626   </function>
  627   <!-- int symlink(const char *oldpath, const char *newpath); -->
  628   <function name="symlink">
  629     <noreturn>false</noreturn>
  630     <leak-ignore/>
  631     <returnValue type="int"/>
  632     <arg nr="1" direction="in">
  633       <not-null/>
  634       <not-uninit/>
  635     </arg>
  636     <arg nr="2" direction="in">
  637       <not-null/>
  638       <not-uninit/>
  639       <not-bool/>
  640     </arg>
  641   </function>
  642   <!-- int open(const char *pathname, int flags) -->
  643   <!-- int open(const char *pathname, int flags, mode_t mode); -->
  644   <function name="open">
  645     <!-- TODO: add use-retval when cppcheck suppresses redundant messages
  646     because of violations to alloc/dealloc and use-retval configuration-->
  647     <returnValue type="int"/>
  648     <noreturn>false</noreturn>
  649     <arg nr="1" direction="in">
  650       <not-null/>
  651       <not-uninit/>
  652     </arg>
  653     <arg nr="2" direction="in">
  654       <not-uninit/>
  655       <not-bool/>
  656     </arg>
  657     <arg nr="3" default="0" direction="in">
  658       <not-uninit/>
  659       <not-bool/>
  660     </arg>
  661   </function>
  662   <!-- int openat(int dirfd, const char *pathname, int flags); -->
  663   <!-- int openat(int dirfd, const char *pathname, int flags, mode_t mode);  -->
  664   <function name="openat">
  665     <!-- TODO: add use-retval when cppcheck suppresses redundant messages
  666     because of violations to alloc/dealloc and use-retval configuration-->
  667     <returnValue type="int"/>
  668     <noreturn>false</noreturn>
  669     <arg nr="1" direction="in">
  670       <not-uninit/>
  671     </arg>
  672     <arg nr="2" direction="in">
  673       <not-null/>
  674       <not-uninit/>
  675     </arg>
  676     <arg nr="3" direction="in">
  677       <not-uninit/>
  678       <not-bool/>
  679     </arg>
  680     <arg nr="4" default="0" direction="in">
  681       <not-uninit/>
  682       <not-bool/>
  683     </arg>
  684   </function>
  685   <!-- int creat(const char *pathname, mode_t mode); -->
  686   <function name="creat">
  687     <use-retval/>
  688     <returnValue type="int"/>
  689     <noreturn>false</noreturn>
  690     <arg nr="1" direction="in">
  691       <not-null/>
  692       <not-uninit/>
  693     </arg>
  694     <arg nr="2" direction="in">
  695       <not-uninit/>
  696       <not-bool/>
  697     </arg>
  698   </function>
  699   <!-- unsigned int sleep(unsigned int seconds); -->
  700   <function name="sleep">
  701     <noreturn>false</noreturn>
  702     <leak-ignore/>
  703     <returnValue type="unsigned int"/>
  704     <arg nr="1" direction="in">
  705       <not-uninit/>
  706       <not-bool/>
  707       <valid>0:</valid>
  708     </arg>
  709   </function>
  710   <!-- int usleep(useconds_t useconds); -->
  711   <function name="usleep">
  712     <noreturn>false</noreturn>
  713     <returnValue type="int"/>
  714     <leak-ignore/>
  715     <arg nr="1" direction="in">
  716       <not-bool/>
  717       <valid>0:999999</valid>
  718     </arg>
  719     <warn severity="style">Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead.
  720 The obsolescent function 'usleep' is called. POSIX.1-2001 declares usleep() function obsolescent and POSIX.1-2008 removes it. It is recommended that new applications use the 'nanosleep' or 'setitimer' function.</warn>
  721   </function>
  722   <!-- void _exit(int status); -->
  723   <function name="_exit">
  724     <noreturn>true</noreturn>
  725     <returnValue type="void"/>
  726     <arg nr="1" direction="in">
  727       <not-uninit/>
  728     </arg>
  729   </function>
  730   <!-- http://man7.org/linux/man-pages/man3/dirfd.3.html -->
  731   <!-- int dirfd(DIR *dirp); -->
  732   <function name="dirfd">
  733     <noreturn>false</noreturn>
  734     <leak-ignore/>
  735     <returnValue type="int"/>
  736     <arg nr="1" direction="in">
  737       <not-uninit/>
  738       <not-null/>
  739     </arg>
  740   </function>
  741   <!-- http://man7.org/linux/man-pages/man2/access.2.html -->
  742   <!-- int faccessat(int dirfd, const char *pathname, int mode, int flags); -->
  743   <function name="faccessat">
  744     <noreturn>false</noreturn>
  745     <leak-ignore/>
  746     <returnValue type="int"/>
  747     <arg nr="1" direction="in">
  748       <not-uninit/>
  749     </arg>
  750     <arg nr="2" direction="in">
  751       <not-null/>
  752       <not-uninit/>
  753     </arg>
  754     <arg nr="3" direction="in">
  755       <not-uninit/>
  756     </arg>
  757     <arg nr="4" direction="in">
  758       <not-uninit/>
  759       <not-bool/>
  760     </arg>
  761   </function>
  762   <!-- http://man7.org/linux/man-pages/man2/acct.2.html -->
  763   <!-- int acct(const char *filename); -->
  764   <function name="acct">
  765     <noreturn>false</noreturn>
  766     <leak-ignore/>
  767     <returnValue type="int"/>
  768     <arg nr="1" direction="in">
  769       <not-uninit/>
  770       <not-bool/>
  771     </arg>
  772   </function>
  773   <!-- http://man7.org/linux/man-pages/man2/alarm.2.html -->
  774   <!-- unsigned int alarm(unsigned int seconds); -->
  775   <function name="alarm">
  776     <noreturn>false</noreturn>
  777     <leak-ignore/>
  778     <returnValue type="unsigned int"/>
  779     <arg nr="1" direction="in">
  780       <not-uninit/>
  781       <not-bool/>
  782       <valid>0:</valid>
  783     </arg>
  784   </function>
  785   <!-- struct rpcent *getrpcent(void); -->
  786   <function name="getrpcent">
  787     <use-retval/>
  788     <returnValue type="struct rpcent *"/>
  789     <noreturn>false</noreturn>
  790     <leak-ignore/>
  791     <warn severity="portability">Non reentrant function 'getrpcent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getrpcent_r'.</warn>
  792   </function>
  793   <!-- struct rpcent *getrpcbyname(char *name); -->
  794   <function name="getrpcbyname">
  795     <use-retval/>
  796     <noreturn>false</noreturn>
  797     <leak-ignore/>
  798     <returnValue type="struct rpcent *"/>
  799     <arg nr="1" direction="in">
  800       <not-null/>
  801       <not-uninit/>
  802       <not-bool/>
  803     </arg>
  804     <warn severity="portability">Non reentrant function 'getrpcbyname' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getrpcbyname_r'.</warn>
  805   </function>
  806   <!-- struct rpcent *getrpcbynumber(int number); -->
  807   <function name="getrpcbynumber">
  808     <use-retval/>
  809     <noreturn>false</noreturn>
  810     <leak-ignore/>
  811     <returnValue type="struct rpcent *"/>
  812     <arg nr="1" direction="in">
  813       <not-uninit/>
  814       <not-bool/>
  815     </arg>
  816     <warn severity="portability">Non reentrant function 'getrpcbynumber' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getrpcbynumber_r'.</warn>
  817   </function>
  818   <!-- struct protoent *getprotoent(void); -->
  819   <function name="getprotoent">
  820     <use-retval/>
  821     <noreturn>false</noreturn>
  822     <leak-ignore/>
  823     <returnValue type="struct protoent *"/>
  824     <warn severity="portability">Non reentrant function 'getprotoent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getprotoent_r'.</warn>
  825   </function>
  826   <!-- struct protoent *getprotobyname(const char *name); -->
  827   <function name="getprotobyname">
  828     <use-retval/>
  829     <noreturn>false</noreturn>
  830     <leak-ignore/>
  831     <returnValue type="struct protoent *"/>
  832     <arg nr="1" direction="in">
  833       <not-null/>
  834       <not-uninit/>
  835       <not-bool/>
  836     </arg>
  837     <warn severity="portability">Non reentrant function 'getprotobyname' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getprotobyname_r'.</warn>
  838   </function>
  839   <!-- struct protoent *getprotobynumber(int proto); -->
  840   <function name="getprotobynumber">
  841     <use-retval/>
  842     <noreturn>false</noreturn>
  843     <leak-ignore/>
  844     <returnValue type="struct protoent *"/>
  845     <arg nr="1" direction="in">
  846       <not-uninit/>
  847       <not-bool/>
  848     </arg>
  849     <warn severity="portability">Non reentrant function 'getprotobynumber' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getprotobynumber_r'.</warn>
  850   </function>
  851   <!-- struct servent *getservent(void); -->
  852   <function name="getservent">
  853     <use-retval/>
  854     <noreturn>false</noreturn>
  855     <leak-ignore/>
  856     <returnValue type="struct servent *"/>
  857     <warn severity="portability">Non reentrant function 'getservent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getservent_r'.</warn>
  858   </function>
  859   <!-- struct servent *getservbyname(const char *name, const char *proto); -->
  860   <function name="getservbyname">
  861     <use-retval/>
  862     <noreturn>false</noreturn>
  863     <leak-ignore/>
  864     <returnValue type="struct servent *"/>
  865     <arg nr="1" direction="in">
  866       <not-null/>
  867       <not-uninit/>
  868     </arg>
  869     <arg nr="2" direction="in">
  870       <not-uninit/>
  871       <not-bool/>
  872     </arg>
  873     <warn severity="portability">Non reentrant function 'getservbyname' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getservbyname_r'.</warn>
  874   </function>
  875   <!-- struct servent *getservbyport(int port, const char *proto); -->
  876   <function name="getservbyport">
  877     <use-retval/>
  878     <noreturn>false</noreturn>
  879     <leak-ignore/>
  880     <returnValue type="struct servent *"/>
  881     <arg nr="1" direction="in">
  882       <not-uninit/>
  883     </arg>
  884     <arg nr="2" direction="in">
  885       <not-uninit/>
  886       <not-bool/>
  887     </arg>
  888     <warn severity="portability">Non reentrant function 'getservbyport' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getservbyport_r'.</warn>
  889   </function>
  890   <!-- struct netent  *getnetent(void); -->
  891   <function name="getnetent">
  892     <use-retval/>
  893     <noreturn>false</noreturn>
  894     <leak-ignore/>
  895     <returnValue type="struct netent *"/>
  896     <warn severity="portability">Non reentrant function 'getnetent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getnetent_r'.</warn>
  897   </function>
  898   <!-- struct netent *getnetbyname(const char *name); -->
  899   <function name="getnetbyname">
  900     <use-retval/>
  901     <noreturn>false</noreturn>
  902     <leak-ignore/>
  903     <returnValue type="struct netent *"/>
  904     <arg nr="1" direction="in">
  905       <not-null/>
  906       <not-uninit/>
  907       <not-bool/>
  908     </arg>
  909     <warn severity="portability">Non reentrant function 'getnetbyname' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getnetbyname_r'.</warn>
  910   </function>
  911   <!-- struct netent *getnetbyaddr(uint32_t net, int type); -->
  912   <function name="getnetbyaddr">
  913     <use-retval/>
  914     <noreturn>false</noreturn>
  915     <leak-ignore/>
  916     <returnValue type="struct netent *"/>
  917     <arg nr="1" direction="in">
  918       <not-uninit/>
  919     </arg>
  920     <arg nr="2" direction="in">
  921       <not-uninit/>
  922       <not-bool/>
  923     </arg>
  924     <warn severity="portability">Non reentrant function 'getnetbyaddr' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getnetbyaddr_r'.</warn>
  925   </function>
  926   <!-- struct hostent *gethostent(void); -->
  927   <function name="gethostent">
  928     <use-retval/>
  929     <noreturn>false</noreturn>
  930     <leak-ignore/>
  931     <returnValue type="struct hostent *"/>
  932     <warn severity="portability">Non reentrant function 'gethostent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gethostent_r'.</warn>
  933   </function>
  934   <!-- struct hostent *gethostbyname(const char *name); -->
  935   <function name="gethostbyname">
  936     <use-retval/>
  937     <noreturn>false</noreturn>
  938     <leak-ignore/>
  939     <returnValue type="struct hostent *"/>
  940     <arg nr="1" direction="in">
  941       <not-null/>
  942       <not-uninit/>
  943       <not-bool/>
  944     </arg>
  945     <warn severity="style" reason="Obsolescent" alternatives="getaddrinfo"/>
  946   </function>
  947   <!-- struct hostent *gethostbyname2(const char *name, int af); -->
  948   <function name="gethostbyname2">
  949     <use-retval/>
  950     <noreturn>false</noreturn>
  951     <leak-ignore/>
  952     <returnValue type="struct hostent *"/>
  953     <arg nr="1" direction="in">
  954       <not-null/>
  955       <not-uninit/>
  956     </arg>
  957     <arg nr="2" direction="in">
  958       <not-uninit/>
  959       <not-bool/>
  960     </arg>
  961     <warn severity="portability">Non reentrant function 'gethostbyname2' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gethostbyname2_r'.</warn>
  962   </function>
  963   <!-- struct hostent *gethostbyaddr(const void *addr, socklen_t len, int type); -->
  964   <function name="gethostbyaddr">
  965     <use-retval/>
  966     <noreturn>false</noreturn>
  967     <leak-ignore/>
  968     <returnValue type="struct hostent *"/>
  969     <arg nr="1" direction="in">
  970       <not-null/>
  971       <not-uninit/>
  972     </arg>
  973     <arg nr="2" direction="in">
  974       <not-uninit/>
  975     </arg>
  976     <arg nr="3" direction="in">
  977       <not-uninit/>
  978       <not-bool/>
  979     </arg>
  980     <warn severity="style" reason="Obsolescent" alternatives="getnameinfo"/>
  981   </function>
  982   <!-- int brk(void *addr); -->
  983   <function name="brk">
  984     <noreturn>false</noreturn>
  985     <leak-ignore/>
  986     <returnValue type="int"/>
  987     <arg nr="1">
  988       <not-null/>
  989       <not-bool/>
  990     </arg>
  991   </function>
  992   <!-- void *sbrk(intptr_t incr);-->
  993   <function name="sbrk">
  994     <noreturn>false</noreturn>
  995     <leak-ignore/>
  996     <returnValue type="void *"/>
  997     <arg nr="1">
  998       <not-uninit/>
  999     </arg>
 1000   </function>
 1001   <!-- int closedir(DIR *dir); -->
 1002   <function name="closedir">
 1003     <noreturn>false</noreturn>
 1004     <returnValue type="int"/>
 1005     <arg nr="1">
 1006       <not-null/>
 1007       <not-uninit/>
 1008       <not-bool/>
 1009     </arg>
 1010   </function>
 1011   <!-- char *strfry(char *string); -->
 1012   <function name="strfry">
 1013     <noreturn>false</noreturn>
 1014     <returnValue type="char *"/>
 1015     <arg nr="1">
 1016       <not-null/>
 1017       <not-bool/>
 1018     </arg>
 1019   </function>
 1020   <!-- char *strsep(char **stringp, const char *delim); -->
 1021   <function name="strsep">
 1022     <noreturn>false</noreturn>
 1023     <leak-ignore/>
 1024     <returnValue type="char *"/>
 1025     <arg nr="1">
 1026       <not-uninit/>
 1027       <not-null/>
 1028     </arg>
 1029     <arg nr="2">
 1030       <not-null/>
 1031       <not-uninit/>
 1032       <not-bool/>
 1033     </arg>
 1034   </function>
 1035   <!-- char *strdup(const char *s); -->
 1036   <function name="strdup">
 1037     <noreturn>false</noreturn>
 1038     <returnValue type="char *"/>
 1039     <use-retval/>
 1040     <arg nr="1">
 1041       <not-null/>
 1042       <not-uninit/>
 1043       <not-bool/>
 1044     </arg>
 1045   </function>
 1046   <!-- char *strndup(const char *s, size_t n); -->
 1047   <function name="strndup">
 1048     <noreturn>false</noreturn>
 1049     <returnValue type="char *"/>
 1050     <use-retval/>
 1051     <arg nr="1">
 1052       <not-null/>
 1053       <not-uninit/>
 1054     </arg>
 1055     <arg nr="2">
 1056       <not-uninit/>
 1057       <not-bool/>
 1058       <valid>0:</valid>
 1059     </arg>
 1060   </function>
 1061   <!-- wchar_t *wcsdup(const wchar_t *s); -->
 1062   <function name="wcsdup">
 1063     <noreturn>false</noreturn>
 1064     <returnValue type="wchar_t *"/>
 1065     <use-retval/>
 1066     <arg nr="1">
 1067       <not-null/>
 1068       <not-uninit/>
 1069       <not-bool/>
 1070     </arg>
 1071   </function>
 1072   <!-- int mkstemp(char *template); -->
 1073   <function name="mkstemp">
 1074     <noreturn>false</noreturn>
 1075     <returnValue type="int"/>
 1076     <arg nr="1">
 1077       <not-null/>
 1078       <not-uninit/>
 1079       <not-bool/>
 1080     </arg>
 1081   </function>
 1082   <!-- char *mkdtemp(char *template); -->
 1083   <function name="mkdtemp">
 1084     <noreturn>false</noreturn>
 1085     <leak-ignore/>
 1086     <returnValue type="char *"/>
 1087     <arg nr="1">
 1088       <not-null/>
 1089       <not-uninit/>
 1090       <not-bool/>
 1091     </arg>
 1092   </function>
 1093   <!-- char *mktemp(char *template); -->
 1094   <function name="mktemp">
 1095     <noreturn>false</noreturn>
 1096     <returnValue type="char *"/>
 1097     <leak-ignore/>
 1098     <use-retval/>
 1099     <arg nr="1">
 1100       <not-null/>
 1101       <not-uninit/>
 1102       <not-bool/>
 1103     </arg>
 1104     <warn severity="warning">Obsolete function 'mktemp' called. It is recommended to use 'mkstemp' or 'mkdtemp' instead.
 1105 The function 'mktemp' is considered to be dangerous due to race conditions and some implementations generating only up to 26 different filenames out of each template. This function has been removed in POSIX.1-2008. Use 'mkstemp' or 'mkdtemp' instead.</warn>
 1106   </function>
 1107   <!-- char *getcwd(char *buf, size_t size); -->
 1108   <function name="getcwd">
 1109     <noreturn>false</noreturn>
 1110     <returnValue type="char *"/>
 1111     <leak-ignore/>
 1112     <arg nr="1">
 1113       <not-uninit/>
 1114     </arg>
 1115     <arg nr="2" direction="in">
 1116       <not-uninit/>
 1117       <not-bool/>
 1118       <valid>0:</valid>
 1119     </arg>
 1120   </function>
 1121   <!-- int mkdir(const char *pathname, mode_t mode); -->
 1122   <function name="mkdir">
 1123     <noreturn>false</noreturn>
 1124     <returnValue type="int"/>
 1125     <leak-ignore/>
 1126     <arg nr="1" direction="in">
 1127       <not-null/>
 1128       <not-uninit/>
 1129     </arg>
 1130     <arg nr="2" direction="in">
 1131       <not-uninit/>
 1132       <not-bool/>
 1133     </arg>
 1134   </function>
 1135   <!-- int mknod(const char *pathname, mode_t mode, dev_t dev); -->
 1136   <function name="mknod">
 1137     <noreturn>false</noreturn>
 1138     <returnValue type="int"/>
 1139     <leak-ignore/>
 1140     <arg nr="1" direction="in">
 1141       <not-null/>
 1142       <not-uninit/>
 1143     </arg>
 1144     <arg nr="2" direction="in">
 1145       <not-uninit/>
 1146     </arg>
 1147     <arg nr="3" direction="in">
 1148       <not-uninit/>
 1149     </arg>
 1150   </function>
 1151   <!-- int mknodat(int dirfd, const char *pathname, mode_t mode, dev_t dev); -->
 1152   <function name="mknodat">
 1153     <noreturn>false</noreturn>
 1154     <returnValue type="int"/>
 1155     <leak-ignore/>
 1156     <arg nr="1" direction="in">
 1157       <not-uninit/>
 1158     </arg>
 1159     <arg nr="2" direction="in">
 1160       <not-null/>
 1161       <not-uninit/>
 1162     </arg>
 1163     <arg nr="3" direction="in">
 1164       <not-uninit/>
 1165     </arg>
 1166     <arg nr="4" direction="in">
 1167       <not-uninit/>
 1168     </arg>
 1169   </function>
 1170   <!-- int mkdirat(int dirfd, const char *pathname, mode_t mode); -->
 1171   <function name="mkdirat">
 1172     <noreturn>false</noreturn>
 1173     <returnValue type="int"/>
 1174     <leak-ignore/>
 1175     <arg nr="1" direction="in">
 1176       <not-uninit/>
 1177     </arg>
 1178     <arg nr="2" direction="in">
 1179       <not-null/>
 1180       <not-uninit/>
 1181     </arg>
 1182     <arg nr="3" direction="in">
 1183       <not-uninit/>
 1184       <not-bool/>
 1185     </arg>
 1186   </function>
 1187   <!-- int fchmodat(int dirfd, const char *pathname, mode_t mode, int flags); -->
 1188   <function name="fchmodat">
 1189     <noreturn>false</noreturn>
 1190     <returnValue type="int"/>
 1191     <leak-ignore/>
 1192     <arg nr="1" direction="in">
 1193       <not-uninit/>
 1194     </arg>
 1195     <arg nr="2" direction="in">
 1196       <not-null/>
 1197       <not-uninit/>
 1198     </arg>
 1199     <arg nr="3" direction="in">
 1200       <not-uninit/>
 1201       <not-bool/>
 1202     </arg>
 1203     <arg nr="4" direction="in">
 1204       <not-uninit/>
 1205       <not-bool/>
 1206     </arg>
 1207   </function>
 1208   <!-- int fchownat(int dirfd, const char *pathname, uid_t owner, gid_t group, int flags); -->
 1209   <function name="fchownat">
 1210     <noreturn>false</noreturn>
 1211     <returnValue type="int"/>
 1212     <leak-ignore/>
 1213     <arg nr="1" direction="in">
 1214       <not-uninit/>
 1215     </arg>
 1216     <arg nr="2" direction="in">
 1217       <not-null/>
 1218       <not-uninit/>
 1219     </arg>
 1220     <arg nr="3" direction="in">
 1221       <not-uninit/>
 1222       <not-bool/>
 1223     </arg>
 1224     <arg nr="4" direction="in">
 1225       <not-uninit/>
 1226       <not-bool/>
 1227     </arg>
 1228     <arg nr="5" direction="in">
 1229       <not-uninit/>
 1230       <not-bool/>
 1231     </arg>
 1232   </function>
 1233   <!-- int rmdir(const char *pathname); -->
 1234   <function name="rmdir">
 1235     <noreturn>false</noreturn>
 1236     <leak-ignore/>
 1237     <returnValue type="int"/>
 1238     <arg nr="1" direction="in">
 1239       <not-null/>
 1240       <not-uninit/>
 1241       <not-bool/>
 1242     </arg>
 1243   </function>
 1244   <!-- int chdir(const char *path); -->
 1245   <function name="chdir">
 1246     <noreturn>false</noreturn>
 1247     <leak-ignore/>
 1248     <returnValue type="int"/>
 1249     <arg nr="1" direction="in">
 1250       <not-null/>
 1251       <not-uninit/>
 1252       <not-bool/>
 1253     </arg>
 1254   </function>
 1255   <!-- int chroot(const char *path); -->
 1256   <function name="chroot">
 1257     <noreturn>false</noreturn>
 1258     <leak-ignore/>
 1259     <returnValue type="int"/>
 1260     <arg nr="1" direction="in">
 1261       <not-null/>
 1262       <not-uninit/>
 1263       <not-bool/>
 1264     </arg>
 1265   </function>
 1266   <!-- int link(const char *oldpath, const char *newpath); -->
 1267   <function name="link">
 1268     <noreturn>false</noreturn>
 1269     <leak-ignore/>
 1270     <returnValue type="int"/>
 1271     <arg nr="1" direction="in">
 1272       <not-null/>
 1273       <not-uninit/>
 1274     </arg>
 1275     <arg nr="2" direction="in">
 1276       <not-null/>
 1277       <not-uninit/>
 1278       <not-bool/>
 1279     </arg>
 1280   </function>
 1281   <!-- int linkat(int fd1, const char *path1, int fd2, const char *path2, int flag); -->
 1282   <function name="linkat">
 1283     <noreturn>false</noreturn>
 1284     <leak-ignore/>
 1285     <returnValue type="int"/>
 1286     <arg nr="1" direction="in">
 1287       <not-uninit/>
 1288     </arg>
 1289     <arg nr="2" direction="in">
 1290       <not-null/>
 1291       <not-uninit/>
 1292       <not-bool/>
 1293     </arg>
 1294     <arg nr="3" direction="in">
 1295       <not-uninit/>
 1296     </arg>
 1297     <arg nr="4" direction="in">
 1298       <not-null/>
 1299       <not-uninit/>
 1300       <not-bool/>
 1301     </arg>
 1302   </function>
 1303   <!-- int unlinkat(int fd, const char *path, int flag); -->
 1304   <function name="unlinkat">
 1305     <noreturn>false</noreturn>
 1306     <leak-ignore/>
 1307     <returnValue type="int"/>
 1308     <arg nr="1" direction="in">
 1309       <not-uninit/>
 1310     </arg>
 1311     <arg nr="2" direction="in">
 1312       <not-null/>
 1313       <not-uninit/>
 1314       <not-bool/>
 1315     </arg>
 1316     <arg nr="3" direction="in">
 1317       <not-uninit/>
 1318     </arg>
 1319   </function>
 1320   <!-- int unlink(const char *pathname); -->
 1321   <function name="unlink">
 1322     <noreturn>false</noreturn>
 1323     <leak-ignore/>
 1324     <returnValue type="int"/>
 1325     <arg nr="1" direction="in">
 1326       <not-null/>
 1327       <not-uninit/>
 1328       <not-bool/>
 1329     </arg>
 1330   </function>
 1331   <!-- int stat(const char *file_name, struct stat *buf); -->
 1332   <function name="stat">
 1333     <noreturn>false</noreturn>
 1334     <leak-ignore/>
 1335     <returnValue type="int"/>
 1336     <arg nr="1" direction="in">
 1337       <not-null/>
 1338       <not-uninit/>
 1339     </arg>
 1340     <arg nr="2" direction="out">
 1341       <not-null/>
 1342       <not-bool/>
 1343     </arg>
 1344   </function>
 1345   <!-- int lstat(const char *file_name, struct stat *buf); -->
 1346   <function name="lstat">
 1347     <noreturn>false</noreturn>
 1348     <leak-ignore/>
 1349     <returnValue type="int"/>
 1350     <arg nr="1" direction="in">
 1351       <not-null/>
 1352       <not-uninit/>
 1353     </arg>
 1354     <arg nr="2" direction="out">
 1355       <not-null/>
 1356       <not-bool/>
 1357     </arg>
 1358   </function>
 1359   <!-- int fstat(const char *file_name, struct stat *buf); -->
 1360   <function name="fstat">
 1361     <noreturn>false</noreturn>
 1362     <leak-ignore/>
 1363     <returnValue type="int"/>
 1364     <arg nr="1" direction="in">
 1365       <not-null/>
 1366       <not-uninit/>
 1367     </arg>
 1368     <arg nr="2" direction="out">
 1369       <not-null/>
 1370       <not-bool/>
 1371     </arg>
 1372   </function>
 1373   <!-- int fstatat(int dirfd, const char *pathname, struct stat *statbuf, int flags); -->
 1374   <!-- Note: fstatat64() is a large-file version of the fstatat() function as defined in POSIX 1003.1-2008 (ISO/IEC 9945-2009). -->
 1375   <!-- int fstatat64(int dirfd, const char *pathname, struct stat64  *statbuf, int flags); -->
 1376   <!-- int __fxstatat64(int dirfd, const char *pathname, struct stat64  *statbuf, int flags); -->
 1377   <function name="fstatat,fstatat64,__fxstatat64">
 1378     <noreturn>false</noreturn>
 1379     <leak-ignore/>
 1380     <returnValue type="int"/>
 1381     <arg nr="1" direction="in">
 1382       <not-uninit/>
 1383     </arg>
 1384     <arg nr="2" direction="in">
 1385       <not-null/>
 1386       <not-uninit/>
 1387     </arg>
 1388     <arg nr="3" direction="out">
 1389       <not-null/>
 1390       <not-bool/>
 1391     </arg>
 1392     <arg nr="4" direction="in">
 1393       <not-bool/>
 1394       <not-uninit/>
 1395     </arg>
 1396   </function>
 1397   <!-- int chmod(const char *path, mode_t mode); -->
 1398   <function name="chmod">
 1399     <noreturn>false</noreturn>
 1400     <leak-ignore/>
 1401     <returnValue type="int"/>
 1402     <arg nr="1" direction="in">
 1403       <not-null/>
 1404       <not-uninit/>
 1405     </arg>
 1406     <arg nr="2" direction="in">
 1407       <not-uninit/>
 1408       <not-bool/>
 1409     </arg>
 1410   </function>
 1411   <!-- mode_t umask(mode_t mask); -->
 1412   <function name="umask">
 1413     <noreturn>false</noreturn>
 1414     <leak-ignore/>
 1415     <returnValue type="mode_t"/>
 1416     <arg nr="1" direction="in">
 1417       <not-uninit/>
 1418     </arg>
 1419   </function>
 1420   <!-- int fchmod(int fildes, mode_t mode); -->
 1421   <function name="fchmod">
 1422     <noreturn>false</noreturn>
 1423     <leak-ignore/>
 1424     <returnValue type="int"/>
 1425     <arg nr="1" direction="in">
 1426       <not-uninit/>
 1427       <valid>0:</valid>
 1428     </arg>
 1429     <arg nr="2" direction="in">
 1430       <not-uninit/>
 1431       <not-bool/>
 1432     </arg>
 1433   </function>
 1434   <!-- int chown(const char *path, uid_t owner, gid_t group); -->
 1435   <function name="chown">
 1436     <noreturn>false</noreturn>
 1437     <leak-ignore/>
 1438     <returnValue type="int"/>
 1439     <arg nr="1" direction="in">
 1440       <not-null/>
 1441       <not-uninit/>
 1442     </arg>
 1443     <arg nr="2" direction="in">
 1444       <not-uninit/>
 1445     </arg>
 1446     <arg nr="3" direction="in">
 1447       <not-uninit/>
 1448       <not-bool/>
 1449     </arg>
 1450   </function>
 1451   <!-- int lchown(const char *path, uid_t owner, gid_t group); -->
 1452   <function name="lchown">
 1453     <noreturn>false</noreturn>
 1454     <leak-ignore/>
 1455     <returnValue type="int"/>
 1456     <arg nr="1" direction="in">
 1457       <not-null/>
 1458       <not-uninit/>
 1459     </arg>
 1460     <arg nr="2" direction="in">
 1461       <not-uninit/>
 1462     </arg>
 1463     <arg nr="3" direction="in">
 1464       <not-uninit/>
 1465       <not-bool/>
 1466     </arg>
 1467   </function>
 1468   <!-- int fchown(int fildes, uid_t owner, gid_t group); -->
 1469   <function name="fchown">
 1470     <noreturn>false</noreturn>
 1471     <leak-ignore/>
 1472     <returnValue type="int"/>
 1473     <arg nr="1" direction="in">
 1474       <not-uninit/>
 1475       <valid>0:</valid>
 1476     </arg>
 1477     <arg nr="2" direction="in">
 1478       <not-uninit/>
 1479     </arg>
 1480     <arg nr="3" direction="in">
 1481       <not-uninit/>
 1482       <not-bool/>
 1483     </arg>
 1484   </function>
 1485   <!-- clock_t times(struct tms *buffer); -->
 1486   <function name="times">
 1487     <noreturn>false</noreturn>
 1488     <returnValue type="clock_t"/>
 1489     <leak-ignore/>
 1490     <arg nr="1" direction="out">
 1491       <not-uninit/>
 1492       <not-bool/>
 1493     </arg>
 1494   </function>
 1495   <!-- int utime(const char *filename, struct utimbuf *buf); -->
 1496   <function name="utime">
 1497     <noreturn>false</noreturn>
 1498     <leak-ignore/>
 1499     <returnValue type="int"/>
 1500     <arg nr="1" direction="in">
 1501       <not-null/>
 1502       <not-uninit/>
 1503     </arg>
 1504     <arg nr="2" direction="in">
 1505       <not-uninit/>
 1506       <not-bool/>
 1507     </arg>
 1508     <warn severity="style" reason="Obsolescent" alternatives="utimensat"/>
 1509   </function>
 1510   <!-- int futimens(int fd, const struct timespec times[2]);-->
 1511   <function name="futimens">
 1512     <noreturn>false</noreturn>
 1513     <leak-ignore/>
 1514     <returnValue type="int"/>
 1515     <arg nr="1" direction="in">
 1516       <not-uninit/>
 1517       <valid>0:</valid>
 1518     </arg>
 1519     <arg nr="3" direction="in">
 1520       <not-uninit/>
 1521       <not-bool/>
 1522       <minsize type="value" value="2"/>
 1523     </arg>
 1524   </function>
 1525   <!-- int utimensat(int dirfd, const char *pathname, const struct timespec times[2], int flags);-->
 1526   <function name="utimensat">
 1527     <noreturn>false</noreturn>
 1528     <leak-ignore/>
 1529     <returnValue type="int"/>
 1530     <arg nr="1" direction="in">
 1531       <not-uninit/>
 1532     </arg>
 1533     <arg nr="2" direction="in">
 1534       <not-null/>
 1535       <not-uninit/>
 1536     </arg>
 1537     <arg nr="3" direction="in">
 1538       <not-uninit/>
 1539       <not-bool/>
 1540       <minsize type="value" value="2"/>
 1541     </arg>
 1542     <arg nr="4" direction="in">
 1543       <not-uninit/>
 1544       <not-bool/>
 1545     </arg>
 1546   </function>
 1547   <!-- int utimes(const char *filename, const struct timeval times[2]); -->
 1548   <function name="utimes">
 1549     <noreturn>false</noreturn>
 1550     <leak-ignore/>
 1551     <returnValue type="int"/>
 1552     <arg nr="1" direction="in">
 1553       <not-null/>
 1554       <not-uninit/>
 1555     </arg>
 1556     <arg nr="2" direction="in">
 1557       <not-uninit/>
 1558       <not-bool/>
 1559       <minsize type="value" value="2"/>
 1560     </arg>
 1561   </function>
 1562   <!-- DIR *opendir(const char *name); -->
 1563   <function name="opendir">
 1564     <noreturn>false</noreturn>
 1565     <returnValue type="DIR *"/>
 1566     <use-retval/>
 1567     <arg nr="1">
 1568       <not-null/>
 1569       <not-uninit/>
 1570       <not-bool/>
 1571     </arg>
 1572   </function>
 1573   <!-- DIR *fdopendir(int fd); -->
 1574   <function name="fdopendir">
 1575     <use-retval/>
 1576     <returnValue type="DIR *"/>
 1577     <noreturn>false</noreturn>
 1578     <arg nr="1">
 1579       <not-uninit/>
 1580       <valid>0:</valid>
 1581       <not-bool/>
 1582     </arg>
 1583   </function>
 1584   <!-- int isatty(int fildes); -->
 1585   <function name="isatty">
 1586     <use-retval/>
 1587     <returnValue type="int"/>
 1588     <noreturn>false</noreturn>
 1589     <leak-ignore/>
 1590     <arg nr="1">
 1591       <valid>0:</valid>
 1592       <not-uninit/>
 1593       <not-bool/>
 1594     </arg>
 1595   </function>
 1596   <!-- FILE *popen(const char *command, const char *type); -->
 1597   <function name="popen">
 1598     <use-retval/>
 1599     <returnValue type="FILE *"/>
 1600     <noreturn>false</noreturn>
 1601     <arg nr="1">
 1602       <not-null/>
 1603       <not-uninit/>
 1604     </arg>
 1605     <arg nr="2">
 1606       <not-null/>
 1607       <not-uninit/>
 1608       <not-bool/>
 1609     </arg>
 1610   </function>
 1611   <!-- int pclose(FILE *stream); -->
 1612   <function name="pclose">
 1613     <returnValue type="int"/>
 1614     <noreturn>false</noreturn>
 1615     <arg nr="1">
 1616       <not-null/>
 1617       <not-uninit/>
 1618       <not-bool/>
 1619     </arg>
 1620   </function>
 1621   <!-- int socket(int domain, int type, int protocol); -->
 1622   <function name="socket">
 1623     <noreturn>false</noreturn>
 1624     <returnValue type="int"/>
 1625     <arg nr="1">
 1626       <not-uninit/>
 1627     </arg>
 1628     <arg nr="2">
 1629       <not-uninit/>
 1630     </arg>
 1631     <arg nr="3">
 1632       <not-uninit/>
 1633       <not-bool/>
 1634     </arg>
 1635   </function>
 1636   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/setsockopt.html -->
 1637   <!-- int setsockopt(int socket, int level, int option_name,
 1638        const void *option_value, socklen_t option_len); -->
 1639   <function name="setsockopt">
 1640     <noreturn>false</noreturn>
 1641     <returnValue type="int"/>
 1642     <leak-ignore/>
 1643     <arg nr="1" direction="in">
 1644       <not-uninit/>
 1645     </arg>
 1646     <arg nr="2" direction="in">
 1647       <not-uninit/>
 1648     </arg>
 1649     <arg nr="3" direction="in">
 1650       <not-uninit/>
 1651     </arg>
 1652     <arg nr="4" direction="in">
 1653       <not-null/>
 1654       <minsize type="argvalue" arg="5"/>
 1655     </arg>
 1656     <arg nr="5" direction="in">
 1657       <not-uninit/>
 1658       <valid>0:</valid>
 1659     </arg>
 1660   </function>
 1661   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/getsockopt.html -->
 1662   <!-- int getsockopt(int socket, int level, int option_name,
 1663        void *restrict option_value, socklen_t *restrict option_len); -->
 1664   <function name="getsockopt">
 1665     <noreturn>false</noreturn>
 1666     <returnValue type="int"/>
 1667     <leak-ignore/>
 1668     <arg nr="1" direction="in">
 1669       <not-uninit/>
 1670     </arg>
 1671     <arg nr="2" direction="in">
 1672       <not-uninit/>
 1673     </arg>
 1674     <arg nr="3" direction="in">
 1675       <not-uninit/>
 1676     </arg>
 1677     <arg nr="4" direction="out">
 1678       <not-null/>
 1679     </arg>
 1680     <arg nr="5" direction="inout">
 1681       <not-null/>
 1682       <not-uninit/>
 1683     </arg>
 1684   </function>
 1685   <!-- int nice(int incr); -->
 1686   <function name="nice">
 1687     <noreturn>false</noreturn>
 1688     <returnValue type="int"/>
 1689     <leak-ignore/>
 1690     <arg nr="1">
 1691       <not-uninit/>
 1692       <not-bool/>
 1693     </arg>
 1694   </function>
 1695   <!-- int pause(void); -->
 1696   <function name="pause">
 1697     <noreturn>false</noreturn>
 1698     <returnValue type="int"/>
 1699     <leak-ignore/>
 1700   </function>
 1701   <!-- int close(int fildes); -->
 1702   <function name="close">
 1703     <noreturn>false</noreturn>
 1704     <returnValue type="int"/>
 1705     <arg nr="1" direction="in">
 1706       <not-uninit/>
 1707       <not-bool/>
 1708       <valid>0:</valid>
 1709     </arg>
 1710   </function>
 1711   <!-- size_t confstr(int, char *, size_t); -->
 1712   <function name="confstr">
 1713     <noreturn>false</noreturn>
 1714     <leak-ignore/>
 1715     <returnValue type="size_t"/>
 1716     <arg nr="1">
 1717       <not-uninit/>
 1718     </arg>
 1719     <arg nr="2">
 1720       <not-uninit/>
 1721     </arg>
 1722     <arg nr="3">
 1723       <not-uninit/>
 1724       <not-bool/>
 1725       <valid>0:</valid>
 1726     </arg>
 1727   </function>
 1728   <!-- long int fpathconf(int fildes, int name); -->
 1729   <function name="fpathconf">
 1730     <noreturn>false</noreturn>
 1731     <leak-ignore/>
 1732     <returnValue type="long int"/>
 1733     <arg nr="1" direction="in">
 1734       <not-uninit/>
 1735       <valid>0:</valid>
 1736     </arg>
 1737     <arg nr="2" direction="in">
 1738       <not-uninit/>
 1739       <not-bool/>
 1740     </arg>
 1741   </function>
 1742   <!-- long int pathconf(const char *path, int name); -->
 1743   <function name="pathconf">
 1744     <noreturn>false</noreturn>
 1745     <leak-ignore/>
 1746     <returnValue type="long int"/>
 1747     <arg nr="1">
 1748       <not-null/>
 1749       <not-uninit/>
 1750     </arg>
 1751     <arg nr="2" direction="in">
 1752       <not-uninit/>
 1753       <not-bool/>
 1754     </arg>
 1755   </function>
 1756   <!-- long int sysconf(int name); -->
 1757   <function name="sysconf">
 1758     <noreturn>false</noreturn>
 1759     <leak-ignore/>
 1760     <returnValue type="long int"/>
 1761     <arg nr="1" direction="in">
 1762       <not-uninit/>
 1763       <not-bool/>
 1764     </arg>
 1765   </function>
 1766   <!-- FILE *fdopen(int fd, const char *mode); -->
 1767   <function name="fdopen">
 1768     <use-retval/>
 1769     <returnValue type="FILE *"/>
 1770     <noreturn>false</noreturn>
 1771     <arg nr="1" direction="in">
 1772       <not-uninit/>
 1773       <valid>0:</valid>
 1774     </arg>
 1775     <arg nr="2">
 1776       <not-null/>
 1777       <not-uninit/>
 1778       <not-bool/>
 1779     </arg>
 1780   </function>
 1781   <!-- long int random(void); -->
 1782   <function name="random">
 1783     <use-retval/>
 1784     <returnValue type="long int"/>
 1785     <noreturn>false</noreturn>
 1786   </function>
 1787   <!-- void srandom(unsigned int seed); -->
 1788   <function name="srandom">
 1789     <noreturn>false</noreturn>
 1790     <returnValue type="void"/>
 1791     <!-- It is common practice to call srandom with an uninitialized 
 1792          variable. Therefore, no warning shall be generated in this 
 1793          very special case. -->
 1794     <arg nr="1"/>
 1795   </function>
 1796   <!-- void rewinddir(DIR *dir); -->
 1797   <function name="rewinddir">
 1798     <noreturn>false</noreturn>
 1799     <leak-ignore/>
 1800     <returnValue type="void"/>
 1801     <arg nr="1">
 1802       <not-null/>
 1803       <not-uninit/>
 1804     </arg>
 1805   </function>
 1806   <!-- void seekdir(DIR *dirp, long loc); -->
 1807   <function name="seekdir">
 1808     <noreturn>false</noreturn>
 1809     <leak-ignore/>
 1810     <returnValue type="void"/>
 1811     <arg nr="1">
 1812       <not-null/>
 1813       <not-uninit/>
 1814     </arg>
 1815     <arg nr="2">
 1816       <not-uninit/>
 1817     </arg>
 1818   </function>
 1819   <!-- int rand_r(unsigned int *seedp); -->
 1820   <function name="rand_r">
 1821     <noreturn>false</noreturn>
 1822     <leak-ignore/>
 1823     <returnValue type="int"/>
 1824     <arg nr="1">
 1825       <not-null/>
 1826       <not-bool/>
 1827     </arg>
 1828     <warn severity="style" reason="Obsolescent" alternatives="rand"/>
 1829   </function>
 1830   <!-- int strcasecmp(const char *s1, const char *s2); -->
 1831   <function name="strcasecmp">
 1832     <pure/>
 1833     <use-retval/>
 1834     <noreturn>false</noreturn>
 1835     <leak-ignore/>
 1836     <returnValue type="int"/>
 1837     <arg nr="1" direction="in">
 1838       <not-null/>
 1839       <not-uninit/>
 1840     </arg>
 1841     <arg nr="2" direction="in">
 1842       <not-null/>
 1843       <not-uninit/>
 1844       <not-bool/>
 1845     </arg>
 1846   </function>
 1847   <!-- int strncasecmp(const char *s1, const char *s2, size_t n); -->
 1848   <function name="strncasecmp">
 1849     <pure/>
 1850     <use-retval/>
 1851     <noreturn>false</noreturn>
 1852     <leak-ignore/>
 1853     <returnValue type="int"/>
 1854     <arg nr="1" direction="in">
 1855       <not-null/>
 1856       <not-uninit/>
 1857     </arg>
 1858     <arg nr="2" direction="in">
 1859       <not-null/>
 1860       <not-uninit/>
 1861     </arg>
 1862     <arg nr="3" direction="in">
 1863       <not-bool/>
 1864       <valid>0:</valid>
 1865     </arg>
 1866   </function>
 1867   <!-- ssize_t sendfile(int out_fd, int in_fd, off_t *offset, size_t count); -->
 1868   <function name="sendfile">
 1869     <leak-ignore/>
 1870     <returnValue type="ssize_t"/>
 1871     <arg nr="1" direction="in">
 1872       <not-uninit/>
 1873       <valid>0:</valid>
 1874     </arg>
 1875     <arg nr="2" direction="in">
 1876       <not-uninit/>
 1877       <valid>0:</valid>
 1878     </arg>
 1879     <arg nr="3" direction="in">
 1880       <not-uninit/>
 1881     </arg>
 1882     <arg nr="4" direction="in">
 1883       <valid>1:</valid>
 1884     </arg>
 1885   </function>
 1886   <!-- ssize_t read(int fd, void *buf, size_t count); -->
 1887   <function name="read">
 1888     <leak-ignore/>
 1889     <returnValue type="ssize_t"/>
 1890     <arg nr="1" direction="in">
 1891       <not-uninit/>
 1892       <valid>0:</valid>
 1893     </arg>
 1894     <arg nr="2" direction="out">
 1895       <minsize type="argvalue" arg="3"/>
 1896     </arg>
 1897     <arg nr="3" direction="in">
 1898       <not-uninit/>
 1899       <not-bool/>
 1900       <valid>0:</valid>
 1901     </arg>
 1902   </function>
 1903   <!-- ssize_t write(int fildes, const void *buf, size_t nbyte); -->
 1904   <function name="write">
 1905     <noreturn>false</noreturn>
 1906     <leak-ignore/>
 1907     <returnValue type="ssize_t"/>
 1908     <arg nr="1" direction="in">
 1909       <not-uninit/>
 1910       <valid>0:</valid>
 1911     </arg>
 1912     <arg nr="2" direction="in">
 1913       <not-uninit/>
 1914       <minsize type="argvalue" arg="3"/>
 1915     </arg>
 1916     <arg nr="3" direction="in">
 1917       <not-uninit/>
 1918       <not-bool/>
 1919       <valid>0:</valid>
 1920     </arg>
 1921   </function>
 1922   <!-- ssize_t recv(int sockfd, void *buf, size_t len, int flags); -->
 1923   <function name="recv">
 1924     <returnValue type="ssize_t"/>
 1925     <arg nr="1" direction="in">
 1926       <not-uninit/>
 1927       <valid>0:</valid>
 1928     </arg>
 1929     <arg nr="2" direction="out">
 1930       <minsize type="argvalue" arg="3"/>
 1931     </arg>
 1932     <arg nr="3" direction="in">
 1933       <not-uninit/>
 1934     </arg>
 1935     <arg nr="4" direction="in">
 1936       <not-uninit/>
 1937       <not-bool/>
 1938     </arg>
 1939   </function>
 1940   <!-- ssize_t recvfrom(int sockfd, void *buf, size_t len, int flags,
 1941                         struct sockaddr *src_addr, socklen_t *addrlen); -->
 1942   <function name="recvfrom">
 1943     <returnValue type="ssize_t"/>
 1944     <arg nr="1" direction="in">
 1945       <not-uninit/>
 1946       <valid>0:</valid>
 1947     </arg>
 1948     <arg nr="2" direction="out">
 1949       <minsize type="argvalue" arg="3"/>
 1950     </arg>
 1951     <arg nr="3" direction="in">
 1952       <not-uninit/>
 1953     </arg>
 1954     <arg nr="4" direction="in">
 1955       <not-uninit/>
 1956     </arg>
 1957     <arg nr="5" direction="out"/>
 1958     <arg nr="6" direction="inout">
 1959       <not-bool/>
 1960     </arg>
 1961   </function>
 1962   <!-- ssize_t recvmsg(int sockfd, struct msghdr *msg, int flags); -->
 1963   <function name="recvmsg">
 1964     <returnValue type="ssize_t"/>
 1965     <arg nr="1" direction="in">
 1966       <not-uninit/>
 1967       <valid>0:</valid>
 1968     </arg>
 1969     <arg nr="2" direction="inout"/>
 1970     <arg nr="3" direction="in">
 1971       <not-uninit/>
 1972       <not-bool/>
 1973     </arg>
 1974   </function>
 1975   <!-- ssize_t send(int sockfd, const void *buf, size_t len, int flags); -->
 1976   <function name="send">
 1977     <returnValue type="ssize_t"/>
 1978     <arg nr="1" direction="in">
 1979       <not-uninit/>
 1980       <valid>0:</valid>
 1981     </arg>
 1982     <arg nr="2" direction="in">
 1983       <minsize type="argvalue" arg="3"/>
 1984     </arg>
 1985     <arg nr="3" direction="in">
 1986       <not-uninit/>
 1987     </arg>
 1988     <arg nr="4" direction="in">
 1989       <not-uninit/>
 1990       <not-bool/>
 1991     </arg>
 1992   </function>
 1993   <!-- ssize_t sendto(int sockfd, const void *buf, size_t len, int flags,
 1994                       const struct sockaddr *dest_addr, socklen_t addrlen); -->
 1995   <function name="sendto">
 1996     <returnValue type="ssize_t"/>
 1997     <arg nr="1" direction="in">
 1998       <not-uninit/>
 1999       <valid>0:</valid>
 2000     </arg>
 2001     <arg nr="2" direction="in">
 2002       <minsize type="argvalue" arg="3"/>
 2003     </arg>
 2004     <arg nr="3" direction="in">
 2005       <not-uninit/>
 2006     </arg>
 2007     <arg nr="4" direction="in">
 2008       <not-uninit/>
 2009     </arg>
 2010     <arg nr="5" direction="in"/>
 2011     <arg nr="6" direction="in">
 2012       <not-bool/>
 2013     </arg>
 2014   </function>
 2015   <!-- ssize_t sendmsg(int sockfd, const struct msghdr *msg, int flags); -->
 2016   <function name="sendmsg">
 2017     <returnValue type="ssize_t"/>
 2018     <arg nr="1" direction="in">
 2019       <not-uninit/>
 2020       <valid>0:</valid>
 2021     </arg>
 2022     <arg nr="2" direction="in">
 2023       <not-uninit/>
 2024     </arg>
 2025     <arg nr="3" direction="in">
 2026       <not-uninit/>
 2027       <not-bool/>
 2028     </arg>
 2029   </function>
 2030   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/mmap.html -->
 2031   <!-- void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset); -->
 2032   <function name="mmap">
 2033     <use-retval/>
 2034     <returnValue type="void *"/>
 2035     <noreturn>false</noreturn>
 2036     <leak-ignore/>
 2037     <arg nr="1" direction="in">
 2038       <not-uninit/>
 2039     </arg>
 2040     <arg nr="2" direction="in">
 2041       <not-uninit/>
 2042       <valid>1:</valid>
 2043     </arg>
 2044     <arg nr="3" direction="in">
 2045       <not-uninit/>
 2046     </arg>
 2047     <arg nr="4" direction="in">
 2048       <not-uninit/>
 2049     </arg>
 2050     <arg nr="5" direction="in">
 2051       <not-uninit/>
 2052       <valid>0:</valid>
 2053     </arg>
 2054     <arg nr="6" direction="in">
 2055       <not-uninit/>
 2056       <not-bool/>
 2057     </arg>
 2058   </function>
 2059   <!-- void *mmap64(void *addr, size_t length, int prot, int flags, int fd, off64_t offset); -->
 2060   <function name="mmap64">
 2061     <use-retval/>
 2062     <returnValue type="void *"/>
 2063     <noreturn>false</noreturn>
 2064     <leak-ignore/>
 2065     <arg nr="1" direction="in">
 2066       <not-uninit/>
 2067     </arg>
 2068     <arg nr="2" direction="in">
 2069       <not-uninit/>
 2070       <valid>1:</valid>
 2071     </arg>
 2072     <arg nr="3" direction="in">
 2073       <not-uninit/>
 2074     </arg>
 2075     <arg nr="4" direction="in">
 2076       <not-uninit/>
 2077     </arg>
 2078     <arg nr="5" direction="in">
 2079       <not-uninit/>
 2080       <valid>0:</valid>
 2081     </arg>
 2082     <arg nr="6" direction="in">
 2083       <not-uninit/>
 2084       <not-bool/>
 2085     </arg>
 2086   </function>
 2087   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/munmap.html -->
 2088   <!-- int munmap(void *addr, size_t length); -->
 2089   <function name="munmap">
 2090     <returnValue type="int"/>
 2091     <noreturn>false</noreturn>
 2092     <arg nr="1" direction="in">
 2093       <not-null/>
 2094       <not-uninit/>
 2095     </arg>
 2096     <arg nr="2" direction="in">
 2097       <not-uninit/>
 2098       <not-bool/>
 2099       <valid>1:</valid>
 2100     </arg>
 2101   </function>
 2102   <!-- void openlog(const char *ident, int option, int facility); -->
 2103   <function name="openlog">
 2104     <noreturn>false</noreturn>
 2105     <returnValue type="void"/>
 2106     <leak-ignore/>
 2107     <arg nr="1" direction="in">
 2108       <not-uninit/>
 2109     </arg>
 2110     <arg nr="2" direction="in">
 2111       <not-uninit/>
 2112     </arg>
 2113     <arg nr="3" direction="in">
 2114       <not-uninit/>
 2115     </arg>
 2116   </function>
 2117   <!-- int fcntl(int fd, int cmd, ... /* arg */ ); -->
 2118   <function name="fcntl">
 2119     <noreturn>false</noreturn>
 2120     <leak-ignore/>
 2121     <returnValue type="int"/>
 2122     <arg nr="1" direction="in">
 2123       <not-uninit/>
 2124       <valid>0:</valid>
 2125     </arg>
 2126     <arg nr="2" direction="in">
 2127       <not-uninit/>
 2128     </arg>
 2129     <arg nr="any">
 2130       <not-uninit/>
 2131     </arg>
 2132   </function>
 2133   <!-- http://man7.org/linux/man-pages/man2/ioctl.2.html -->
 2134   <!-- int ioctl(int fd, unsigned long request, ...); -->
 2135   <function name="ioctl">
 2136     <noreturn>false</noreturn>
 2137     <leak-ignore/>
 2138     <returnValue type="int"/>
 2139     <arg nr="1" direction="in">
 2140       <not-uninit/>
 2141       <valid>0:</valid>
 2142     </arg>
 2143     <arg nr="2" direction="in">
 2144       <not-uninit/>
 2145     </arg>
 2146     <arg nr="any">
 2147       <not-uninit/>
 2148     </arg>
 2149   </function>
 2150   <!-- void syslog(int priority, const char *format, ...); -->
 2151   <function name="syslog">
 2152     <noreturn>false</noreturn>
 2153     <leak-ignore/>
 2154     <arg nr="1" direction="in">
 2155       <not-uninit/>
 2156     </arg>
 2157     <formatstr/>
 2158     <arg nr="2" direction="in">
 2159       <formatstr/>
 2160     </arg>
 2161     <arg nr="any">
 2162       <not-uninit/>
 2163     </arg>
 2164   </function>
 2165   <!-- void vsyslog(int priority, const char *format, va_list ap); -->
 2166   <function name="vsyslog">
 2167     <noreturn>false</noreturn>
 2168     <leak-ignore/>
 2169     <arg nr="1" direction="in">
 2170       <not-uninit/>
 2171     </arg>
 2172     <formatstr/>
 2173     <arg nr="2" direction="in">
 2174       <formatstr/>
 2175     </arg>
 2176     <arg nr="any">
 2177       <not-uninit/>
 2178     </arg>
 2179   </function>
 2180   <!-- gid_t getgid(void) -->
 2181   <function name="getgid">
 2182     <use-retval/>
 2183     <returnValue type="gid_t"/>
 2184     <noreturn>false</noreturn>
 2185   </function>
 2186   <!-- gid_t getegid(void) -->
 2187   <function name="getegid">
 2188     <use-retval/>
 2189     <returnValue type="gid_t"/>
 2190     <noreturn>false</noreturn>
 2191   </function>
 2192   <!-- uid_t getuid (void); -->
 2193   <function name="getuid">
 2194     <use-retval/>
 2195     <returnValue type="uid_t"/>
 2196     <noreturn>false</noreturn>
 2197     <leak-ignore/>
 2198   </function>
 2199   <!-- pid_t getsid(pid_t pid); -->
 2200   <function name="getsid">
 2201     <use-retval/>
 2202     <returnValue type="pid_t"/>
 2203     <noreturn>false</noreturn>
 2204     <leak-ignore/>
 2205     <arg nr="1" direction="in">
 2206       <not-uninit/>
 2207       <not-bool/>
 2208     </arg>
 2209   </function>
 2210   <!-- uid_t geteuid(void); -->
 2211   <function name="geteuid">
 2212     <use-retval/>
 2213     <returnValue type="uid_t"/>
 2214     <noreturn>false</noreturn>
 2215     <leak-ignore/>
 2216   </function>
 2217   <!-- pid_t getppid(void); -->
 2218   <function name="getppid">
 2219     <use-retval/>
 2220     <returnValue type="pid_t"/>
 2221     <noreturn>false</noreturn>
 2222     <leak-ignore/>
 2223   </function>
 2224   <!-- pid_t getpid(void); -->
 2225   <function name="getpid">
 2226     <use-retval/>
 2227     <returnValue type="pid_t"/>
 2228     <noreturn>false</noreturn>
 2229     <leak-ignore/>
 2230   </function>
 2231   <!-- pid_t getpgrp(void); -->
 2232   <function name="getpgrp">
 2233     <use-retval/>
 2234     <returnValue type="pid_t"/>
 2235     <noreturn>false</noreturn>
 2236     <leak-ignore/>
 2237   </function>
 2238   <!-- ppid_t getpgid(pid_t pid); -->
 2239   <function name="getpgid">
 2240     <use-retval/>
 2241     <returnValue type="ppid_t"/>
 2242     <noreturn>false</noreturn>
 2243     <leak-ignore/>
 2244     <arg nr="1" direction="in">
 2245       <not-uninit/>
 2246       <not-bool/>
 2247     </arg>
 2248   </function>
 2249   <!-- int setuid(uid_t uid); -->
 2250   <function name="setuid">
 2251     <use-retval/>
 2252     <returnValue type="int"/>
 2253     <noreturn>false</noreturn>
 2254     <leak-ignore/>
 2255     <arg nr="1" direction="in">
 2256       <not-uninit/>
 2257       <not-bool/>
 2258     </arg>
 2259   </function>
 2260   <!-- int seteuid(uid_t euid); -->
 2261   <function name="seteuid">
 2262     <use-retval/>
 2263     <returnValue type="int"/>
 2264     <noreturn>false</noreturn>
 2265     <leak-ignore/>
 2266     <arg nr="1" direction="in">
 2267       <not-uninit/>
 2268       <not-bool/>
 2269     </arg>
 2270   </function>
 2271   <!-- int setgid(gid_t gid); -->
 2272   <function name="setgid">
 2273     <use-retval/>
 2274     <returnValue type="int"/>
 2275     <noreturn>false</noreturn>
 2276     <leak-ignore/>
 2277     <arg nr="1" direction="in">
 2278       <not-uninit/>
 2279       <not-bool/>
 2280     </arg>
 2281   </function>
 2282   <!-- int setegid(gid_t egid); -->
 2283   <function name="setegid">
 2284     <use-retval/>
 2285     <returnValue type="int"/>
 2286     <noreturn>false</noreturn>
 2287     <leak-ignore/>
 2288     <arg nr="1" direction="in">
 2289       <not-uninit/>
 2290       <not-bool/>
 2291     </arg>
 2292   </function>
 2293   <!-- int setpgid(pid_t pid, pid_t pgid); -->
 2294   <function name="setpgid">
 2295     <returnValue type="int"/>
 2296     <noreturn>false</noreturn>
 2297     <arg nr="1" direction="in">
 2298       <not-uninit/>
 2299     </arg>
 2300     <arg nr="2" direction="in">
 2301       <not-uninit/>
 2302       <not-bool/>
 2303     </arg>
 2304   </function>
 2305   <!-- int socketpair(int domain, int type, int protocol, int sv[2]); -->
 2306   <function name="socketpair">
 2307     <returnValue type="int"/>
 2308     <noreturn>false</noreturn>
 2309     <arg nr="1" direction="in">
 2310       <not-uninit/>
 2311     </arg>
 2312     <arg nr="2" direction="in">
 2313       <not-uninit/>
 2314     </arg>
 2315     <arg nr="3" direction="in">
 2316       <not-uninit/>
 2317     </arg>
 2318     <arg nr="4" direction="out">
 2319       <not-null/>
 2320       <not-bool/>
 2321       <minsize type="value" value="2"/>
 2322     </arg>
 2323   </function>
 2324   <!-- http://man7.org/linux/man-pages/man2/socketpair.2.html -->
 2325   <!-- int pipe(int fildes[2]); -->
 2326   <function name="pipe">
 2327     <returnValue type="int"/>
 2328     <noreturn>false</noreturn>
 2329     <use-retval/>
 2330     <arg nr="1" direction="out">
 2331       <not-null/>
 2332       <not-bool/>
 2333       <minsize type="value" value="2"/>
 2334     </arg>
 2335   </function>
 2336   <!-- int pselect(int nfds, fd_set *restrict readfds,
 2337        fd_set *restrict writefds, fd_set *restrict errorfds,
 2338        const struct timespec *restrict timeout,
 2339        const sigset_t *restrict sigmask);
 2340 	   see http://pubs.opengroup.org/onlinepubs/9699919799/functions/pselect.html -->
 2341   <function name="pselect">
 2342     <noreturn>false</noreturn>
 2343     <returnValue type="int"/>
 2344     <leak-ignore/>
 2345     <arg nr="1" direction="in">
 2346       <not-bool/>
 2347       <not-uninit/>
 2348     </arg>
 2349     <arg nr="2" direction="inout">
 2350       <not-uninit/>
 2351     </arg>
 2352     <arg nr="3" direction="inout">
 2353       <not-uninit/>
 2354     </arg>
 2355     <arg nr="4" direction="inout">
 2356       <not-uninit/>
 2357     </arg>
 2358     <arg nr="5" direction="in">
 2359       <not-uninit/>
 2360     </arg>
 2361     <arg nr="6" direction="in">
 2362       <not-uninit/>
 2363     </arg>
 2364   </function>
 2365   <!-- int select(int nfds, fd_set *restrict readfds, fd_set * writefds, fd_set * errorfds, struct timeval *timeout);
 2366        see http://pubs.opengroup.org/onlinepubs/9699919799/functions/pselect.html -->
 2367   <function name="select">
 2368     <noreturn>false</noreturn>
 2369     <returnValue type="int"/>
 2370     <leak-ignore/>
 2371     <arg nr="1" direction="in">
 2372       <not-bool/>
 2373       <not-uninit/>
 2374     </arg>
 2375     <arg nr="2" direction="inout">
 2376       <not-uninit/>
 2377     </arg>
 2378     <arg nr="3" direction="inout">
 2379       <not-uninit/>
 2380     </arg>
 2381     <arg nr="4" direction="inout">
 2382       <not-uninit/>
 2383     </arg>
 2384     <arg nr="5" direction="inout">
 2385       <not-uninit/>
 2386     </arg>
 2387   </function>
 2388   <!-- pid_t setpgrp(void); -->
 2389   <function name="setpgrp">
 2390     <returnValue type="pid_t"/>
 2391     <noreturn>false</noreturn>
 2392   </function>
 2393   <!-- int setregid(gid_t rgid, gid_t egid); -->
 2394   <function name="setregid">
 2395     <returnValue type="int"/>
 2396     <noreturn>false</noreturn>
 2397     <arg nr="1" direction="in">
 2398       <not-uninit/>
 2399     </arg>
 2400     <arg nr="2" direction="in">
 2401       <not-uninit/>
 2402       <not-bool/>
 2403     </arg>
 2404   </function>
 2405   <!-- int setreuid(uid_t ruid, uid_t euid); -->
 2406   <function name="setreuid">
 2407     <returnValue type="int"/>
 2408     <noreturn>false</noreturn>
 2409     <arg nr="1" direction="in">
 2410       <not-uninit/>
 2411     </arg>
 2412     <arg nr="2" direction="in">
 2413       <not-uninit/>
 2414       <not-bool/>
 2415     </arg>
 2416   </function>
 2417   <!-- int setfsuid(uid_t fsuid); -->
 2418   <function name="setfsuid">
 2419     <returnValue type="int"/>
 2420     <noreturn>false</noreturn>
 2421     <leak-ignore/>
 2422     <arg nr="1" direction="in">
 2423       <not-uninit/>
 2424       <not-bool/>
 2425     </arg>
 2426   </function>
 2427   <!-- int setfsgid(uid_t fsgid); -->
 2428   <function name="setfsgid">
 2429     <returnValue type="int"/>
 2430     <noreturn>false</noreturn>
 2431     <leak-ignore/>
 2432     <arg nr="1" direction="in">
 2433       <not-uninit/>
 2434       <not-bool/>
 2435     </arg>
 2436   </function>
 2437   <!-- pid_t setsid(void); -->
 2438   <function name="setsid">
 2439     <returnValue type="pid_t"/>
 2440     <noreturn>false</noreturn>
 2441     <!-- it is a good idea to do: <use-retval/> -->
 2442   </function>
 2443   <!-- char *getwd(char *path_name);-->
 2444   <function name="getwd">
 2445     <returnValue type="char *"/>
 2446     <noreturn>false</noreturn>
 2447     <arg nr="1" direction="out">
 2448       <not-null/>
 2449       <not-bool/>
 2450     </arg>
 2451     <leak-ignore/>
 2452     <warn severity="style" reason="Obsolescent" alternatives="getcwd"/>
 2453   </function>
 2454   <!-- http://pubs.opengroup.org/onlinepubs/009695399/basedefs/arpa/inet.h.html -->
 2455   <!-- uint32_t htonl(uint32_t); -->
 2456   <function name="htonl">
 2457     <returnValue type="uint32_t"/>
 2458     <noreturn>false</noreturn>
 2459     <use-retval/>
 2460     <arg nr="1" direction="in">
 2461       <not-uninit/>
 2462       <not-bool/>
 2463     </arg>
 2464   </function>
 2465   <!-- uint16_t htons(uint16_t); -->
 2466   <function name="htons">
 2467     <returnValue type="uint16_t"/>
 2468     <noreturn>false</noreturn>
 2469     <use-retval/>
 2470     <arg nr="1" direction="in">
 2471       <not-uninit/>
 2472       <not-bool/>
 2473     </arg>
 2474   </function>
 2475   <!-- uint32_t ntohl(uint32_t); -->
 2476   <function name="ntohl">
 2477     <returnValue type="uint32_t"/>
 2478     <noreturn>false</noreturn>
 2479     <use-retval/>
 2480     <arg nr="1" direction="in">
 2481       <not-uninit/>
 2482       <not-bool/>
 2483     </arg>
 2484   </function>
 2485   <!-- uint16_t ntohs(uint16_t); -->
 2486   <function name="ntohs">
 2487     <returnValue type="uint16_t"/>
 2488     <noreturn>false</noreturn>
 2489     <use-retval/>
 2490     <arg nr="1" direction="in">
 2491       <not-uninit/>
 2492       <not-bool/>
 2493     </arg>
 2494   </function>
 2495   <!-- in_addr_t inet_addr(const char *cp);
 2496        http://pubs.opengroup.org/onlinepubs/009695399/functions/inet_addr.html -->
 2497   <function name="inet_addr">
 2498     <leak-ignore/>
 2499     <pure/>
 2500     <returnValue type="in_addr_t"/>
 2501     <noreturn>false</noreturn>
 2502     <use-retval/>
 2503     <arg nr="1" direction="in">
 2504       <not-uninit/>
 2505       <not-bool/>
 2506       <strz/>
 2507     </arg>
 2508   </function>
 2509   <!-- char *inet_ntoa(struct in_addr in);
 2510        http://pubs.opengroup.org/onlinepubs/009695399/functions/inet_addr.html -->
 2511   <function name="inet_ntoa">
 2512     <leak-ignore/>
 2513     <returnValue type="char *"/>
 2514     <noreturn>false</noreturn>
 2515     <use-retval/>
 2516     <arg nr="1" direction="in">
 2517       <not-uninit/>
 2518       <not-bool/>
 2519     </arg>
 2520   </function>
 2521   <!-- int mq_close(mqd_t); -->
 2522   <function name="mq_close">
 2523     <returnValue type="int"/>
 2524     <noreturn>false</noreturn>
 2525     <arg nr="1">
 2526       <not-uninit/>
 2527       <not-bool/>
 2528     </arg>
 2529   </function>
 2530   <!-- int mq_getattr(mqd_t, struct mq_attr *); -->
 2531   <function name="mq_getattr">
 2532     <returnValue type="int"/>
 2533     <noreturn>false</noreturn>
 2534     <arg nr="1">
 2535       <not-uninit/>
 2536     </arg>
 2537     <arg nr="2" direction="out">
 2538       <not-bool/>
 2539     </arg>
 2540   </function>
 2541   <!-- int mq_notify(mqd_t, const struct sigevent *); -->
 2542   <function name="mq_notify">
 2543     <returnValue type="int"/>
 2544     <noreturn>false</noreturn>
 2545     <arg nr="1">
 2546       <not-null/>
 2547       <not-uninit/>
 2548     </arg>
 2549     <arg nr="2" direction="in">
 2550       <not-bool/>
 2551     </arg>
 2552   </function>
 2553   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/mq_open.html -->
 2554   <!-- mqd_t mq_open(const char *name, int oflag, ...); -->
 2555   <function name="mq_open">
 2556     <returnValue type="mqd_t"/>
 2557     <noreturn>false</noreturn>
 2558     <arg nr="1" direction="in">
 2559       <not-uninit/>
 2560       <strz/>
 2561     </arg>
 2562     <arg nr="2" direction="in">
 2563       <not-uninit/>
 2564     </arg>
 2565     <arg nr="any"/>
 2566   </function>
 2567   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/mq_receive.html -->
 2568   <!-- ssize_t mq_receive(mqd_t mqdes, char *msg_ptr, size_t msg_len, unsigned *msg_prio); -->
 2569   <function name="mq_receive">
 2570     <returnValue type="ssize_t"/>
 2571     <noreturn>false</noreturn>
 2572     <arg nr="1">
 2573       <not-uninit/>
 2574     </arg>
 2575     <arg nr="2" direction="out">
 2576       <minsize type="argvalue" arg="3"/>
 2577     </arg>
 2578     <arg nr="3" direction="in">
 2579       <not-uninit/>
 2580       <valid>0:</valid>
 2581     </arg>
 2582     <arg nr="4" direction="out">
 2583       <not-bool/>
 2584     </arg>
 2585   </function>
 2586   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/mq_send.html -->
 2587   <!-- int mq_send(mqd_t mqdes, const char *msg_ptr, size_t msg_len, unsigned msg_prio); -->
 2588   <function name="mq_send">
 2589     <returnValue type="int"/>
 2590     <noreturn>false</noreturn>
 2591     <arg nr="1">
 2592       <not-uninit/>
 2593     </arg>
 2594     <arg nr="2" direction="in">
 2595       <not-uninit/>
 2596       <minsize type="argvalue" arg="3"/>
 2597     </arg>
 2598     <arg nr="3" direction="in">
 2599       <not-uninit/>
 2600     </arg>
 2601     <arg nr="4" direction="in">
 2602       <not-bool/>
 2603     </arg>
 2604   </function>
 2605   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/mq_setattr.html -->
 2606   <!-- int mq_setattr(mqd_t mqdes, const struct mq_attr *restrict mqstat, struct mq_attr *restrict omqstat); -->
 2607   <function name="mq_setattr">
 2608     <returnValue type="int"/>
 2609     <noreturn>false</noreturn>
 2610     <arg nr="1">
 2611       <not-uninit/>
 2612     </arg>
 2613     <arg nr="2" direction="in">
 2614       <not-uninit/>
 2615     </arg>
 2616     <arg nr="3" direction="out">
 2617       <not-bool/>
 2618     </arg>
 2619   </function>
 2620   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/mq_receive.html -->
 2621   <!-- ssize_t mq_timedreceive(mqd_t mqdes, char *restrict msg_ptr, size_t msg_len, unsigned *restrict msg_prio, const struct timespec *restrict abstime); -->
 2622   <function name="mq_timedreceive">
 2623     <returnValue type="ssize_t"/>
 2624     <noreturn>false</noreturn>
 2625     <arg nr="1">
 2626       <not-uninit/>
 2627     </arg>
 2628     <arg nr="2" direction="out">
 2629       <minsize type="argvalue" arg="3"/>
 2630     </arg>
 2631     <arg nr="3" direction="in">
 2632       <not-uninit/>
 2633     </arg>
 2634     <arg nr="4" direction="out"/>
 2635     <arg nr="5" direction="in">
 2636       <not-uninit/>
 2637       <not-bool/>
 2638     </arg>
 2639   </function>
 2640   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/mq_send.html -->
 2641   <!-- int mq_timedsend(mqd_t mqdes, const char *msg_ptr, size_t msg_len, unsigned msg_prio, const struct timespec *abstime); -->
 2642   <function name="mq_timedsend">
 2643     <returnValue type="int"/>
 2644     <noreturn>false</noreturn>
 2645     <arg nr="1">
 2646       <not-uninit/>
 2647     </arg>
 2648     <arg nr="2" direction="in">
 2649       <not-uninit/>
 2650       <minsize type="argvalue" arg="3"/>
 2651     </arg>
 2652     <arg nr="3" direction="in">
 2653       <not-uninit/>
 2654     </arg>
 2655     <arg nr="4" direction="in">
 2656       <not-uninit/>
 2657     </arg>
 2658     <arg nr="5" direction="in">
 2659       <not-uninit/>
 2660       <not-bool/>
 2661     </arg>
 2662   </function>
 2663   <!-- int mq_unlink(const char *name); -->
 2664   <function name="mq_unlink">
 2665     <returnValue type="int"/>
 2666     <noreturn>false</noreturn>
 2667     <arg nr="1" direction="in">
 2668       <not-null/>
 2669       <not-uninit/>
 2670       <not-bool/>
 2671     </arg>
 2672   </function>
 2673   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/dbm_clearerr.html -->
 2674   <!-- int dbm_clearerr(DBM *db); -->
 2675   <function name="dbm_clearerr">
 2676     <returnValue type="int"/>
 2677     <noreturn>false</noreturn>
 2678     <arg nr="1">
 2679       <not-null/>
 2680       <not-uninit/>
 2681       <not-bool/>
 2682     </arg>
 2683   </function>
 2684   <!-- void dbm_close(DBM *db); -->
 2685   <function name="dbm_close">
 2686     <noreturn>false</noreturn>
 2687     <arg nr="1">
 2688       <not-null/>
 2689       <not-uninit/>
 2690     </arg>
 2691   </function>
 2692   <!-- int dbm_delete(DBM *db, datum key); -->
 2693   <function name="dbm_delete">
 2694     <returnValue type="int"/>
 2695     <noreturn>false</noreturn>
 2696     <arg nr="1">
 2697       <not-null/>
 2698       <not-uninit/>
 2699     </arg>
 2700     <arg nr="2" direction="in">
 2701       <not-uninit/>
 2702     </arg>
 2703   </function>
 2704   <!-- int dbm_error(DBM *db); -->
 2705   <function name="dbm_error">
 2706     <use-retval/>
 2707     <returnValue type="int"/>
 2708     <noreturn>false</noreturn>
 2709     <arg nr="1">
 2710       <not-null/>
 2711       <not-uninit/>
 2712       <not-bool/>
 2713     </arg>
 2714   </function>
 2715   <!-- datum dbm_fetch(DBM *db, datum key); -->
 2716   <function name="dbm_fetch">
 2717     <use-retval/>
 2718     <returnValue type="datum"/>
 2719     <noreturn>false</noreturn>
 2720     <arg nr="1">
 2721       <not-null/>
 2722       <not-uninit/>
 2723     </arg>
 2724     <arg nr="2" direction="in">
 2725       <not-uninit/>
 2726     </arg>
 2727   </function>
 2728   <!-- datum dbm_firstkey(DBM *db); -->
 2729   <function name="dbm_firstkey">
 2730     <use-retval/>
 2731     <returnValue type="datum"/>
 2732     <noreturn>false</noreturn>
 2733     <arg nr="1">
 2734       <not-null/>
 2735       <not-uninit/>
 2736       <not-bool/>
 2737     </arg>
 2738   </function>
 2739   <!-- datum dbm_nextkey(DBM *db); -->
 2740   <function name="dbm_nextkey">
 2741     <use-retval/>
 2742     <returnValue type="datum"/>
 2743     <noreturn>false</noreturn>
 2744     <arg nr="1">
 2745       <not-null/>
 2746       <not-uninit/>
 2747       <not-bool/>
 2748     </arg>
 2749   </function>
 2750   <!-- DBM *dbm_open(const char *file, int open_flags, mode_t file_mode); -->
 2751   <function name="dbm_open">
 2752     <returnValue type="DBM *"/>
 2753     <noreturn>false</noreturn>
 2754     <arg nr="1" direction="in">
 2755       <not-null/>
 2756       <not-uninit/>
 2757     </arg>
 2758     <arg nr="2" direction="in">
 2759       <not-uninit/>
 2760     </arg>
 2761     <arg nr="3" direction="in">
 2762       <not-uninit/>
 2763       <not-bool/>
 2764     </arg>
 2765   </function>
 2766   <!-- int dbm_store(DBM *db, datum key, datum content, int store_mode); -->
 2767   <function name="dbm_store">
 2768     <returnValue type="int"/>
 2769     <noreturn>false</noreturn>
 2770     <arg nr="1">
 2771       <not-null/>
 2772       <not-uninit/>
 2773     </arg>
 2774     <arg nr="2" direction="in">
 2775       <not-uninit/>
 2776     </arg>
 2777     <arg nr="3" direction="in">
 2778       <not-uninit/>
 2779     </arg>
 2780     <arg nr="4" direction="in">
 2781       <not-uninit/>
 2782       <not-bool/>
 2783     </arg>
 2784   </function>
 2785   <!-- http://pubs.opengroup.org/onlinepubs/009695399/functions/freeaddrinfo.html -->
 2786   <!-- void freeaddrinfo(struct addrinfo *ai); -->
 2787   <function name="freeaddrinfo">
 2788     <noreturn>false</noreturn>
 2789     <arg nr="1">
 2790       <not-uninit/>
 2791       <not-null/>
 2792       <!-- not-null is not required by the resource above, but some systems will segfault -->
 2793     </arg>
 2794   </function>
 2795   <!-- http://pubs.opengroup.org/onlinepubs/009695399/functions/freeaddrinfo.html -->
 2796   <!-- int getaddrinfo(const char * nodename, const char * servname, const struct addrinfo * hints, struct addrinfo ** res); -->
 2797   <function name="getaddrinfo">
 2798     <returnValue type="int"/>
 2799     <noreturn>false</noreturn>
 2800     <arg nr="1" direction="in">
 2801       <not-uninit/>
 2802     </arg>
 2803     <arg nr="2" direction="in">
 2804       <not-uninit/>
 2805     </arg>
 2806     <arg nr="3" direction="in">
 2807       <not-uninit/>
 2808     </arg>
 2809     <arg nr="4" direction="out">
 2810       <not-bool/>
 2811     </arg>
 2812   </function>
 2813   <!-- void endhostent(void); -->
 2814   <function name="endhostent">
 2815     <noreturn>false</noreturn>
 2816     <returnValue type="void"/>
 2817   </function>
 2818   <!-- void sethostent(int stayopen); -->
 2819   <function name="sethostent">
 2820     <noreturn>false</noreturn>
 2821     <returnValue type="void"/>
 2822     <arg nr="1" direction="in">
 2823       <not-uninit/>
 2824     </arg>
 2825   </function>
 2826   <!-- int uname(struct utsname *buf); -->
 2827   <function name="uname">
 2828     <returnValue type="int"/>
 2829     <noreturn>false</noreturn>
 2830     <arg nr="1">
 2831       <not-null/>
 2832       <not-bool/>
 2833     </arg>
 2834   </function>
 2835   <!--void           endpwent(void); -->
 2836   <function name="endpwent">
 2837     <noreturn>false</noreturn>
 2838     <returnValue type="void"/>
 2839   </function>
 2840   <!--struct passwd *getpwent(void); -->
 2841   <function name="getpwent">
 2842     <use-retval/>
 2843     <returnValue type="struct passwd *"/>
 2844     <noreturn>false</noreturn>
 2845     <warn severity="portability">Non reentrant function 'getpwent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwent_r'.</warn>
 2846   </function>
 2847   <!--struct passwd *getpwnam(const char *); -->
 2848   <function name="getpwnam">
 2849     <use-retval/>
 2850     <returnValue type="struct passwd *"/>
 2851     <noreturn>false</noreturn>
 2852     <arg nr="1" direction="in">
 2853       <not-uninit/>
 2854       <not-bool/>
 2855     </arg>
 2856     <warn severity="portability">Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'.</warn>
 2857   </function>
 2858   <!-- char *strtok(char *s, const char *ct); -->
 2859   <function name="strtok,std::strtok">
 2860     <!-- Already configured in std.cfg. Add only a warning for POSIX that a
 2861     threadsafe function exists that should be used. -->
 2862     <warn severity="portability">Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'.</warn>
 2863   </function>
 2864   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/strtok.html -->
 2865   <!-- char *strtok_r(char *str, const char *delim, char **saveptr); -->
 2866   <function name="strtok_r">
 2867     <!-- strtok may modify the first argument, so using the return value is not mandatory -->
 2868     <noreturn>false</noreturn>
 2869     <returnValue type="char *"/>
 2870     <pure/>
 2871     <leak-ignore/>
 2872     <arg nr="1" direction="inout">
 2873       <not-uninit/>
 2874     </arg>
 2875     <arg nr="2" direction="in">
 2876       <not-null/>
 2877       <not-uninit/>
 2878     </arg>
 2879     <arg nr="3" direction="inout">
 2880       <not-null/>
 2881       <not-bool/>
 2882     </arg>
 2883   </function>
 2884   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/getpwnam.html -->
 2885   <!-- int getpwnam_r(const char *name, struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result); -->
 2886   <function name="getpwnam_r">
 2887     <use-retval/>
 2888     <returnValue type="int"/>
 2889     <noreturn>false</noreturn>
 2890     <arg nr="1" direction="in">
 2891       <not-uninit/>
 2892     </arg>
 2893     <arg nr="2" direction="out"/>
 2894     <arg nr="3" direction="out">
 2895       <minsize type="argvalue" arg="4"/>
 2896     </arg>
 2897     <arg nr="4" direction="in">
 2898       <not-uninit/>
 2899       <valid>0:</valid>
 2900     </arg>
 2901     <arg nr="5" direction="out">
 2902       <not-bool/>
 2903     </arg>
 2904   </function>
 2905   <!-- struct passwd *getpwuid(uid_t uid); -->
 2906   <function name="getpwuid">
 2907     <use-retval/>
 2908     <returnValue type="struct passwd *"/>
 2909     <noreturn>false</noreturn>
 2910     <arg nr="1" direction="in">
 2911       <not-uninit/>
 2912       <not-bool/>
 2913     </arg>
 2914     <warn severity="portability">Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'.</warn>
 2915   </function>
 2916   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/getpwuid.html -->
 2917   <!-- int getpwuid_r(uid_t uid, struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result); -->
 2918   <function name="getpwuid_r">
 2919     <returnValue type="int"/>
 2920     <noreturn>false</noreturn>
 2921     <arg nr="1" direction="in">
 2922       <not-uninit/>
 2923     </arg>
 2924     <arg nr="2" direction="out"/>
 2925     <arg nr="3" direction="out">
 2926       <minsize type="argvalue" arg="4"/>
 2927     </arg>
 2928     <arg nr="4" direction="in">
 2929       <not-uninit/>
 2930       <valid>0:</valid>
 2931     </arg>
 2932     <arg nr="5" direction="out">
 2933       <not-bool/>
 2934     </arg>
 2935   </function>
 2936   <!-- void setpwent(void); -->
 2937   <function name="setpwent">
 2938     <noreturn>false</noreturn>
 2939     <returnValue type="void"/>
 2940   </function>
 2941   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/catclose.html -->
 2942   <!-- int catclose(nl_catd catd); -->
 2943   <function name="catclose">
 2944     <returnValue type="int"/>
 2945     <noreturn>false</noreturn>
 2946     <arg nr="1">
 2947       <not-uninit/>
 2948       <not-bool/>
 2949     </arg>
 2950   </function>
 2951   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/catgets.html -->
 2952   <!-- char *catgets(nl_catd catd, int set_id, int msg_id, const char *s); -->
 2953   <function name="catgets">
 2954     <returnValue type="char *"/>
 2955     <use-retval/>
 2956     <noreturn>false</noreturn>
 2957     <arg nr="1">
 2958       <not-uninit/>
 2959     </arg>
 2960     <arg nr="2" direction="in">
 2961       <not-uninit/>
 2962     </arg>
 2963     <arg nr="3" direction="in">
 2964       <not-uninit/>
 2965     </arg>
 2966     <arg nr="4" direction="in">
 2967       <not-uninit/>
 2968       <not-bool/>
 2969     </arg>
 2970   </function>
 2971   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/catopen.html -->
 2972   <!-- nl_catd catopen(const char *name, int oflag); -->
 2973   <function name="catopen">
 2974     <returnValue type="nl_catd"/>
 2975     <noreturn>false</noreturn>
 2976     <arg nr="1" direction="in">
 2977       <not-null/>
 2978       <not-uninit/>
 2979     </arg>
 2980     <arg nr="2" direction="in">
 2981       <not-uninit/>
 2982       <not-bool/>
 2983     </arg>
 2984   </function>
 2985   <!-- http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/poll.h.html -->
 2986   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/poll.html -->
 2987   <!-- int poll(struct pollfd fds[], nfds_t nfds, int timeout); -->
 2988   <function name="poll">
 2989     <returnValue type="int"/>
 2990     <noreturn>false</noreturn>
 2991     <arg nr="1" direction="inout">
 2992       <not-uninit/>
 2993     </arg>
 2994     <arg nr="2" direction="in">
 2995       <not-uninit/>
 2996     </arg>
 2997     <arg nr="3" direction="in">
 2998       <not-uninit/>
 2999       <not-bool/>
 3000     </arg>
 3001   </function>
 3002   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/regcomp.html -->
 3003   <!-- int regcomp(regex_t *restrict preg, const char *restrict pattern, int cflags); -->
 3004   <function name="regcomp">
 3005     <returnValue type="int"/>
 3006     <noreturn>false</noreturn>
 3007     <arg nr="1" direction="out">
 3008       <not-null/>
 3009     </arg>
 3010     <arg nr="2" direction="in">
 3011       <not-uninit/>
 3012     </arg>
 3013     <arg nr="3" direction="in">
 3014       <not-uninit/>
 3015       <not-bool/>
 3016     </arg>
 3017   </function>
 3018   <!-- size_t regerror(int errcode, const regex_t *restrict preg, char *restrict errbuf, size_t errbuf_size); -->
 3019   <function name="regerror">
 3020     <returnValue type="size_t"/>
 3021     <noreturn>false</noreturn>
 3022     <arg nr="1" direction="in">
 3023       <not-uninit/>
 3024     </arg>
 3025     <arg nr="2" direction="in">
 3026       <not-uninit/>
 3027     </arg>
 3028     <arg nr="3" direction="out">
 3029       <minsize type="argvalue" arg="4"/>
 3030     </arg>
 3031     <arg nr="4" direction="in">
 3032       <not-uninit/>
 3033       <valid>0:</valid>
 3034       <not-bool/>
 3035     </arg>
 3036   </function>
 3037   <!-- int regexec(const regex_t *restrict preg, const char *restrict string, size_t nmatch, regmatch_t pmatch[restrict], int eflags); -->
 3038   <function name="regexec">
 3039     <returnValue type="int"/>
 3040     <noreturn>false</noreturn>
 3041     <arg nr="1" direction="in">
 3042       <not-null/>
 3043       <not-uninit/>
 3044     </arg>
 3045     <arg nr="2" direction="in">
 3046       <not-null/>
 3047       <not-uninit/>
 3048     </arg>
 3049     <arg nr="3" direction="in">
 3050       <not-uninit/>
 3051       <valid>0:</valid>
 3052     </arg>
 3053     <arg nr="4" direction="out"/>
 3054     <arg nr="5" direction="in">
 3055       <not-uninit/>
 3056       <not-bool/>
 3057     </arg>
 3058   </function>
 3059   <!-- void regfree(regex_t *preg); -->
 3060   <function name="regfree">
 3061     <noreturn>false</noreturn>
 3062     <arg nr="1">
 3063       <not-null/>
 3064       <not-uninit/>
 3065     </arg>
 3066   </function>
 3067   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/sched_get_priority_max.html -->
 3068   <!-- int sched_get_priority_max(int policy); -->
 3069   <function name="sched_get_priority_max">
 3070     <returnValue type="int"/>
 3071     <noreturn>false</noreturn>
 3072     <use-retval/>
 3073     <arg nr="1" direction="in">
 3074       <not-uninit/>
 3075       <not-bool/>
 3076     </arg>
 3077   </function>
 3078   <!-- int sched_get_priority_min(int policy); -->
 3079   <function name="sched_get_priority_min">
 3080     <returnValue type="int"/>
 3081     <noreturn>false</noreturn>
 3082     <use-retval/>
 3083     <arg nr="1" direction="in">
 3084       <not-uninit/>
 3085       <not-bool/>
 3086     </arg>
 3087   </function>
 3088   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/sched_getparam.html -->
 3089   <!-- int sched_getparam(pid_t pid, struct sched_param *param); -->
 3090   <function name="sched_getparam">
 3091     <returnValue type="int"/>
 3092     <noreturn>false</noreturn>
 3093     <arg nr="1" direction="in">
 3094       <not-uninit/>
 3095       <valid>0:</valid>
 3096     </arg>
 3097     <arg nr="2" direction="out">
 3098       <not-null/>
 3099       <not-bool/>
 3100     </arg>
 3101   </function>
 3102   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/sched_getscheduler.html -->
 3103   <!-- int sched_getscheduler(pid_t pid); -->
 3104   <function name="sched_getscheduler">
 3105     <returnValue type="int"/>
 3106     <noreturn>false</noreturn>
 3107     <arg nr="1" direction="in">
 3108       <not-uninit/>
 3109       <not-bool/>
 3110       <valid>0:</valid>
 3111     </arg>
 3112   </function>
 3113   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/sched_rr_get_interval.html -->
 3114   <!-- int sched_rr_get_interval(pid_t pid, struct timespec *interval); -->
 3115   <function name="sched_rr_get_interval">
 3116     <noreturn>false</noreturn>
 3117     <returnValue type="int"/>
 3118     <arg nr="1" direction="in">
 3119       <not-uninit/>
 3120     </arg>
 3121     <arg nr="2" direction="out">
 3122       <not-null/>
 3123       <not-bool/>
 3124     </arg>
 3125   </function>
 3126   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/sched_setparam.html# -->
 3127   <!-- int sched_setparam(pid_t pid, const struct sched_param *param); -->
 3128   <function name="sched_setparam">
 3129     <returnValue type="int"/>
 3130     <noreturn>false</noreturn>
 3131     <arg nr="1" direction="in">
 3132       <not-uninit/>
 3133     </arg>
 3134     <arg nr="2" direction="in">
 3135       <not-uninit/>
 3136       <not-bool/>
 3137     </arg>
 3138   </function>
 3139   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/sched_setscheduler.html -->
 3140   <!-- int sched_setscheduler(pid_t pid, int policy, const struct sched_param *param); -->
 3141   <function name="sched_setscheduler">
 3142     <returnValue type="int"/>
 3143     <noreturn>false</noreturn>
 3144     <arg nr="1" direction="in">
 3145       <not-uninit/>
 3146       <valid>0:</valid>
 3147     </arg>
 3148     <arg nr="2" direction="in">
 3149       <not-uninit/>
 3150     </arg>
 3151     <arg nr="3" direction="in">
 3152       <not-uninit/>
 3153       <not-bool/>
 3154     </arg>
 3155   </function>
 3156   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/sched_yield.html -->
 3157   <!-- int sched_yield(void); -->
 3158   <function name="sched_yield">
 3159     <returnValue type="int"/>
 3160     <noreturn>false</noreturn>
 3161   </function>
 3162   <!-- https://pubs.opengroup.org/onlinepubs/009696799/functions/ecvt.html -->
 3163   <!-- char *ecvt(double value, int ndigit, int *restrict decpt, int *restrict sign);-->
 3164   <!--      LEGACY in POSIX.1-2001, removed in POSIX.1-2008-->
 3165   <function name="ecvt">
 3166     <returnValue type="char *"/>
 3167     <noreturn>false</noreturn>
 3168     <arg nr="1" direction="in">
 3169       <not-uninit/>
 3170     </arg>
 3171     <arg nr="2" direction="in">
 3172       <not-uninit/>
 3173     </arg>
 3174     <arg nr="3" direction="out">
 3175       <not-null/>
 3176     </arg>
 3177     <arg nr="4" direction="out">
 3178       <not-null/>
 3179       <not-bool/>
 3180     </arg>
 3181     <warn severity="style" reason="Obsolescent" alternatives="sprintf"/>
 3182   </function>
 3183   <!-- char *fcvt(double value, int ndigit, int *restrict decpt, int *restrict sign);-->
 3184   <!--    LEGACY in POSIX.1-2001, removed in POSIX.1-2008-->
 3185   <function name="fcvt">
 3186     <returnValue type="char *"/>
 3187     <noreturn>false</noreturn>
 3188     <arg nr="1" direction="in">
 3189       <not-uninit/>
 3190     </arg>
 3191     <arg nr="2" direction="in">
 3192       <not-uninit/>
 3193     </arg>
 3194     <arg nr="3" direction="out">
 3195       <not-null/>
 3196     </arg>
 3197     <arg nr="4" direction="out">
 3198       <not-null/>
 3199       <not-bool/>
 3200     </arg>
 3201     <warn severity="style" reason="Obsolescent" alternatives="sprintf"/>
 3202   </function>
 3203   <!-- char *gcvt(double value, int ndigit, char *buf);-->
 3204   <!--    LEGACY in POSIX.1-2001, removed in POSIX.1-2008-->
 3205   <function name="gcvt">
 3206     <returnValue type="char *"/>
 3207     <noreturn>false</noreturn>
 3208     <arg nr="1" direction="in">
 3209       <not-uninit/>
 3210     </arg>
 3211     <arg nr="2" direction="in">
 3212       <not-uninit/>
 3213     </arg>
 3214     <arg nr="3" direction="out">
 3215       <not-null/>
 3216       <not-bool/>
 3217     </arg>
 3218     <warn severity="style" reason="Obsolescent" alternatives="sprintf"/>
 3219   </function>
 3220   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/lseek.html -->
 3221   <!-- off_t lseek(int fildes, off_t offset, int whence); -->
 3222   <function name="lseek">
 3223     <returnValue type="off_t"/>
 3224     <noreturn>false</noreturn>
 3225     <leak-ignore/>
 3226     <arg nr="1" direction="in">
 3227       <not-uninit/>
 3228       <valid>0:</valid>
 3229     </arg>
 3230     <arg nr="2" direction="in">
 3231       <not-uninit/>
 3232     </arg>
 3233     <arg nr="3" direction="in">
 3234       <not-uninit/>
 3235     </arg>
 3236   </function>
 3237   <!-- int nanosleep(const struct timespec *rqtp, struct timespec *rmtp); -->
 3238   <function name="nanosleep">
 3239     <returnValue type="int"/>
 3240     <noreturn>false</noreturn>
 3241     <leak-ignore/>
 3242     <arg nr="1" direction="in">
 3243       <not-null/>
 3244     </arg>
 3245     <arg nr="2" direction="out">
 3246       <not-bool/>
 3247     </arg>
 3248   </function>
 3249   <!-- void setkey(const char *key); -->
 3250   <function name="setkey">
 3251     <noreturn>false</noreturn>
 3252     <returnValue type="void"/>
 3253     <leak-ignore/>
 3254     <arg nr="1" direction="in">
 3255       <not-null/>
 3256       <not-uninit/>
 3257     </arg>
 3258   </function>
 3259   <!-- char *getpass(const char *prompt); -->
 3260   <function name="getpass">
 3261     <returnValue type="char *"/>
 3262     <noreturn>false</noreturn>
 3263     <leak-ignore/>
 3264     <arg nr="1" direction="in">
 3265       <not-null/>
 3266       <not-bool/>
 3267     </arg>
 3268   </function>
 3269   <!-- http://pubs.opengroup.org/onlinepubs/009695399/basedefs/stdlib.h.html -->
 3270   <!-- double drand48(void); -->
 3271   <function name="drand48">
 3272     <use-retval/>
 3273     <returnValue type="double"/>
 3274     <noreturn>false</noreturn>
 3275   </function>
 3276   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/putenv.html -->
 3277   <!-- int putenv(char *string); -->
 3278   <function name="putenv">
 3279     <returnValue type="int"/>
 3280     <noreturn>false</noreturn>
 3281     <arg nr="1">
 3282       <not-null/>
 3283       <not-uninit/>
 3284       <not-bool/>
 3285     </arg>
 3286   </function>
 3287   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/setenv.html -->
 3288   <!-- int setenv(const char *envname, const char *envval, int overwrite); -->
 3289   <function name="setenv">
 3290     <returnValue type="int"/>
 3291     <noreturn>false</noreturn>
 3292     <arg nr="1" direction="in">
 3293       <not-null/>
 3294       <not-uninit/>
 3295     </arg>
 3296     <arg nr="2" direction="in">
 3297       <not-null/>
 3298       <not-uninit/>
 3299     </arg>
 3300     <arg nr="3" direction="in">
 3301       <not-uninit/>
 3302     </arg>
 3303   </function>
 3304   <!-- int unsetenv(const char *name); -->
 3305   <function name="unsetenv">
 3306     <returnValue type="int"/>
 3307     <noreturn>false</noreturn>
 3308     <arg nr="1" direction="in">
 3309       <not-null/>
 3310       <not-uninit/>
 3311       <not-bool/>
 3312     </arg>
 3313   </function>
 3314   <!-- struct tm * localtime(const time_t *tp); -->
 3315   <function name="localtime,std::localtime">
 3316     <noreturn>false</noreturn>
 3317     <returnValue type="struct tm *"/>
 3318     <leak-ignore/>
 3319     <arg nr="1" direction="in">
 3320       <not-null/>
 3321       <not-uninit/>
 3322       <not-bool/>
 3323     </arg>
 3324     <warn severity="portability">Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'.</warn>
 3325   </function>
 3326   <!-- struct tm *localtime_r(const time_t *timep, struct tm *result); -->
 3327   <function name="localtime_r">
 3328     <noreturn>false</noreturn>
 3329     <returnValue type="struct tm *"/>
 3330     <leak-ignore/>
 3331     <arg nr="1" direction="in">
 3332       <not-null/>
 3333       <not-uninit/>
 3334     </arg>
 3335     <arg nr="2" direction="out">
 3336       <not-null/>
 3337       <not-bool/>
 3338     </arg>
 3339   </function>
 3340   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/readdir.html -->
 3341   <!-- struct dirent *readdir(DIR *dirp); -->
 3342   <function name="readdir">
 3343     <returnValue type="struct dirent *"/>
 3344     <noreturn>false</noreturn>
 3345     <leak-ignore/>
 3346     <arg nr="1">
 3347       <not-null/>
 3348       <not-uninit/>
 3349       <not-bool/>
 3350     </arg>
 3351     <warn severity="portability">Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'.</warn>
 3352   </function>
 3353   <!-- int readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result); -->
 3354   <function name="readdir_r">
 3355     <returnValue type="int"/>
 3356     <noreturn>false</noreturn>
 3357     <leak-ignore/>
 3358     <arg nr="1">
 3359       <not-null/>
 3360       <not-uninit/>
 3361     </arg>
 3362     <arg nr="2" direction="out">
 3363       <not-null/>
 3364     </arg>
 3365     <arg nr="3" direction="out">
 3366       <not-null/>
 3367       <not-bool/>
 3368     </arg>
 3369   </function>
 3370   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/readlink.html -->
 3371   <!-- ssize_t readlink(const char *path, char *buf, size_t bufsiz); -->
 3372   <function name="readlink">
 3373     <returnValue type="ssize_t"/>
 3374     <noreturn>false</noreturn>
 3375     <leak-ignore/>
 3376     <arg nr="1" direction="in">
 3377       <not-null/>
 3378       <not-uninit/>
 3379     </arg>
 3380     <arg nr="2" direction="out">
 3381       <not-null/>
 3382       <minsize type="argvalue" arg="3"/>
 3383     </arg>
 3384     <arg nr="3" direction="in">
 3385       <not-uninit/>
 3386       <not-bool/>
 3387       <valid>0:</valid>
 3388     </arg>
 3389   </function>
 3390   <!-- int renameat(int olddirfd, const char *oldpath, int newdirfd, const char *newpath); -->
 3391   <function name="renameat">
 3392     <returnValue type="int"/>
 3393     <noreturn>false</noreturn>
 3394     <leak-ignore/>
 3395     <arg nr="1" direction="in">
 3396       <not-uninit/>
 3397     </arg>
 3398     <arg nr="2" direction="in">
 3399       <not-null/>
 3400       <not-uninit/>
 3401     </arg>
 3402     <arg nr="3" direction="in">
 3403       <not-uninit/>
 3404     </arg>
 3405     <arg nr="4" direction="in">
 3406       <not-null/>
 3407       <not-uninit/>
 3408     </arg>
 3409   </function>
 3410   <!-- int readlinkat(int dirfd, const char *pathname, char *buf, size_t bufsiz); -->
 3411   <function name="readlinkat">
 3412     <returnValue type="int"/>
 3413     <noreturn>false</noreturn>
 3414     <leak-ignore/>
 3415     <arg nr="1" direction="in">
 3416       <not-uninit/>
 3417     </arg>
 3418     <arg nr="2" direction="in">
 3419       <not-null/>
 3420       <not-uninit/>
 3421     </arg>
 3422     <arg nr="3" direction="out">
 3423       <not-null/>
 3424       <minsize type="argvalue" arg="4"/>
 3425     </arg>
 3426     <arg nr="4" direction="in">
 3427       <not-uninit/>
 3428       <not-bool/>
 3429       <valid>0:</valid>
 3430     </arg>
 3431   </function>
 3432   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/asctime.html -->
 3433   <!-- char *asctime_r(const struct tm *tm, char *buf); -->
 3434   <function name="asctime_r">
 3435     <returnValue type="char *"/>
 3436     <noreturn>false</noreturn>
 3437     <leak-ignore/>
 3438     <arg nr="1" direction="in">
 3439       <not-null/>
 3440       <not-uninit/>
 3441     </arg>
 3442     <arg nr="2" direction="out">
 3443       <not-null/>
 3444       <not-bool/>
 3445       <minsize type="value" value="26"/>
 3446     </arg>
 3447     <warn severity="style" reason="Obsolescent" alternatives="strftime"/>
 3448   </function>
 3449   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/ctime.html -->
 3450   <!-- char *ctime_r(const time_t *timep, char *buf); -->
 3451   <function name="ctime_r">
 3452     <returnValue type="char *"/>
 3453     <noreturn>false</noreturn>
 3454     <leak-ignore/>
 3455     <arg nr="1" direction="in">
 3456       <not-null/>
 3457       <not-uninit/>
 3458     </arg>
 3459     <arg nr="2" direction="out">
 3460       <not-null/>
 3461       <not-bool/>
 3462       <minsize type="value" value="26"/>
 3463     </arg>
 3464     <warn severity="style" reason="Obsolescent" alternatives="strftime"/>
 3465   </function>
 3466   <!-- struct tm *gmtime_r(const time_t *timep, struct tm *result); -->
 3467   <function name="gmtime_r">
 3468     <returnValue type="struct tm *"/>
 3469     <noreturn>false</noreturn>
 3470     <leak-ignore/>
 3471     <arg nr="1" direction="in">
 3472       <not-null/>
 3473       <not-uninit/>
 3474     </arg>
 3475     <arg nr="2" direction="out">
 3476       <not-null/>
 3477       <not-bool/>
 3478     </arg>
 3479   </function>
 3480   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/gmtime.html -->
 3481   <!-- struct tm * gmtime(const time_t *tp); -->
 3482   <function name="gmtime">
 3483     <returnValue type="struct tm *"/>
 3484     <use-retval/>
 3485     <noreturn>false</noreturn>
 3486     <leak-ignore/>
 3487     <arg nr="1" direction="in">
 3488       <not-null/>
 3489       <not-uninit/>
 3490       <not-bool/>
 3491     </arg>
 3492     <warn severity="portability">Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'.</warn>
 3493   </function>
 3494   <!-- http://pubs.opengroup.org/onlinepubs/007908799/xsh/time.h.html -->
 3495   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/clock_settime.html -->
 3496   <!-- int clock_settime(clockid_t clock_id, const struct timespec *tp); -->
 3497   <function name="clock_settime">
 3498     <returnValue type="int"/>
 3499     <noreturn>false</noreturn>
 3500     <arg nr="1" direction="in">
 3501       <not-uninit/>
 3502     </arg>
 3503     <arg nr="2" direction="in">
 3504       <not-uninit/>
 3505       <not-bool/>
 3506     </arg>
 3507   </function>
 3508   <!-- int killpg(int pgrp, int sig); -->
 3509   <function name="killpg">
 3510     <returnValue type="int"/>
 3511     <noreturn>false</noreturn>
 3512     <arg nr="1" direction="in">
 3513       <not-uninit/>
 3514     </arg>
 3515     <arg nr="2" direction="in">
 3516       <not-uninit/>
 3517       <not-bool/>
 3518     </arg>
 3519   </function>
 3520   <!-- int kill(pid_t pid, int sig); -->
 3521   <function name="kill">
 3522     <returnValue type="int"/>
 3523     <noreturn>false</noreturn>
 3524     <arg nr="1" direction="in">
 3525       <not-uninit/>
 3526     </arg>
 3527     <arg nr="2" direction="in">
 3528       <not-uninit/>
 3529       <not-bool/>
 3530     </arg>
 3531   </function>
 3532   <!-- int clock_gettime(clockid_t clock_id, struct timespec *tp); -->
 3533   <function name="clock_gettime">
 3534     <returnValue type="int"/>
 3535     <noreturn>false</noreturn>
 3536     <arg nr="1" direction="in">
 3537       <not-uninit/>
 3538     </arg>
 3539     <arg nr="2" direction="out">
 3540       <not-null/>
 3541       <not-bool/>
 3542     </arg>
 3543   </function>
 3544   <!-- int clock_getres(clockid_t clock_id, struct timespec *res); -->
 3545   <function name="clock_getres">
 3546     <returnValue type="int"/>
 3547     <noreturn>false</noreturn>
 3548     <arg nr="1" direction="in">
 3549       <not-uninit/>
 3550     </arg>
 3551     <arg nr="2" direction="out">
 3552       <not-bool/>
 3553     </arg>
 3554   </function>
 3555   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/tmpnam.html -->
 3556   <!-- char* tmpnam(char *s); -->
 3557   <function name="tmpnam,tmpnam_r">
 3558     <returnValue type="char *"/>
 3559     <noreturn>false</noreturn>
 3560     <leak-ignore/>
 3561     <arg nr="1" direction="out">
 3562       <not-bool/>
 3563     </arg>
 3564     <warn severity="style" reason="Obsolescent" alternatives="tmpfile,mkstemp,mkdtemp"/>
 3565   </function>
 3566   <!-- void makecontext(ucontext_t *ucp, void (*func)(), int argc, ...); -->
 3567   <function name="makecontext">
 3568     <noreturn>false</noreturn>
 3569     <leak-ignore/>
 3570     <arg nr="1">
 3571       <not-null/>
 3572     </arg>
 3573     <arg nr="2">
 3574       <not-null/>
 3575       <not-uninit/>
 3576     </arg>
 3577     <arg nr="3">
 3578       <not-uninit/>
 3579     </arg>
 3580     <arg nr="any"/>
 3581     <warn severity="portability">Obsolescent function 'makecontext' called. Applications are recommended to be rewritten to use POSIX threads.</warn>
 3582   </function>
 3583   <!-- void swapcontext(ucontext_t *restrict oucp, const ucontext_t *restrict ucp); -->
 3584   <function name="swapcontext">
 3585     <noreturn>false</noreturn>
 3586     <leak-ignore/>
 3587     <arg nr="1">
 3588       <not-null/>
 3589     </arg>
 3590     <arg nr="2">
 3591       <not-null/>
 3592     </arg>
 3593     <warn severity="portability">Obsolescent function 'swapcontext' called. Applications are recommended to be rewritten to use POSIX threads.</warn>
 3594   </function>
 3595   <!-- void getcontext(ucontext_t *ucp); -->
 3596   <function name="getcontext">
 3597     <noreturn>false</noreturn>
 3598     <leak-ignore/>
 3599     <arg nr="1">
 3600       <not-null/>
 3601     </arg>
 3602     <warn severity="portability">Obsolescent function 'getcontext' called. Applications are recommended to be rewritten to use POSIX threads.</warn>
 3603   </function>
 3604   <!-- useconds_t ualarm(useconds_t useconds, useconds_t interval); -->
 3605   <function name="ualarm">
 3606     <returnValue type="useconds_t"/>
 3607     <noreturn>false</noreturn>
 3608     <leak-ignore/>
 3609     <arg nr="1" direction="in">
 3610       <not-uninit/>
 3611     </arg>
 3612     <arg nr="2" direction="in">
 3613       <not-uninit/>
 3614       <not-bool/>
 3615     </arg>
 3616     <warn severity="style" reason="Obsolescent" alternatives="timer_create,timer_delete,timer_getoverrun,timer_gettime,timer_settime"/>
 3617   </function>
 3618   <!-- double scalb(double x, double n); -->
 3619   <function name="scalb">
 3620     <returnValue type="double"/>
 3621     <use-retval/>
 3622     <noreturn>false</noreturn>
 3623     <leak-ignore/>
 3624     <arg nr="1" direction="in">
 3625       <not-uninit/>
 3626     </arg>
 3627     <arg nr="2" direction="in">
 3628       <not-uninit/>
 3629       <not-bool/>
 3630     </arg>
 3631     <warn severity="style" reason="Obsolescent" alternatives="scalbln,scalblnf,scalbln,scalbn,scalbnf,scalbnl"/>
 3632   </function>
 3633   <!-- void bcopy(const void *s1, void *s2, size_t n); -->
 3634   <function name="bcopy">
 3635     <noreturn>false</noreturn>
 3636     <leak-ignore/>
 3637     <arg nr="1" direction="in">
 3638       <not-null/>
 3639       <not-uninit/>
 3640       <minsize type="argvalue" arg="3"/>
 3641     </arg>
 3642     <arg nr="2" direction="out">
 3643       <not-null/>
 3644       <minsize type="argvalue" arg="3"/>
 3645     </arg>
 3646     <arg nr="3" direction="in">
 3647       <not-uninit/>
 3648       <valid>0:</valid>
 3649     </arg>
 3650     <warn severity="style" reason="Obsolescent" alternatives="memcpy,memmove"/>
 3651   </function>
 3652   <!-- int bcmp(const void *s1, const void *s2, size_t n); -->
 3653   <function name="bcmp">
 3654     <use-retval/>
 3655     <returnValue type="int"/>
 3656     <noreturn>false</noreturn>
 3657     <leak-ignore/>
 3658     <arg nr="1" direction="in">
 3659       <not-null/>
 3660       <not-uninit/>
 3661     </arg>
 3662     <arg nr="2" direction="in">
 3663       <not-null/>
 3664       <not-uninit/>
 3665     </arg>
 3666     <arg nr="3" direction="in">
 3667       <not-uninit/>
 3668       <not-bool/>
 3669       <valid>0:</valid>
 3670     </arg>
 3671     <warn severity="style" reason="Obsolescent" alternatives="memcmp"/>
 3672   </function>
 3673   <!-- void bzero(void *s, size_t n); -->
 3674   <function name="bzero">
 3675     <noreturn>false</noreturn>
 3676     <leak-ignore/>
 3677     <arg nr="1" direction="out">
 3678       <not-null/>
 3679     </arg>
 3680     <arg nr="2" direction="in">
 3681       <not-uninit/>
 3682       <valid>0:</valid>
 3683     </arg>
 3684     <warn severity="style" reason="Obsolescent" alternatives="memset"/>
 3685   </function>
 3686   <!-- https://pubs.opengroup.org/onlinepubs/007904875/functions/ftime.html -->
 3687   <!-- int ftime(struct timeb *tp); -->
 3688   <function name="ftime">
 3689     <returnValue type="int"/>
 3690     <noreturn>false</noreturn>
 3691     <leak-ignore/>
 3692     <arg nr="1" direction="out">
 3693       <not-null/>
 3694       <not-bool/>
 3695     </arg>
 3696     <warn severity="style" reason="Obsolescent" alternatives="time,gettimeofday,clock_gettime"/>
 3697   </function>
 3698   <!-- wchar_t *wcswcs(const wchar_t *ws1, const wchar_t *ws2); -->
 3699   <function name="wcswcs">
 3700     <use-retval/>
 3701     <returnValue type="wchar_t *"/>
 3702     <noreturn>false</noreturn>
 3703     <leak-ignore/>
 3704     <arg nr="1" direction="in">
 3705       <not-null/>
 3706       <not-uninit/>
 3707     </arg>
 3708     <arg nr="2" direction="in">
 3709       <not-null/>
 3710       <not-uninit/>
 3711       <not-bool/>
 3712     </arg>
 3713     <warn severity="style" reason="Obsolescent" alternatives="wcsstr"/>
 3714   </function>
 3715   <!-- char *stpcpy(char *desstr, const char *srcstr); -->
 3716   <function name="stpcpy">
 3717     <returnValue type="char *"/>
 3718     <noreturn>false</noreturn>
 3719     <leak-ignore/>
 3720     <arg nr="1" direction="out">
 3721       <not-null/>
 3722       <minsize type="strlen" arg="2"/>
 3723     </arg>
 3724     <arg nr="2" direction="in">
 3725       <not-null/>
 3726       <not-uninit/>
 3727       <strz/>
 3728       <not-bool/>
 3729     </arg>
 3730   </function>
 3731   <!-- char *index(const char *s, int c); -->
 3732   <function name="index">
 3733     <use-retval/>
 3734     <returnValue type="char *"/>
 3735     <noreturn>false</noreturn>
 3736     <leak-ignore/>
 3737     <arg nr="1" direction="in">
 3738       <not-null/>
 3739       <not-uninit/>
 3740     </arg>
 3741     <arg nr="2" direction="in">
 3742       <not-uninit/>
 3743       <not-bool/>
 3744     </arg>
 3745     <warn severity="style" reason="Obsolescent" alternatives="strchr"/>
 3746   </function>
 3747   <!-- char *rindex(const char *s, int c); -->
 3748   <function name="rindex">
 3749     <use-retval/>
 3750     <returnValue type="char *"/>
 3751     <noreturn>false</noreturn>
 3752     <leak-ignore/>
 3753     <arg nr="1" direction="in">
 3754       <not-null/>
 3755       <not-uninit/>
 3756     </arg>
 3757     <arg nr="2" direction="in">
 3758       <not-uninit/>
 3759       <not-bool/>
 3760     </arg>
 3761     <warn severity="style" reason="Obsolescent" alternatives="strrchr"/>
 3762   </function>
 3763   <!-- sighandler_t bsd_signal(int signum, sighandler_t handler); -->
 3764   <function name="bsd_signal">
 3765     <returnValue type="sighandler_t"/>
 3766     <noreturn>false</noreturn>
 3767     <leak-ignore/>
 3768     <arg nr="1" direction="in">
 3769       <not-uninit/>
 3770     </arg>
 3771     <arg nr="2">
 3772       <not-uninit/>
 3773       <not-bool/>
 3774     </arg>
 3775     <warn severity="style" reason="Obsolescent" alternatives="sigaction"/>
 3776   </function>
 3777   <!-- pid_t fork(void); -->
 3778   <function name="fork">
 3779     <returnValue type="pid_t"/>
 3780     <noreturn>false</noreturn>
 3781     <leak-ignore/>
 3782   </function>
 3783   <!-- pid_t vfork(void); -->
 3784   <function name="vfork">
 3785     <returnValue type="pid_t"/>
 3786     <noreturn>false</noreturn>
 3787     <leak-ignore/>
 3788     <warn severity="style" reason="Obsolescent" alternatives="fork"/>
 3789   </function>
 3790   <!-- int pthread_atfork(void (*prepare)(void), void (*parent)(void), void (*child)(void)); -->
 3791   <function name="pthread_atfork">
 3792     <returnValue type="int"/>
 3793     <noreturn>false</noreturn>
 3794     <leak-ignore/>
 3795     <arg nr="3"/>
 3796   </function>
 3797   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_cond_broadcast.html -->
 3798   <!-- int pthread_cond_signal(pthread_cond_t *cond);
 3799        int pthread_cond_broadcast(pthread_cond_t *cond); -->
 3800   <function name="pthread_cond_signal,pthread_cond_broadcast">
 3801     <returnValue type="int"/>
 3802     <noreturn>false</noreturn>
 3803     <leak-ignore/>
 3804     <arg nr="1">
 3805       <not-null/>
 3806       <not-uninit/>
 3807     </arg>
 3808   </function>
 3809   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_create.html -->
 3810   <!-- int pthread_create(pthread_t * thread, const pthread_attr_t * attr, void *(*start_routine)(void*), void * arg); -->
 3811   <function name="pthread_create">
 3812     <returnValue type="int"/>
 3813     <noreturn>false</noreturn>
 3814     <arg nr="1" direction="out">
 3815       <not-null/>
 3816     </arg>
 3817     <arg nr="2" direction="in"/>
 3818     <arg nr="3">
 3819       <not-null/>
 3820     </arg>
 3821     <arg nr="4"/>
 3822   </function>
 3823   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_detach.html -->
 3824   <!-- int pthread_detach(pthread_t thread); -->
 3825   <function name="pthread_detach">
 3826     <noreturn>false</noreturn>
 3827     <returnValue type="int"/>
 3828     <arg nr="1" direction="in">
 3829       <not-uninit/>
 3830     </arg>
 3831   </function>
 3832   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_equal.html -->
 3833   <!-- int pthread_equal(pthread_t t1, pthread_t t2); -->
 3834   <function name="pthread_equal">
 3835     <noreturn>false</noreturn>
 3836     <use-retval/>
 3837     <returnValue type="int"/>
 3838     <arg nr="1" direction="in">
 3839       <not-uninit/>
 3840     </arg>
 3841     <arg nr="2" direction="in">
 3842       <not-uninit/>
 3843     </arg>
 3844   </function>
 3845   <function name="pthread_exit">
 3846     <noreturn>true</noreturn>
 3847     <arg nr="1"/>
 3848   </function>
 3849   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_join.html -->
 3850   <!-- int pthread_join(pthread_t thread, void **value_ptr); -->
 3851   <function name="pthread_join">
 3852     <noreturn>false</noreturn>
 3853     <returnValue type="int"/>
 3854     <arg nr="1" direction="in">
 3855       <not-uninit/>
 3856     </arg>
 3857     <arg nr="2" direction="out">
 3858       <not-bool/>
 3859     </arg>
 3860   </function>
 3861   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_kill.html -->
 3862   <!-- int pthread_kill(pthread_t thread, int sig); -->
 3863   <function name="pthread_kill">
 3864     <noreturn>false</noreturn>
 3865     <returnValue type="int"/>
 3866     <arg nr="1" direction="in">
 3867       <not-uninit/>
 3868     </arg>
 3869     <arg nr="2" direction="in">
 3870       <not-uninit/>
 3871     </arg>
 3872   </function>
 3873   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_self.html -->
 3874   <!-- pthread_t pthread_self(void); -->
 3875   <function name="pthread_self">
 3876     <noreturn>false</noreturn>
 3877     <use-retval/>
 3878     <returnValue type="pthread_t"/>
 3879   </function>
 3880   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_attr_destroy.html -->
 3881   <!-- int pthread_attr_destroy(pthread_attr_t *attr); -->
 3882   <function name="pthread_attr_destroy">
 3883     <noreturn>false</noreturn>
 3884     <returnValue type="int"/>
 3885     <arg nr="1" direction="inout">
 3886       <not-null/>
 3887     </arg>
 3888   </function>
 3889   <!-- int pthread_attr_init(pthread_attr_t *attr); -->
 3890   <function name="pthread_attr_init">
 3891     <noreturn>false</noreturn>
 3892     <returnValue type="int"/>
 3893     <arg nr="1" direction="out">
 3894       <not-null/>
 3895     </arg>
 3896   </function>
 3897   <!-- https://pubs.opengroup.org/onlinepubs/009695399/functions/pthread_attr_getstackaddr.html -->
 3898   <!-- int pthread_attr_setstackaddr(pthread_attr_t *attr, void *stackaddr); -->
 3899   <function name="pthread_attr_setstackaddr">
 3900     <noreturn>false</noreturn>
 3901     <leak-ignore/>
 3902     <returnValue type="int"/>
 3903     <arg nr="1">
 3904       <not-null/>
 3905       <not-uninit/>
 3906     </arg>
 3907     <arg nr="2">
 3908       <not-null/>
 3909       <not-uninit/>
 3910       <not-bool/>
 3911     </arg>
 3912     <warn severity="style" reason="Obsolescent" alternatives="pthread_attr_setstack"/>
 3913   </function>
 3914   <!-- int pthread_attr_getstackaddr(const pthread_attr_t *attr, void **stackaddr); -->
 3915   <function name="pthread_attr_getstackaddr">
 3916     <noreturn>false</noreturn>
 3917     <leak-ignore/>
 3918     <returnValue type="int"/>
 3919     <arg nr="1">
 3920       <not-null/>
 3921       <not-uninit/>
 3922     </arg>
 3923     <arg nr="2">
 3924       <not-null/>
 3925       <not-bool/>
 3926     </arg>
 3927     <warn severity="style" reason="Obsolescent" alternatives="pthread_attr_getstack"/>
 3928   </function>
 3929   <!-- int pthread_attr_setstacksize(pthread_attr_t *attr, size_t stacksize); -->
 3930   <!-- int pthread_attr_setguardsize(pthread_attr_t *attr, size_t guardsize); -->
 3931   <function name="pthread_attr_setstacksize,pthread_attr_setguardsize">
 3932     <noreturn>false</noreturn>
 3933     <returnValue type="int"/>
 3934     <leak-ignore/>
 3935     <arg nr="1">
 3936       <not-null/>
 3937       <not-uninit/>
 3938     </arg>
 3939     <arg nr="2" direction="in">
 3940       <not-uninit/>
 3941       <not-bool/>
 3942       <valid>0:</valid>
 3943     </arg>
 3944   </function>
 3945   <!-- int pthread_attr_getstacksize(const pthread_attr_t *attr, size_t *stacksize); -->
 3946   <!-- int pthread_attr_getguardsize(const pthread_attr_t *attr, size_t *guardsize); -->
 3947   <function name="pthread_attr_getstacksize,pthread_attr_getguardsize">
 3948     <noreturn>false</noreturn>
 3949     <returnValue type="int"/>
 3950     <leak-ignore/>
 3951     <arg nr="1">
 3952       <not-null/>
 3953       <not-uninit/>
 3954     </arg>
 3955     <arg nr="2" direction="out">
 3956       <not-null/>
 3957       <not-bool/>
 3958     </arg>
 3959   </function>
 3960   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_mutex_init.html -->
 3961   <!-- int pthread_mutex_init(pthread_mutex_t *restrict mutex, const pthread_mutexattr_t *restrict attr); -->
 3962   <function name="pthread_mutex_init">
 3963     <noreturn>false</noreturn>
 3964     <returnValue type="int"/>
 3965     <arg nr="1" direction="out">
 3966       <not-null/>
 3967     </arg>
 3968     <arg nr="2" direction="in">
 3969       <!-- NULL is valid -->
 3970     </arg>
 3971   </function>
 3972   <!-- int pthread_mutex_destroy(pthread_mutex_t *mutex); -->
 3973   <function name="pthread_mutex_destroy">
 3974     <noreturn>false</noreturn>
 3975     <returnValue type="int"/>
 3976     <arg nr="1" direction="inout">
 3977       <not-null/>
 3978       <not-uninit/>
 3979     </arg>
 3980   </function>
 3981   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_mutex_lock.html -->
 3982   <!-- int pthread_mutex_lock(pthread_mutex_t *mutex); -->
 3983   <function name="pthread_mutex_lock">
 3984     <noreturn>false</noreturn>
 3985     <leak-ignore/>
 3986     <returnValue type="int"/>
 3987     <arg nr="1" direction="inout">
 3988       <not-null/>
 3989       <not-uninit/>
 3990       <not-bool/>
 3991     </arg>
 3992   </function>
 3993   <!-- int pthread_mutex_trylock(pthread_mutex_t *mutex); -->
 3994   <function name="pthread_mutex_trylock">
 3995     <noreturn>false</noreturn>
 3996     <leak-ignore/>
 3997     <returnValue type="int"/>
 3998     <use-retval/>
 3999     <arg nr="1" direction="inout">
 4000       <not-null/>
 4001       <not-uninit/>
 4002       <not-bool/>
 4003     </arg>
 4004   </function>
 4005   <!-- int pthread_mutex_unlock(pthread_mutex_t *mutex); -->
 4006   <function name="pthread_mutex_unlock">
 4007     <noreturn>false</noreturn>
 4008     <leak-ignore/>
 4009     <returnValue type="int"/>
 4010     <arg nr="1" direction="inout">
 4011       <not-null/>
 4012       <not-uninit/>
 4013       <not-bool/>
 4014     </arg>
 4015   </function>
 4016   <!-- char *tempnam(const char *dir, const char *pfx); -->
 4017   <function name="tempnam">
 4018     <use-retval/>
 4019     <returnValue type="char *"/>
 4020     <noreturn>false</noreturn>
 4021     <leak-ignore/>
 4022     <arg nr="1" direction="in">
 4023       <not-uninit/>
 4024       <strz/>
 4025     </arg>
 4026     <arg nr="2" direction="in">
 4027       <not-uninit/>
 4028       <not-bool/>
 4029       <strz/>
 4030     </arg>
 4031     <warn severity="portability">Non reentrant function 'tempnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'tempnam_r'.</warn>
 4032   </function>
 4033   <!-- char *crypt(const char *key, const char *salt); -->
 4034   <function name="crypt">
 4035     <use-retval/>
 4036     <returnValue type="char *"/>
 4037     <noreturn>false</noreturn>
 4038     <leak-ignore/>
 4039     <arg nr="1" direction="in">
 4040       <not-null/>
 4041       <not-uninit/>
 4042       <strz/>
 4043     </arg>
 4044     <arg nr="2" direction="in">
 4045       <not-null/>
 4046       <not-uninit/>
 4047       <not-bool/>
 4048       <strz/>
 4049     </arg>
 4050     <warn severity="portability">Non reentrant function 'crypt' called. For threadsafe applications it is recommended to use the reentrant replacement function 'crypt_r'.</warn>
 4051   </function>
 4052   <!-- char *ttyname(int fd); -->
 4053   <function name="ttyname">
 4054     <use-retval/>
 4055     <returnValue type="char *"/>
 4056     <noreturn>false</noreturn>
 4057     <leak-ignore/>
 4058     <arg nr="1" direction="in">
 4059       <valid>0:</valid>
 4060       <not-uninit/>
 4061       <not-bool/>
 4062     </arg>
 4063     <warn severity="portability">Non reentrant function 'ttyname' called. For threadsafe applications it is recommended to use the reentrant replacement function 'ttyname_r'.</warn>
 4064   </function>
 4065   <!-- int ttyname_r(int fd, char *buf, size_t buflen); -->
 4066   <function name="ttyname">
 4067     <use-retval/>
 4068     <returnValue type="int"/>
 4069     <noreturn>false</noreturn>
 4070     <leak-ignore/>
 4071     <arg nr="1" direction="in">
 4072       <valid>0:</valid>
 4073       <not-uninit/>
 4074       <not-bool/>
 4075     </arg>
 4076     <arg nr="2" direction="inout">
 4077       <not-null/>
 4078       <not-uninit/>
 4079       <minsize type="argvalue" arg="3"/>
 4080     </arg>
 4081     <arg nr="3" direction="in">
 4082       <not-uninit/>
 4083       <valid>0:</valid>
 4084     </arg>
 4085   </function>
 4086   <!-- struct spwd *getspnam(const char *name); -->
 4087   <function name="getspnam">
 4088     <use-retval/>
 4089     <returnValue type="struct spwd *"/>
 4090     <noreturn>false</noreturn>
 4091     <leak-ignore/>
 4092     <arg nr="1" direction="in">
 4093       <not-null/>
 4094       <not-uninit/>
 4095       <not-bool/>
 4096     </arg>
 4097     <warn severity="portability">Non reentrant function 'getspnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getspnam_r'.</warn>
 4098   </function>
 4099   <!-- struct spwd *getspent(void); -->
 4100   <function name="getspent">
 4101     <use-retval/>
 4102     <returnValue type="struct spwd *"/>
 4103     <noreturn>false</noreturn>
 4104     <leak-ignore/>
 4105     <warn severity="portability">Non reentrant function 'getspent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getspent_r'.</warn>
 4106   </function>
 4107   <!-- struct spwd *fgetspent(FILE *fp); -->
 4108   <function name="fgetspent">
 4109     <use-retval/>
 4110     <returnValue type="struct spwd *"/>
 4111     <noreturn>false</noreturn>
 4112     <leak-ignore/>
 4113     <arg nr="1">
 4114       <not-null/>
 4115       <not-uninit/>
 4116       <not-bool/>
 4117     </arg>
 4118     <warn severity="portability">Non reentrant function 'fgetspent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'fgetspent_r'.</warn>
 4119   </function>
 4120   <!-- struct spwd *sgetspent(const char *s); -->
 4121   <function name="sgetspent">
 4122     <use-retval/>
 4123     <returnValue type="struct spwd *"/>
 4124     <noreturn>false</noreturn>
 4125     <leak-ignore/>
 4126     <arg nr="1" direction="in">
 4127       <not-null/>
 4128       <not-uninit/>
 4129       <not-bool/>
 4130     </arg>
 4131     <warn severity="portability">Non reentrant function 'sgetspent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'sgetspent_r'.</warn>
 4132   </function>
 4133   <!-- struct passwd *fgetpwent(FILE *stream); -->
 4134   <function name="fgetpwent">
 4135     <use-retval/>
 4136     <returnValue type="struct passwd *"/>
 4137     <noreturn>false</noreturn>
 4138     <leak-ignore/>
 4139     <arg nr="1">
 4140       <not-null/>
 4141       <not-uninit/>
 4142       <not-bool/>
 4143     </arg>
 4144     <warn severity="portability">Non reentrant function 'fgetpwent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'fgetpwent_r'.</warn>
 4145   </function>
 4146   <!-- struct group *getgrent(void); -->
 4147   <function name="getgrent">
 4148     <use-retval/>
 4149     <returnValue type="struct group *"/>
 4150     <noreturn>false</noreturn>
 4151     <leak-ignore/>
 4152     <warn severity="portability">Non reentrant function 'getgrent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrent_r'.</warn>
 4153   </function>
 4154   <!-- int getgrent_r(struct group *gbuf, char *buf, size_t buflen, struct group **gbufp) -->
 4155   <function name="getgrent_r">
 4156     <use-retval/>
 4157     <returnValue type="int"/>
 4158     <noreturn>false</noreturn>
 4159     <leak-ignore/>
 4160     <arg nr="1" direction="out"/>
 4161     <arg nr="2" direction="out">
 4162       <minsize type="argvalue" arg="3"/>
 4163     </arg>
 4164     <arg nr="3" direction="in">
 4165       <not-uninit/>
 4166       <valid>0:</valid>
 4167     </arg>
 4168     <arg nr="4" direction="out">
 4169       <not-bool/>
 4170     </arg>
 4171   </function>
 4172   <!-- struct group *fgetgrent(FILE *stream); -->
 4173   <function name="fgetgrent">
 4174     <use-retval/>
 4175     <returnValue type="struct group *"/>
 4176     <noreturn>false</noreturn>
 4177     <leak-ignore/>
 4178     <arg nr="1">
 4179       <not-null/>
 4180       <not-uninit/>
 4181       <not-bool/>
 4182     </arg>
 4183     <warn severity="portability">Non reentrant function 'fgetgrent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'fgetgrent_r'.</warn>
 4184   </function>
 4185   <!-- int getnetgrent(char **host, char **user, char **domain); -->
 4186   <function name="getnetgrent">
 4187     <noreturn>false</noreturn>
 4188     <leak-ignore/>
 4189     <returnValue type="int"/>
 4190     <arg nr="1" direction="out">
 4191       <not-null/>
 4192     </arg>
 4193     <arg nr="2" direction="out">
 4194       <not-null/>
 4195     </arg>
 4196     <arg nr="3" direction="out">
 4197       <not-null/>
 4198       <not-bool/>
 4199     </arg>
 4200     <warn severity="portability">Non reentrant function 'getnetgrent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getnetgrent_r'.</warn>
 4201   </function>
 4202   <!-- struct group *getgrnam(const char *name); -->
 4203   <function name="getgrnam">
 4204     <use-retval/>
 4205     <returnValue type="struct group *"/>
 4206     <noreturn>false</noreturn>
 4207     <leak-ignore/>
 4208     <arg nr="1" direction="in">
 4209       <not-null/>
 4210       <not-uninit/>
 4211       <not-bool/>
 4212     </arg>
 4213     <warn severity="portability">Non reentrant function 'getgrnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrnam_r'.</warn>
 4214   </function>
 4215   <!-- struct group *getgrgid(gid_t gid); -->
 4216   <function name="getgrgid">
 4217     <returnValue type="struct group *"/>
 4218     <use-retval/>
 4219     <noreturn>false</noreturn>
 4220     <leak-ignore/>
 4221     <arg nr="1" direction="in">
 4222       <not-uninit/>
 4223       <not-bool/>
 4224     </arg>
 4225     <warn severity="portability">Non reentrant function 'getgrgid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrgid_r'.</warn>
 4226   </function>
 4227   <!-- char *getlogin(void); -->
 4228   <function name="getlogin">
 4229     <returnValue type="char *"/>
 4230     <use-retval/>
 4231     <noreturn>false</noreturn>
 4232     <leak-ignore/>
 4233     <warn severity="portability">Non reentrant function 'getlogin' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getlogin_r'.</warn>
 4234   </function>
 4235   <!-- char *ctermid(char *s); -->
 4236   <function name="ctermid">
 4237     <returnValue type="char *"/>
 4238     <noreturn>false</noreturn>
 4239     <leak-ignore/>
 4240     <arg nr="1" direction="out">
 4241       <not-bool/>
 4242     </arg>
 4243     <warn severity="portability">Non reentrant function 'ctermid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'ctermid_r'.</warn>
 4244   </function>
 4245   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/realpath.html -->
 4246   <!-- char *realpath(const char *path, char *resolved_path); -->
 4247   <function name="realpath">
 4248     <returnValue type="char *"/>
 4249     <noreturn>false</noreturn>
 4250     <leak-ignore/>
 4251     <arg nr="1" direction="in">
 4252       <not-uninit/>
 4253       <not-null/>
 4254     </arg>
 4255     <arg nr="2" direction="out">
 4256       <not-bool/>
 4257     </arg>
 4258   </function>
 4259   <!-- long telldir(DIR *dirp); -->
 4260   <function name="telldir">
 4261     <returnValue type="long"/>
 4262     <use-retval/>
 4263     <noreturn>false</noreturn>
 4264     <leak-ignore/>
 4265     <arg nr="1" direction="inout">
 4266       <not-null/>
 4267       <not-uninit/>
 4268       <not-bool/>
 4269     </arg>
 4270   </function>
 4271   <!-- http://man7.org/linux/man-pages/man3/scandir.3.html -->
 4272   <!-- int scandir(const char *dirp, 
 4273                     struct dirent ***namelist,
 4274                     int (*filter)(const struct dirent *),
 4275                     int (*compar)(const struct dirent **, const struct dirent **));-->
 4276   <function name="scandir">
 4277     <use-retval/>
 4278     <returnValue type="int"/>
 4279     <noreturn>false</noreturn>
 4280     <leak-ignore/>
 4281     <arg nr="1" direction="in">
 4282       <not-null/>
 4283       <not-uninit/>
 4284     </arg>
 4285     <arg nr="2" direction="out">
 4286       <not-null/>
 4287     </arg>
 4288     <arg nr="3" direction="in">
 4289       <not-uninit/>
 4290     </arg>
 4291     <arg nr="4" direction="in">
 4292       <not-uninit/>
 4293       <not-null/>
 4294       <not-bool/>
 4295     </arg>
 4296   </function>
 4297   <!-- http://man7.org/linux/man-pages/man3/fileno.3p.html -->
 4298   <!-- int fileno(FILE *stream); -->
 4299   <function name="fileno">
 4300     <returnValue type="int"/>
 4301     <use-retval/>
 4302     <noreturn>false</noreturn>
 4303     <leak-ignore/>
 4304     <arg nr="1" direction="inout">
 4305       <not-null/>
 4306       <not-uninit/>
 4307       <not-bool/>
 4308     </arg>
 4309   </function>
 4310   <!-- int fseeko(FILE *stream, off_t offset, int whence); -->
 4311   <function name="fseeko">
 4312     <returnValue type="int"/>
 4313     <noreturn>false</noreturn>
 4314     <leak-ignore/>
 4315     <arg nr="1">
 4316       <not-null/>
 4317       <not-uninit/>
 4318     </arg>
 4319     <arg nr="2" direction="in">
 4320       <not-uninit/>
 4321     </arg>
 4322     <arg nr="3" direction="in">
 4323       <not-uninit/>
 4324       <not-bool/>
 4325     </arg>
 4326   </function>
 4327   <!-- off_t ftello(FILE *stream); -->
 4328   <function name="ftello">
 4329     <use-retval/>
 4330     <returnValue type="off_t"/>
 4331     <noreturn>false</noreturn>
 4332     <leak-ignore/>
 4333     <arg nr="1">
 4334       <not-null/>
 4335       <not-uninit/>
 4336       <not-bool/>
 4337     </arg>
 4338   </function>
 4339   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/exec.html -->
 4340   <!-- int execv(const char *path, char *const argv[]); 
 4341        int execvp(const char *file, char *const argv[]); -->
 4342   <function name="execv,execvp">
 4343     <returnValue type="int"/>
 4344     <noreturn>false</noreturn>
 4345     <leak-ignore/>
 4346     <arg nr="1" direction="in">
 4347       <not-null/>
 4348       <not-uninit/>
 4349       <strz/>
 4350     </arg>
 4351     <arg nr="2">
 4352       <not-uninit/>
 4353       <not-bool/>
 4354     </arg>
 4355   </function>
 4356   <!-- pid_t wait(int *stat_loc); -->
 4357   <function name="wait">
 4358     <returnValue type="pid_t"/>
 4359     <noreturn>false</noreturn>
 4360     <leak-ignore/>
 4361     <arg nr="1" direction="out">
 4362       <not-bool/>
 4363     </arg>
 4364   </function>
 4365   <!-- pid_t waitpid(pid_t pid, int *stat_loc, int options); -->
 4366   <function name="waitpid">
 4367     <returnValue type="pid_t"/>
 4368     <noreturn>false</noreturn>
 4369     <leak-ignore/>
 4370     <arg nr="1" direction="in">
 4371       <not-uninit/>
 4372     </arg>
 4373     <arg nr="2" direction="out"/>
 4374     <arg nr="3" direction="in">
 4375       <not-uninit/>
 4376       <not-bool/>
 4377     </arg>
 4378   </function>
 4379   <!-- see http://man7.org/linux/man-pages/man3/wcsnlen.3.html-->
 4380   <!-- size_t wcsnlen(const wchar_t *s, size_t maxlen);-->
 4381   <!-- see http://man7.org/linux/man-pages/man3/strnlen.3.html-->
 4382   <!-- size_t strnlen(const char *s, size_t maxlen); -->
 4383   <function name="strnlen,wcsnlen">
 4384     <use-retval/>
 4385     <returnValue type="size_t"/>
 4386     <noreturn>false</noreturn>
 4387     <leak-ignore/>
 4388     <arg nr="1" direction="in">
 4389       <not-null/>
 4390       <not-uninit/>
 4391     </arg>
 4392     <arg nr="2" direction="in">
 4393       <not-uninit/>
 4394       <not-bool/>
 4395       <valid>0:</valid>
 4396     </arg>
 4397   </function>
 4398   <!-- http://man7.org/linux/man-pages/man3/ffs.3.html -->
 4399   <!-- int ffs(int i); -->
 4400   <function name="ffs">
 4401     <returnValue type="int"/>
 4402     <use-retval/>
 4403     <noreturn>false</noreturn>
 4404     <leak-ignore/>
 4405     <arg nr="1" direction="in">
 4406       <not-uninit/>
 4407       <not-bool/>
 4408     </arg>
 4409   </function>
 4410   <!-- http://pubs.opengroup.org/onlinepubs/9699919799/functions/shmctl.html -->
 4411   <!-- int shmctl(int shmid, int cmd, struct shmid_ds *buf); -->
 4412   <function name="shmctl">
 4413     <returnValue type="int"/>
 4414     <noreturn>false</noreturn>
 4415     <leak-ignore/>
 4416     <arg nr="1" direction="in">
 4417       <not-uninit/>
 4418     </arg>
 4419     <arg nr="2" direction="in">
 4420       <not-uninit/>
 4421     </arg>
 4422     <arg nr="3">
 4423       <!-- direction (in/out) depends on the value of arg2 "cmd" -->
 4424       <not-bool/>
 4425     </arg>
 4426   </function>
 4427   <!-- http://pubs.opengroup.org/onlinepubs/009695399/functions/shmget.html -->
 4428   <!-- int shmget(key_t key, size_t size, int shmflg); -->
 4429   <function name="shmget">
 4430     <returnValue type="int"/>
 4431     <noreturn>false</noreturn>
 4432     <leak-ignore/>
 4433     <arg nr="1" direction="in">
 4434       <not-uninit/>
 4435     </arg>
 4436     <arg nr="2" direction="in">
 4437       <not-uninit/>
 4438       <valid>0:</valid>
 4439     </arg>
 4440     <arg nr="3" direction="in">
 4441       <not-uninit/>
 4442       <not-bool/>
 4443     </arg>
 4444   </function>
 4445   <!-- http://man7.org/linux/man-pages/man2/shmat.2.html -->
 4446   <!-- void *shmat(int shmid, const void *shmaddr, int shmflg); -->
 4447   <function name="shmat">
 4448     <noreturn>false</noreturn>
 4449     <returnValue type="void *"/>
 4450     <leak-ignore/>
 4451     <arg nr="1" direction="in">
 4452       <not-uninit/>
 4453     </arg>
 4454     <arg nr="2" direction="in"/>
 4455     <arg nr="3" direction="in">
 4456       <not-uninit/>
 4457       <not-bool/>
 4458     </arg>
 4459   </function>
 4460   <!-- http://man7.org/linux/man-pages/man2/shmat.2.html -->
 4461   <!-- int shmdt(const void *shmaddr);-->
 4462   <function name="shmdt">
 4463     <returnValue type="int"/>
 4464     <noreturn>false</noreturn>
 4465     <leak-ignore/>
 4466     <arg nr="1" direction="in">
 4467       <not-bool/>
 4468     </arg>
 4469   </function>
 4470   <!-- http://man7.org/linux/man-pages/man2/setrlimit.2.html -->
 4471   <!-- int getrlimit(int resource, struct rlimit *rlim); -->
 4472   <function name="getrlimit">
 4473     <returnValue type="int"/>
 4474     <noreturn>false</noreturn>
 4475     <leak-ignore/>
 4476     <arg nr="1" direction="in">
 4477       <not-uninit/>
 4478     </arg>
 4479     <arg nr="2" direction="out">
 4480       <not-null/>
 4481       <not-bool/>
 4482     </arg>
 4483   </function>
 4484   <!-- http://man7.org/linux/man-pages/man2/setrlimit.2.html -->
 4485   <!-- int setrlimit(int resource, const struct rlimit *rlim); -->
 4486   <function name="setrlimit">
 4487     <returnValue type="int"/>
 4488     <noreturn>false</noreturn>
 4489     <leak-ignore/>
 4490     <arg nr="1" direction="in">
 4491       <not-uninit/>
 4492     </arg>
 4493     <arg nr="2" direction="in">
 4494       <not-uninit/>
 4495       <not-null/>
 4496       <not-bool/>
 4497     </arg>
 4498   </function>
 4499   <!-- http://man7.org/linux/man-pages/man3/glob.3.html -->
 4500   <!-- int glob(const char *pattern, int flags, int (*errfunc) (const char *epath, int eerrno), glob_t *pglob);-->
 4501   <function name="glob">
 4502     <returnValue type="int"/>
 4503     <noreturn>false</noreturn>
 4504     <arg nr="1" direction="in">
 4505       <not-uninit/>
 4506       <not-null/>
 4507     </arg>
 4508     <arg nr="2" direction="in">
 4509       <not-uninit/>
 4510     </arg>
 4511     <arg nr="3" direction="in">
 4512       <not-uninit/>
 4513     </arg>
 4514     <arg nr="4" direction="out">
 4515       <not-null/>
 4516       <not-bool/>
 4517     </arg>
 4518   </function>
 4519   <!-- http://man7.org/linux/man-pages/man3/glob.3.html -->
 4520   <!--  void globfree(glob_t *pglob)-->
 4521   <function name="globfree">
 4522     <noreturn>false</noreturn>
 4523     <returnValue type="void"/>
 4524     <arg nr="1">
 4525       <not-uninit/>
 4526       <not-null/>
 4527     </arg>
 4528   </function>
 4529   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/wcpncpy.html -->
 4530   <!-- http://man7.org/linux/man-pages/man3/wcpncpy.3.html -->
 4531   <!-- wchar_t *wcpncpy(wchar_t *dest, const wchar_t *src, size_t n); -->
 4532   <function name="wcpncpy">
 4533     <returnValue type="wchar_t *"/>
 4534     <noreturn>false</noreturn>
 4535     <leak-ignore/>
 4536     <arg nr="1" direction="out">
 4537       <not-null/>
 4538       <minsize type="argvalue" arg="3"/>
 4539     </arg>
 4540     <arg nr="2" direction="in">
 4541       <not-null/>
 4542       <not-uninit/>
 4543     </arg>
 4544     <arg nr="3" direction="in">
 4545       <not-uninit/>
 4546       <not-bool/>
 4547       <valid>0:</valid>
 4548     </arg>
 4549   </function>
 4550   <!-- http://man7.org/linux/man-pages/man3/stpncpy.3.html -->
 4551   <!-- char *stpncpy(char *dest, const char *src, size_t n); -->
 4552   <function name="stpncpy">
 4553     <returnValue type="char *"/>
 4554     <noreturn>false</noreturn>
 4555     <leak-ignore/>
 4556     <arg nr="1" direction="out">
 4557       <not-null/>
 4558       <minsize type="argvalue" arg="3"/>
 4559     </arg>
 4560     <arg nr="2" direction="in">
 4561       <not-null/>
 4562       <not-uninit/>
 4563     </arg>
 4564     <arg nr="3" direction="in">
 4565       <not-uninit/>
 4566       <not-bool/>
 4567       <valid>0:</valid>
 4568     </arg>
 4569   </function>
 4570   <!-- http://man7.org/linux/man-pages/man3/memccpy.3.html -->
 4571   <!-- void *memccpy(void *dest, const void *src, int c, size_t n);-->
 4572   <function name="memccpy">
 4573     <leak-ignore/>
 4574     <returnValue type="void *"/>
 4575     <noreturn>false</noreturn>
 4576     <arg nr="1" direction="out">
 4577       <not-null/>
 4578       <minsize type="sizeof" arg="2"/>
 4579       <minsize type="argvalue" arg="4"/>
 4580     </arg>
 4581     <arg nr="2" direction="in">
 4582       <not-null/>
 4583       <not-uninit/>
 4584     </arg>
 4585     <arg nr="3" direction="in">
 4586       <not-uninit/>
 4587       <valid>0:</valid>
 4588     </arg>
 4589     <arg nr="4" direction="in">
 4590       <not-uninit/>
 4591       <not-bool/>
 4592       <valid>0:</valid>
 4593     </arg>
 4594   </function>
 4595   <!-- http://man7.org/linux/man-pages/man3/opterr.3.html-->
 4596   <!-- int getopt(int argc, char * const argv[], const char *optstring); -->
 4597   <function name="getopt">
 4598     <leak-ignore/>
 4599     <noreturn>false</noreturn>
 4600     <returnValue type="int"/>
 4601     <use-retval/>
 4602     <arg nr="1" direction="in">
 4603       <not-uninit/>
 4604       <valid>0:</valid>
 4605     </arg>
 4606     <arg nr="2">
 4607       <not-uninit/>
 4608       <not-null/>
 4609     </arg>
 4610     <arg nr="3" direction="in">
 4611       <not-uninit/>
 4612       <not-null/>
 4613       <not-bool/>
 4614     </arg>
 4615   </function>
 4616   <!-- http://man7.org/linux/man-pages/man2/setitimer.2.html-->
 4617   <!-- int getitimer(int which, struct itimerval *curr_value); -->
 4618   <function name="getitimer">
 4619     <returnValue type="int"/>
 4620     <noreturn>false</noreturn>
 4621     <leak-ignore/>
 4622     <arg nr="1" direction="in">
 4623       <not-uninit/>
 4624     </arg>
 4625     <arg nr="2" direction="out">
 4626       <not-null/>
 4627       <not-bool/>
 4628     </arg>
 4629   </function>
 4630   <!-- http://man7.org/linux/man-pages/man2/setitimer.2.html-->
 4631   <!-- int setitimer(int which, const struct itimerval *new_value, struct itimerval *old_value); -->
 4632   <function name="setitimer">
 4633     <returnValue type="int"/>
 4634     <noreturn>false</noreturn>
 4635     <leak-ignore/>
 4636     <arg nr="1" direction="in">
 4637       <not-uninit/>
 4638     </arg>
 4639     <arg nr="2" direction="in">
 4640       <not-uninit/>
 4641     </arg>
 4642     <arg nr="3" direction="out">
 4643       <not-uninit/>
 4644       <not-bool/>
 4645     </arg>
 4646   </function>
 4647   <!-- http://man7.org/linux/man-pages/man2/sigaction.2.html -->
 4648   <!-- int sigaction(int signum, const struct sigaction *act, struct sigaction *oldact); -->
 4649   <function name="sigaction">
 4650     <returnValue type="int"/>
 4651     <noreturn>false</noreturn>
 4652     <leak-ignore/>
 4653     <arg nr="1" direction="in">
 4654       <not-uninit/>
 4655     </arg>
 4656     <arg nr="2" direction="in"/>
 4657     <arg nr="3" direction="out">
 4658       <not-bool/>
 4659     </arg>
 4660   </function>
 4661   <!-- http://pubs.opengroup.org/onlinepubs/9699919799/functions/sigaltstack.html -->
 4662   <!-- int sigaltstack(const stack_t *restrict ss, stack_t *restrict oss); -->
 4663   <function name="sigaltstack">
 4664     <returnValue type="int"/>
 4665     <noreturn>false</noreturn>
 4666     <leak-ignore/>
 4667     <arg nr="1" direction="in">
 4668       <not-uninit/>
 4669     </arg>
 4670     <arg nr="2" direction="out">
 4671       <not-bool/>
 4672     </arg>
 4673   </function>
 4674   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/siglongjmp.html -->
 4675   <!-- void siglongjmp(sigjmp_buf env, int val); -->
 4676   <function name="siglongjmp,_longjmp">
 4677     <returnValue type="void"/>
 4678     <noreturn>true</noreturn>
 4679     <arg nr="1" direction="in">
 4680       <not-uninit/>
 4681     </arg>
 4682     <arg nr="2" direction="in">
 4683       <not-uninit/>
 4684     </arg>
 4685   </function>
 4686   <!-- http://pubs.opengroup.org/onlinepubs/9699919799/functions/sigsetjmp.html -->
 4687   <!-- int sigsetjmp(sigjmp_buf env, int savemask); -->
 4688   <function name="sigsetjmp,_setjmp">
 4689     <returnValue type="int"/>
 4690     <noreturn>false</noreturn>
 4691     <arg nr="1" direction="out"/>
 4692     <arg nr="2" direction="in">
 4693       <not-uninit/>
 4694       <not-bool/>
 4695     </arg>
 4696   </function>
 4697   <!-- int sigsuspend(const sigset_t *mask);-->
 4698   <function name="sigsuspend">
 4699     <returnValue type="int"/>
 4700     <noreturn>false</noreturn>
 4701     <leak-ignore/>
 4702     <arg nr="1" direction="in">
 4703       <not-null/>
 4704       <not-bool/>
 4705     </arg>
 4706   </function>
 4707   <!-- http://pubs.opengroup.org/onlinepubs/9699919799/functions/sigprocmask.html -->
 4708   <!-- int pthread_sigmask(int how, const sigset_t *restrict set,
 4709        sigset_t *restrict oset);
 4710 		int sigprocmask(int how, const sigset_t *restrict set,
 4711        sigset_t *restrict oset); -->
 4712   <function name="pthread_sigmask,sigprocmask">
 4713     <noreturn>false</noreturn>
 4714     <returnValue type="int"/>
 4715     <arg nr="1" direction="in">
 4716       <not-uninit/>
 4717     </arg>
 4718     <arg nr="2" direction="in">
 4719       <not-uninit/>
 4720     </arg>
 4721     <arg nr="3" direction="out">
 4722       <not-uninit/>
 4723       <not-bool/>
 4724     </arg>
 4725   </function>
 4726   <!-- pubs.opengroup.org/onlinepubs/9699919799/functions/sighold.html -->
 4727   <function name="sighold,sigignore,sigpause,sigrelse">
 4728     <noreturn>false</noreturn>
 4729     <returnValue type="int"/>
 4730     <arg nr="1" direction="in">
 4731       <not-uninit/>
 4732     </arg>
 4733   </function>
 4734   <function name="sigset">
 4735     <noreturn>false</noreturn>
 4736     <returnValue type="void*"/>
 4737     <arg nr="1" direction="in">
 4738       <not-uninit/>
 4739     </arg>
 4740     <arg nr="2" direction="in">
 4741       <not-uninit/>
 4742     </arg>
 4743   </function>
 4744   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/getrusage.html -->
 4745   <!-- http://man7.org/linux/man-pages/man2/getrusage.2.html-->
 4746   <!-- int getrusage(int who, struct rusage *usage);-->
 4747   <function name="getrusage">
 4748     <returnValue type="int"/>
 4749     <noreturn>false</noreturn>
 4750     <leak-ignore/>
 4751     <arg nr="1" direction="in">
 4752       <not-uninit/>
 4753     </arg>
 4754     <arg nr="2" direction="out">
 4755       <not-null/>
 4756       <not-bool/>
 4757     </arg>
 4758   </function>
 4759   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/sigemptyset.html -->
 4760   <!-- http://man7.org/linux/man-pages/man3/sigsetops.3.html -->
 4761   <!-- int sigemptyset(sigset_t *set); -->
 4762   <function name="sigemptyset">
 4763     <returnValue type="int"/>
 4764     <noreturn>false</noreturn>
 4765     <leak-ignore/>
 4766     <arg nr="1" direction="out">
 4767       <not-null/>
 4768       <not-bool/>
 4769     </arg>
 4770   </function>
 4771   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/sigfillset.html -->
 4772   <!-- http://man7.org/linux/man-pages/man3/sigsetops.3.html -->
 4773   <!-- int sigfillset(sigset_t *set); -->
 4774   <function name="sigfillset">
 4775     <returnValue type="int"/>
 4776     <noreturn>false</noreturn>
 4777     <leak-ignore/>
 4778     <arg nr="1" direction="out">
 4779       <not-null/>
 4780       <not-bool/>
 4781     </arg>
 4782   </function>
 4783   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/sigaddset.html -->
 4784   <!-- http://man7.org/linux/man-pages/man3/sigsetops.3.html -->
 4785   <!-- int sigaddset(sigset_t *set, int signum); -->
 4786   <function name="sigaddset">
 4787     <returnValue type="int"/>
 4788     <noreturn>false</noreturn>
 4789     <leak-ignore/>
 4790     <arg nr="1" direction="inout">
 4791       <not-uninit/>
 4792       <not-null/>
 4793     </arg>
 4794     <arg nr="2" direction="in">
 4795       <not-uninit/>
 4796       <not-bool/>
 4797     </arg>
 4798   </function>
 4799   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/sigdelset.html -->
 4800   <!-- http://man7.org/linux/man-pages/man3/sigsetops.3.html -->
 4801   <!-- int sigdelset(sigset_t *set, int signum);-->
 4802   <function name="sigdelset">
 4803     <returnValue type="int"/>
 4804     <noreturn>false</noreturn>
 4805     <leak-ignore/>
 4806     <arg nr="1" direction="inout">
 4807       <not-null/>
 4808       <not-uninit/>
 4809     </arg>
 4810     <arg nr="2" direction="in">
 4811       <not-uninit/>
 4812       <not-bool/>
 4813     </arg>
 4814   </function>
 4815   <!-- http://pubs.opengroup.org/onlinepubs/000095399/functions/sigismember.html -->
 4816   <!-- int sigismember(const sigset_t *set, int signum);-->
 4817   <function name="sigismember">
 4818     <returnValue type="int"/>
 4819     <noreturn>false</noreturn>
 4820     <leak-ignore/>
 4821     <use-retval/>
 4822     <arg nr="1" direction="in">
 4823       <not-null/>
 4824       <not-uninit/>
 4825     </arg>
 4826     <arg nr="2" direction="in">
 4827       <not-uninit/>
 4828       <not-bool/>
 4829     </arg>
 4830   </function>
 4831   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/posix_spawn.html -->
 4832   <!-- int posix_spawn(pid_t *restrict pid, const char *restrict path,
 4833                        const posix_spawn_file_actions_t *file_actions,
 4834                        const posix_spawnattr_t *restrict attrp,
 4835                        char *const argv[restrict], char *const envp[restrict]);
 4836        int posix_spawnp(pid_t *restrict pid, const char *restrict file,
 4837                        const posix_spawn_file_actions_t *file_actions,
 4838                        const posix_spawnattr_t *restrict attrp,
 4839                        char *const argv[restrict], char * const envp[restrict]); -->
 4840   <function name="posix_spawn,posix_spawnp">
 4841     <returnValue type="int"/>
 4842     <noreturn>false</noreturn>
 4843     <leak-ignore/>
 4844     <arg nr="1" direction="out"/>
 4845     <arg nr="2" direction="in"/>
 4846     <arg nr="3" direction="in"/>
 4847     <arg nr="4" direction="in"/>
 4848     <arg nr="5"/>
 4849     <arg nr="6">
 4850       <not-bool/>
 4851     </arg>
 4852   </function>
 4853   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/msgctl.html -->
 4854   <!-- int msgctl(int msqid, int cmd, struct msqid_ds *buf); -->
 4855   <function name="msgctl">
 4856     <returnValue type="int"/>
 4857     <noreturn>false</noreturn>
 4858     <leak-ignore/>
 4859     <arg nr="1" direction="in">
 4860       <not-uninit/>
 4861     </arg>
 4862     <arg nr="2" direction="in">
 4863       <not-uninit/>
 4864     </arg>
 4865     <arg nr="3">
 4866       <!-- direction (in/out) depends on the value of arg2 "cmd" -->
 4867       <not-uninit/>
 4868       <not-bool/>
 4869     </arg>
 4870   </function>
 4871   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/msgget.html -->
 4872   <!-- int msgget(key_t key, int msgflg);-->
 4873   <function name="msgget">
 4874     <returnValue type="int"/>
 4875     <noreturn>false</noreturn>
 4876     <use-retval/>
 4877     <arg nr="1" direction="in">
 4878       <not-uninit/>
 4879     </arg>
 4880     <arg nr="2" direction="in">
 4881       <not-uninit/>
 4882       <not-bool/>
 4883     </arg>
 4884   </function>
 4885   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/msgrcv.html -->
 4886   <!-- ssize_t msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp,
 4887                int msgflg); -->
 4888   <function name="msgrcv">
 4889     <returnValue type="ssize_t"/>
 4890     <noreturn>false</noreturn>
 4891     <leak-ignore/>
 4892     <arg nr="1" direction="in">
 4893       <not-uninit/>
 4894     </arg>
 4895     <arg nr="2" direction="out">
 4896       <not-null/>
 4897       <minsize type="argvalue" arg="3"/>
 4898       <!-- TODO: sizeof(long) must be added to this value, but this can not be configured yet -->
 4899     </arg>
 4900     <arg nr="3" direction="in">
 4901       <not-uninit/>
 4902       <valid>0:</valid>
 4903     </arg>
 4904     <arg nr="4" direction="in">
 4905       <not-uninit/>
 4906     </arg>
 4907     <arg nr="5" direction="in">
 4908       <not-uninit/>
 4909       <not-bool/>
 4910     </arg>
 4911   </function>
 4912   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/msgsnd.html -->
 4913   <!-- int msgsnd(int msqid, const void *msgp, size_t msgsz, int msgflg); -->
 4914   <function name="msgsnd">
 4915     <returnValue type="int"/>
 4916     <noreturn>false</noreturn>
 4917     <leak-ignore/>
 4918     <arg nr="1" direction="in">
 4919       <not-uninit/>
 4920     </arg>
 4921     <arg nr="2" direction="in">
 4922       <not-null/>
 4923       <not-uninit/>
 4924       <minsize type="argvalue" arg="3"/>
 4925       <!-- TODO: sizeof(long) must be added to this value, but this can not be configured yet -->
 4926     </arg>
 4927     <arg nr="3" direction="in">
 4928       <not-uninit/>
 4929       <valid>0:</valid>
 4930     </arg>
 4931     <arg nr="4" direction="in">
 4932       <not-uninit/>
 4933       <not-bool/>
 4934     </arg>
 4935   </function>
 4936   <!-- http://man7.org/linux/man-pages/man3/tcflow.3p.html -->
 4937   <!-- int tcflow(int fildes, int action); -->
 4938   <function name="tcflow">
 4939     <returnValue type="int"/>
 4940     <noreturn>false</noreturn>
 4941     <leak-ignore/>
 4942     <arg nr="1" direction="in">
 4943       <not-uninit/>
 4944       <valid>0:</valid>
 4945     </arg>
 4946     <arg nr="2" direction="in">
 4947       <not-uninit/>
 4948       <not-bool/>
 4949     </arg>
 4950   </function>
 4951   <!-- http://man7.org/linux/man-pages/man3/tcflush.3p.html -->
 4952   <!-- int tcflush(int fildes, int queue_selector); -->
 4953   <function name="tcflush">
 4954     <returnValue type="int"/>
 4955     <noreturn>false</noreturn>
 4956     <leak-ignore/>
 4957     <arg nr="1" direction="in">
 4958       <not-uninit/>
 4959       <valid>0:</valid>
 4960     </arg>
 4961     <arg nr="2" direction="in">
 4962       <not-uninit/>
 4963       <not-bool/>
 4964     </arg>
 4965   </function>
 4966   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/tcsendbreak.html -->
 4967   <!-- http://man7.org/linux/man-pages/man3/tcsendbreak.3p.html -->
 4968   <!-- int tcsendbreak(int fildes, int duration); -->
 4969   <function name="tcsendbreak">
 4970     <returnValue type="int"/>
 4971     <noreturn>false</noreturn>
 4972     <leak-ignore/>
 4973     <arg nr="1" direction="in">
 4974       <not-uninit/>
 4975       <valid>0:</valid>
 4976     </arg>
 4977     <arg nr="2" direction="in">
 4978       <not-uninit/>
 4979       <not-bool/>
 4980     </arg>
 4981   </function>
 4982   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/tcgetattr.html -->
 4983   <!-- http://man7.org/linux/man-pages/man3/tcgetattr.3p.html -->
 4984   <!-- int tcgetattr(int fildes, struct termios *termios_p); -->
 4985   <function name="tcgetattr">
 4986     <returnValue type="int"/>
 4987     <noreturn>false</noreturn>
 4988     <leak-ignore/>
 4989     <arg nr="1" direction="in">
 4990       <not-uninit/>
 4991       <valid>0:</valid>
 4992     </arg>
 4993     <arg nr="2" direction="out">
 4994       <not-null/>
 4995       <not-bool/>
 4996     </arg>
 4997   </function>
 4998   <!-- http://man7.org/linux/man-pages/man3/tcsetattr.3p.html -->
 4999   <!-- int tcsetattr(int fildes, int optional_actions, const struct termios *termios_p); -->
 5000   <function name="tcsetattr">
 5001     <returnValue type="int"/>
 5002     <noreturn>false</noreturn>
 5003     <leak-ignore/>
 5004     <arg nr="1" direction="in">
 5005       <not-uninit/>
 5006       <valid>0:</valid>
 5007     </arg>
 5008     <arg nr="2" direction="in">
 5009       <not-uninit/>
 5010     </arg>
 5011     <arg nr="3" direction="in">
 5012       <not-null/>
 5013       <not-uninit/>
 5014       <not-bool/>
 5015     </arg>
 5016   </function>
 5017   <!-- http://man7.org/linux/man-pages/man3/cfsetospeed.3p.html -->
 5018   <!-- int cfsetospeed(struct termios *termios_p, speed_t speed); -->
 5019   <!-- http://man7.org/linux/man-pages/man3/cfsetispeed.3p.html -->
 5020   <!-- int cfsetispeed(struct termios *termios_p, speed_t speed); -->
 5021   <function name="cfsetospeed,cfsetispeed">
 5022     <returnValue type="int"/>
 5023     <noreturn>false</noreturn>
 5024     <leak-ignore/>
 5025     <arg nr="1" direction="inout">
 5026       <not-uninit/>
 5027       <not-null/>
 5028     </arg>
 5029     <arg nr="2" direction="in">
 5030       <not-uninit/>
 5031       <not-bool/>
 5032     </arg>
 5033   </function>
 5034   <!-- http://man7.org/linux/man-pages/man3/tcdrain.3p.html -->
 5035   <!-- int tcdrain(int fildes); -->
 5036   <function name="tcdrain">
 5037     <returnValue type="int"/>
 5038     <noreturn>false</noreturn>
 5039     <leak-ignore/>
 5040     <arg nr="1" direction="in">
 5041       <not-uninit/>
 5042       <not-bool/>
 5043       <valid>0:</valid>
 5044     </arg>
 5045   </function>
 5046   <!-- These are defined as macros http://man7.org/linux/man-pages/man7/inode.7.html -->
 5047   <!-- It is better to configure them as functions -->
 5048   <function name="S_ISREG,S_ISDIR,S_ISCHR,S_ISBLK,S_ISFIFO,S_ISLNK,S_ISSOCK">
 5049     <returnValue type="int"/>
 5050     <use-retval/>
 5051     <noreturn>false</noreturn>
 5052     <leak-ignore/>
 5053     <arg nr="1" direction="in">
 5054       <not-uninit/>
 5055       <not-bool/>
 5056     </arg>
 5057   </function>
 5058   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/swab.html -->
 5059   <!-- void swab(const void * src, void* dest, ssize_t bytes); -->
 5060   <function name="swab">
 5061     <returnValue type="void"/>
 5062     <noreturn>false</noreturn>
 5063     <leak-ignore/>
 5064     <arg nr="1" direction="in">
 5065       <not-uninit/>
 5066       <minsize type="argvalue" arg="3"/>
 5067     </arg>
 5068     <arg nr="2" direction="out">
 5069       <not-null/>
 5070       <minsize type="argvalue" arg="3"/>
 5071     </arg>
 5072     <arg nr="3" direction="in">
 5073       <not-uninit/>
 5074       <valid>0:</valid>
 5075     </arg>
 5076   </function>
 5077   <!-- void sync(void); -->
 5078   <function name="sync">
 5079     <returnValue type="void"/>
 5080     <noreturn>false</noreturn>
 5081   </function>
 5082   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/gethostname.html -->
 5083   <!-- int gethostname(char *name, size_t len); -->
 5084   <function name="gethostname">
 5085     <noreturn>false</noreturn>
 5086     <returnValue type="int"/>
 5087     <leak-ignore/>
 5088     <arg nr="1" direction="out">
 5089       <not-null/>
 5090       <minsize type="argvalue" arg="2"/>
 5091     </arg>
 5092     <arg nr="2" direction="in">
 5093       <not-uninit/>
 5094       <valid>1:</valid>
 5095     </arg>
 5096   </function>
 5097   <!-- https://pubs.opengroup.org/onlinepubs/9699919799/functions/posix_memalign.html -->
 5098   <!-- int posix_memalign(void **memptr, size_t alignment, size_t size); -->
 5099   <function name="posix_memalign">
 5100     <use-retval/>
 5101     <returnValue type="int"/>
 5102     <noreturn>false</noreturn>
 5103     <arg nr="1" direction="out">
 5104       <not-null/>
 5105     </arg>
 5106     <arg nr="2" direction="in">
 5107       <not-uninit/>
 5108     </arg>
 5109     <arg nr="3" direction="in">
 5110       <not-uninit/>
 5111       <valid>0:</valid>
 5112     </arg>
 5113   </function>
 5114   <!-- https://pubs.opengroup.org/onlinepubs/7908799/xsh/valloc.html -->
 5115   <!-- void *valloc(size_t size); -->
 5116   <function name="valloc">
 5117     <use-retval/>
 5118     <returnValue type="void *"/>
 5119     <noreturn>false</noreturn>
 5120     <arg nr="1" direction="in">
 5121       <not-uninit/>
 5122       <valid>0:</valid>
 5123     </arg>
 5124     <warn severity="style" alternatives="malloc,mmap" reason="Obsolete"/>
 5125   </function>
 5126   <memory>
 5127     <alloc init="false" buffer-size="malloc">valloc</alloc>
 5128     <dealloc>free</dealloc>
 5129   </memory>
 5130   <memory>
 5131     <alloc init="false" arg="1">posix_memalign</alloc>
 5132     <dealloc>free</dealloc>
 5133   </memory>
 5134   <memory>
 5135     <alloc init="false" arg="2">scandir</alloc>
 5136     <dealloc>free</dealloc>
 5137   </memory>
 5138   <memory>
 5139     <alloc init="true" buffer-size="strdup">strdup</alloc>
 5140     <alloc init="true">strndup</alloc>
 5141     <alloc init="true">wcsdup</alloc>
 5142     <dealloc>free</dealloc>
 5143   </memory>
 5144   <memory>
 5145     <alloc init="true">mmap</alloc>
 5146     <alloc init="true">mmap64</alloc>
 5147     <dealloc>munmap</dealloc>
 5148   </memory>
 5149   <resource>
 5150     <alloc init="true">open</alloc>
 5151     <alloc init="true">mkstemp</alloc>
 5152     <alloc init="true">creat</alloc>
 5153     <alloc init="true">openat</alloc>
 5154     <alloc init="true">socket</alloc>
 5155     <dealloc>close</dealloc>
 5156   </resource>
 5157   <resource>
 5158     <alloc init="true">opendir</alloc>
 5159     <alloc init="true">fdopendir</alloc>
 5160     <dealloc>closedir</dealloc>
 5161   </resource>
 5162   <resource>
 5163     <alloc init="true">fdopen</alloc>
 5164     <dealloc>fclose</dealloc>
 5165   </resource>
 5166   <resource>
 5167     <alloc init="true">popen</alloc>
 5168     <dealloc>pclose</dealloc>
 5169   </resource>
 5170   <resource>
 5171     <alloc init="true">mq_open</alloc>
 5172     <dealloc>mq_close</dealloc>
 5173   </resource>
 5174   <memory>
 5175     <alloc init="true" arg="4">getaddrinfo</alloc>
 5176     <dealloc>freeaddrinfo</dealloc>
 5177   </memory>
 5178   <!-- This type definitions refer to http://pubs.opengroup.org/onlinepubs/009695399/basedefs/sys/types.h.html-->
 5179   <podtype name="in_port_t" sign="u" size="2"/>
 5180   <podtype name="in_addr_t" sign="u" size="4"/>
 5181   <podtype name="nfds_t" sign="u"/>
 5182   <podtype name="socklen_t" sign="u" size="4"/>
 5183   <podtype name="sa_family_t" sign="u" size="2"/>
 5184   <podtype name="nlink_t" sign="s"/>
 5185   <podtype name="mode_t" sign="s"/>
 5186   <podtype name="pid_t" sign="s"/>
 5187   <podtype name="uid_t" sign="s"/>
 5188   <podtype name="gid_t" sign="s"/>
 5189   <podtype name="id_t" sign="s"/>
 5190   <podtype name="blkcnt_t" sign="s"/>
 5191   <podtype name="off_t" sign="s"/>
 5192   <podtype name="fsblkcnt_t" sign="u"/>
 5193   <podtype name="fsfilcnt_t" sign="u"/>
 5194   <podtype name="ino_t" sign="u"/>
 5195   <podtype name="useconds_t" sign="u"/>
 5196   <podtype name="suseconds_t" sign="u"/>
 5197   <podtype name="blksize_t" sign="s"/>
 5198   <podtype name="ssize_t" sign="s"/>
 5199   <!-- struct: <podtype name="dirent"/> -->
 5200   <!-- struct: <podtype name="DIR"/> -->
 5201   <podtype name="clockid_t"/>
 5202   <podtype name="dev_t"/>
 5203   <podtype name="key_t"/>
 5204   <podtype name="tms"/>
 5205   <!-- struct: <podtype name="utsname"/> -->
 5206   <podtype name="pthread_attr_t"/>
 5207   <podtype name="pthread_cond_t"/>
 5208   <podtype name="pthread_condattr_t"/>
 5209   <podtype name="pthread_key_t"/>
 5210   <podtype name="pthread_mutexattr_t"/>
 5211   <podtype name="pthread_mutex_t"/>
 5212   <podtype name="pthread_barrier_t"/>
 5213   <podtype name="pthread_barrierattr_t"/>
 5214   <podtype name="pthread_once_t"/>
 5215   <podtype name="pthread_rwlock_t"/>
 5216   <podtype name="pthread_rwlockattr_t"/>
 5217   <podtype name="pthread_spinlock_t"/>
 5218   <podtype name="pthread_t"/>
 5219   <podtype name="timer_t"/>
 5220   <podtype name="trace_attr_t"/>
 5221   <podtype name="trace_event_id_t"/>
 5222   <podtype name="trace_event_set_t"/>
 5223   <podtype name="trace_id_t"/>
 5224   <podtype name="stat"/>
 5225   <podtype name="sigjmp_buf"/>
 5226   <podtype name="sigset_t"/>
 5227   <podtype name="termios"/>
 5228   <podtype name="intptr_t"/>
 5229   <podtype name="timespec"/>
 5230   <!-- struct: <podtype name="timeval"/> -->
 5231   <podtype name="timezone"/>
 5232   <!-- struct: <podtype name="sigaction"/> -->
 5233   <podtype name="stack_t"/>
 5234   <podtype name="mq_attr"/>
 5235   <podtype name="mqd_t"/>
 5236   <podtype name="datum"/>
 5237   <podtype name="DBM"/>
 5238   <podtype name="addrinfo"/>
 5239   <podtype name="hostent"/>
 5240   <podtype name="netent"/>
 5241   <podtype name="protoent"/>
 5242   <podtype name="servent"/>
 5243   <podtype name="passwd"/>
 5244   <podtype name="nl_catd"/>
 5245   <podtype name="nl_item"/>
 5246   <podtype name="regex_t"/>
 5247   <podtype name="sched_param"/>
 5248   <podtype name="glob_t"/>
 5249   <podtype name="locale_t"/>
 5250   <define name="MAP_FAILED" value="-1"/>
 5251   <define name="RTLD_LAZY" value="0x01"/>
 5252   <define name="RTLD_NOW" value="0x02"/>
 5253   <define name="RTLD_GLOBAL" value="0x04"/>
 5254   <define name="RTLD_LOCAL" value="0x08"/>
 5255   <define name="S_IFMT" value="0170000"/>
 5256   <define name="S_IFSOCK" value="0140000"/>
 5257   <define name="S_IFLNK" value="0120000"/>
 5258   <define name="S_IFREG" value="0100000"/>
 5259   <define name="S_IFBLK" value="0060000"/>
 5260   <define name="S_IFDIR" value="0040000"/>
 5261   <define name="S_IFCHR" value="0020000"/>
 5262   <define name="S_IFIFO" value="0010000"/>
 5263   <!-- see http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/signal.h.html 
 5264        Some other signals are defined in std.cfg! -->
 5265   <define name="SIGHUP" value="1"/>
 5266   <define name="SIGQUIT" value="3"/>
 5267   <define name="SIGILL" value="4"/>
 5268   <define name="SIGTRAP" value="5"/>
 5269   <define name="SIGBUS" value="7"/>
 5270   <define name="SIGUSR1" value="10"/>
 5271   <define name="SIGUSR2" value="12"/>
 5272   <define name="SIGPIPE" value="13"/>
 5273   <define name="SIGALRM" value="14"/>
 5274   <define name="SIGCHLD" value="17"/>
 5275   <define name="SIGCONT" value="18"/>
 5276   <define name="SIGSTOP" value="19"/>
 5277   <define name="SIGTSTP" value="20"/>
 5278   <define name="SIGTTIN" value="21"/>
 5279   <define name="SIGTTOU" value="22"/>
 5280   <define name="SIGURG" value="23"/>
 5281   <define name="SIGXCPU" value="24"/>
 5282   <define name="SIGXFSZ" value="25"/>
 5283   <define name="SIGVTALRM" value="26"/>
 5284   <define name="SIGPROF" value="27"/>
 5285   <define name="SIGPOLL" value="29"/>
 5286   <define name="SIGSYS" value="31"/>
 5287 </def>