summaryrefslogtreecommitdiff
path: root/include/stdio.h
diff options
context:
space:
mode:
authorAnil Madhavapeddy <avsm@cvs.openbsd.org>2003-06-26 19:34:18 +0000
committerAnil Madhavapeddy <avsm@cvs.openbsd.org>2003-06-26 19:34:18 +0000
commit69f0ac8eb00f7ddb2deb05e2fde760337c2a92d7 (patch)
treeb633a88bac8be3c920064b38e7809bae89fb3b67 /include/stdio.h
parent2720804defc704fbdfb84d95fd8adce01346ef1a (diff)
backout the __bounded__ attributes for a while; requested by deraadt@
Diffstat (limited to 'include/stdio.h')
-rw-r--r--include/stdio.h17
1 files changed, 6 insertions, 11 deletions
diff --git a/include/stdio.h b/include/stdio.h
index 7453eb4265e..d94308a6498 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: stdio.h,v 1.27 2003/06/26 18:35:13 avsm Exp $ */
+/* $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 $ */
/*-
@@ -214,14 +214,12 @@ int ferror(FILE *);
int fflush(FILE *);
int fgetc(FILE *);
int fgetpos(FILE *, fpos_t *);
-char *fgets(char *, int, FILE *)
- __attribute__((__bounded__ (__string__,1,2)));
+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 *)
- __attribute__((__bounded__ (__size__,1,3,2)));
+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);
@@ -229,8 +227,7 @@ int fseeko(FILE *, off_t, int);
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)));
+size_t fwrite(const void *, size_t, size_t, FILE *);
int getc(FILE *);
int getchar(void);
char *gets(char *);
@@ -316,15 +313,13 @@ int setlinebuf(FILE *);
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)));
+ __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)))
- __attribute__((__bounded__(__string__,1,2)));
+ __attribute__((__nonnull__ (3)));
int vscanf(const char *, _BSD_VA_LIST_)
__attribute__((__format__ (scanf, 1, 0)))
__attribute__((__nonnull__ (1)));