socket.h (10e6dadfe63181edabc58c8f42e3c56a1cd9ec95) | socket.h (406d62731eff92f06723c04de94992d94a293145) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 25 unchanged lines hidden (view full) --- 34 * University Acknowledgment- Portions of this document are derived from 35 * software developed by the University of California, Berkeley, and its 36 * contributors. 37 */ 38 39#ifndef _SYS_SOCKET_H 40#define _SYS_SOCKET_H 41 | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE --- 25 unchanged lines hidden (view full) --- 34 * University Acknowledgment- Portions of this document are derived from 35 * software developed by the University of California, Berkeley, and its 36 * contributors. 37 */ 38 39#ifndef _SYS_SOCKET_H 40#define _SYS_SOCKET_H 41 |
42#pragma ident "%Z%%M% %I% %E% SMI" 43 | |
44#include <sys/types.h> 45#include <sys/uio.h> 46#include <sys/feature_tests.h> 47#include <sys/socket_impl.h> 48#if !defined(_XPG4_2) || defined(__EXTENSIONS__) 49#ifndef _KERNEL 50#include <sys/netconfig.h> 51#endif /* !_KERNEL */ --- 136 unchanged lines hidden (view full) --- 188 * Address families. 189 * 190 * Some of these constant names are copied for the DTrace IP provider in 191 * usr/src/lib/libdtrace/common/{ip.d.in, ip.sed.in}, which should be kept 192 * in sync. 193 */ 194#define AF_UNSPEC 0 /* unspecified */ 195#define AF_UNIX 1 /* local to host (pipes, portals) */ | 42#include <sys/types.h> 43#include <sys/uio.h> 44#include <sys/feature_tests.h> 45#include <sys/socket_impl.h> 46#if !defined(_XPG4_2) || defined(__EXTENSIONS__) 47#ifndef _KERNEL 48#include <sys/netconfig.h> 49#endif /* !_KERNEL */ --- 136 unchanged lines hidden (view full) --- 186 * Address families. 187 * 188 * Some of these constant names are copied for the DTrace IP provider in 189 * usr/src/lib/libdtrace/common/{ip.d.in, ip.sed.in}, which should be kept 190 * in sync. 191 */ 192#define AF_UNSPEC 0 /* unspecified */ 193#define AF_UNIX 1 /* local to host (pipes, portals) */ |
194#define AF_LOCAL AF_UNIX /* Synonym for AF_UNIX */ 195#define AF_FILE AF_UNIX /* Synonym for AF_UNIX */ |
|
196#define AF_INET 2 /* internetwork: UDP, TCP, etc. */ 197#define AF_IMPLINK 3 /* arpanet imp addresses */ 198#define AF_PUP 4 /* pup protocols: e.g. BSP */ 199#define AF_CHAOS 5 /* mit CHAOS protocols */ 200#define AF_NS 6 /* XEROX NS protocols */ 201#define AF_NBS 7 /* nbs protocols */ 202#define AF_ECMA 8 /* european computer manufacturers */ 203#define AF_DATAKIT 9 /* datakit protocols */ --- 21 unchanged lines hidden (view full) --- 225 226#define AF_MAX 30 227 228/* 229 * Protocol families, same as address families for now. 230 */ 231#define PF_UNSPEC AF_UNSPEC 232#define PF_UNIX AF_UNIX | 196#define AF_INET 2 /* internetwork: UDP, TCP, etc. */ 197#define AF_IMPLINK 3 /* arpanet imp addresses */ 198#define AF_PUP 4 /* pup protocols: e.g. BSP */ 199#define AF_CHAOS 5 /* mit CHAOS protocols */ 200#define AF_NS 6 /* XEROX NS protocols */ 201#define AF_NBS 7 /* nbs protocols */ 202#define AF_ECMA 8 /* european computer manufacturers */ 203#define AF_DATAKIT 9 /* datakit protocols */ --- 21 unchanged lines hidden (view full) --- 225 226#define AF_MAX 30 227 228/* 229 * Protocol families, same as address families for now. 230 */ 231#define PF_UNSPEC AF_UNSPEC 232#define PF_UNIX AF_UNIX |
233#define PF_LOCAL PF_UNIX 234#define PF_FILE PF_UNIX |
|
233#define PF_INET AF_INET 234#define PF_IMPLINK AF_IMPLINK 235#define PF_PUP AF_PUP 236#define PF_CHAOS AF_CHAOS 237#define PF_NS AF_NS 238#define PF_NBS AF_NBS 239#define PF_ECMA AF_ECMA 240#define PF_DATAKIT AF_DATAKIT --- 248 unchanged lines hidden --- | 235#define PF_INET AF_INET 236#define PF_IMPLINK AF_IMPLINK 237#define PF_PUP AF_PUP 238#define PF_CHAOS AF_CHAOS 239#define PF_NS AF_NS 240#define PF_NBS AF_NBS 241#define PF_ECMA AF_ECMA 242#define PF_DATAKIT AF_DATAKIT --- 248 unchanged lines hidden --- |