Home | History | Annotate | Line # | Download | only in dist
msgio.h revision 1.2.6.2
      1  1.2.6.2  christos /*	$NetBSD: msgio.h,v 1.2.6.2 2019/06/10 22:08:38 christos Exp $	*/
      2  1.2.6.2  christos 
      3  1.2.6.2  christos /*-
      4  1.2.6.2  christos  * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
      5  1.2.6.2  christos  *
      6  1.2.6.2  christos  * Copyright (c) 2013 The FreeBSD Foundation
      7  1.2.6.2  christos  * All rights reserved.
      8  1.2.6.2  christos  *
      9  1.2.6.2  christos  * This software was developed by Pawel Jakub Dawidek under sponsorship from
     10  1.2.6.2  christos  * the FreeBSD Foundation.
     11  1.2.6.2  christos  *
     12  1.2.6.2  christos  * Copyright (c) 2013 Mariusz Zaborski <oshogbo (at) FreeBSD.org>
     13  1.2.6.2  christos  *
     14  1.2.6.2  christos  * Redistribution and use in source and binary forms, with or without
     15  1.2.6.2  christos  * modification, are permitted provided that the following conditions
     16  1.2.6.2  christos  * are met:
     17  1.2.6.2  christos  * 1. Redistributions of source code must retain the above copyright
     18  1.2.6.2  christos  *    notice, this list of conditions and the following disclaimer.
     19  1.2.6.2  christos  * 2. Redistributions in binary form must reproduce the above copyright
     20  1.2.6.2  christos  *    notice, this list of conditions and the following disclaimer in the
     21  1.2.6.2  christos  *    documentation and/or other materials provided with the distribution.
     22  1.2.6.2  christos  *
     23  1.2.6.2  christos  * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
     24  1.2.6.2  christos  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     25  1.2.6.2  christos  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     26  1.2.6.2  christos  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE
     27  1.2.6.2  christos  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     28  1.2.6.2  christos  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     29  1.2.6.2  christos  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     30  1.2.6.2  christos  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     31  1.2.6.2  christos  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     32  1.2.6.2  christos  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     33  1.2.6.2  christos  * SUCH DAMAGE.
     34  1.2.6.2  christos  *
     35  1.2.6.2  christos  * $FreeBSD: head/lib/libnv/msgio.h 326219 2017-11-26 02:00:33Z pfg $
     36  1.2.6.2  christos  */
     37  1.2.6.2  christos 
     38  1.2.6.2  christos #ifndef	_MSGIO_H_
     39  1.2.6.2  christos #define	_MSGIO_H_
     40  1.2.6.2  christos 
     41  1.2.6.2  christos struct cmsgcred;
     42  1.2.6.2  christos struct iovec;
     43  1.2.6.2  christos struct msghdr;
     44  1.2.6.2  christos 
     45  1.2.6.2  christos int cred_send(int sock);
     46  1.2.6.2  christos int cred_recv(int sock, struct cmsgcred *cred);
     47  1.2.6.2  christos 
     48  1.2.6.2  christos int fd_send(int sock, const int *fds, size_t nfds);
     49  1.2.6.2  christos int fd_recv(int sock, int *fds, size_t nfds);
     50  1.2.6.2  christos 
     51  1.2.6.2  christos int buf_send(int sock, void *buf, size_t size);
     52  1.2.6.2  christos int buf_recv(int sock, void *buf, size_t size);
     53  1.2.6.2  christos 
     54  1.2.6.2  christos #endif	/* !_MSGIO_H_ */
     55