summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdio')
-rw-r--r--lib/libc/stdio/fseek.c4
-rw-r--r--lib/libc/stdio/local.h30
-rw-r--r--lib/libc/stdio/mktemp.c6
-rw-r--r--lib/libc/stdio/perror.c4
-rw-r--r--lib/libc/stdio/tempnam.c4
-rw-r--r--lib/libc/stdio/tmpnam.c4
-rw-r--r--lib/libc/stdio/ungetc.c4
-rw-r--r--lib/libc/stdio/vfprintf.c8
8 files changed, 32 insertions, 32 deletions
diff --git a/lib/libc/stdio/fseek.c b/lib/libc/stdio/fseek.c
index 8063c6a0d9b..3a2881d9767 100644
--- a/lib/libc/stdio/fseek.c
+++ b/lib/libc/stdio/fseek.c
@@ -35,7 +35,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: fseek.c,v 1.3 2000/02/21 22:11:22 millert Exp $";
+static char rcsid[] = "$OpenBSD: fseek.c,v 1.4 2002/02/16 21:27:24 millert Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -58,7 +58,7 @@ fseeko(fp, offset, whence)
off_t offset;
int whence;
{
- register fpos_t (*seekfn) __P((void *, fpos_t, int));
+ register fpos_t (*seekfn)(void *, fpos_t, int);
fpos_t target, curoff;
size_t n;
struct stat st;
diff --git a/lib/libc/stdio/local.h b/lib/libc/stdio/local.h
index 53af82defae..8efe61030ef 100644
--- a/lib/libc/stdio/local.h
+++ b/lib/libc/stdio/local.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: local.h,v 1.2 1996/08/19 08:32:54 tholo Exp $ */
+/* $OpenBSD: local.h,v 1.3 2002/02/16 21:27:24 millert Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -41,21 +41,21 @@
* in particular, macros and private variables.
*/
-int __sflush __P((FILE *));
-FILE *__sfp __P((void));
-int __srefill __P((FILE *));
-int __sread __P((void *, char *, int));
-int __swrite __P((void *, char const *, int));
-fpos_t __sseek __P((void *, fpos_t, int));
-int __sclose __P((void *));
-void __sinit __P((void));
-void _cleanup __P((void));
-void (*__cleanup) __P((void));
-void __smakebuf __P((FILE *));
-int __swhatbuf __P((FILE *, size_t *, int *));
+int __sflush(FILE *);
+FILE *__sfp(void);
+int __srefill(FILE *);
+int __sread(void *, char *, int);
+int __swrite(void *, char const *, int);
+fpos_t __sseek(void *, fpos_t, int);
+int __sclose(void *);
+void __sinit(void);
+void _cleanup(void);
+void (*__cleanup)(void);
+void __smakebuf(FILE *);
+int __swhatbuf(FILE *, size_t *, int *);
int _fwalk __P((int (*)(FILE *)));
-int __swsetup __P((FILE *));
-int __sflags __P((const char *, int *));
+int __swsetup(FILE *);
+int __sflags(const char *, int *);
extern int __sdidinit;
diff --git a/lib/libc/stdio/mktemp.c b/lib/libc/stdio/mktemp.c
index 875c3ca2298..477328d268e 100644
--- a/lib/libc/stdio/mktemp.c
+++ b/lib/libc/stdio/mktemp.c
@@ -32,7 +32,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: mktemp.c,v 1.14 2002/01/02 20:18:32 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: mktemp.c,v 1.15 2002/02/16 21:27:24 millert Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -44,7 +44,7 @@ static char rcsid[] = "$OpenBSD: mktemp.c,v 1.14 2002/01/02 20:18:32 deraadt Exp
#include <ctype.h>
#include <unistd.h>
-static int _gettemp __P((char *, int *, int, int));
+static int _gettemp(char *, int *, int, int);
int
mkstemps(path, slen)
@@ -72,7 +72,7 @@ mkdtemp(path)
return(_gettemp(path, (int *)NULL, 1, 0) ? path : (char *)NULL);
}
-char *_mktemp __P((char *));
+char *_mktemp(char *);
char *
_mktemp(path)
diff --git a/lib/libc/stdio/perror.c b/lib/libc/stdio/perror.c
index 2eceac1511b..5c683d982ac 100644
--- a/lib/libc/stdio/perror.c
+++ b/lib/libc/stdio/perror.c
@@ -32,7 +32,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: perror.c,v 1.3 1998/09/10 06:44:53 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: perror.c,v 1.4 2002/02/16 21:27:24 millert Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -48,7 +48,7 @@ static char rcsid[] = "$OpenBSD: perror.c,v 1.3 1998/09/10 06:44:53 deraadt Exp
* internal function __strerror().
*/
-extern char *__strerror __P((int , char *));
+extern char *__strerror(int , char *);
void
perror(s)
diff --git a/lib/libc/stdio/tempnam.c b/lib/libc/stdio/tempnam.c
index 80af80f790b..3721eaf89cc 100644
--- a/lib/libc/stdio/tempnam.c
+++ b/lib/libc/stdio/tempnam.c
@@ -32,7 +32,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: tempnam.c,v 1.10 2001/07/09 06:57:44 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: tempnam.c,v 1.11 2002/02/16 21:27:24 millert Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
@@ -46,7 +46,7 @@ static char rcsid[] = "$OpenBSD: tempnam.c,v 1.10 2001/07/09 06:57:44 deraadt Ex
__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 d209e3c1c42..be841cce470 100644
--- a/lib/libc/stdio/tmpnam.c
+++ b/lib/libc/stdio/tmpnam.c
@@ -35,7 +35,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: tmpnam.c,v 1.6 1997/04/03 05:31:38 millert Exp $";
+static char rcsid[] = "$OpenBSD: tmpnam.c,v 1.7 2002/02/16 21:27:24 millert Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -46,7 +46,7 @@ static char rcsid[] = "$OpenBSD: tmpnam.c,v 1.6 1997/04/03 05:31:38 millert Exp
__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 fa60aafac09..3e728d53096 100644
--- a/lib/libc/stdio/ungetc.c
+++ b/lib/libc/stdio/ungetc.c
@@ -35,7 +35,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: ungetc.c,v 1.3 2001/07/09 06:57:45 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: ungetc.c,v 1.4 2002/02/16 21:27:24 millert Exp $";
#endif /* LIBC_SCCS and not lint */
#include <stdio.h>
@@ -43,7 +43,7 @@ static char rcsid[] = "$OpenBSD: ungetc.c,v 1.3 2001/07/09 06:57:45 deraadt Exp
#include <string.h>
#include "local.h"
-static int __submore __P((FILE *));
+static int __submore(FILE *);
/*
* Expand the ungetc buffer `in place'. That is, adjust fp->_p when
* the buffer moves, so that it points the same distance from the end,
diff --git a/lib/libc/stdio/vfprintf.c b/lib/libc/stdio/vfprintf.c
index e97114d2213..086547819ea 100644
--- a/lib/libc/stdio/vfprintf.c
+++ b/lib/libc/stdio/vfprintf.c
@@ -35,7 +35,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: vfprintf.c,v 1.14 2001/12/05 10:20:06 deraadt Exp $";
+static char *rcsid = "$OpenBSD: vfprintf.c,v 1.15 2002/02/16 21:27:24 millert Exp $";
#endif /* LIBC_SCCS and not lint */
/*
@@ -130,8 +130,8 @@ __sbprintf(fp, fmt, ap)
#define BUF (MAXEXP+MAXFRACT+1) /* + decimal point */
#define DEFPREC 6
-static char *cvt __P((double, int, int, char *, int *, int, int *));
-static int exponent __P((char *, int, int));
+static char *cvt(double, int, int, char *, int *, int, int *);
+static int exponent(char *, int, int);
#else /* no FLOATING_POINT */
#define BUF 40
@@ -1094,7 +1094,7 @@ __grow_type_table(typetable, tablesize)
#ifdef FLOATING_POINT
-extern char *__dtoa __P((double, int, int, int *, int *, char **));
+extern char *__dtoa(double, int, int, int *, int *, char **);
static char *
cvt(value, ndigits, flags, sign, decpt, ch, length)