/* ** tainted.xh */ /* Library functions annotated for tainted.mts */ extern int remove (/*@untainted@*/ char *filename) /*@modifies fileSystem, errno@*/ ; extern int rename (/*@untainted@*/ char *old, /*@untainted@*/ char *new) ; extern /*@observer@*/ char *tmpnam (/*@untainted@*/ char *s) ; extern FILE *fopen (/*@untainted@*/ char *filename, char *mode) ; extern int sprintf (/*@out@*/ char *s, /*@untainted@*/ char *format, ...) /*@ensures s:taintedness = ...:taintedness@*/ ; extern int printf (/*@untainted@*/ char *format, ...) ; extern /*@null@*/ FILE *freopen (/*@untainted@*/ char *filename, char *mode, FILE *stream) ; extern /*@null@*/ /*@tainted@*/ char * fgets (/*@returned@*/ /*@out@*/ char *s, int n, FILE *stream) /*@ensures tainted s@*/ /*@modifies *s@*/ ; extern int system (/*@untainted@*/ /*@null@*/ char *s) /*@modifies fileSystem@*/ ; extern char *strcpy (/*@returned@*/ char *s1, char *s2) /*@ensures s1:taintedness = s2:taintedness@*/ ; extern char *strcat (/*@returned@*/ char *s1, char *s2) /*@ensures s1:taintedness = s1:taintedness | s2:taintedness@*/ /*:ensures result:tainted = s1:tainted, s2:tainted)@*/ ;