]> andersk Git - splint.git/blame - test/mergestate/taintednm.xh
Changed 3.0.1.6 to 3.0.1.7 for /doc
[splint.git] / test / mergestate / taintednm.xh
CommitLineData
68de3f33 1/*
2** tainted.xh
3*/
4
5/* Library functions annotated for tainted.mts */
6
7extern int remove (/*@untainted@*/ char *filename) /*@modifies fileSystem, errno@*/ ;
8extern int rename (/*@untainted@*/ char *old, /*@untainted@*/ char *new) ;
9
10extern /*@observer@*/ char *tmpnam (/*@untainted@*/ char *s) ;
11
12extern FILE *fopen (/*@untainted@*/ char *filename, char *mode) ;
13
14extern int printf (/*@untainted@*/ char *format, ...) ;
15
16extern /*@null@*/ FILE *freopen (/*@untainted@*/ char *filename, char *mode, FILE *stream) ;
17
18extern /*@null@*/ /*@tainted@*/ char *
19 fgets (/*@returned@*/ /*@out@*/ char *s, int n, FILE *stream)
20 /*@ensures tainted s@*/
21 /*@modifies *s@*/ ;
22
23extern int system (/*@untainted@*/ /*@null@*/ char *s) /*@modifies fileSystem@*/ ;
24
25extern char *strcpy (/*@returned@*/ char *s1, char *s2)
26 /*@ensures s1:taintedness = s2:taintedness@*/ ;
27
28extern char *strcat (/*@returned@*/ char *s1, char *s2)
29 /*@ensures s1:taintedness = s1:taintedness | s2:taintedness@*/
30 /*@ensures result:taintedness = s1:taintedness | s2:taintedness @*/ ;
31
32extern char *strcat3 (/*@returned@*/ char *s1, char *s2, char *s3)
33 /*@ensures s1:taintedness = s1:taintedness | s2:taintedness | s3:taintedness@*/
34 /*@ensures result:taintedness = s1:taintedness | s2:taintedness | s3:taintedness @*/ ;
35
This page took 0.570436 seconds and 5 git commands to generate.