/*
    AUTOMATICALLY GENERATED BY tspec 2.10
    API SUBSET: bsd_extn:sys/socket.h (VERSION 2.6)
*/

#ifndef __TDF_BSD_EXTN_SYS_SOCKET_H
#define __TDF_BSD_EXTN_SYS_SOCKET_H

#ifdef __cplusplus
extern "C" {
#endif

#pragma TenDRA declaration block api__bsd_extn__sys_socket begin

#ifndef __TDF_BSD_EXTN_SYS_TYPES_H
#pragma extend interface "../../bsd_extn.api/sys/types.h"
#endif /* __TDF_BSD_EXTN_SYS_TYPES_H */
#pragma token EXP const : int : PF_UNIX # bsd_extn.socket.PF_UNIX
#pragma token EXP const : int : PF_INET # bsd_extn.socket.PF_INET
#pragma token EXP const : int : SOCK_STREAM # bsd_extn.socket.SOCK_STREAM
#pragma token EXP const : int : SOCK_DGRAM # bsd_extn.socket.SOCK_DGRAM
#pragma token EXP const : int : SOCK_RAW # bsd_extn.socket.SOCK_RAW
#pragma token EXP const : int : SOCK_SEQPACKET # bsd_extn.socket.SOCK_SEQPACKET
#pragma token EXP const : int : SOCK_RDM # bsd_extn.socket.SOCK_RDM
#pragma token FUNC int (int, int, int) : socket # bsd_extn.socket.socket
#pragma token FUNC int (int, int, int, int [2]) : socketpair # bsd_extn.socket.socketpair
#pragma token EXP const : int : SO_DEBUG # bsd_extn.socket.SO_DEBUG
#pragma token EXP const : int : SO_REUSEADDR # bsd_extn.socket.SO_REUSEADDR
#pragma token EXP const : int : SO_KEEPALIVE # bsd_extn.socket.SO_KEEPALIVE
#pragma token EXP const : int : SO_DONTROUTE # bsd_extn.socket.SO_DONTROUTE
#pragma token EXP const : int : SO_LINGER # bsd_extn.socket.SO_LINGER
#pragma token EXP const : int : SO_BROADCAST # bsd_extn.socket.SO_BROADCAST
#pragma token EXP const : int : SO_SNDBUF # bsd_extn.socket.SO_SNDBUF
#pragma token EXP const : int : SO_RCVBUF # bsd_extn.socket.SO_RCVBUF
#pragma token FUNC int (int, caddr_t, int *) : getsockname # bsd_extn.socket.getsockname
#pragma token FUNC int (int, int, int, char *, int *) : getsockopt # bsd_extn.socket.getsockopt
#pragma token FUNC int (int, int, int, const char *, int) : setsockopt # bsd_extn.socket.setsockopt
#pragma token FUNC int (int, caddr_t, int *) : getpeername # bsd_extn.socket.getpeername
#pragma token EXP const : int : MSG_OOB # bsd_extn.socket.MSG_OOB
#pragma token EXP const : int : MSG_DONTROUTE # bsd_extn.socket.MSG_DONTROUTE
#pragma token EXP const : int : MSG_PEEK # bsd_extn.socket.MSG_PEEK
#pragma token STRUCT TAG msghdr # bsd_extn.socket.msghdr
#pragma token MEMBER caddr_t : struct msghdr : msg_name # bsd_extn.socket.msghdr.msg_name
#pragma token MEMBER int : struct msghdr : msg_namelen # bsd_extn.socket.msghdr.msg_namelen
#pragma token MEMBER struct iovec * : struct msghdr : msg_iov # bsd_extn.socket.msghdr.msg_iov
#pragma token MEMBER int : struct msghdr : msg_iovlen # bsd_extn.socket.msghdr.msg_iovlen
#pragma token MEMBER caddr_t : struct msghdr : msg_accrights # bsd_extn.socket.msghdr.msg_accrights
#pragma token MEMBER int : struct msghdr : msg_accrightslen # bsd_extn.socket.msghdr.msg_accrightslen
#pragma token FUNC int (int, caddr_t, int *) : accept # bsd_extn.socket.accept
#pragma token FUNC int (int, caddr_t, int) : bind # bsd_extn.socket.bind
#pragma token FUNC int (int, caddr_t, int) : connect # bsd_extn.socket.connect
#pragma token FUNC int (int, int) : listen # bsd_extn.socket.listen
#pragma token FUNC int (int, int) : shutdown # bsd_extn.socket.shutdown
#pragma token FUNC int (int, char *, int, int) : recv # bsd_extn.socket.recv
#pragma token FUNC int (int, char *, int, int, caddr_t, int *) : recvfrom # bsd_extn.socket.recvfrom
#pragma token FUNC int (int, struct msghdr *, int) : recvmsg # bsd_extn.socket.recvmsg
#pragma token FUNC int (int, const char *, int, int) : send # bsd_extn.socket.send
#pragma token FUNC int (int, const char *, int, int, caddr_t, int) : sendto # bsd_extn.socket.sendto
#pragma token FUNC int (int, struct msghdr *, int) : sendmsg # bsd_extn.socket.sendmsg

#pragma interface PF_UNIX PF_INET SOCK_STREAM SOCK_DGRAM SOCK_RAW
#pragma interface SOCK_SEQPACKET SOCK_RDM socket socketpair SO_DEBUG
#pragma interface SO_REUSEADDR SO_KEEPALIVE SO_DONTROUTE SO_LINGER
#pragma interface SO_BROADCAST SO_SNDBUF SO_RCVBUF getsockname getsockopt
#pragma interface setsockopt getpeername MSG_OOB MSG_DONTROUTE MSG_PEEK
#pragma interface TAG msghdr TAG msghdr.msg_name TAG msghdr.msg_namelen
#pragma interface TAG msghdr.msg_iov TAG msghdr.msg_iovlen
#pragma interface TAG msghdr.msg_accrights TAG msghdr.msg_accrightslen
#pragma interface accept bind connect listen shutdown recv recvfrom recvmsg
#pragma interface send sendto sendmsg

#pragma TenDRA declaration block end

#ifdef __cplusplus
}
#endif

#endif /* __TDF_BSD_EXTN_SYS_SOCKET_H */
