posix.cfg: Added more returnValue-types.

This commit is contained in:
orbitcowboy 2017-10-05 11:38:11 +02:00
parent beb9223b6f
commit 1a4c25243c
1 changed files with 34 additions and 1 deletions

View File

@ -71,6 +71,7 @@
<!-- struct group *getgrnam(const char *name); -->
<function name="getgrnam">
<use-retval/>
<returnValue type="struct group *"/>
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1">
@ -80,6 +81,7 @@
<!-- struct group *getgrgid(gid_t gid);-->
<function name="getgrgid">
<use-retval/>
<returnValue type="struct group *"/>
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1">
@ -369,6 +371,7 @@ The obsolescent function 'usleep' is called. POSIX.1-2001 declares usleep() func
<!-- struct rpcent *getrpcent(void); -->
<function name="getrpcent">
<use-retval/>
<returnValue type="struct rpcent *"/>
<noreturn>false</noreturn>
<leak-ignore/>
<warn severity="portability">Non reentrant function 'getrpcent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getrpcent_r'.</warn>
@ -378,17 +381,19 @@ The obsolescent function 'usleep' is called. POSIX.1-2001 declares usleep() func
<use-retval/>
<noreturn>false</noreturn>
<leak-ignore/>
<returnValue type="struct rpcent *"/>
<arg nr="1">
<not-null/>
<not-uninit/>
</arg>
<warn severity="portability">Non reentrant function 'getrpcbyname' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getrpcbyname_r'.</warn>
</function>
<!-- truct rpcent *getrpcbynumber(int number); -->
<!-- struct rpcent *getrpcbynumber(int number); -->
<function name="getrpcbynumber">
<use-retval/>
<noreturn>false</noreturn>
<leak-ignore/>
<returnValue type="struct rpcent *"/>
<arg nr="1">
<not-uninit/>
</arg>
@ -399,6 +404,7 @@ The obsolescent function 'usleep' is called. POSIX.1-2001 declares usleep() func
<use-retval/>
<noreturn>false</noreturn>
<leak-ignore/>
<returnValue type="struct protoent *"/>
<warn severity="portability">Non reentrant function 'getprotoent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getprotoent_r'.</warn>
</function>
<!-- struct protoent *getprotobyname(const char *name); -->
@ -406,6 +412,7 @@ The obsolescent function 'usleep' is called. POSIX.1-2001 declares usleep() func
<use-retval/>
<noreturn>false</noreturn>
<leak-ignore/>
<returnValue type="struct protoent *"/>
<arg nr="1">
<not-null/>
<not-uninit/>
@ -417,6 +424,7 @@ The obsolescent function 'usleep' is called. POSIX.1-2001 declares usleep() func
<use-retval/>
<noreturn>false</noreturn>
<leak-ignore/>
<returnValue type="struct protoent *"/>
<arg nr="1">
<not-uninit/>
</arg>
@ -427,6 +435,7 @@ The obsolescent function 'usleep' is called. POSIX.1-2001 declares usleep() func
<use-retval/>
<noreturn>false</noreturn>
<leak-ignore/>
<returnValue type="struct servent *"/>
<warn severity="portability">Non reentrant function 'getservent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getservent_r'.</warn>
</function>
<!-- struct servent *getservbyname(const char *name, const char *proto); -->
@ -434,6 +443,7 @@ The obsolescent function 'usleep' is called. POSIX.1-2001 declares usleep() func
<use-retval/>
<noreturn>false</noreturn>
<leak-ignore/>
<returnValue type="struct servent *"/>
<arg nr="1">
<not-null/>
<not-uninit/>
@ -448,6 +458,7 @@ The obsolescent function 'usleep' is called. POSIX.1-2001 declares usleep() func
<use-retval/>
<noreturn>false</noreturn>
<leak-ignore/>
<returnValue type="struct servent *"/>
<arg nr="1">
<not-uninit/>
</arg>
@ -461,6 +472,7 @@ The obsolescent function 'usleep' is called. POSIX.1-2001 declares usleep() func
<use-retval/>
<noreturn>false</noreturn>
<leak-ignore/>
<returnValue type="struct netent *"/>
<warn severity="portability">Non reentrant function 'getnetent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getnetent_r'.</warn>
</function>
<!-- struct netent *getnetbyname(const char *name); -->
@ -468,6 +480,7 @@ The obsolescent function 'usleep' is called. POSIX.1-2001 declares usleep() func
<use-retval/>
<noreturn>false</noreturn>
<leak-ignore/>
<returnValue type="struct netent *"/>
<arg nr="1">
<not-null/>
<not-uninit/>
@ -479,6 +492,7 @@ The obsolescent function 'usleep' is called. POSIX.1-2001 declares usleep() func
<use-retval/>
<noreturn>false</noreturn>
<leak-ignore/>
<returnValue type="struct netent *"/>
<arg nr="1">
<not-uninit/>
</arg>
@ -492,6 +506,7 @@ The obsolescent function 'usleep' is called. POSIX.1-2001 declares usleep() func
<use-retval/>
<noreturn>false</noreturn>
<leak-ignore/>
<returnValue type="struct hostent *"/>
<warn severity="portability">Non reentrant function 'gethostent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gethostent_r'.</warn>
</function>
<!-- struct hostent *gethostbyname(const char *name); -->
@ -499,6 +514,7 @@ The obsolescent function 'usleep' is called. POSIX.1-2001 declares usleep() func
<use-retval/>
<noreturn>false</noreturn>
<leak-ignore/>
<returnValue type="struct hostent *"/>
<arg nr="1">
<not-null/>
<not-uninit/>
@ -510,6 +526,7 @@ The obsolescent function 'usleep' is called. POSIX.1-2001 declares usleep() func
<use-retval/>
<noreturn>false</noreturn>
<leak-ignore/>
<returnValue type="struct hostent *"/>
<arg nr="1">
<not-null/>
<not-uninit/>
@ -524,6 +541,7 @@ The obsolescent function 'usleep' is called. POSIX.1-2001 declares usleep() func
<use-retval/>
<noreturn>false</noreturn>
<leak-ignore/>
<returnValue type="struct hostent *"/>
<arg nr="1">
<not-null/>
<not-uninit/>
@ -549,6 +567,7 @@ The obsolescent function 'usleep' is called. POSIX.1-2001 declares usleep() func
<function name="sbrk">
<noreturn>false</noreturn>
<leak-ignore/>
<returnValue type="void *"/>
<arg nr="1">
<not-uninit/>
</arg>
@ -886,6 +905,8 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
<!-- DIR *opendir(const char *name); -->
<function name="opendir">
<noreturn>false</noreturn>
<returnValue type="DIR *"/>
<use-retval/>
<arg nr="1">
<not-null/>
<not-uninit/>
@ -894,6 +915,7 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
<!-- DIR *fdopendir(int fd); -->
<function name="fdopendir">
<use-retval/>
<returnValue type="DIR *"/>
<noreturn>false</noreturn>
<arg nr="1">
<not-uninit/>
@ -912,6 +934,7 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
<!-- FILE *popen(const char *command, const char *type); -->
<function name="popen">
<use-retval/>
<returnValue type="FILE *"/>
<noreturn>false</noreturn>
<arg nr="1">
<not-null/>
@ -1021,6 +1044,7 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
<!-- FILE *fdopen(int fd, const char *mode); -->
<function name="fdopen">
<use-retval/>
<returnValue type="FILE *"/>
<noreturn>false</noreturn>
<arg nr="1">
<not-uninit/>
@ -1048,6 +1072,7 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
<function name="readdir">
<noreturn>false</noreturn>
<leak-ignore/>
<returnValue type="struct dirent *"/>
<arg nr="1">
<not-null/>
<not-uninit/>
@ -1246,6 +1271,7 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
<!-- void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset); -->
<function name="mmap">
<use-retval/>
<returnValue type="void *"/>
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1">
@ -1271,6 +1297,7 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
<!-- void *mmap64(void *addr, size_t length, int prot, int flags, int fd, off64_t offset); -->
<function name="mmap64">
<use-retval/>
<returnValue type="void *"/>
<noreturn>false</noreturn>
<leak-ignore/>
<arg nr="1">
@ -1851,12 +1878,14 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
<!--struct passwd *getpwent(void); -->
<function name="getpwent">
<use-retval/>
<returnValue type="struct passwd *"/>
<noreturn>false</noreturn>
<warn severity="portability">Non reentrant function 'getpwent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwent_r'.</warn>
</function>
<!--struct passwd *getpwnam(const char *); -->
<function name="getpwnam">
<use-retval/>
<returnValue type="struct passwd *"/>
<noreturn>false</noreturn>
<arg nr="1">
<not-uninit/>
@ -1913,6 +1942,7 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
<!-- struct passwd *getpwuid(uid_t uid); -->
<function name="getpwuid">
<use-retval/>
<returnValue type="struct passwd *"/>
<noreturn>false</noreturn>
<arg nr="1">
<not-uninit/>
@ -2723,6 +2753,7 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
<!-- int pthread_join(pthread_t thread, void **value_ptr); -->
<function name="pthread_join">
<noreturn>false</noreturn>
<returnValue type="int"/>
<arg nr="1">
<not-uninit/>
</arg>
@ -3126,6 +3157,7 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
<!-- void *shmat(int shmid, const void *shmaddr, int shmflg); -->
<function name="shmat">
<noreturn>false</noreturn>
<returnValue type="void *"/>
<leak-ignore/>
<arg nr="1">
<not-uninit/>
@ -3202,6 +3234,7 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
<!-- void *memccpy(void *dest, const void *src, int c, size_t n);-->
<function name="memccpy">
<leak-ignore/>
<returnValue type="void *"/>
<noreturn>false</noreturn>
<arg nr="1">
<not-null/>