Browse Source

attribute(format) no longer implies nonnull...

ok millert@ miod@
OPENBSD_3_1
espie 23 years ago
parent
commit
2fa03e9b65
1 changed files with 13 additions and 7 deletions
  1. +13
    -7
      src/include/stdio.h

+ 13
- 7
src/include/stdio.h View File

@ -1,4 +1,4 @@
/* $OpenBSD: stdio.h,v 1.18 2001/09/04 22:17:44 fgsch Exp $ */
/* $OpenBSD: stdio.h,v 1.19 2001/11/02 00:19:10 espie Exp $ */
/* $NetBSD: stdio.h,v 1.18 1996/04/25 18:29:21 jtc Exp $ */ /* $NetBSD: stdio.h,v 1.18 1996/04/25 18:29:21 jtc Exp $ */
/*- /*-
@ -303,7 +303,8 @@ __END_DECLS
#if !defined (_ANSI_SOURCE) && !defined(_POSIX_SOURCE) #if !defined (_ANSI_SOURCE) && !defined(_POSIX_SOURCE)
__BEGIN_DECLS __BEGIN_DECLS
int asprintf __P((char **, const char *, ...)) int asprintf __P((char **, const char *, ...))
__attribute__((__format__ (printf, 2, 3)));
__attribute__((__format__ (printf, 2, 3)))
__attribute__((__nonnull__ (2)));
char *fgetln __P((FILE *, size_t *)); char *fgetln __P((FILE *, size_t *));
int fpurge __P((FILE *)); int fpurge __P((FILE *));
int getw __P((FILE *)); int getw __P((FILE *));
@ -314,15 +315,20 @@ void setbuffer __P((FILE *, char *, int));
int setlinebuf __P((FILE *)); int setlinebuf __P((FILE *));
char *tempnam __P((const char *, const char *)); char *tempnam __P((const char *, const char *));
int snprintf __P((char *, size_t, const char *, ...)) int snprintf __P((char *, size_t, const char *, ...))
__attribute__((__format__ (printf, 3, 4)));
__attribute__((__format__ (printf, 3, 4)))
__attribute__((__nonnull__ (3)));
int vasprintf __P((char **, const char *, _BSD_VA_LIST_)) int vasprintf __P((char **, const char *, _BSD_VA_LIST_))
__attribute__((__format__ (printf, 2, 0)));
__attribute__((__format__ (printf, 2, 0)))
__attribute__((__nonnull__ (2)));
int vsnprintf __P((char *, size_t, const char *, _BSD_VA_LIST_)) int vsnprintf __P((char *, size_t, const char *, _BSD_VA_LIST_))
__attribute__((__format__ (printf, 3, 0)));
__attribute__((__format__ (printf, 3, 0)))
__attribute__((__nonnull__ (3)));
int vscanf __P((const char *, _BSD_VA_LIST_)) int vscanf __P((const char *, _BSD_VA_LIST_))
__attribute__((__format__ (scanf, 1, 0)));
__attribute__((__format__ (scanf, 1, 0)))
__attribute__((__nonnull__ (1)));
int vsscanf __P((const char *, const char *, _BSD_VA_LIST_)) int vsscanf __P((const char *, const char *, _BSD_VA_LIST_))
__attribute__((__format__ (scanf, 2, 0)));
__attribute__((__format__ (scanf, 2, 0)))
__attribute__((__nonnull__ (2)));
__END_DECLS __END_DECLS
/* /*


Loading…
Cancel
Save