cppcheck-py 2.9__py3-none-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- cppcheck/__init__.py +55 -0
- cppcheck/cppcheck-2.9.tar.gz +0 -0
- cppcheck/data/addons/__init__.py +0 -0
- cppcheck/data/addons/cppcheck.py +39 -0
- cppcheck/data/addons/cppcheckdata.py +1529 -0
- cppcheck/data/addons/findcasts.py +33 -0
- cppcheck/data/addons/misc.py +163 -0
- cppcheck/data/addons/misra.py +4728 -0
- cppcheck/data/addons/misra_9.py +513 -0
- cppcheck/data/addons/naming.py +91 -0
- cppcheck/data/addons/namingng.py +253 -0
- cppcheck/data/addons/runaddon.py +12 -0
- cppcheck/data/addons/threadsafety.py +39 -0
- cppcheck/data/addons/y2038.py +252 -0
- cppcheck/data/cfg/avr.cfg +431 -0
- cppcheck/data/cfg/bento4.cfg +142 -0
- cppcheck/data/cfg/boost.cfg +1268 -0
- cppcheck/data/cfg/bsd.cfg +546 -0
- cppcheck/data/cfg/cairo.cfg +88 -0
- cppcheck/data/cfg/cppcheck-lib.cfg +72 -0
- cppcheck/data/cfg/cppunit.cfg +48 -0
- cppcheck/data/cfg/daca.cfg +31 -0
- cppcheck/data/cfg/dpdk.cfg +11 -0
- cppcheck/data/cfg/embedded_sql.cfg +4 -0
- cppcheck/data/cfg/emscripten.cfg +7 -0
- cppcheck/data/cfg/ginac.cfg +12848 -0
- cppcheck/data/cfg/gnu.cfg +1626 -0
- cppcheck/data/cfg/googletest.cfg +60 -0
- cppcheck/data/cfg/gtk.cfg +20584 -0
- cppcheck/data/cfg/icu.cfg +6 -0
- cppcheck/data/cfg/kde.cfg +51 -0
- cppcheck/data/cfg/libcerror.cfg +128 -0
- cppcheck/data/cfg/libcurl.cfg +487 -0
- cppcheck/data/cfg/libsigc++.cfg +36 -0
- cppcheck/data/cfg/lua.cfg +316 -0
- cppcheck/data/cfg/mfc.cfg +256 -0
- cppcheck/data/cfg/microsoft_atl.cfg +40 -0
- cppcheck/data/cfg/microsoft_sal.cfg +491 -0
- cppcheck/data/cfg/microsoft_unittest.cfg +20 -0
- cppcheck/data/cfg/motif.cfg +318 -0
- cppcheck/data/cfg/nspr.cfg +38 -0
- cppcheck/data/cfg/ntl.cfg +6907 -0
- cppcheck/data/cfg/opencv2.cfg +132 -0
- cppcheck/data/cfg/opengl.cfg +580 -0
- cppcheck/data/cfg/openmp.cfg +157 -0
- cppcheck/data/cfg/openssl.cfg +174 -0
- cppcheck/data/cfg/pcre.cfg +165 -0
- cppcheck/data/cfg/posix.cfg +6252 -0
- cppcheck/data/cfg/python.cfg +674 -0
- cppcheck/data/cfg/qt.cfg +5255 -0
- cppcheck/data/cfg/ruby.cfg +142 -0
- cppcheck/data/cfg/sdl.cfg +354 -0
- cppcheck/data/cfg/sfml.cfg +301 -0
- cppcheck/data/cfg/sqlite3.cfg +1527 -0
- cppcheck/data/cfg/std.cfg +8716 -0
- cppcheck/data/cfg/tinyxml2.cfg +56 -0
- cppcheck/data/cfg/vcl.cfg +4 -0
- cppcheck/data/cfg/windows.cfg +17941 -0
- cppcheck/data/cfg/wxsqlite3.cfg +1955 -0
- cppcheck/data/cfg/wxsvg.cfg +16905 -0
- cppcheck/data/cfg/wxwidgets.cfg +16464 -0
- cppcheck/data/cfg/zlib.cfg +1450 -0
- cppcheck/data/cppcheck-htmlreport +986 -0
- cppcheck/data/cppcheck.exe +0 -0
- cppcheck/data/platforms/aix_ppc64.xml +17 -0
- cppcheck/data/platforms/arm32-wchar_t2.xml +17 -0
- cppcheck/data/platforms/arm32-wchar_t4.xml +17 -0
- cppcheck/data/platforms/arm64-wchar_t2.xml +17 -0
- cppcheck/data/platforms/arm64-wchar_t4.xml +17 -0
- cppcheck/data/platforms/avr8.xml +18 -0
- cppcheck/data/platforms/cray_sv1.xml +17 -0
- cppcheck/data/platforms/elbrus-e1cp.xml +18 -0
- cppcheck/data/platforms/mips32.xml +18 -0
- cppcheck/data/platforms/msp430_eabi_large_datamodel.xml +17 -0
- cppcheck/data/platforms/pic16.xml +18 -0
- cppcheck/data/platforms/pic8-enhanced.xml +18 -0
- cppcheck/data/platforms/pic8.xml +18 -0
- cppcheck/data/platforms/unix32-unsigned.xml +17 -0
- cppcheck/data/platforms/unix64-unsigned.xml +17 -0
- cppcheck_py-2.9.dist-info/METADATA +76 -0
- cppcheck_py-2.9.dist-info/RECORD +84 -0
- cppcheck_py-2.9.dist-info/WHEEL +5 -0
- cppcheck_py-2.9.dist-info/entry_points.txt +4 -0
- cppcheck_py-2.9.dist-info/licenses/LICENSE.md +191 -0
|
@@ -0,0 +1,546 @@
|
|
|
1
|
+
<?xml version="1.0"?>
|
|
2
|
+
<def format="2">
|
|
3
|
+
<!-- int timerisset(struct timeval *tvp); -->
|
|
4
|
+
<function name="timerisset">
|
|
5
|
+
<noreturn>false</noreturn>
|
|
6
|
+
<leak-ignore/>
|
|
7
|
+
<use-retval/>
|
|
8
|
+
<returnValue type="int"/>
|
|
9
|
+
<arg nr="1" direction="in">
|
|
10
|
+
<not-uninit/>
|
|
11
|
+
<not-null/>
|
|
12
|
+
</arg>
|
|
13
|
+
</function>
|
|
14
|
+
<!-- void timerclear(struct timeval *tvp); -->
|
|
15
|
+
<function name="timerclear">
|
|
16
|
+
<noreturn>false</noreturn>
|
|
17
|
+
<leak-ignore/>
|
|
18
|
+
<returnValue type="void"/>
|
|
19
|
+
<arg nr="1" direction="inout">
|
|
20
|
+
<not-null/>
|
|
21
|
+
</arg>
|
|
22
|
+
</function>
|
|
23
|
+
<!-- void timeradd(struct timeval *a, struct timeval *b, struct timeval *res);-->
|
|
24
|
+
<!-- void timersub(struct timeval *a, struct timeval *b, struct timeval *res);-->
|
|
25
|
+
<function name="timeradd,timersub">
|
|
26
|
+
<noreturn>false</noreturn>
|
|
27
|
+
<leak-ignore/>
|
|
28
|
+
<returnValue type="void"/>
|
|
29
|
+
<arg nr="1" direction="in">
|
|
30
|
+
<not-uninit/>
|
|
31
|
+
<not-null/>
|
|
32
|
+
</arg>
|
|
33
|
+
<arg nr="2" direction="in">
|
|
34
|
+
<not-uninit/>
|
|
35
|
+
<not-null/>
|
|
36
|
+
</arg>
|
|
37
|
+
<arg nr="3" direction="out">
|
|
38
|
+
<not-null/>
|
|
39
|
+
</arg>
|
|
40
|
+
</function>
|
|
41
|
+
<!-- int timercmp(struct timeval *a, struct timeval *b, CMP)-->
|
|
42
|
+
<define name="timercmp(a,b,CMP)" value="(((a)->tv_sec == (b)->tv_sec) ? ((a)->tv_usec CMP (b)->tv_usec) : ((a)->tv_sec CMP (b)->tv_sec))"/>
|
|
43
|
+
<!-- https://www.freebsd.org/cgi/man.cgi?query=fts&sektion=3 -->
|
|
44
|
+
<!-- FTS * fts_open(char * const *path_argv, int options, int (*compar)(const FTSENT * const *, const FTSENT * const *)); -->
|
|
45
|
+
<function name="fts_open">
|
|
46
|
+
<returnValue type="FTS *"/>
|
|
47
|
+
<noreturn>false</noreturn>
|
|
48
|
+
<arg nr="1">
|
|
49
|
+
<not-uninit/>
|
|
50
|
+
</arg>
|
|
51
|
+
<arg nr="2">
|
|
52
|
+
<not-uninit/>
|
|
53
|
+
</arg>
|
|
54
|
+
<arg nr="3">
|
|
55
|
+
<not-uninit/>
|
|
56
|
+
<not-null/>
|
|
57
|
+
</arg>
|
|
58
|
+
</function>
|
|
59
|
+
<!-- FTSENT * fts_read(FTS *ftsp); -->
|
|
60
|
+
<function name="fts_read">
|
|
61
|
+
<returnValue type="FTSENT *"/>
|
|
62
|
+
<noreturn>false</noreturn>
|
|
63
|
+
<arg nr="1">
|
|
64
|
+
<not-uninit/>
|
|
65
|
+
<not-null/>
|
|
66
|
+
</arg>
|
|
67
|
+
</function>
|
|
68
|
+
<!-- FTSENT * fts_children(FTS *ftsp, int options); -->
|
|
69
|
+
<function name="fts_children">
|
|
70
|
+
<returnValue type="FTSENT *"/>
|
|
71
|
+
<noreturn>false</noreturn>
|
|
72
|
+
<arg nr="1">
|
|
73
|
+
<not-uninit/>
|
|
74
|
+
</arg>
|
|
75
|
+
<arg nr="2">
|
|
76
|
+
<not-uninit/>
|
|
77
|
+
</arg>
|
|
78
|
+
</function>
|
|
79
|
+
<!-- int fts_set(FTS *ftsp, FTSENT *f, int options); -->
|
|
80
|
+
<function name="fts_set">
|
|
81
|
+
<returnValue type="int"/>
|
|
82
|
+
<noreturn>false</noreturn>
|
|
83
|
+
<arg nr="1">
|
|
84
|
+
<not-uninit/>
|
|
85
|
+
</arg>
|
|
86
|
+
<arg nr="3">
|
|
87
|
+
<not-uninit/>
|
|
88
|
+
</arg>
|
|
89
|
+
<arg nr="2">
|
|
90
|
+
<not-uninit/>
|
|
91
|
+
</arg>
|
|
92
|
+
</function>
|
|
93
|
+
<!-- void fts_set_clientptr(FTS *ftsp, void *clientdata); -->
|
|
94
|
+
<function name="fts_set_clientptr">
|
|
95
|
+
<returnValue type="void"/>
|
|
96
|
+
<noreturn>false</noreturn>
|
|
97
|
+
<arg nr="1">
|
|
98
|
+
<not-uninit/>
|
|
99
|
+
</arg>
|
|
100
|
+
<arg nr="2">
|
|
101
|
+
<not-uninit/>
|
|
102
|
+
</arg>
|
|
103
|
+
</function>
|
|
104
|
+
<!-- void * fts_get_clientptr(FTS *ftsp); -->
|
|
105
|
+
<function name="fts_get_clientptr">
|
|
106
|
+
<returnValue type="void *"/>
|
|
107
|
+
<noreturn>false</noreturn>
|
|
108
|
+
<arg nr="1">
|
|
109
|
+
<not-uninit/>
|
|
110
|
+
</arg>
|
|
111
|
+
</function>
|
|
112
|
+
<!-- FTS * fts_get_stream(FTSENT *f); -->
|
|
113
|
+
<function name="fts_get_stream">
|
|
114
|
+
<returnValue type="FTS *"/>
|
|
115
|
+
<noreturn>false</noreturn>
|
|
116
|
+
<arg nr="1">
|
|
117
|
+
<not-uninit/>
|
|
118
|
+
</arg>
|
|
119
|
+
</function>
|
|
120
|
+
<!-- int fts_close(FTS *ftsp); -->
|
|
121
|
+
<function name="fts_close">
|
|
122
|
+
<returnValue type="int"/>
|
|
123
|
+
<noreturn>false</noreturn>
|
|
124
|
+
<arg nr="1">
|
|
125
|
+
<not-uninit/>
|
|
126
|
+
</arg>
|
|
127
|
+
</function>
|
|
128
|
+
<!-- https://www.freebsd.org/cgi/man.cgi?query=readpassphrase
|
|
129
|
+
char *readpassphrase(const char *prompt, char *buf, size_t bufsiz, int flags); -->
|
|
130
|
+
<function name="readpassphrase">
|
|
131
|
+
<returnValue type="char *"/>
|
|
132
|
+
<noreturn>false</noreturn>
|
|
133
|
+
<arg nr="1">
|
|
134
|
+
<not-uninit/>
|
|
135
|
+
</arg>
|
|
136
|
+
<arg nr="2">
|
|
137
|
+
<not-null/>
|
|
138
|
+
<minsize type="argvalue" arg="3"/>
|
|
139
|
+
</arg>
|
|
140
|
+
<arg nr="3">
|
|
141
|
+
<not-uninit/>
|
|
142
|
+
<not-null/>
|
|
143
|
+
</arg>
|
|
144
|
+
<arg nr="4">
|
|
145
|
+
<not-uninit/>
|
|
146
|
+
</arg>
|
|
147
|
+
<leak-ignore/>
|
|
148
|
+
</function>
|
|
149
|
+
<!-- https://www.freebsd.org/cgi/man.cgi?query=setfib&sektion=2
|
|
150
|
+
int setfib(int fib); -->
|
|
151
|
+
<function name="setfib">
|
|
152
|
+
<returnValue type="int"/>
|
|
153
|
+
<noreturn>false</noreturn>
|
|
154
|
+
<arg nr="1">
|
|
155
|
+
<not-uninit/>
|
|
156
|
+
</arg>
|
|
157
|
+
</function>
|
|
158
|
+
<!-- https://www.freebsd.org/cgi/man.cgi?query=strtonum
|
|
159
|
+
long long strtonum(const char *nptr, long long minval, long long maxval, const char **errstr); -->
|
|
160
|
+
<function name="strtonum">
|
|
161
|
+
<returnValue type="long long"/>
|
|
162
|
+
<noreturn>false</noreturn>
|
|
163
|
+
<arg nr="1">
|
|
164
|
+
<not-uninit/>
|
|
165
|
+
<not-null/>
|
|
166
|
+
</arg>
|
|
167
|
+
<arg nr="2">
|
|
168
|
+
<not-uninit/>
|
|
169
|
+
</arg>
|
|
170
|
+
<arg nr="3">
|
|
171
|
+
<not-uninit/>
|
|
172
|
+
</arg>
|
|
173
|
+
<arg nr="4">
|
|
174
|
+
<not-uninit/>
|
|
175
|
+
</arg>
|
|
176
|
+
<leak-ignore/>
|
|
177
|
+
</function>
|
|
178
|
+
<!-- https://www.freebsd.org/cgi/man.cgi?query=strlcat
|
|
179
|
+
size_t strlcat(char *dst, const char *src, size_t size); -->
|
|
180
|
+
<function name="strlcat">
|
|
181
|
+
<returnValue type="size_t"/>
|
|
182
|
+
<noreturn>false</noreturn>
|
|
183
|
+
<leak-ignore/>
|
|
184
|
+
<not-overlapping-data ptr1-arg="1" ptr2-arg="2" size-arg="3"/>
|
|
185
|
+
<arg nr="1">
|
|
186
|
+
<not-null/>
|
|
187
|
+
<not-uninit/>
|
|
188
|
+
<strz/>
|
|
189
|
+
<minsize type="argvalue" arg="3"/>
|
|
190
|
+
</arg>
|
|
191
|
+
<arg nr="2">
|
|
192
|
+
<not-null/>
|
|
193
|
+
<not-uninit/>
|
|
194
|
+
</arg>
|
|
195
|
+
<arg nr="3">
|
|
196
|
+
<not-uninit/>
|
|
197
|
+
<not-bool/>
|
|
198
|
+
<valid>0:</valid>
|
|
199
|
+
</arg>
|
|
200
|
+
</function>
|
|
201
|
+
<!-- https://www.freebsd.org/cgi/man.cgi?query=strlcpy
|
|
202
|
+
size_t strlcpy(char * restrict dst, const char * restrict src, size_t dstsize); -->
|
|
203
|
+
<function name="strlcpy">
|
|
204
|
+
<returnValue type="size_t"/>
|
|
205
|
+
<noreturn>false</noreturn>
|
|
206
|
+
<leak-ignore/>
|
|
207
|
+
<not-overlapping-data ptr1-arg="1" ptr2-arg="2" size-arg="3"/>
|
|
208
|
+
<arg nr="1">
|
|
209
|
+
<minsize type="argvalue" arg="3"/>
|
|
210
|
+
</arg>
|
|
211
|
+
<arg nr="2">
|
|
212
|
+
<not-null/>
|
|
213
|
+
<not-uninit/>
|
|
214
|
+
</arg>
|
|
215
|
+
<arg nr="3">
|
|
216
|
+
<not-uninit/>
|
|
217
|
+
<not-bool/>
|
|
218
|
+
<valid>0:</valid>
|
|
219
|
+
</arg>
|
|
220
|
+
</function>
|
|
221
|
+
<!-- https://linux.die.net/man/3/setbuffer -->
|
|
222
|
+
<!-- void setbuffer(FILE *stream, char *buf, size_t size); -->
|
|
223
|
+
<function name="setbuffer">
|
|
224
|
+
<returnValue type="void"/>
|
|
225
|
+
<noreturn>false</noreturn>
|
|
226
|
+
<leak-ignore/>
|
|
227
|
+
<arg nr="1" direction="inout">
|
|
228
|
+
<not-null/>
|
|
229
|
+
<not-uninit/>
|
|
230
|
+
</arg>
|
|
231
|
+
<arg nr="2">
|
|
232
|
+
<not-uninit/>
|
|
233
|
+
<minsize type="argvalue" arg="3"/>
|
|
234
|
+
</arg>
|
|
235
|
+
<arg nr="3" direction="in">
|
|
236
|
+
<not-uninit/>
|
|
237
|
+
<valid>0:</valid>
|
|
238
|
+
</arg>
|
|
239
|
+
</function>
|
|
240
|
+
<!-- https://linux.die.net/man/3/setbuffer -->
|
|
241
|
+
<!-- void setlinebuf(FILE *stream); -->
|
|
242
|
+
<function name="setlinebuf">
|
|
243
|
+
<returnValue type="void"/>
|
|
244
|
+
<noreturn>false</noreturn>
|
|
245
|
+
<leak-ignore/>
|
|
246
|
+
<arg nr="1" direction="inout">
|
|
247
|
+
<not-null/>
|
|
248
|
+
<not-uninit/>
|
|
249
|
+
</arg>
|
|
250
|
+
</function>
|
|
251
|
+
<!-- https://linux.die.net/man/2/writev -->
|
|
252
|
+
<!-- ssize_t readv(int fd, const struct iovec *iov, int iovcnt); -->
|
|
253
|
+
<function name="readv">
|
|
254
|
+
<leak-ignore/>
|
|
255
|
+
<returnValue type="ssize_t"/>
|
|
256
|
+
<arg nr="1" direction="in">
|
|
257
|
+
<not-uninit/>
|
|
258
|
+
<not-bool/>
|
|
259
|
+
<valid>0:</valid>
|
|
260
|
+
</arg>
|
|
261
|
+
<arg nr="2" direction="out">
|
|
262
|
+
<not-null/>
|
|
263
|
+
</arg>
|
|
264
|
+
<arg nr="3" direction="in">
|
|
265
|
+
<not-uninit/>
|
|
266
|
+
<not-bool/>
|
|
267
|
+
<valid>0:</valid>
|
|
268
|
+
</arg>
|
|
269
|
+
</function>
|
|
270
|
+
<!-- https://linux.die.net/man/2/writev -->
|
|
271
|
+
<!-- ssize_t writev(int fd, const struct iovec *iov, int iovcnt); -->
|
|
272
|
+
<function name="writev">
|
|
273
|
+
<leak-ignore/>
|
|
274
|
+
<returnValue type="ssize_t"/>
|
|
275
|
+
<arg nr="1" direction="in">
|
|
276
|
+
<not-uninit/>
|
|
277
|
+
<not-bool/>
|
|
278
|
+
<valid>0:</valid>
|
|
279
|
+
</arg>
|
|
280
|
+
<arg nr="2" direction="in">
|
|
281
|
+
<not-null/>
|
|
282
|
+
</arg>
|
|
283
|
+
<arg nr="3" direction="in">
|
|
284
|
+
<not-uninit/>
|
|
285
|
+
<not-bool/>
|
|
286
|
+
<valid>0:</valid>
|
|
287
|
+
</arg>
|
|
288
|
+
</function>
|
|
289
|
+
<!-- https://linux.die.net/man/2/writev -->
|
|
290
|
+
<!-- ssize_t preadv(int fd, const struct iovec *iov, int iovcnt, off_t offset); -->
|
|
291
|
+
<function name="preadv">
|
|
292
|
+
<leak-ignore/>
|
|
293
|
+
<returnValue type="ssize_t"/>
|
|
294
|
+
<arg nr="1" direction="in">
|
|
295
|
+
<not-uninit/>
|
|
296
|
+
<not-bool/>
|
|
297
|
+
<valid>0:</valid>
|
|
298
|
+
</arg>
|
|
299
|
+
<arg nr="2" direction="out">
|
|
300
|
+
<not-null/>
|
|
301
|
+
</arg>
|
|
302
|
+
<arg nr="3" direction="in">
|
|
303
|
+
<not-uninit/>
|
|
304
|
+
<not-bool/>
|
|
305
|
+
<valid>0:</valid>
|
|
306
|
+
</arg>
|
|
307
|
+
<arg nr="4" direction="in">
|
|
308
|
+
<not-uninit/>
|
|
309
|
+
<not-bool/>
|
|
310
|
+
<valid>0:</valid>
|
|
311
|
+
</arg>
|
|
312
|
+
</function>
|
|
313
|
+
<!-- https://linux.die.net/man/2/writev -->
|
|
314
|
+
<!-- ssize_t preadv2(int fd, const struct iovec *iov, int iovcnt, off_t offset, int flags); -->
|
|
315
|
+
<function name="preadv2">
|
|
316
|
+
<leak-ignore/>
|
|
317
|
+
<returnValue type="ssize_t"/>
|
|
318
|
+
<arg nr="1" direction="in">
|
|
319
|
+
<not-uninit/>
|
|
320
|
+
<not-bool/>
|
|
321
|
+
<valid>0:</valid>
|
|
322
|
+
</arg>
|
|
323
|
+
<arg nr="2" direction="out">
|
|
324
|
+
<not-null/>
|
|
325
|
+
</arg>
|
|
326
|
+
<arg nr="3" direction="in">
|
|
327
|
+
<not-uninit/>
|
|
328
|
+
<not-bool/>
|
|
329
|
+
<valid>0:</valid>
|
|
330
|
+
</arg>
|
|
331
|
+
<arg nr="4" direction="in">
|
|
332
|
+
<not-uninit/>
|
|
333
|
+
<not-bool/>
|
|
334
|
+
<valid>0:</valid>
|
|
335
|
+
</arg>
|
|
336
|
+
<arg nr="5" direction="in">
|
|
337
|
+
<not-uninit/>
|
|
338
|
+
</arg>
|
|
339
|
+
</function>
|
|
340
|
+
<!-- https://linux.die.net/man/2/writev -->
|
|
341
|
+
<!-- ssize_t pwritev(int fd, const struct iovec *iov, int iovcnt, off_t offset); -->
|
|
342
|
+
<function name="pwritev">
|
|
343
|
+
<leak-ignore/>
|
|
344
|
+
<returnValue type="ssize_t"/>
|
|
345
|
+
<arg nr="1" direction="in">
|
|
346
|
+
<not-uninit/>
|
|
347
|
+
<not-bool/>
|
|
348
|
+
<valid>0:</valid>
|
|
349
|
+
</arg>
|
|
350
|
+
<arg nr="2" direction="in">
|
|
351
|
+
<not-null/>
|
|
352
|
+
</arg>
|
|
353
|
+
<arg nr="3" direction="in">
|
|
354
|
+
<not-uninit/>
|
|
355
|
+
<not-bool/>
|
|
356
|
+
<valid>0:</valid>
|
|
357
|
+
</arg>
|
|
358
|
+
<arg nr="4" direction="in">
|
|
359
|
+
<not-uninit/>
|
|
360
|
+
<not-bool/>
|
|
361
|
+
<valid>0:</valid>
|
|
362
|
+
</arg>
|
|
363
|
+
</function>
|
|
364
|
+
<!-- https://linux.die.net/man/2/writev -->
|
|
365
|
+
<!-- ssize_t pwritev2(int fd, const struct iovec *iov, int iovcnt, off_t offset, int flags); -->
|
|
366
|
+
<function name="pwritev2">
|
|
367
|
+
<leak-ignore/>
|
|
368
|
+
<returnValue type="ssize_t"/>
|
|
369
|
+
<arg nr="1" direction="in">
|
|
370
|
+
<not-uninit/>
|
|
371
|
+
<not-bool/>
|
|
372
|
+
<valid>0:</valid>
|
|
373
|
+
</arg>
|
|
374
|
+
<arg nr="2" direction="in">
|
|
375
|
+
<not-null/>
|
|
376
|
+
</arg>
|
|
377
|
+
<arg nr="3" direction="in">
|
|
378
|
+
<not-uninit/>
|
|
379
|
+
<not-bool/>
|
|
380
|
+
<valid>0:</valid>
|
|
381
|
+
</arg>
|
|
382
|
+
<arg nr="4" direction="in">
|
|
383
|
+
<not-uninit/>
|
|
384
|
+
<not-bool/>
|
|
385
|
+
<valid>0:</valid>
|
|
386
|
+
</arg>
|
|
387
|
+
<arg nr="5" direction="in">
|
|
388
|
+
<not-uninit/>
|
|
389
|
+
</arg>
|
|
390
|
+
</function>
|
|
391
|
+
<!-- https://www.freebsd.org/cgi/man.cgi?query=arc4random -->
|
|
392
|
+
<!-- uint32_t arc4random(void); -->
|
|
393
|
+
<function name="arc4random">
|
|
394
|
+
<noreturn>false</noreturn>
|
|
395
|
+
<returnValue type="uint32_t"/>
|
|
396
|
+
<use-retval/>
|
|
397
|
+
</function>
|
|
398
|
+
<!-- void arc4random_buf(void *buf, size_t nbytes); -->
|
|
399
|
+
<function name="arc4random_buf">
|
|
400
|
+
<noreturn>false</noreturn>
|
|
401
|
+
<returnValue type="void"/>
|
|
402
|
+
<leak-ignore/>
|
|
403
|
+
<arg nr="1" direction="out">
|
|
404
|
+
<not-null/>
|
|
405
|
+
<minsize type="argvalue" arg="2"/>
|
|
406
|
+
</arg>
|
|
407
|
+
<arg nr="2">
|
|
408
|
+
<not-uninit/>
|
|
409
|
+
<valid>1:</valid>
|
|
410
|
+
</arg>
|
|
411
|
+
</function>
|
|
412
|
+
<!-- uint32_t arc4random_uniform(uint32_t upper_bound); -->
|
|
413
|
+
<function name="arc4random_uniform">
|
|
414
|
+
<noreturn>false</noreturn>
|
|
415
|
+
<returnValue type="uint32_t"/>
|
|
416
|
+
<use-retval/>
|
|
417
|
+
<arg nr="1">
|
|
418
|
+
<not-uninit/>
|
|
419
|
+
<valid>2:</valid>
|
|
420
|
+
</arg>
|
|
421
|
+
</function>
|
|
422
|
+
<!-- void arc4random_stir(void); -->
|
|
423
|
+
<function name="arc4random_stir">
|
|
424
|
+
<noreturn>false</noreturn>
|
|
425
|
+
</function>
|
|
426
|
+
<!-- void arc4random_addrandom(unsigned char *dat, int datlen); -->
|
|
427
|
+
<function name="arc4random_addrandom">
|
|
428
|
+
<noreturn>false</noreturn>
|
|
429
|
+
<leak-ignore/>
|
|
430
|
+
<arg nr="1">
|
|
431
|
+
<minsize type="argvalue" arg="2"/>
|
|
432
|
+
</arg>
|
|
433
|
+
<arg nr="2">
|
|
434
|
+
<not-uninit/>
|
|
435
|
+
<valid>0:</valid>
|
|
436
|
+
</arg>
|
|
437
|
+
</function>
|
|
438
|
+
<!-- https://www.freebsd.org/cgi/man.cgi?query=mmap -->
|
|
439
|
+
<!-- void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset); -->
|
|
440
|
+
<!-- In contrast to POSIX, the BSD mmap requires fd to be -1 if MAP_ANONYMOUS or MAP_ANON is specified -->
|
|
441
|
+
<function name="mmap">
|
|
442
|
+
<use-retval/>
|
|
443
|
+
<returnValue type="void *"/>
|
|
444
|
+
<noreturn>false</noreturn>
|
|
445
|
+
<leak-ignore/>
|
|
446
|
+
<arg nr="1" direction="in">
|
|
447
|
+
<not-uninit/>
|
|
448
|
+
</arg>
|
|
449
|
+
<arg nr="2" direction="in">
|
|
450
|
+
<not-uninit/>
|
|
451
|
+
<valid>1:</valid>
|
|
452
|
+
</arg>
|
|
453
|
+
<arg nr="3" direction="in">
|
|
454
|
+
<not-uninit/>
|
|
455
|
+
</arg>
|
|
456
|
+
<arg nr="4" direction="in">
|
|
457
|
+
<not-uninit/>
|
|
458
|
+
</arg>
|
|
459
|
+
<arg nr="5" direction="in">
|
|
460
|
+
<not-uninit/>
|
|
461
|
+
<valid>-1:</valid>
|
|
462
|
+
</arg>
|
|
463
|
+
<arg nr="6" direction="in">
|
|
464
|
+
<not-uninit/>
|
|
465
|
+
<not-bool/>
|
|
466
|
+
</arg>
|
|
467
|
+
</function>
|
|
468
|
+
<function name="err,errx">
|
|
469
|
+
<noreturn>true</noreturn>
|
|
470
|
+
<arg nr="1" direction="in">
|
|
471
|
+
<not-uninit/>
|
|
472
|
+
</arg>
|
|
473
|
+
<formatstr/>
|
|
474
|
+
<arg nr="2" direction="in">
|
|
475
|
+
<formatstr/>
|
|
476
|
+
<strz/>
|
|
477
|
+
<not-uninit/>
|
|
478
|
+
</arg>
|
|
479
|
+
</function>
|
|
480
|
+
<function name="errc">
|
|
481
|
+
<noreturn>true</noreturn>
|
|
482
|
+
<arg nr="1" direction="in">
|
|
483
|
+
<not-uninit/>
|
|
484
|
+
</arg>
|
|
485
|
+
<arg nr="2" direction="in">
|
|
486
|
+
<not-uninit/>
|
|
487
|
+
</arg>
|
|
488
|
+
<formatstr/>
|
|
489
|
+
<arg nr="3" direction="in">
|
|
490
|
+
<formatstr/>
|
|
491
|
+
<strz/>
|
|
492
|
+
<not-uninit/>
|
|
493
|
+
</arg>
|
|
494
|
+
</function>
|
|
495
|
+
<function name="verr,verrx">
|
|
496
|
+
<noreturn>true</noreturn>
|
|
497
|
+
<arg nr="1" direction="in">
|
|
498
|
+
<not-uninit/>
|
|
499
|
+
</arg>
|
|
500
|
+
<arg nr="2" direction="in">
|
|
501
|
+
<strz/>
|
|
502
|
+
<not-uninit/>
|
|
503
|
+
</arg>
|
|
504
|
+
<arg nr="3"/>
|
|
505
|
+
</function>
|
|
506
|
+
<function name="verrc">
|
|
507
|
+
<noreturn>true</noreturn>
|
|
508
|
+
<arg nr="1" direction="in">
|
|
509
|
+
<not-uninit/>
|
|
510
|
+
</arg>
|
|
511
|
+
<arg nr="2" direction="in">
|
|
512
|
+
<not-uninit/>
|
|
513
|
+
</arg>
|
|
514
|
+
<formatstr/>
|
|
515
|
+
<arg nr="3" direction="in">
|
|
516
|
+
<strz/>
|
|
517
|
+
<not-uninit/>
|
|
518
|
+
</arg>
|
|
519
|
+
<arg nr="4"/>
|
|
520
|
+
</function>
|
|
521
|
+
<podtype name="FTS"/>
|
|
522
|
+
<podtype name="FTSENT"/>
|
|
523
|
+
<!-- This type definitions refer to https://mandoc.bsd.lv/includes/sys/types.h.html -->
|
|
524
|
+
<podtype name="u_char" sign="u" stdtype="char"/>
|
|
525
|
+
<podtype name="u_short" sign="u" stdtype="short"/>
|
|
526
|
+
<podtype name="u_int" sign="u" stdtype="int"/>
|
|
527
|
+
<podtype name="u_long" sign="u" stdtype="long"/>
|
|
528
|
+
<!-- Sys V compatibility types -->
|
|
529
|
+
<podtype name="unchar" sign="u" stdtype="char"/>
|
|
530
|
+
<podtype name="ushort" sign="u" stdtype="short"/>
|
|
531
|
+
<podtype name="uint" sign="u" stdtype="int"/>
|
|
532
|
+
<podtype name="ulong" sign="u" stdtype="long"/>
|
|
533
|
+
<!-- https://linux.die.net/man/3/tailq_head -->
|
|
534
|
+
<define name="TAILQ_HEAD(name,type)" value="struct name { type *first; type *last; }"/>
|
|
535
|
+
<!-- https://man7.org/linux/man-pages/man2/lseek.2.html :
|
|
536
|
+
Conforming to:
|
|
537
|
+
SEEK_DATA and SEEK_HOLE are nonstandard extensions also present
|
|
538
|
+
in Solaris, FreeBSD, and DragonFly BSD; they are proposed for
|
|
539
|
+
inclusion in the next POSIX revision (Issue 8).-->
|
|
540
|
+
<define name="SEEK_DATA" value="3"/>
|
|
541
|
+
<define name="SEEK_HOLE" value="4"/>
|
|
542
|
+
<!-- Old BSD names for the same constants; just for compatibility. -->
|
|
543
|
+
<define name="L_INCR" value="SEEK_CUR"/>
|
|
544
|
+
<define name="L_SET" value="SEEK_SET"/>
|
|
545
|
+
<define name="L_XTND" value="SEEK_END"/>
|
|
546
|
+
</def>
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
<?xml version="1.0"?>
|
|
2
|
+
<def format="2">
|
|
3
|
+
<!-- cairo Library Configuration https://www.cairographics.org/ -->
|
|
4
|
+
<!-- The cairo library is typically included by "#include <cairo.h>" -->
|
|
5
|
+
<!-- ########## cairo Types ########## -->
|
|
6
|
+
<define name="cairo_bool_t" value="int"/>
|
|
7
|
+
<!-- TODO: Configure cairo_status_t as an enum when this is implemented in Cppcheck -->
|
|
8
|
+
<podtype name="cairo_status_t"/>
|
|
9
|
+
<!-- ########## cairo Macros / Defines ########## -->
|
|
10
|
+
<define name="CAIRO_HAS_MIME_SURFACE" value="1"/>
|
|
11
|
+
<define name="CAIRO_MIME_TYPE_CCITT_FAX" value=""image/g3fax""/>
|
|
12
|
+
<define name="CAIRO_MIME_TYPE_CCITT_FAX_PARAMS" value=""application/x-cairo.ccitt.params""/>
|
|
13
|
+
<define name="CAIRO_MIME_TYPE_EPS" value=""application/postscript""/>
|
|
14
|
+
<define name="CAIRO_MIME_TYPE_EPS_PARAMS" value=""application/x-cairo.eps.params""/>
|
|
15
|
+
<define name="CAIRO_MIME_TYPE_JBIG2" value=""application/x-cairo.jbig2""/>
|
|
16
|
+
<define name="CAIRO_MIME_TYPE_JBIG2_GLOBAL" value=""application/x-cairo.jbig2-global""/>
|
|
17
|
+
<define name="CAIRO_MIME_TYPE_JBIG2_GLOBAL_ID" value=""application/x-cairo.jbig2-global-id""/>
|
|
18
|
+
<define name="CAIRO_MIME_TYPE_JP2" value=""image/jp2""/>
|
|
19
|
+
<define name="CAIRO_MIME_TYPE_JPEG" value=""image/jpeg""/>
|
|
20
|
+
<define name="CAIRO_MIME_TYPE_PNG" value=""image/png""/>
|
|
21
|
+
<define name="CAIRO_MIME_TYPE_URI" value=""text/x-uri""/>
|
|
22
|
+
<define name="CAIRO_MIME_TYPE_UNIQUE_ID" value=""application/x-cairo.uuid""/>
|
|
23
|
+
<!-- ########## cairo Allocation / Deallocation ########## -->
|
|
24
|
+
<!-- ########## cairo Functions ########## -->
|
|
25
|
+
<!-- cairo_t * cairo_create (cairo_surface_t *target); -->
|
|
26
|
+
<function name="cairo_create">
|
|
27
|
+
<noreturn>false</noreturn>
|
|
28
|
+
<returnValue type="cairo_t *"/>
|
|
29
|
+
<use-retval/>
|
|
30
|
+
<arg nr="1">
|
|
31
|
+
<not-uninit/>
|
|
32
|
+
<not-bool/>
|
|
33
|
+
</arg>
|
|
34
|
+
</function>
|
|
35
|
+
<!-- void cairo_destroy (cairo_t *cr); -->
|
|
36
|
+
<function name="cairo_destroy">
|
|
37
|
+
<noreturn>false</noreturn>
|
|
38
|
+
<returnValue type="void"/>
|
|
39
|
+
<arg nr="1">
|
|
40
|
+
<not-uninit/>
|
|
41
|
+
<not-bool/>
|
|
42
|
+
</arg>
|
|
43
|
+
</function>
|
|
44
|
+
<!-- void cairo_line_to (cairo_t *cr, double x, double y); -->
|
|
45
|
+
<!-- void cairo_move_to (cairo_t *cr, double x, double y); -->
|
|
46
|
+
<function name="cairo_line_to,cairo_move_to">
|
|
47
|
+
<noreturn>false</noreturn>
|
|
48
|
+
<returnValue type="void"/>
|
|
49
|
+
<leak-ignore/>
|
|
50
|
+
<arg nr="1">
|
|
51
|
+
<not-uninit/>
|
|
52
|
+
</arg>
|
|
53
|
+
<arg nr="2" direction="in">
|
|
54
|
+
<not-uninit/>
|
|
55
|
+
</arg>
|
|
56
|
+
<arg nr="3" direction="in">
|
|
57
|
+
<not-uninit/>
|
|
58
|
+
</arg>
|
|
59
|
+
</function>
|
|
60
|
+
<!-- cairo_status_t cairo_status (cairo_t *cr); -->
|
|
61
|
+
<function name="cairo_status">
|
|
62
|
+
<noreturn>false</noreturn>
|
|
63
|
+
<returnValue type="cairo_status_t"/>
|
|
64
|
+
<use-retval/>
|
|
65
|
+
<arg nr="1">
|
|
66
|
+
<not-uninit/>
|
|
67
|
+
</arg>
|
|
68
|
+
</function>
|
|
69
|
+
<!-- const char * cairo_status_to_string (cairo_status_t status); -->
|
|
70
|
+
<function name="cairo_status_to_string">
|
|
71
|
+
<noreturn>false</noreturn>
|
|
72
|
+
<returnValue type="const char *"/>
|
|
73
|
+
<use-retval/>
|
|
74
|
+
<arg nr="1" direction="in">
|
|
75
|
+
<not-uninit/>
|
|
76
|
+
<not-bool/>
|
|
77
|
+
</arg>
|
|
78
|
+
</function>
|
|
79
|
+
<!-- void cairo_stroke (cairo_t *cr); -->
|
|
80
|
+
<function name="cairo_stroke">
|
|
81
|
+
<noreturn>false</noreturn>
|
|
82
|
+
<returnValue type="void"/>
|
|
83
|
+
<leak-ignore/>
|
|
84
|
+
<arg nr="1">
|
|
85
|
+
<not-uninit/>
|
|
86
|
+
</arg>
|
|
87
|
+
</function>
|
|
88
|
+
</def>
|