xref: /freebsd/tools/regression/sockets/unix_cmsg/t_sockcred.h (revision b3e7694832e81d7a904a10f525f8797b753bf0d3)
1*1fab62b1SMaxim Sobolev /*-
2*1fab62b1SMaxim Sobolev  * Copyright (c) 2005 Andrey Simonenko
3*1fab62b1SMaxim Sobolev  * Copyright (c) 2016 Maksym Sobolyev <sobomax@FreeBSD.org>
4*1fab62b1SMaxim Sobolev  * All rights reserved.
5*1fab62b1SMaxim Sobolev  *
6*1fab62b1SMaxim Sobolev  * Redistribution and use in source and binary forms, with or without
7*1fab62b1SMaxim Sobolev  * modification, are permitted provided that the following conditions
8*1fab62b1SMaxim Sobolev  * are met:
9*1fab62b1SMaxim Sobolev  * 1. Redistributions of source code must retain the above copyright
10*1fab62b1SMaxim Sobolev  *    notice, this list of conditions and the following disclaimer.
11*1fab62b1SMaxim Sobolev  * 2. Redistributions in binary form must reproduce the above copyright
12*1fab62b1SMaxim Sobolev  *    notice, this list of conditions and the following disclaimer in the
13*1fab62b1SMaxim Sobolev  *    documentation and/or other materials provided with the distribution.
14*1fab62b1SMaxim Sobolev  *
15*1fab62b1SMaxim Sobolev  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
16*1fab62b1SMaxim Sobolev  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17*1fab62b1SMaxim Sobolev  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18*1fab62b1SMaxim Sobolev  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
19*1fab62b1SMaxim Sobolev  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20*1fab62b1SMaxim Sobolev  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21*1fab62b1SMaxim Sobolev  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22*1fab62b1SMaxim Sobolev  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23*1fab62b1SMaxim Sobolev  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24*1fab62b1SMaxim Sobolev  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25*1fab62b1SMaxim Sobolev  * SUCH DAMAGE.
26*1fab62b1SMaxim Sobolev  */
27*1fab62b1SMaxim Sobolev 
28*1fab62b1SMaxim Sobolev int t_sockcred_1(void);
29*1fab62b1SMaxim Sobolev int t_sockcred_2(void);
30