gnu.cfg: Add support for gettext() and some related functions (#1621)

* gnu.cfg: Add support for gettext() and some related functions
Reference (beside some other web sites):
https://www.gnu.org/software/libc/manual/html_node/Translation-with-gettext.html
This commit is contained in:
Sebastian 2019-01-24 23:08:42 +01:00 committed by amai2012
parent b486eb502a
commit 5c91d7b4e1
1 changed files with 49 additions and 0 deletions

View File

@ -719,6 +719,55 @@
<valid>0:</valid>
</arg>
</function>
<!-- https://www.gnu.org/software/libc/manual/html_node/Translation-with-gettext.html -->
<!-- char * gettext (const char *msgid); -->
<function name="gettext">
<noreturn>false</noreturn>
<returnValue type="char *"/>
<use-retval/>
<leak-ignore/>
<arg nr="1">
<not-null/>
<not-uninit/>
<strz/>
<not-bool/>
</arg>
</function>
<!-- char * dgettext (const char *domainname, const char *msgid); -->
<function name="dgettext">
<noreturn>false</noreturn>
<returnValue type="char *"/>
<use-retval/>
<leak-ignore/>
<arg nr="1">
<not-uninit/>
</arg>
<arg nr="2">
<not-null/>
<not-uninit/>
<strz/>
<not-bool/>
</arg>
</function>
<!-- char * dcgettext (const char *domainname, const char *msgid, int category); -->
<function name="dcgettext">
<noreturn>false</noreturn>
<returnValue type="char *"/>
<use-retval/>
<leak-ignore/>
<arg nr="1">
<not-uninit/>
</arg>
<arg nr="2">
<not-null/>
<not-uninit/>
<strz/>
</arg>
<arg nr="3">
<not-uninit/>
<not-bool/>
</arg>
</function>
<resource>
<dealloc>close</dealloc>
<alloc init="true">epoll_create</alloc>