Skip to content

Commit 1a4c252

Browse files
committed
posix.cfg: Added more returnValue-types.
1 parent beb9223 commit 1a4c252

1 file changed

Lines changed: 34 additions & 1 deletion

File tree

cfg/posix.cfg

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
<!-- struct group *getgrnam(const char *name); -->
7272
<function name="getgrnam">
7373
<use-retval/>
74+
<returnValue type="struct group *"/>
7475
<noreturn>false</noreturn>
7576
<leak-ignore/>
7677
<arg nr="1">
@@ -80,6 +81,7 @@
8081
<!-- struct group *getgrgid(gid_t gid);-->
8182
<function name="getgrgid">
8283
<use-retval/>
84+
<returnValue type="struct group *"/>
8385
<noreturn>false</noreturn>
8486
<leak-ignore/>
8587
<arg nr="1">
@@ -369,6 +371,7 @@ The obsolescent function 'usleep' is called. POSIX.1-2001 declares usleep() func
369371
<!-- struct rpcent *getrpcent(void); -->
370372
<function name="getrpcent">
371373
<use-retval/>
374+
<returnValue type="struct rpcent *"/>
372375
<noreturn>false</noreturn>
373376
<leak-ignore/>
374377
<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
378381
<use-retval/>
379382
<noreturn>false</noreturn>
380383
<leak-ignore/>
384+
<returnValue type="struct rpcent *"/>
381385
<arg nr="1">
382386
<not-null/>
383387
<not-uninit/>
384388
</arg>
385389
<warn severity="portability">Non reentrant function 'getrpcbyname' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getrpcbyname_r'.</warn>
386390
</function>
387-
<!-- truct rpcent *getrpcbynumber(int number); -->
391+
<!-- struct rpcent *getrpcbynumber(int number); -->
388392
<function name="getrpcbynumber">
389393
<use-retval/>
390394
<noreturn>false</noreturn>
391395
<leak-ignore/>
396+
<returnValue type="struct rpcent *"/>
392397
<arg nr="1">
393398
<not-uninit/>
394399
</arg>
@@ -399,13 +404,15 @@ The obsolescent function 'usleep' is called. POSIX.1-2001 declares usleep() func
399404
<use-retval/>
400405
<noreturn>false</noreturn>
401406
<leak-ignore/>
407+
<returnValue type="struct protoent *"/>
402408
<warn severity="portability">Non reentrant function 'getprotoent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getprotoent_r'.</warn>
403409
</function>
404410
<!-- struct protoent *getprotobyname(const char *name); -->
405411
<function name="getprotobyname">
406412
<use-retval/>
407413
<noreturn>false</noreturn>
408414
<leak-ignore/>
415+
<returnValue type="struct protoent *"/>
409416
<arg nr="1">
410417
<not-null/>
411418
<not-uninit/>
@@ -417,6 +424,7 @@ The obsolescent function 'usleep' is called. POSIX.1-2001 declares usleep() func
417424
<use-retval/>
418425
<noreturn>false</noreturn>
419426
<leak-ignore/>
427+
<returnValue type="struct protoent *"/>
420428
<arg nr="1">
421429
<not-uninit/>
422430
</arg>
@@ -427,13 +435,15 @@ The obsolescent function 'usleep' is called. POSIX.1-2001 declares usleep() func
427435
<use-retval/>
428436
<noreturn>false</noreturn>
429437
<leak-ignore/>
438+
<returnValue type="struct servent *"/>
430439
<warn severity="portability">Non reentrant function 'getservent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getservent_r'.</warn>
431440
</function>
432441
<!-- struct servent *getservbyname(const char *name, const char *proto); -->
433442
<function name="getservbyname">
434443
<use-retval/>
435444
<noreturn>false</noreturn>
436445
<leak-ignore/>
446+
<returnValue type="struct servent *"/>
437447
<arg nr="1">
438448
<not-null/>
439449
<not-uninit/>
@@ -448,6 +458,7 @@ The obsolescent function 'usleep' is called. POSIX.1-2001 declares usleep() func
448458
<use-retval/>
449459
<noreturn>false</noreturn>
450460
<leak-ignore/>
461+
<returnValue type="struct servent *"/>
451462
<arg nr="1">
452463
<not-uninit/>
453464
</arg>
@@ -461,13 +472,15 @@ The obsolescent function 'usleep' is called. POSIX.1-2001 declares usleep() func
461472
<use-retval/>
462473
<noreturn>false</noreturn>
463474
<leak-ignore/>
475+
<returnValue type="struct netent *"/>
464476
<warn severity="portability">Non reentrant function 'getnetent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getnetent_r'.</warn>
465477
</function>
466478
<!-- struct netent *getnetbyname(const char *name); -->
467479
<function name="getnetbyname">
468480
<use-retval/>
469481
<noreturn>false</noreturn>
470482
<leak-ignore/>
483+
<returnValue type="struct netent *"/>
471484
<arg nr="1">
472485
<not-null/>
473486
<not-uninit/>
@@ -479,6 +492,7 @@ The obsolescent function 'usleep' is called. POSIX.1-2001 declares usleep() func
479492
<use-retval/>
480493
<noreturn>false</noreturn>
481494
<leak-ignore/>
495+
<returnValue type="struct netent *"/>
482496
<arg nr="1">
483497
<not-uninit/>
484498
</arg>
@@ -492,13 +506,15 @@ The obsolescent function 'usleep' is called. POSIX.1-2001 declares usleep() func
492506
<use-retval/>
493507
<noreturn>false</noreturn>
494508
<leak-ignore/>
509+
<returnValue type="struct hostent *"/>
495510
<warn severity="portability">Non reentrant function 'gethostent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gethostent_r'.</warn>
496511
</function>
497512
<!-- struct hostent *gethostbyname(const char *name); -->
498513
<function name="gethostbyname">
499514
<use-retval/>
500515
<noreturn>false</noreturn>
501516
<leak-ignore/>
517+
<returnValue type="struct hostent *"/>
502518
<arg nr="1">
503519
<not-null/>
504520
<not-uninit/>
@@ -510,6 +526,7 @@ The obsolescent function 'usleep' is called. POSIX.1-2001 declares usleep() func
510526
<use-retval/>
511527
<noreturn>false</noreturn>
512528
<leak-ignore/>
529+
<returnValue type="struct hostent *"/>
513530
<arg nr="1">
514531
<not-null/>
515532
<not-uninit/>
@@ -524,6 +541,7 @@ The obsolescent function 'usleep' is called. POSIX.1-2001 declares usleep() func
524541
<use-retval/>
525542
<noreturn>false</noreturn>
526543
<leak-ignore/>
544+
<returnValue type="struct hostent *"/>
527545
<arg nr="1">
528546
<not-null/>
529547
<not-uninit/>
@@ -549,6 +567,7 @@ The obsolescent function 'usleep' is called. POSIX.1-2001 declares usleep() func
549567
<function name="sbrk">
550568
<noreturn>false</noreturn>
551569
<leak-ignore/>
570+
<returnValue type="void *"/>
552571
<arg nr="1">
553572
<not-uninit/>
554573
</arg>
@@ -886,6 +905,8 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
886905
<!-- DIR *opendir(const char *name); -->
887906
<function name="opendir">
888907
<noreturn>false</noreturn>
908+
<returnValue type="DIR *"/>
909+
<use-retval/>
889910
<arg nr="1">
890911
<not-null/>
891912
<not-uninit/>
@@ -894,6 +915,7 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
894915
<!-- DIR *fdopendir(int fd); -->
895916
<function name="fdopendir">
896917
<use-retval/>
918+
<returnValue type="DIR *"/>
897919
<noreturn>false</noreturn>
898920
<arg nr="1">
899921
<not-uninit/>
@@ -912,6 +934,7 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
912934
<!-- FILE *popen(const char *command, const char *type); -->
913935
<function name="popen">
914936
<use-retval/>
937+
<returnValue type="FILE *"/>
915938
<noreturn>false</noreturn>
916939
<arg nr="1">
917940
<not-null/>
@@ -1021,6 +1044,7 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
10211044
<!-- FILE *fdopen(int fd, const char *mode); -->
10221045
<function name="fdopen">
10231046
<use-retval/>
1047+
<returnValue type="FILE *"/>
10241048
<noreturn>false</noreturn>
10251049
<arg nr="1">
10261050
<not-uninit/>
@@ -1048,6 +1072,7 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
10481072
<function name="readdir">
10491073
<noreturn>false</noreturn>
10501074
<leak-ignore/>
1075+
<returnValue type="struct dirent *"/>
10511076
<arg nr="1">
10521077
<not-null/>
10531078
<not-uninit/>
@@ -1246,6 +1271,7 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
12461271
<!-- void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset); -->
12471272
<function name="mmap">
12481273
<use-retval/>
1274+
<returnValue type="void *"/>
12491275
<noreturn>false</noreturn>
12501276
<leak-ignore/>
12511277
<arg nr="1">
@@ -1271,6 +1297,7 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
12711297
<!-- void *mmap64(void *addr, size_t length, int prot, int flags, int fd, off64_t offset); -->
12721298
<function name="mmap64">
12731299
<use-retval/>
1300+
<returnValue type="void *"/>
12741301
<noreturn>false</noreturn>
12751302
<leak-ignore/>
12761303
<arg nr="1">
@@ -1851,12 +1878,14 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
18511878
<!--struct passwd *getpwent(void); -->
18521879
<function name="getpwent">
18531880
<use-retval/>
1881+
<returnValue type="struct passwd *"/>
18541882
<noreturn>false</noreturn>
18551883
<warn severity="portability">Non reentrant function 'getpwent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwent_r'.</warn>
18561884
</function>
18571885
<!--struct passwd *getpwnam(const char *); -->
18581886
<function name="getpwnam">
18591887
<use-retval/>
1888+
<returnValue type="struct passwd *"/>
18601889
<noreturn>false</noreturn>
18611890
<arg nr="1">
18621891
<not-uninit/>
@@ -1913,6 +1942,7 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
19131942
<!-- struct passwd *getpwuid(uid_t uid); -->
19141943
<function name="getpwuid">
19151944
<use-retval/>
1945+
<returnValue type="struct passwd *"/>
19161946
<noreturn>false</noreturn>
19171947
<arg nr="1">
19181948
<not-uninit/>
@@ -2723,6 +2753,7 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
27232753
<!-- int pthread_join(pthread_t thread, void **value_ptr); -->
27242754
<function name="pthread_join">
27252755
<noreturn>false</noreturn>
2756+
<returnValue type="int"/>
27262757
<arg nr="1">
27272758
<not-uninit/>
27282759
</arg>
@@ -3126,6 +3157,7 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
31263157
<!-- void *shmat(int shmid, const void *shmaddr, int shmflg); -->
31273158
<function name="shmat">
31283159
<noreturn>false</noreturn>
3160+
<returnValue type="void *"/>
31293161
<leak-ignore/>
31303162
<arg nr="1">
31313163
<not-uninit/>
@@ -3202,6 +3234,7 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
32023234
<!-- void *memccpy(void *dest, const void *src, int c, size_t n);-->
32033235
<function name="memccpy">
32043236
<leak-ignore/>
3237+
<returnValue type="void *"/>
32053238
<noreturn>false</noreturn>
32063239
<arg nr="1">
32073240
<not-null/>

0 commit comments

Comments
 (0)