xref: /freebsd/contrib/sendmail/libsm/fvwrite.h (revision cddbc3b40812213ff00041f79174cac0be360a2a)
1 /*
2  * Copyright (c) 2000-2001 Proofpoint, 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.8 2013-11-22 20:51:43 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 *));
31