orbitcowboy
1fb1b22bae
posix.cfg: Improved configuration for bzero() and added tests.
2022-04-20 20:57:58 +02:00
orbitcowboy
d0ff2a022a
posix.cfg: Added support for wcwidth().
2022-04-20 17:32:26 +02:00
orbitcowboy
1067cb6e5d
posix.cfg: Added support for wcswidth().
2022-04-20 15:23:46 +02:00
orbitcowboy
df84bed889
posix.cfg: Added support for more interfaces.
2022-04-20 07:45:38 +02:00
orbitcowboy
5a3d84d84d
posix.cfg: Added support for aio_read()
2022-04-20 07:27:28 +02:00
orbitcowboy
f3907e4c9e
posix.cfg: Added support for aio_suspend().
2022-04-19 21:13:09 +02:00
orbitcowboy
09da69b1c7
posix.cfg: Added support for 'llseek()', which is obsolescent since glibc version 2.28
2022-02-09 08:34:35 +01:00
orbitcowboy
c983151b9c
posix.cfg: Added support for lseek64().
2022-02-07 14:15:48 +01:00
orbitcowboy
bd1d8ea7b8
posix.cfg: Improved configuration of lseek().
2022-02-07 13:58:38 +01:00
orbitcowboy
a7b7b46d76
posix.cfg: Improved configuration of fseeko()/fseeko64().
2022-02-07 09:03:39 +01:00
orbitcowboy
01b68b99c6
posix.cfg: Added overlapping data check for stpcpy().
2021-07-11 16:42:19 +02:00
orbitcowboy
d782cd629a
posix.cfg: Added overlapping data check for bcopy().
2021-07-11 16:38:25 +02:00
orbitcowboy
10fb1851c5
Added more overlapping data configurations
2021-07-10 18:41:36 +02:00
orbitcowboy
2c5af874fd
posix.cfg: Improved support for overlapping data check
2021-07-10 18:27:44 +02:00
orbitcowboy
a7346a5f84
posix.cfg: Added support for more interfaces
2020-12-25 12:48:38 +01:00
orbitcowboy
9b5fc508bb
posix.cfg: Added support for more macros (ref. https://man7.org/linux/man-pages/man2/access.2.html )
2020-12-24 14:22:05 +01:00
Daniel Marjamäki
feeddc39d5
Revert "posix.cfg: added a few types"
...
This reverts commit d0cdf29715
.
2020-12-10 11:40:00 +01:00
Daniel Marjamäki
d0cdf29715
posix.cfg: added a few types
2020-12-09 17:30:32 +01:00
amai2012
ff7cd433be
Update posix.cfg
...
Remove <use-retval/> for setuid,seteuid,setgid,setegid
See 0a6babea74 (r42822000)
2020-09-30 09:50:44 +02:00
Daniel Marjamäki
b827f8d92e
Fixed #9715 (FP invalidFunctionArgBool for third argument to setenv)
2020-09-15 22:31:41 +02:00
Gabor Marton
9960d2ee29
[posix.cfg] Fix fstat family ( #2629 )
...
* [posix.cfg] Fix fstat family
* Move fstatat64 and __fxstatat64 to gnu.cfg
2020-05-08 09:16:59 +02:00
Gabor Marton
36bacc5917
[posix.cfg] Fix file descriptor params to have proper range value ( #2628 )
...
* [posix.cfg] Fix file descriptor params to have proper range value
2020-05-08 09:14:00 +02:00
Gabor Marton
d21c7dab28
[posix.cfg] Fix ttyname_r typo ( #2630 )
2020-05-08 09:13:38 +02:00
orbitcowboy
7245ec0520
posix.cfg: Added <not-bool/>-flag at more function args.
2020-02-22 23:26:08 +01:00
orbitcowboy
84d2c86d74
posix.cfg: Added more <not-bool/>-flags.
2020-02-22 14:49:36 +01:00
versat
1c23366ea6
posix.cfg: Add configuration for function getnameinfo()
...
Reference:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/getnameinfo.html
2019-10-10 15:36:38 +02:00
versat
ba3414a2e8
posix.cfg: Add configuration for function gai_strerror()
...
Reference:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/gai_strerror.html
2019-10-10 15:09:43 +02:00
orbitcowboy
ff7dba91e1
posix.cfg: Added support for more interfaces, found by daca@home.
2019-09-27 17:07:16 +02:00
orbitcowboy
aed5e17867
#9323 , #9331 : Moved configuration and tests to gnu and bsd.
2019-09-08 19:17:15 +02:00
orbitcowboy
9890df11df
posix.cfg: Added support for some functions from <sys/time.h>.
2019-09-07 10:52:30 +02:00
orbitcowboy
12c851d9a8
posix.cfg: Fixed #9323 , #9331 by adding timercmp() configuration.
2019-09-07 10:42:09 +02:00
orbitcowboy
d774359f68
posix.cfg: Improved configuration for dlopen() and dlclose(). Ensure the return value is taken into account for dlopen() and leak-ignore flag is not present for dlopen() and dlclose().
2019-09-06 15:25:54 +02:00
Sebastian
32dad3f44a
posix.cfg: Fix vsyslog() configuration ( #2150 )
...
Add tests to make sure no false positives are reported.
Found the issue via daca@home
2019-09-06 10:16:11 +02:00
Sebastian
db43dcd601
posix.cfg: Add `<use-retval/>` to pthread_mutex_trylock ( #1959 )
...
Ignoring the return value of pthread_mutex_trylock is always a bug.
There is no other way to check if the mutex is locked or not after the
call.
2019-07-07 12:57:02 +02:00
Sebastian
6ba3b2703a
posix.cfg: Add setsockopt() and getsockopt() ( #1944 )
...
Found by daca@home
2019-07-02 15:14:31 +02:00
orbitcowboy
608ea2f250
posix.cfg: Cleanup not required arg.
2019-05-31 11:24:04 +02:00
orbitcowboy
76738692f2
posix.cfg: Added support for isascii().
2019-05-31 11:21:50 +02:00
orbitcowboy
c13e17ed71
Revert "posix.cfg: Added support for more interfaces."
...
This reverts commit e596bd63f8
.
2019-05-31 11:18:11 +02:00
orbitcowboy
e596bd63f8
posix.cfg: Added support for more interfaces.
2019-05-31 11:15:43 +02:00
orbitcowboy
ec2278c717
posix.cfg: Added support for more interfaces.
2019-05-31 11:06:25 +02:00
orbitcowboy
02d307a231
posix.cfg: Added partial support for scandir() and a TODO comment.
2019-05-25 23:32:28 +02:00
orbitcowboy
8f2a84ec6c
posix.cfg: Added support for telldir().
2019-05-25 22:49:01 +02:00
orbitcowboy
e9aaa5edfa
posix.cfg: Added support for more interfaces.
2019-05-22 09:33:44 +02:00
orbitcowboy
fbf98b421a
posix.cfg: Removed invalid argument checks from functions that accept 'AT_FDCWD', which set to -100 on some systems.
2019-05-21 21:09:16 +02:00
orbitcowboy
ed2aa52bbf
posix.cfg: Fixed duplicate name 'fstat' -> 'fstatat'.
2019-05-21 16:25:53 +02:00
orbitcowboy
8c0e4a2fc7
posix.cfg: Removed the validation range option from the first parameter of fstatat(). Reference: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fstatat.html
2019-05-21 16:23:41 +02:00
orbitcowboy
e63b3a44d8
posix.cfg: Added support for fstatat().
2019-05-21 15:21:48 +02:00
orbitcowboy
03b4447350
posix.cfg: Added support for flockfile(), funlockfile() and trylockfile().
2019-05-18 11:29:30 +02:00
orbitcowboy
570969be08
posix.cfg: Added support for lockf().
2019-05-18 11:07:43 +02:00
orbitcowboy
e85e722fb4
posix.cfg: Added support for fchownat().
2019-05-18 10:59:40 +02:00
orbitcowboy
62c4199bcd
posix.cfg: Added support for fchmodat().
2019-05-18 10:54:17 +02:00
orbitcowboy
c0c9f33323
posix.cfg: Added support for mkdirat().
2019-05-18 10:46:17 +02:00
orbitcowboy
d0606844b7
posix.cfg: Added support for umask().
2019-05-17 15:52:27 +02:00
orbitcowboy
719eb25ba9
posix.cfg: Improved configuration for 'mkstemp()' and added test cases to ensure resource leaks are caught.
2019-05-16 15:53:22 +02:00
orbitcowboy
cda25d7205
posix.cfg: Ensure the return value of pipe() is taken into account.
2019-05-03 22:15:30 +02:00
orbitcowboy
90c6ea53ef
posix.cfg: Added support for socketpair().
2019-05-03 20:52:10 +02:00
orbitcowboy
76cc8ccde2
posix.cfg: Added directions for some interfaces.
2019-05-01 19:57:10 +02:00
orbitcowboy
953895278b
posix.cfg: Improved configuration fo fileno().
2019-05-01 13:58:54 +02:00
orbitcowboy
d36fcbd945
posix.cfg: Added support for dirfd().
2019-05-01 13:54:23 +02:00
amai2012
b5ee9d97ef
Move some signal constants from posix.cfg to std.cfg. Add some more interfaces to posix.cfg
2019-04-26 19:26:04 +02:00
orbitcowboy
7d0bb0dc29
posix.cfg: Improved validation of file descriptors.
2019-04-26 16:58:21 +02:00
orbitcowboy
2d7323c65f
posix.cfg: Added support for sendfile().
2019-04-26 16:47:49 +02:00
orbitcowboy
bc7e835524
posix.cfg: Added support for ttyname_r().
2019-04-26 10:24:10 +02:00
orbitcowboy
6d681a0959
posix.cfg: Issue a warning in case a function accepting a file descriptor is called with a negative value.
2019-04-26 10:16:29 +02:00
orbitcowboy
f288e18c2c
posix.cfg: Added support for more interfaces.
2019-04-26 09:48:38 +02:00
orbitcowboy
c4fb56e550
posix.cfg: Warn for socket/file-descriptors having negatives values.
2019-04-25 17:04:30 +02:00
orbitcowboy
4a91b7ec77
Merge branch 'master' of https://github.com/danmar/cppcheck
2019-04-25 16:58:47 +02:00
orbitcowboy
df49b56a6f
posix.cfg: Added support for openat(). Reference: http://man7.org/linux/man-pages/man2/openat.2.html
2019-04-25 16:56:22 +02:00
amai2012
9692c3dde7
Add macros from signal.h
2019-04-25 12:17:26 +02:00
orbitcowboy
751902da86
posix.cfg: Added more 'direction'-attributes.
2019-04-21 12:34:44 +02:00
orbitcowboy
45a3f679b4
posix.cfg: Improved configuration for close(). Issue a warning in case close is called with a file pointer having a negative value.
2019-04-21 12:28:17 +02:00
orbitcowboy
a3b7524c84
posix.cfg: Added minsize attribute to pipe().
2019-03-30 15:49:52 +01:00
Sebastian
432c04281a
Libraries: Move valloc() from std.cfg to posix.cfg. ( #1743 )
...
Move valloc() to posix.cfg since it is a legacy POSIX function and not
part of the standard (not even commonly used). It is not available in
msvc (Visual Studio).
2019-03-20 14:10:36 +01:00
Daniel Marjamäki
14528bcf25
Library: allowed values for the buffer-size attribute: malloc/calloc/strdup
2019-03-20 06:46:55 +01:00
Sebastian
19e9e42dd7
Library: Enhance minsize configuration and allow simple values. ( #1736 )
...
Some POSIX and Windows functions require buffers of at least some
specific size. This is now possible to configure via for example this
minsize configuration: `<minsize type="value" value="26"/>`.
The range for valid buffer size values is 1 to LLONG_MAX
(9223372036854775807)
2019-03-17 14:22:26 +01:00
versat
1b74bca973
posix.cfg: Further fixes/enhancements; adding more argument directions.
2019-03-12 13:35:06 +01:00
versat
12941721d2
posix.cfg: Further fixes/enhancements; adding more argument directions.
2019-03-12 11:41:10 +01:00
versat
bb6874e4c1
posix.cfg: sched_*() functions: Enhance and add argument directions.
2019-03-12 09:17:43 +01:00
versat
f21c3b13f1
posix.cfg: Further fixes/enhancements; adding more argument directions
2019-03-11 15:40:53 +01:00
versat
33e3ce232a
posix.cfg: Fixes, enhancements and adding more argument directions.
...
Add `<use-retval/>` to htonl(), htons(), ntohl(), ntohs(), inet_addr()
and inet_ntoa().
Enhance argument configurations of message queue functions (mq_*()).
2019-03-11 14:11:47 +01:00
versat
7b958e788d
posix.cfg: Fixes and adding more argument directions.
...
Fixes: The "length" argument of mmap*() and munmap() calls must be
greater than 0.
2019-03-11 11:20:07 +01:00
versat
ecba3db9cc
posix.cfg: Start specifying direction for arguments to functions.
...
There are still many functions with arguments that need a direction
specified.
2019-03-06 10:08:46 +01:00
orbitcowboy
831670c355
posix.cfg: Improved support for more macros and constants.
2019-02-17 23:35:34 +01:00
amai2012
b6681c2a2e
Improve some function properties
2019-02-05 21:30:30 +01:00
orbitcowboy
2727a959b2
windows.cfg: Added missing <use-retval/>-tags for strcmp-functions.
2019-02-04 11:54:24 +01:00
orbitcowboy
6e72691986
posix.cfg: Added missing <use-retval/>-tags for strcmp-functions.
2019-02-04 08:27:49 +01:00
orbitcowboy
acebfac176
Added missing <use-retval/>-tag to strdup()-like functions. In case the return value is not taken in account, a logical error is revealed.
2019-02-03 20:38:33 +01:00
amai2012
b69b0bf57e
Small additions/corrections
2019-01-29 23:20:44 +01:00
amai2012
d6d8a871ca
Add/correct some interfaces. Move some standard interfaces from gnu.cfg to posix.cfg.
2019-01-28 23:26:53 +01:00
amai2012
786ce0ac5c
Add more interfaces to posix.cfg
2019-01-25 21:39:23 +01:00
amai2012
2515b015ea
Improve configuration for bind()
2019-01-25 10:47:36 +01:00
amai2012
8f36b7d23b
Add bind() to posix.cfg
2019-01-24 23:13:06 +01:00
amai2012
a0ee1d212b
Fix parameter configuration for connect()
2019-01-23 15:33:37 +01:00
amai2012
44c12ccb31
Add connect() to posix.cfg
2019-01-22 21:51:04 +01:00
amai2012
2adf65968b
posix.cfg: improve configuration for dlsym()
2019-01-12 21:50:02 +01:00
amai2012
400c6c8e76
Improve configuration for dlopen and add suitable test
2019-01-10 21:14:37 +01:00
amai2012
e5c7543a7d
posix.cfg: add dlopen, dlsym, dlclose
2019-01-10 18:33:44 +01:00
yurii.putin
2aecd30cd8
Change cfg
...
Add some function (posix_memalign, reallocarray,aligned_alloc,valloc) to cfg. Add attribute format-str to some function.
2018-11-19 18:23:00 +01:00
Sebastian
fc7aab220e
posix.cfg: Add some pthread_attr_* functions. ( #1331 )
...
References:
http://pubs.opengroup.org/onlinepubs/7908799/xsh/pthread_attr_setstacksize.html
http://pubs.opengroup.org/onlinepubs/7908799/xsh/pthread_attr_setguardsize.html
2018-08-08 12:22:09 +02:00
Sebastian
f862cf603f
posix.cfg: Add some pthread_mutex_* functions. ( #1320 )
...
References:
http://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_mutex_init.html
http://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_mutex_lock.html
2018-07-21 17:52:12 +02:00