Merge from vendor branch CVS:
[dragonfly.git] / contrib / sendmail-8.13.4 / libsm / fvwrite.h
1 /*
2  * Copyright (c) 2000-2001 Sendmail, Inc. and its suppliers.
3  *      All rights reserved.
4  * Copyright (c) 1990, 1993
5  *      The Regents of the University of California.  All rights reserved.
6  *
7  * This code is derived from software contributed to Berkeley by
8  * Chris Torek.
9  *
10  * By using this file, you agree to the terms and conditions set
11  * forth in the LICENSE file which can be found at the top level of
12  * the sendmail distribution.
13  *
14  * $Id: fvwrite.h,v 1.7 2001/03/02 00:18:19 ca Exp $
15  */
16
17 /* I/O descriptors for sm_fvwrite() */
18 struct sm_iov
19 {
20         void    *iov_base;
21         size_t  iov_len;
22 };
23 struct sm_uio
24 {
25         struct sm_iov   *uio_iov;
26         int             uio_iovcnt;
27         int             uio_resid;
28 };
29
30 extern int sm_fvwrite __P((SM_FILE_T *, int, struct sm_uio *));