Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/stdio ansi prototypes.



details:   https://anonhg.NetBSD.org/src/rev/a5f9d6b9546f
branches:  trunk
changeset: 778073:a5f9d6b9546f
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Mar 15 11:46:08 2012 +0000

description:
ansi prototypes.

diffstat:

 lib/libc/stdio/local.h |  69 +++++++++++++++++++++++--------------------------
 1 files changed, 33 insertions(+), 36 deletions(-)

diffs (98 lines):

diff -r 1f555674a961 -r a5f9d6b9546f lib/libc/stdio/local.h
--- a/lib/libc/stdio/local.h    Thu Mar 15 05:47:19 2012 +0000
+++ b/lib/libc/stdio/local.h    Thu Mar 15 11:46:08 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: local.h,v 1.31 2012/01/22 18:36:17 christos Exp $      */
+/*     $NetBSD: local.h,v 1.32 2012/03/15 11:46:08 christos Exp $      */
 
 /*-
  * Copyright (c) 1990, 1993
@@ -46,47 +46,44 @@
  * in particular, macros and private variables.
  */
 
-extern int     __sflush __P((FILE *));
-extern FILE    *__sfp __P((void));
-extern void    __sfpinit __P((FILE *));
-extern int     __srefill __P((FILE *));
-extern int     __sread __P((void *, char *, int));
-extern int     __swrite __P((void *, char const *, int));
-extern off_t   __sseek __P((void *, off_t, int));
-extern int     __sclose __P((void *));
-extern void    __sinit __P((void));
-extern void    _cleanup __P((void));
-extern void    (*__cleanup) __P((void));
-extern void    __smakebuf __P((FILE *));
-extern int     __swhatbuf __P((FILE *, size_t *, int *));
-extern int     _fwalk __P((int (*)(FILE *)));
-extern char    *_mktemp __P((char *));
-extern int     __swsetup __P((FILE *));
-extern int     __sflags __P((const char *, int *));
-extern int     __svfscanf __P((FILE * __restrict, const char * __restrict,
-                   va_list))
-                   __attribute__((__format__(__scanf__, 2, 0)));
-extern int     __svfscanf_unlocked __P((FILE * __restrict, const char * __restrict,
-                   va_list))
-                   __attribute__((__format__(__scanf__, 2, 0)));
-extern int     __vfprintf_unlocked __P((FILE * __restrict, const char * __restrict,
-                   va_list));
+extern int     __sflush(FILE *);
+extern FILE    *__sfp(void);
+extern void    __sfpinit(FILE *);
+extern int     __srefill(FILE *);
+extern int     __sread(void *, char *, int);
+extern int     __swrite(void *, char * const, int);
+extern off_t   __sseek(void *, off_t, int);
+extern int     __sclose(void *);
+extern void    __sinit(void);
+extern void    _cleanup(void);
+extern void    (*__cleanup)(void);
+extern void    __smakebuf(FILE *);
+extern int     __swhatbuf(FILE *, size_t *, int *);
+extern int     _fwalk(int (*)(FILE *));
+extern char    *_mktemp(char *);
+extern int     __swsetup(FILE *);
+extern int     __sflags(const char *, int *);
+extern int     __svfscanf(FILE * __restrict, const char * __restrict,
+    va_list) __scanflike(2, 0);
+extern int     __svfscanf_unlocked(FILE * __restrict, const char * __restrict,
+    va_list) __scanflike(2, 0);
+extern int     __vfprintf_unlocked(FILE * __restrict, const char * __restrict,
+    va_list) __printflike(2, 0);
 
 
 extern int     __sdidinit;
 
-extern int     __gettemp __P((char *, int *, int));
+extern int     __gettemp(char *, int *, int);
 
-extern wint_t  __fgetwc_unlock __P((FILE *));
-extern wint_t  __fputwc_unlock __P((wchar_t, FILE *));
+extern wint_t  __fgetwc_unlock(FILE *);
+extern wint_t  __fputwc_unlock(wchar_t, FILE *);
 
 extern ssize_t __getdelim(char **__restrict, size_t *__restrict, int,
     FILE *__restrict);
-extern char    *__fgetstr __P((FILE * __restrict, size_t * __restrict, int));
-extern int      __vfwprintf_unlocked __P((FILE *, const wchar_t *,
-    va_list));
-extern int      __vfwscanf_unlocked __P((FILE * __restrict,
-    const wchar_t * __restrict, va_list));
+extern char    *__fgetstr(FILE * __restrict, size_t * __restrict, int);
+extern int      __vfwprintf_unlocked(FILE *, const wchar_t *, va_list);
+extern int      __vfwscanf_unlocked(FILE * __restrict,
+    const wchar_t * __restrict, va_list);
 
 /*
  * Return true iff the given FILE cannot be written now.
@@ -115,8 +112,8 @@
        _EXT(fp)->_fgetstr_len = 0; \
 }
 
-extern void __flockfile_internal __P((FILE *, int));
-extern void __funlockfile_internal __P((FILE *, int));
+extern void __flockfile_internal(FILE *, int);
+extern void __funlockfile_internal(FILE *, int);
 
 /*
  * Detect if the current file position fits in a long int.



Home | Main Index | Thread Index | Old Index