posix.cfg: Added support for more posix_trace..() functions
This commit is contained in:
parent
3c57752c9b
commit
f5b9445767
|
@ -2782,7 +2782,7 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
|
|||
fd_set *restrict writefds, fd_set *restrict errorfds,
|
||||
const struct timespec *restrict timeout,
|
||||
const sigset_t *restrict sigmask);
|
||||
see http://pubs.opengroup.org/onlinepubs/9699919799/functions/pselect.html -->
|
||||
see http://pubs.opengroup.org/onlinepubs/9699919799/functions/pselect.html -->
|
||||
<function name="pselect">
|
||||
<noreturn>false</noreturn>
|
||||
<returnValue type="int"/>
|
||||
|
@ -4795,6 +4795,25 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
|
|||
<not-null/>
|
||||
</arg>
|
||||
</function>
|
||||
<!-- void posix_trace_event(trace_event_id_t event_id,
|
||||
const void *restrictdata_ptr, size_t data_len); -->
|
||||
<function name="posix_trace_event">
|
||||
<leak-ignore/>
|
||||
<noreturn>false</noreturn>
|
||||
<returnValue type="void"/>
|
||||
<arg nr="1" direction="in">
|
||||
<not-uninit/>
|
||||
<valid>1:</valid>
|
||||
</arg>
|
||||
<arg nr="2" direction="in">
|
||||
<not-uninit/>
|
||||
<not-null/>
|
||||
</arg>
|
||||
<arg nr="3" direction="in">
|
||||
<not-uninit/>
|
||||
<valid>0:</valid>
|
||||
</arg>
|
||||
</function>
|
||||
<!-- int posix_trace_getnext_event(trace_id_t trid,
|
||||
struct posix_trace_event_info *restrict event,
|
||||
void *restrict data, size_t num_bytes,
|
||||
|
@ -5770,7 +5789,7 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
|
|||
</function>
|
||||
<!-- http://pubs.opengroup.org/onlinepubs/9699919799/functions/sigprocmask.html -->
|
||||
<!-- int pthread_sigmask(int how, const sigset_t *restrict set, sigset_t *restrict oset);
|
||||
int sigprocmask(int how, const sigset_t *restrict set, sigset_t *restrict oset); -->
|
||||
int sigprocmask(int how, const sigset_t *restrict set, sigset_t *restrict oset); -->
|
||||
<function name="pthread_sigmask,sigprocmask">
|
||||
<noreturn>false</noreturn>
|
||||
<returnValue type="int"/>
|
||||
|
@ -5908,9 +5927,9 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
|
|||
<leak-ignore/>
|
||||
<arg nr="1" direction="out"/>
|
||||
<arg nr="2" direction="in">
|
||||
<not-uninit/>
|
||||
<strz/>
|
||||
</arg>
|
||||
<not-uninit/>
|
||||
<strz/>
|
||||
</arg>
|
||||
<arg nr="3" direction="in"/>
|
||||
<arg nr="4" direction="in"/>
|
||||
<arg nr="5"/>
|
||||
|
|
|
@ -37,6 +37,14 @@
|
|||
#include <strings.h>
|
||||
|
||||
#if __TRACE_H__ // <trace.h>
|
||||
|
||||
void nullPointer_posix_trace_event(trace_event_id_t event_id, const void* restrictdata_ptr, size_t data_len)
|
||||
{
|
||||
// cppcheck-suppress nullPointer
|
||||
(void) posix_trace_event(event_id, NULL, data_len);
|
||||
(void) posix_trace_event(event_id, restrictdata_ptr, 0);
|
||||
}
|
||||
|
||||
void nullPointer_posix_trace_trygetnext_event(trace_id_t trid,
|
||||
struct posix_trace_event_info *event,
|
||||
void *data, size_t num_bytes,
|
||||
|
|
Loading…
Reference in New Issue