=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/include/stdio.h,v retrieving revision 1.28 retrieving revision 1.29 diff -c -r1.28 -r1.29 *** src/include/stdio.h 2003/06/26 19:34:17 1.28 --- src/include/stdio.h 2003/08/01 17:38:33 1.29 *************** *** 1,4 **** ! /* $OpenBSD: stdio.h,v 1.28 2003/06/26 19:34:17 avsm Exp $ */ /* $NetBSD: stdio.h,v 1.18 1996/04/25 18:29:21 jtc Exp $ */ /*- --- 1,4 ---- ! /* $OpenBSD: stdio.h,v 1.29 2003/08/01 17:38:33 avsm Exp $ */ /* $NetBSD: stdio.h,v 1.18 1996/04/25 18:29:21 jtc Exp $ */ /*- *************** *** 214,225 **** int fflush(FILE *); int fgetc(FILE *); int fgetpos(FILE *, fpos_t *); ! char *fgets(char *, int, FILE *); FILE *fopen(const char *, const char *); int fprintf(FILE *, const char *, ...); int fputc(int, FILE *); int fputs(const char *, FILE *); ! size_t fread(void *, size_t, size_t, FILE *); FILE *freopen(const char *, const char *, FILE *); int fscanf(FILE *, const char *, ...); int fseek(FILE *, long, int); --- 214,227 ---- int fflush(FILE *); int fgetc(FILE *); int fgetpos(FILE *, fpos_t *); ! char *fgets(char *, int, FILE *) ! __attribute__((__bounded__ (__string__,1,2))); FILE *fopen(const char *, const char *); int fprintf(FILE *, const char *, ...); int fputc(int, FILE *); int fputs(const char *, FILE *); ! size_t fread(void *, size_t, size_t, FILE *) ! __attribute__((__bounded__ (__size__,1,3,2))); FILE *freopen(const char *, const char *, FILE *); int fscanf(FILE *, const char *, ...); int fseek(FILE *, long, int); *************** *** 227,233 **** int fsetpos(FILE *, const fpos_t *); long ftell(FILE *); off_t ftello(FILE *); ! size_t fwrite(const void *, size_t, size_t, FILE *); int getc(FILE *); int getchar(void); char *gets(char *); --- 229,236 ---- int fsetpos(FILE *, const fpos_t *); long ftell(FILE *); off_t ftello(FILE *); ! size_t fwrite(const void *, size_t, size_t, FILE *) ! __attribute__((__bounded__ (__size__,1,3,2))); int getc(FILE *); int getchar(void); char *gets(char *); *************** *** 313,325 **** char *tempnam(const char *, const char *); int snprintf(char *, size_t, const char *, ...) __attribute__((__format__ (printf, 3, 4))) ! __attribute__((__nonnull__ (3))); int vasprintf(char **, const char *, _BSD_VA_LIST_) __attribute__((__format__ (printf, 2, 0))) __attribute__((__nonnull__ (2))); int vsnprintf(char *, size_t, const char *, _BSD_VA_LIST_) __attribute__((__format__ (printf, 3, 0))) ! __attribute__((__nonnull__ (3))); int vscanf(const char *, _BSD_VA_LIST_) __attribute__((__format__ (scanf, 1, 0))) __attribute__((__nonnull__ (1))); --- 316,330 ---- char *tempnam(const char *, const char *); int snprintf(char *, size_t, const char *, ...) __attribute__((__format__ (printf, 3, 4))) ! __attribute__((__nonnull__ (3))) ! __attribute__((__bounded__ (__string__,1,2))); int vasprintf(char **, const char *, _BSD_VA_LIST_) __attribute__((__format__ (printf, 2, 0))) __attribute__((__nonnull__ (2))); int vsnprintf(char *, size_t, const char *, _BSD_VA_LIST_) __attribute__((__format__ (printf, 3, 0))) ! __attribute__((__nonnull__ (3))) ! __attribute__((__bounded__(__string__,1,2))); int vscanf(const char *, _BSD_VA_LIST_) __attribute__((__format__ (scanf, 1, 0))) __attribute__((__nonnull__ (1)));