merge the formfield patch from ooo-build
[ooovba.git] / dmake / unix / bsd43 / setvbuf.c
blobb4a3dd55b923a7831553c6a92bf3608af83bebd6
1 /* RCS $Id: setvbuf.c,v 1.1.1.1 2000-09-22 15:33:34 hr Exp $
2 --
3 -- SYNOPSIS
4 -- Setvbuf for BSD
5 --
6 -- DESCRIPTION
7 -- A sysv call, standard BSD doesn't have this.
8 --
9 -- AUTHOR
10 -- Dennis Vadura, dvadura@dmake.wticorp.com
12 -- WWW
13 -- http://dmake.wticorp.com/
15 -- COPYRIGHT
16 -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved.
17 --
18 -- This program is NOT free software; you can redistribute it and/or
19 -- modify it under the terms of the Software License Agreement Provided
20 -- in the file <distribution-root>/readme/license.txt.
22 -- LOG
23 -- Use cvs log to obtain detailed change logs.
26 #include <stdio.h>
28 setvbuf(fp, bp, type, len_unused)
29 FILE* fp;
30 char* bp;
31 int type;
32 int len_unused;
34 switch (type) {
35 case _IOLBF: setlinebuf(fp); return;
36 case _IONBF: setbuf(fp, NULL); return;
37 default: setbuf(fp, bp); return;