1*4a324753Smbuhl /* $OpenBSD: socket.h,v 1.5 2022/09/09 13:52:59 mbuhl Exp $ */ 215a0f535Sguenther /* 315a0f535Sguenther * Copyright (c) 2015 Philip Guenther <guenther@openbsd.org> 415a0f535Sguenther * 515a0f535Sguenther * Permission to use, copy, modify, and distribute this software for any 615a0f535Sguenther * purpose with or without fee is hereby granted, provided that the above 715a0f535Sguenther * copyright notice and this permission notice appear in all copies. 815a0f535Sguenther * 915a0f535Sguenther * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 1015a0f535Sguenther * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 1115a0f535Sguenther * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 1215a0f535Sguenther * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 1315a0f535Sguenther * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 1415a0f535Sguenther * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 1515a0f535Sguenther * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 1615a0f535Sguenther */ 1715a0f535Sguenther 1815a0f535Sguenther #ifndef _LIBC_SYS_SOCKET_H_ 1915a0f535Sguenther #define _LIBC_SYS_SOCKET_H_ 2015a0f535Sguenther 2115a0f535Sguenther #include_next <sys/socket.h> 2215a0f535Sguenther 23fe38b55cSguenther PROTO_CANCEL(accept); 24fe38b55cSguenther PROTO_CANCEL(accept4); 2515a0f535Sguenther PROTO_NORMAL(bind); 26fe38b55cSguenther PROTO_CANCEL(connect); 2725f90b54Sguenther PROTO_DEPRECATED(getpeereid); 2815a0f535Sguenther PROTO_NORMAL(getpeername); 2915a0f535Sguenther PROTO_NORMAL(getrtable); 3015a0f535Sguenther PROTO_NORMAL(getsockname); 3115a0f535Sguenther PROTO_NORMAL(getsockopt); 3215a0f535Sguenther PROTO_NORMAL(listen); 33bd745da3Sguenther PROTO_NORMAL(recv); 34fe38b55cSguenther PROTO_CANCEL(recvfrom); 35*4a324753Smbuhl PROTO_CANCEL(recvmmsg); 36fe38b55cSguenther PROTO_CANCEL(recvmsg); 37bd745da3Sguenther PROTO_NORMAL(send); 38*4a324753Smbuhl PROTO_CANCEL(sendmmsg); 39fe38b55cSguenther PROTO_CANCEL(sendmsg); 40fe38b55cSguenther PROTO_CANCEL(sendto); 4115a0f535Sguenther PROTO_NORMAL(setrtable); 4215a0f535Sguenther PROTO_NORMAL(setsockopt); 4315a0f535Sguenther PROTO_NORMAL(shutdown); 4425f90b54Sguenther PROTO_DEPRECATED(sockatmark); 4515a0f535Sguenther PROTO_NORMAL(socket); 4615a0f535Sguenther PROTO_NORMAL(socketpair); 4715a0f535Sguenther 4815a0f535Sguenther #endif /* !_LIBC_SYS_SOCKET_H_ */ 49