home *** CD-ROM | disk | FTP | other *** search
- /* RCS -- $Header: /u2/dvadura/src/generic/dmake/src/unix/bsd43/RCS/setvbuf.c,v 1.1 91/05/06 15:28:59 dvadura Exp $
- -- SYNOPSIS -- setvbuf for BSD
- --
- -- DESCRIPTION
- -- A sysv call, standard BSD doesn't have this.
- --
- -- AUTHOR
- -- Dennis Vadura, dvadura@watdragon.uwaterloo.ca
- -- CS DEPT, University of Waterloo, Waterloo, Ont., Canada
- --
- -- COPYRIGHT
- -- Copyright (c) 1990 by Dennis Vadura. All rights reserved.
- --
- -- This program is free software; you can redistribute it and/or
- -- modify it under the terms of the GNU General Public License
- -- (version 1), as published by the Free Software Foundation, and
- -- found in the file 'LICENSE' included with this distribution.
- --
- -- This program is distributed in the hope that it will be useful,
- -- but WITHOUT ANY WARRANTY; without even the implied warrant of
- -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- -- GNU General Public License for more details.
- --
- -- You should have received a copy of the GNU General Public License
- -- along with this program; if not, write to the Free Software
- -- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- --
- -- LOG
- -- $Log: setvbuf.c,v $
- * Revision 1.1 91/05/06 15:28:59 dvadura
- * dmake Release Version 3.7
- *
- */
-
- #include <stdio.h>
-
- setvbuf(fp, bp, type, len_unused)
- FILE* fp;
- char* bp;
- int type;
- int len_unused;
- {
- switch (type) {
- case _IOLBF: setlinebuf(fp); return;
- case _IONBF: setbuf(fp, NULL); return;
- default: setbuf(fp, bp); return;
- }
- }
-
-