xref: /dflybsd-src/sys/sys/kern_syscall.h (revision 3e1837ce0327b45bd6b85514ed8ad8c527910c24)
15969a6f1SDavid P. Reese, Jr. /*
25969a6f1SDavid P. Reese, Jr.  * KERN_SYSCALL.H	- Split syscall prototypes
35969a6f1SDavid P. Reese, Jr.  *
45969a6f1SDavid P. Reese, Jr.  * Copyright (c) 2003 David P. Reese, Jr. <daver@gomerbud.com>
55969a6f1SDavid P. Reese, Jr.  * All rights reserved.
65969a6f1SDavid P. Reese, Jr.  *
75969a6f1SDavid P. Reese, Jr.  * Redistribution and use in source and binary forms, with or without
85969a6f1SDavid P. Reese, Jr.  * modification, are permitted provided that the following conditions
95969a6f1SDavid P. Reese, Jr.  * are met:
105969a6f1SDavid P. Reese, Jr.  * 1. Redistributions of source code must retain the above copyright
115969a6f1SDavid P. Reese, Jr.  *    notice, this list of conditions and the following disclaimer.
125969a6f1SDavid P. Reese, Jr.  * 2. Redistributions in binary form must reproduce the above copyright
135969a6f1SDavid P. Reese, Jr.  *    notice, this list of conditions and the following disclaimer in the
145969a6f1SDavid P. Reese, Jr.  *    documentation and/or other materials provided with the distribution.
155969a6f1SDavid P. Reese, Jr.  *
165969a6f1SDavid P. Reese, Jr.  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
175969a6f1SDavid P. Reese, Jr.  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
185969a6f1SDavid P. Reese, Jr.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
195969a6f1SDavid P. Reese, Jr.  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
205969a6f1SDavid P. Reese, Jr.  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
215969a6f1SDavid P. Reese, Jr.  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
225969a6f1SDavid P. Reese, Jr.  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
235969a6f1SDavid P. Reese, Jr.  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
245969a6f1SDavid P. Reese, Jr.  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
255969a6f1SDavid P. Reese, Jr.  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
265969a6f1SDavid P. Reese, Jr.  * SUCH DAMAGE.
275969a6f1SDavid P. Reese, Jr.  *
28*3e1837ceSDavid P. Reese, Jr.  * $DragonFly: src/sys/sys/kern_syscall.h,v 1.4 2003/10/03 00:04:04 daver Exp $
295969a6f1SDavid P. Reese, Jr.  */
305969a6f1SDavid P. Reese, Jr. 
315969a6f1SDavid P. Reese, Jr. #ifndef _SYS_KERN_SYSCALL_H_
325969a6f1SDavid P. Reese, Jr. #define _SYS_KERN_SYSCALL_H_
335969a6f1SDavid P. Reese, Jr. 
34*3e1837ceSDavid P. Reese, Jr. struct mbuf;
3535fbb1d9SDavid P. Reese, Jr. struct msghdr;
36*3e1837ceSDavid P. Reese, Jr. struct sockaddr;
37201305adSDavid P. Reese, Jr. struct sockopt;
385969a6f1SDavid P. Reese, Jr. 
395969a6f1SDavid P. Reese, Jr. int kern_accept(int s, struct sockaddr **name, int *namelen, int *res);
405969a6f1SDavid P. Reese, Jr. int kern_bind(int s, struct sockaddr *sa);
415969a6f1SDavid P. Reese, Jr. int kern_connect(int s, struct sockaddr *sa);
425969a6f1SDavid P. Reese, Jr. int kern_listen(int s, int backlog);
435969a6f1SDavid P. Reese, Jr. int kern_getpeername(int s, struct sockaddr **name, int *namelen);
44201305adSDavid P. Reese, Jr. int kern_getsockopt(int s, struct sockopt *sopt);
455969a6f1SDavid P. Reese, Jr. int kern_getsockname(int s, struct sockaddr **name, int *namelen);
46*3e1837ceSDavid P. Reese, Jr. int kern_recvmsg(int s, struct sockaddr **sa, struct uio *auio,
47*3e1837ceSDavid P. Reese, Jr. 	struct mbuf **control, int *flags, int *res);
48*3e1837ceSDavid P. Reese, Jr. int kern_sendmsg(int s, struct sockaddr *sa, struct uio *auio,
49*3e1837ceSDavid P. Reese, Jr. 	struct mbuf *control, int flags, int *res);
50201305adSDavid P. Reese, Jr. int kern_setsockopt(int s, struct sockopt *sopt);
515969a6f1SDavid P. Reese, Jr. int kern_socketpair(int domain, int type, int protocol, int *sockv);
525969a6f1SDavid P. Reese, Jr. 
535969a6f1SDavid P. Reese, Jr. #endif /* !_SYS_KERN_SYSCALL_H_ */
54