fvwrite.h revision 1574
1218885Sdim/*- 2218885Sdim * Copyright (c) 1990, 1993 3218885Sdim * The Regents of the University of California. All rights reserved. 4218885Sdim * 5218885Sdim * This code is derived from software contributed to Berkeley by 6218885Sdim * Chris Torek. 7218885Sdim * 8218885Sdim * Redistribution and use in source and binary forms, with or without 9218885Sdim * modification, are permitted provided that the following conditions 10218885Sdim * are met: 11218885Sdim * 1. Redistributions of source code must retain the above copyright 12218885Sdim * notice, this list of conditions and the following disclaimer. 13218885Sdim * 2. Redistributions in binary form must reproduce the above copyright 14218885Sdim * notice, this list of conditions and the following disclaimer in the 15218885Sdim * documentation and/or other materials provided with the distribution. 16218885Sdim * 3. All advertising materials mentioning features or use of this software 17218885Sdim * must display the following acknowledgement: 18218885Sdim * This product includes software developed by the University of 19218885Sdim * California, Berkeley and its contributors. 20218885Sdim * 4. Neither the name of the University nor the names of its contributors 21218885Sdim * may be used to endorse or promote products derived from this software 22234353Sdim * without specific prior written permission. 23218885Sdim * 24234353Sdim * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 25218885Sdim * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 26234353Sdim * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 27234353Sdim * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 28234353Sdim * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 29234353Sdim * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30218885Sdim * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31218885Sdim * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32218885Sdim * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33218885Sdim * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34218885Sdim * SUCH DAMAGE. 35218885Sdim * 36234353Sdim * @(#)fvwrite.h 8.1 (Berkeley) 6/4/93 37226633Sdim */ 38234353Sdim 39234353Sdim/* 40234353Sdim * I/O descriptors for __sfvwrite(). 41218885Sdim */ 42218885Sdimstruct __siov { 43218885Sdim void *iov_base; 44218885Sdim size_t iov_len; 45218885Sdim}; 46234353Sdimstruct __suio { 47218885Sdim struct __siov *uio_iov; 48218885Sdim int uio_iovcnt; 49218885Sdim int uio_resid; 50218885Sdim}; 51218885Sdim 52234353Sdim#if __STDC__ || c_plusplus 53218885Sdimextern int __sfvwrite(FILE *, struct __suio *); 54218885Sdim#else 55224145Sdimextern int __sfvwrite(); 56218885Sdim#endif 57218885Sdim