Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/unpcb.h
Show First 20 Lines • Show All 130 Lines • ▼ Show 20 Lines | |||||
* (p) - used by utilities in ports | * (p) - used by utilities in ports | ||||
* (3) - is known to be used by third party software not in ports | * (3) - is known to be used by third party software not in ports | ||||
* (n) - no known usage | * (n) - no known usage | ||||
* | * | ||||
* Evil hack: declare only if sys/socketvar.h have been included. | * Evil hack: declare only if sys/socketvar.h have been included. | ||||
*/ | */ | ||||
#ifdef _SYS_SOCKETVAR_H_ | #ifdef _SYS_SOCKETVAR_H_ | ||||
struct xunpcb { | struct xunpcb { | ||||
size_t xu_len; /* length of this structure */ | uint64_t xu_len; /* length of this structure */ | ||||
void *xu_unpp; /* to help netstat, fstat */ | int64_t xu_unpp; /* to help netstat, fstat */ | ||||
void *unp_vnode; /* (s) */ | int64_t unp_vnode; /* (s) */ | ||||
void *unp_conn; /* (s) */ | int64_t unp_conn; /* (s) */ | ||||
void *xu_firstref; /* (s) */ | int64_t xu_firstref; /* (s) */ | ||||
void *xu_nextref; /* (s) */ | int64_t xu_nextref; /* (s) */ | ||||
unp_gen_t unp_gencnt; /* (s) */ | unp_gen_t unp_gencnt; /* (s) */ | ||||
int64_t xu_spare64[8]; | int64_t xu_spare64[8]; | ||||
int32_t xu_spare32[8]; | int32_t xu_spare32[8]; | ||||
union { | union { | ||||
struct sockaddr_un xu_addr; /* our bound address */ | struct sockaddr_un xu_addr; /* our bound address */ | ||||
char xu_dummy1[256]; | char xu_dummy1[256]; | ||||
}; | }; | ||||
union { | union { | ||||
struct sockaddr_un xu_caddr; /* their bound address */ | struct sockaddr_un xu_caddr; /* their bound address */ | ||||
char xu_dummy2[256]; | char xu_dummy2[256]; | ||||
}; | }; | ||||
struct xsocket xu_socket; | struct xsocket xu_socket; | ||||
} __aligned(8); | } __aligned(8); | ||||
struct xunpgen { | struct xunpgen { | ||||
size_t xug_len; | uint64_t xug_len; | ||||
u_int xug_count; | u_int xug_count; | ||||
unp_gen_t xug_gen; | unp_gen_t xug_gen; | ||||
so_gen_t xug_sogen; | so_gen_t xug_sogen; | ||||
} __aligned(8);; | } __aligned(8);; | ||||
#endif /* _SYS_SOCKETVAR_H_ */ | #endif /* _SYS_SOCKETVAR_H_ */ | ||||
#endif /* _SYS_UNPCB_H_ */ | #endif /* _SYS_UNPCB_H_ */ |