version 1.2, 1993/04/19 01:23:13 |
version 1.5, 1993/06/27 05:59:06 |
|
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
* |
* |
* @(#)socket.h 7.13 (Berkeley) 4/20/91 |
* from: @(#)socket.h 7.13 (Berkeley) 4/20/91 |
|
* $Id$ |
*/ |
*/ |
|
|
#ifndef _SYS_SOCKET_H_ |
#ifndef _SYS_SOCKET_H_ |
Line 235 struct omsghdr { |
|
Line 236 struct omsghdr { |
|
int msg_accrightslen; |
int msg_accrightslen; |
}; |
}; |
|
|
#ifndef KERNEL |
#ifdef KERNEL |
|
|
|
/* structure prototypes */ |
|
struct socket; |
|
struct mbuf; |
|
|
|
/* function prototypes */ |
|
int socreate __P((int dom, struct socket **aso, int type, int proto)); |
|
int sobind __P((struct socket *so, struct mbuf *nam)); |
|
int solisten __P((struct socket *so, int backlog)); |
|
int sofree __P((struct socket *so)); |
|
int soclose __P((struct socket *so)); |
|
int soabort __P((struct socket *so)); |
|
int soaccept __P((struct socket *so, struct mbuf *nam)); |
|
int soconnect __P((struct socket *so, struct mbuf *nam)); |
|
int soconnect2 __P((struct socket *so1, struct socket *so2)); |
|
int sodisconnect __P((struct socket *so)); |
|
int sosend __P((struct socket *so, struct mbuf *addr, struct uio *uio, |
|
struct mbuf *top, struct mbuf *control, int flags)); |
|
int soreceive __P((struct socket *so, struct mbuf **paddr, struct uio *uio, |
|
struct mbuf **mp0, struct mbuf **controlp, int *flagsp)); |
|
|
|
void socantsendmore __P((struct socket *so)); |
|
void socantrcvmore __P((struct socket *so)); |
|
|
|
#else /* !KERNEL */ |
|
|
#include <sys/cdefs.h> |
#include <sys/cdefs.h> |
|
|
Line 260 int socket __P((int, int, int)); |
|
Line 286 int socket __P((int, int, int)); |
|
int socketpair __P((int, int, int, int *)); |
int socketpair __P((int, int, int, int *)); |
__END_DECLS |
__END_DECLS |
|
|
#endif /* KERNEL */ |
#endif /* !KERNEL */ |
|
|
#endif /* !_SYS_SOCKET_H_ */ |
#endif /* !_SYS_SOCKET_H_ */ |