socket.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* Copyright 1989 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Copyright (c) 1982, 1985, 1986 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*/
#ifndef _sys_socket_h
#define _sys_socket_h
/*
* Definitions related to sockets: types, address families, options.
*/
/*
* Types
*/
/*
* Option flags per-socket.
*/
/*
* N.B.: The following definition is present only for compatibility
* with release 3.0. It will disappear in later releases.
*/
/*
* Additional options, not kept in so_options.
*/
/*
* Structure used for manipulating linger option.
*/
struct linger {
int l_linger; /* linger time */
};
/*
*/
/*
* Address families.
*/
#define AF_UNSPEC 0 /* unspecified */
* by OSI (e.g. protosw lookup) */
#define AF_MAX 21
/*
* Structure used by kernel to store most
* addresses.
*/
struct sockaddr {
};
/*
* Structure used by kernel to pass protocol
* information in raw sockets.
*/
struct sockproto {
};
/*
* Protocol families, same as address families for now.
*/
#define PF_IMPLINK AF_IMPLINK
#define PF_DATAKIT AF_DATAKIT
#define PF_APPLETALK AF_APPLETALK
/*
* Maximum queue length specifiable by listen.
*/
#define SOMAXCONN 5
/*
* Message header for recvmsg and sendmsg calls.
*/
struct msghdr {
int msg_namelen; /* size of address */
int msg_iovlen; /* # elements in msg_iov */
int msg_accrightslen;
};
#define MSG_MAXIOVLEN 16
#endif /*!_sys_socket_h*/