posix.cfg: Added support for glob() and globfree().
This commit is contained in:
parent
b1b0c920e3
commit
0514e14cad
|
@ -2714,6 +2714,33 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
|
|||
<not-null/>
|
||||
</arg>
|
||||
</function>
|
||||
<!-- http://man7.org/linux/man-pages/man3/glob.3.html -->
|
||||
<!-- int glob(const char *pattern, int flags, int (*errfunc) (const char *epath, int eerrno), glob_t *pglob);-->
|
||||
<function name="glob">
|
||||
<noreturn>false</noreturn>
|
||||
<arg nr="1">
|
||||
<not-uninit/>
|
||||
<not-null/>
|
||||
</arg>
|
||||
<arg nr="2">
|
||||
<not-uninit/>
|
||||
</arg>
|
||||
<arg nr="3">
|
||||
<not-null/>
|
||||
</arg>
|
||||
<arg nr="4">
|
||||
<not-null/>
|
||||
</arg>
|
||||
</function>
|
||||
<!-- http://man7.org/linux/man-pages/man3/glob.3.html -->
|
||||
<!-- void globfree(glob_t *pglob)-->
|
||||
<function name="globfree">
|
||||
<noreturn>false</noreturn>
|
||||
<arg nr="1">
|
||||
<not-uninit/>
|
||||
<not-null/>
|
||||
</arg>
|
||||
</function>
|
||||
<memory>
|
||||
<alloc init="true">strdup</alloc>
|
||||
<alloc init="true">strndup</alloc>
|
||||
|
@ -2731,6 +2758,10 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
|
|||
<alloc init="true">socket</alloc>
|
||||
<dealloc>close</dealloc>
|
||||
</resource>
|
||||
<resource>
|
||||
<alloc init="true">glob</alloc>
|
||||
<dealloc>globfree</dealloc>
|
||||
</resource>
|
||||
<resource>
|
||||
<alloc init="true">opendir</alloc>
|
||||
<alloc init="true">fdopendir</alloc>
|
||||
|
@ -2813,4 +2844,5 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
|
|||
<podtype name="nl_item"/>
|
||||
<podtype name="regex_t"/>
|
||||
<podtype name="sched_param"/>
|
||||
<podtype name="glob_t"/>
|
||||
</def>
|
||||
|
|
Loading…
Reference in New Issue