summaryrefslogtreecommitdiff
path: root/lib/libpthread/stdio
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1997-07-25 20:30:28 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1997-07-25 20:30:28 +0000
commit7baa7d06cf60a96d45c4a33ac4b83042a409e6f0 (patch)
tree535f30ade3133c1d8d84a06136dd0f216024ffb3 /lib/libpthread/stdio
parent1626c644fa840e7d0e3178a0c02abb959cbb2d39 (diff)
#if __STDC__ --> #ifdef __STDC__
Diffstat (limited to 'lib/libpthread/stdio')
-rw-r--r--lib/libpthread/stdio/fprintf.c8
-rw-r--r--lib/libpthread/stdio/fscanf.c6
-rw-r--r--lib/libpthread/stdio/fseek.c4
-rw-r--r--lib/libpthread/stdio/funopen.c4
-rw-r--r--lib/libpthread/stdio/scanf.c8
-rw-r--r--lib/libpthread/stdio/snprintf.c8
-rw-r--r--lib/libpthread/stdio/sprintf.c8
-rw-r--r--lib/libpthread/stdio/sscanf.c8
-rw-r--r--lib/libpthread/stdio/vfscanf.c4
9 files changed, 29 insertions, 29 deletions
diff --git a/lib/libpthread/stdio/fprintf.c b/lib/libpthread/stdio/fprintf.c
index 18f202e4a65..6101c6d2860 100644
--- a/lib/libpthread/stdio/fprintf.c
+++ b/lib/libpthread/stdio/fprintf.c
@@ -36,18 +36,18 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)fprintf.c 5.6 (Berkeley) 1/20/91";*/
-static char *rcsid = "$Id: fprintf.c,v 1.1 1995/10/18 08:43:06 deraadt Exp $";
+static char *rcsid = "$Id: fprintf.c,v 1.2 1997/07/25 20:30:20 mickey Exp $";
#endif /* LIBC_SCCS and not lint */
#include <pthread.h>
#include <stdio.h>
-#if __STDC__
+#ifdef __STDC__
#include <stdarg.h>
#else
#include <varargs.h>
#endif
-#if __STDC__
+#ifdef __STDC__
fprintf(FILE *fp, const char *fmt, ...)
#else
fprintf(fp, fmt, va_alist)
@@ -59,7 +59,7 @@ fprintf(fp, fmt, va_alist)
int ret;
va_list ap;
-#if __STDC__
+#ifdef __STDC__
va_start(ap, fmt);
#else
va_start(ap);
diff --git a/lib/libpthread/stdio/fscanf.c b/lib/libpthread/stdio/fscanf.c
index 54960c9c727..2c0f44e7e89 100644
--- a/lib/libpthread/stdio/fscanf.c
+++ b/lib/libpthread/stdio/fscanf.c
@@ -36,18 +36,18 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)fscanf.c 5.1 (Berkeley) 1/20/91";*/
-static char *rcsid = "$Id: fscanf.c,v 1.1 1995/10/18 08:43:07 deraadt Exp $";
+static char *rcsid = "$Id: fscanf.c,v 1.2 1997/07/25 20:30:21 mickey Exp $";
#endif /* LIBC_SCCS and not lint */
#include <pthread.h>
#include <stdio.h>
-#if __STDC__
+#ifdef __STDC__
#include <stdarg.h>
#else
#include <varargs.h>
#endif
-#if __STDC__
+#ifdef __STDC__
fscanf(FILE *fp, char const *fmt, ...) {
int r;
va_list ap;
diff --git a/lib/libpthread/stdio/fseek.c b/lib/libpthread/stdio/fseek.c
index 173d427ff43..70ea8bea384 100644
--- a/lib/libpthread/stdio/fseek.c
+++ b/lib/libpthread/stdio/fseek.c
@@ -36,7 +36,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)fseek.c 5.7 (Berkeley) 2/24/91";*/
-static char *rcsid = "$Id: fseek.c,v 1.1 1995/10/18 08:43:07 deraadt Exp $";
+static char *rcsid = "$Id: fseek.c,v 1.2 1997/07/25 20:30:22 mickey Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -58,7 +58,7 @@ fseek(fp, offset, whence)
long offset;
int whence;
{
-#if __STDC__
+#ifdef __STDC__
register fpos_t (*seekfn)(void *, fpos_t, int);
#else
register fpos_t (*seekfn)();
diff --git a/lib/libpthread/stdio/funopen.c b/lib/libpthread/stdio/funopen.c
index fd1689ada9e..c77aaf47a90 100644
--- a/lib/libpthread/stdio/funopen.c
+++ b/lib/libpthread/stdio/funopen.c
@@ -36,7 +36,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)funopen.c 5.2 (Berkeley) 2/5/91";*/
-static char *rcsid = "$Id: funopen.c,v 1.1 1995/10/18 08:43:07 deraadt Exp $";
+static char *rcsid = "$Id: funopen.c,v 1.2 1997/07/25 20:30:22 mickey Exp $";
#endif /* LIBC_SCCS and not lint */
#include <pthread.h>
@@ -48,7 +48,7 @@ FILE *
funopen(cookie, readfn, writefn, seekfn, closefn)
const void *cookie;
int (*readfn)(), (*writefn)();
-#if __STDC__
+#ifdef __STDC__
fpos_t (*seekfn)(void *cookie, fpos_t off, int whence);
#else
fpos_t (*seekfn)();
diff --git a/lib/libpthread/stdio/scanf.c b/lib/libpthread/stdio/scanf.c
index 7feb1f529f0..adaa4a0a78a 100644
--- a/lib/libpthread/stdio/scanf.c
+++ b/lib/libpthread/stdio/scanf.c
@@ -36,18 +36,18 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)scanf.c 5.3 (Berkeley) 1/20/91";*/
-static char *rcsid = "$Id: scanf.c,v 1.1 1995/10/18 08:43:08 deraadt Exp $";
+static char *rcsid = "$Id: scanf.c,v 1.2 1997/07/25 20:30:23 mickey Exp $";
#endif /* LIBC_SCCS and not lint */
#include <pthread.h>
#include <stdio.h>
-#if __STDC__
+#ifdef __STDC__
#include <stdarg.h>
#else
#include <varargs.h>
#endif
-#if __STDC__
+#ifdef __STDC__
scanf(char const *fmt, ...)
#else
scanf(fmt, va_alist)
@@ -58,7 +58,7 @@ scanf(fmt, va_alist)
int ret;
va_list ap;
-#if __STDC__
+#ifdef __STDC__
va_start(ap, fmt);
#else
va_start(ap);
diff --git a/lib/libpthread/stdio/snprintf.c b/lib/libpthread/stdio/snprintf.c
index 8aed707d401..ae3f03d4530 100644
--- a/lib/libpthread/stdio/snprintf.c
+++ b/lib/libpthread/stdio/snprintf.c
@@ -36,17 +36,17 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)snprintf.c 5.1 (Berkeley) 1/20/91";*/
-static char *rcsid = "$Id: snprintf.c,v 1.1 1995/10/18 08:43:09 deraadt Exp $";
+static char *rcsid = "$Id: snprintf.c,v 1.2 1997/07/25 20:30:23 mickey Exp $";
#endif /* LIBC_SCCS and not lint */
#include <stdio.h>
-#if __STDC__
+#ifdef __STDC__
#include <stdarg.h>
#else
#include <varargs.h>
#endif
-#if __STDC__
+#ifdef __STDC__
snprintf(char *str, size_t n, char const *fmt, ...)
#else
snprintf(str, n, fmt, va_alist)
@@ -62,7 +62,7 @@ snprintf(str, n, fmt, va_alist)
if ((int)n < 1)
return (EOF);
-#if __STDC__
+#ifdef __STDC__
va_start(ap, fmt);
#else
va_start(ap);
diff --git a/lib/libpthread/stdio/sprintf.c b/lib/libpthread/stdio/sprintf.c
index cc57310cddc..d93cfc46285 100644
--- a/lib/libpthread/stdio/sprintf.c
+++ b/lib/libpthread/stdio/sprintf.c
@@ -36,11 +36,11 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)sprintf.c 5.7 (Berkeley) 1/20/91";*/
-static char *rcsid = "$Id: sprintf.c,v 1.1 1995/10/18 08:43:09 deraadt Exp $";
+static char *rcsid = "$Id: sprintf.c,v 1.2 1997/07/25 20:30:24 mickey Exp $";
#endif /* LIBC_SCCS and not lint */
#include <stdio.h>
-#if __STDC__
+#ifdef __STDC__
#include <stdarg.h>
#else
#include <varargs.h>
@@ -48,7 +48,7 @@ static char *rcsid = "$Id: sprintf.c,v 1.1 1995/10/18 08:43:09 deraadt Exp $";
#include <limits.h>
#include "local.h"
-#if __STDC__
+#ifdef __STDC__
sprintf(char *str, char const *fmt, ...)
#else
sprintf(str, fmt, va_alist)
@@ -64,7 +64,7 @@ sprintf(str, fmt, va_alist)
f._flags = __SWR | __SSTR;
f._bf._base = f._p = (unsigned char *)str;
f._bf._size = f._w = INT_MAX;
-#if __STDC__
+#ifdef __STDC__
va_start(ap, fmt);
#else
va_start(ap);
diff --git a/lib/libpthread/stdio/sscanf.c b/lib/libpthread/stdio/sscanf.c
index 959f8b67c37..1ca458fb4d2 100644
--- a/lib/libpthread/stdio/sscanf.c
+++ b/lib/libpthread/stdio/sscanf.c
@@ -36,19 +36,19 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)sscanf.c 5.1 (Berkeley) 1/20/91";*/
-static char *rcsid = "$Id: sscanf.c,v 1.1 1995/10/18 08:43:09 deraadt Exp $";
+static char *rcsid = "$Id: sscanf.c,v 1.2 1997/07/25 20:30:24 mickey Exp $";
#endif /* LIBC_SCCS and not lint */
#include <stdio.h>
#include <string.h>
-#if __STDC__
+#ifdef __STDC__
#include <stdarg.h>
#else
#include <varargs.h>
#endif
#include "local.h"
-#if __STDC__
+#ifdef __STDC__
sscanf(const char *str, char const *fmt, ...)
#else
sscanf(str, fmt, va_alist)
@@ -67,7 +67,7 @@ sscanf(str, fmt, va_alist)
f._bf._size = f._r = strlen(str);
f._ub._base = NULL;
f._lb._base = NULL;
-#if __STDC__
+#ifdef __STDC__
va_start(ap, fmt);
#else
va_start(ap);
diff --git a/lib/libpthread/stdio/vfscanf.c b/lib/libpthread/stdio/vfscanf.c
index 121c35404fa..afdd7604360 100644
--- a/lib/libpthread/stdio/vfscanf.c
+++ b/lib/libpthread/stdio/vfscanf.c
@@ -36,13 +36,13 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)vfscanf.c 5.7 (Berkeley) 12/14/92";*/
-static char *rcsid = "$Id: vfscanf.c,v 1.1 1995/10/18 08:43:09 deraadt Exp $";
+static char *rcsid = "$Id: vfscanf.c,v 1.2 1997/07/25 20:30:25 mickey Exp $";
#endif /* LIBC_SCCS and not lint */
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
-#if __STDC__
+#ifdef __STDC__
#include <stdarg.h>
#else
#include <varargs.h>