diff options
author | obrien <obrien@FreeBSD.org> | 2002-03-21 22:49:10 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2002-03-21 22:49:10 +0000 |
commit | 3b73ce2319e249cf2795cf4b0d0c624134f01e77 (patch) | |
tree | 8e16a65843d0b07cf60b7fb748e2ac4890d6f1fd /lib/libc/stdio | |
parent | 5da7065f3d4fe05102865926b09192cffa03a251 (diff) | |
download | FreeBSD-src-3b73ce2319e249cf2795cf4b0d0c624134f01e77.zip FreeBSD-src-3b73ce2319e249cf2795cf4b0d0c624134f01e77.tar.gz |
Remove __P() usage.
Diffstat (limited to 'lib/libc/stdio')
-rw-r--r-- | lib/libc/stdio/findfp.c | 2 | ||||
-rw-r--r-- | lib/libc/stdio/fseek.c | 2 | ||||
-rw-r--r-- | lib/libc/stdio/local.h | 46 | ||||
-rw-r--r-- | lib/libc/stdio/mktemp.c | 4 | ||||
-rw-r--r-- | lib/libc/stdio/refill.c | 2 | ||||
-rw-r--r-- | lib/libc/stdio/sscanf.c | 2 | ||||
-rw-r--r-- | lib/libc/stdio/tempnam.c | 2 | ||||
-rw-r--r-- | lib/libc/stdio/tmpnam.c | 2 | ||||
-rw-r--r-- | lib/libc/stdio/ungetc.c | 2 | ||||
-rw-r--r-- | lib/libc/stdio/vfprintf.c | 12 | ||||
-rw-r--r-- | lib/libc/stdio/vsscanf.c | 2 |
11 files changed, 39 insertions, 39 deletions
diff --git a/lib/libc/stdio/findfp.c b/lib/libc/stdio/findfp.c index 8b28431..057487d 100644 --- a/lib/libc/stdio/findfp.c +++ b/lib/libc/stdio/findfp.c @@ -94,7 +94,7 @@ FILE *__stderrp = &__sF[2]; struct glue __sglue = { &uglue, 3, __sF }; static struct glue *lastglue = &uglue; -static struct glue * moreglue __P((int)); +static struct glue * moreglue(int); static spinlock_t thread_lock = _SPINLOCK_INITIALIZER; #define THREAD_LOCK() if (__isthreaded) _SPINLOCK(&thread_lock) diff --git a/lib/libc/stdio/fseek.c b/lib/libc/stdio/fseek.c index 86659e5..621aa5f 100644 --- a/lib/libc/stdio/fseek.c +++ b/lib/libc/stdio/fseek.c @@ -109,7 +109,7 @@ _fseeko(fp, offset, whence, ltest) int whence; int ltest; { - fpos_t (*seekfn) __P((void *, fpos_t, int)); + fpos_t (*seekfn)(void *, fpos_t, int); fpos_t target, curoff, ret; size_t n; struct stat st; diff --git a/lib/libc/stdio/local.h b/lib/libc/stdio/local.h index c1c215c..2173808 100644 --- a/lib/libc/stdio/local.h +++ b/lib/libc/stdio/local.h @@ -46,29 +46,29 @@ * in particular, macros and private variables. */ -extern int _sread __P((FILE *, char *, int)); -extern int _swrite __P((FILE *, char const *, int)); -extern fpos_t _sseek __P((FILE *, fpos_t, int)); -extern int _ftello __P((FILE *, fpos_t *)); -extern int _fseeko __P((FILE *, off_t, int, int)); -extern int __fflush __P((FILE *fp)); -extern int __sflush __P((FILE *)); -extern FILE *__sfp __P((void)); -extern int __srefill __P((FILE *)); -extern int __sread __P((void *, char *, int)); -extern int __swrite __P((void *, char const *, int)); -extern fpos_t __sseek __P((void *, fpos_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 int __swsetup __P((FILE *)); -extern int __sflags __P((const char *, int *)); -extern int __ungetc __P((int, FILE *)); -extern int __vfprintf __P((FILE *, const char *, _BSD_VA_LIST_)); +extern int _sread(FILE *, char *, int); +extern int _swrite(FILE *, char const *, int); +extern fpos_t _sseek(FILE *, fpos_t, int); +extern int _ftello(FILE *, fpos_t *); +extern int _fseeko(FILE *, off_t, int, int); +extern int __fflush(FILE *fp); +extern int __sflush(FILE *); +extern FILE *__sfp(void); +extern int __srefill(FILE *); +extern int __sread(void *, char *, int); +extern int __swrite(void *, char const *, int); +extern fpos_t __sseek(void *, fpos_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 int __swsetup(FILE *); +extern int __sflags(const char *, int *); +extern int __ungetc(int, FILE *); +extern int __vfprintf(FILE *, const char *, _BSD_VA_LIST_); extern int __sdidinit; diff --git a/lib/libc/stdio/mktemp.c b/lib/libc/stdio/mktemp.c index a0d396d..098af8f 100644 --- a/lib/libc/stdio/mktemp.c +++ b/lib/libc/stdio/mktemp.c @@ -51,9 +51,9 @@ static const char rcsid[] = #include <unistd.h> /* #include "un-namespace.h" */ -char *_mktemp __P((char *)); +char *_mktemp(char *); -static int _gettemp __P((char *, int *, int, int)); +static int _gettemp(char *, int *, int, int); static const unsigned char padchar[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; diff --git a/lib/libc/stdio/refill.c b/lib/libc/stdio/refill.c index b3e292a..59fc35c 100644 --- a/lib/libc/stdio/refill.c +++ b/lib/libc/stdio/refill.c @@ -51,7 +51,7 @@ static const char rcsid[] = #include "libc_private.h" #include "local.h" -static int lflush __P((FILE *)); +static int lflush(FILE *); static int lflush(FILE *fp) diff --git a/lib/libc/stdio/sscanf.c b/lib/libc/stdio/sscanf.c index c887788..03808dd 100644 --- a/lib/libc/stdio/sscanf.c +++ b/lib/libc/stdio/sscanf.c @@ -51,7 +51,7 @@ static const char rcsid[] = #endif #include "local.h" -static int eofread __P((void *, char *, int)); +static int eofread(void *, char *, int); /* ARGSUSED */ static int diff --git a/lib/libc/stdio/tempnam.c b/lib/libc/stdio/tempnam.c index dc34c7d..c7780a4 100644 --- a/lib/libc/stdio/tempnam.c +++ b/lib/libc/stdio/tempnam.c @@ -50,7 +50,7 @@ static const char rcsid[] = __warn_references(tempnam, "warning: tempnam() possibly used unsafely; consider using mkstemp()"); -extern char *_mktemp __P((char *)); +extern char *_mktemp(char *); char * tempnam(dir, pfx) diff --git a/lib/libc/stdio/tmpnam.c b/lib/libc/stdio/tmpnam.c index ff1c038..bc996f8 100644 --- a/lib/libc/stdio/tmpnam.c +++ b/lib/libc/stdio/tmpnam.c @@ -48,7 +48,7 @@ static char sccsid[] = "@(#)tmpnam.c 8.3 (Berkeley) 3/28/94"; __warn_references(tmpnam, "warning: tmpnam() possibly used unsafely; consider using mkstemp()"); -extern char *_mktemp __P((char *)); +extern char *_mktemp(char *); char * tmpnam(s) diff --git a/lib/libc/stdio/ungetc.c b/lib/libc/stdio/ungetc.c index f70fb42..7eb10b1 100644 --- a/lib/libc/stdio/ungetc.c +++ b/lib/libc/stdio/ungetc.c @@ -50,7 +50,7 @@ static const char rcsid[] = #include "local.h" #include "libc_private.h" -static int __submore __P((FILE *)); +static int __submore(FILE *); /* * Expand the ungetc buffer `in place'. That is, adjust fp->_p when diff --git a/lib/libc/stdio/vfprintf.c b/lib/libc/stdio/vfprintf.c index 15b1c64..1d04528 100644 --- a/lib/libc/stdio/vfprintf.c +++ b/lib/libc/stdio/vfprintf.c @@ -112,14 +112,14 @@ enum typeid { T_DOUBLE, T_LONG_DOUBLE }; -static int __sprint __P((FILE *, struct __suio *)); +static int __sprint(FILE *, struct __suio *); static int __sbprintf __P((FILE *, const char *, va_list)) __printflike(2, 0); static char *__ujtoa __P((uintmax_t, char *, int, int, char *, int, char, const char *)); static char *__ultoa __P((u_long, char *, int, int, char *, int, char, const char *)); -static void __find_arguments __P((const char *, va_list, union arg **)); -static void __grow_type_table __P((int, enum typeid **, int *)); +static void __find_arguments(const char *, va_list, union arg **); +static void __grow_type_table(int, enum typeid **, int *); /* * Flush out all the vectors defined by the given uio, @@ -354,8 +354,8 @@ vfprintf(FILE *fp, const char *fmt0, va_list ap) #define BUF ((MAXEXP*2)+MAXFRACT+1) /* + decimal point */ #define DEFPREC 6 -static char *cvt __P((double, int, int, char *, int *, int, int *, char **)); -static int exponent __P((char *, int, int)); +static char *cvt(double, int, int, char *, int *, int, int *, char **); +static int exponent(char *, int, int); #else /* no FLOATING_POINT */ @@ -1392,7 +1392,7 @@ __grow_type_table (int nextarg, enum typeid **typetable, int *tablesize) #ifdef FLOATING_POINT -extern char *__dtoa __P((double, int, int, int *, int *, char **, char **)); +extern char *__dtoa(double, int, int, int *, int *, char **, char **); static char * cvt(double value, int ndigits, int flags, char *sign, int *decpt, diff --git a/lib/libc/stdio/vsscanf.c b/lib/libc/stdio/vsscanf.c index 5a5f8c8..d3f2fdd 100644 --- a/lib/libc/stdio/vsscanf.c +++ b/lib/libc/stdio/vsscanf.c @@ -46,7 +46,7 @@ static const char rcsid[] = #include <string.h> static int -eofread __P((void *, char *, int)); +eofread(void *, char *, int); /* ARGSUSED */ static int |