fvwriteP.h
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:3k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* fvwriteP.h - definitions for the ANSI stdio library */
  2. /* Copyright 1992 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01b,22sep92,rrr  added support for c++
  7. 01a,29jul92,smb  taken from UCB stdio library
  8. */
  9. #ifndef __INCfvwritePh
  10. #define __INCfvwritePh
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. /*
  15. DESCRIPTION
  16.  * Copyright (c) 1990 The Regents of the University of California.
  17.  * All rights reserved.
  18.  *
  19.  * This code is derived from software contributed to Berkeley by
  20.  * Chris Torek.
  21.  *
  22.  * Redistribution and use in source and binary forms, with or without
  23.  * modification, are permitted provided that the following conditions
  24.  * are met:
  25.  * 1. Redistributions of source code must retain the above copyright
  26.  *    notice, this list of conditions and the following disclaimer.
  27.  * 2. Redistributions in binary form must reproduce the above copyright
  28.  *    notice, this list of conditions and the following disclaimer in the
  29.  *    documentation and/or other materials provided with the distribution.
  30.  * 3. All advertising materials mentioning features or use of this software
  31.  *    must display the following acknowledgement:
  32.  * This product includes software developed by the University of
  33.  * California, Berkeley and its contributors.
  34.  * 4. Neither the name of the University nor the names of its contributors
  35.  *    may be used to endorse or promote products derived from this software
  36.  *    without specific prior written permission.
  37.  *
  38.  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  39.  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  40.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  41.  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  42.  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  43.  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  44.  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  45.  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  46.  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  47.  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  48.  * SUCH DAMAGE.
  49.  *
  50.  * @(#)fvwrite.h 5.1 (Berkeley) 1/20/91
  51. SEE ALSO: American National Standard X3.159-1989
  52. */
  53. /* I/O descriptors for __sfvwrite().  */
  54. struct __siov 
  55.     {
  56.     void * iov_base;
  57.     size_t iov_len;
  58.     };
  59. struct __suio 
  60.     {
  61.     struct __siov *uio_iov;
  62.     int    uio_iovcnt;
  63.     int    uio_resid;
  64.     };
  65. #if defined(__STDC__) || defined(__cplusplus)
  66. extern int __sfvwrite(FILE *, struct __suio *);
  67. #else
  68. extern int __sfvwrite();
  69. #endif
  70. #ifdef __cplusplus
  71. }
  72. #endif
  73. #endif /* __INCfvwritePh */