diff options
| author | jtc <jtc@NetBSD.org> | 1995-02-02 02:09:03 +0000 |
|---|---|---|
| committer | jtc <jtc@NetBSD.org> | 1995-02-02 02:09:03 +0000 |
| commit | 255db7b26bd999d249c491bc59d8533b85b1b87c (patch) | |
| tree | fcd8024b2516fe7bff30e5efda1f89a16d6917cb /lib/libc/stdio/setbuffer.c | |
| parent | 389c46c57db5f329122df917d069518bea1475c5 (diff) | |
Merged with 4.4lite.
Changed to conform to NetBSD's new RCS Id convention.
Diffstat (limited to 'lib/libc/stdio/setbuffer.c')
| -rw-r--r-- | lib/libc/stdio/setbuffer.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/lib/libc/stdio/setbuffer.c b/lib/libc/stdio/setbuffer.c index e57d52ed1ec..44a82843999 100644 --- a/lib/libc/stdio/setbuffer.c +++ b/lib/libc/stdio/setbuffer.c @@ -1,6 +1,8 @@ +/* $NetBSD: setbuffer.c,v 1.4 1995/02/02 02:10:32 jtc Exp $ */ + /*- - * Copyright (c) 1990 The Regents of the University of California. - * All rights reserved. + * Copyright (c) 1990, 1993 + * The Regents of the University of California. All rights reserved. * * This code is derived from software contributed to Berkeley by * Chris Torek. @@ -35,8 +37,10 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -/*static char *sccsid = "from: @(#)setbuffer.c 5.5 (Berkeley) 3/18/91";*/ -static char *rcsid = "$Id: setbuffer.c,v 1.3 1993/08/26 00:47:22 jtc Exp $"; +#if 0 +static char sccsid[] = "@(#)setbuffer.c 8.1 (Berkeley) 6/4/93"; +#endif +static char rcsid[] = "$NetBSD: setbuffer.c,v 1.4 1995/02/02 02:10:32 jtc Exp $"; #endif /* LIBC_SCCS and not lint */ #include <stdio.h> @@ -48,16 +52,16 @@ setbuffer(fp, buf, size) int size; { - (void) setvbuf(fp, buf, buf ? _IOFBF : _IONBF, size); + (void)setvbuf(fp, buf, buf ? _IOFBF : _IONBF, size); } /* * set line buffering */ +int setlinebuf(fp) FILE *fp; { - (void) setvbuf(fp, (char *)NULL, _IOLBF, (size_t)0); - return (0); /* ??? */ + return (setvbuf(fp, (char *)NULL, _IOLBF, (size_t)0)); } |
