Path: blob/buildjre8/ios-missing-include/sys/sys_domain.h
861 views
/*1* Copyright (c) 2000-2005, 2012, 2014 Apple Inc. All rights reserved.2*3* @APPLE_OSREFERENCE_LICENSE_HEADER_START@4*5* This file contains Original Code and/or Modifications of Original Code6* as defined in and that are subject to the Apple Public Source License7* Version 2.0 (the 'License'). You may not use this file except in8* compliance with the License. The rights granted to you under the License9* may not be used to create, or enable the creation or redistribution of,10* unlawful or unlicensed copies of an Apple operating system, or to11* circumvent, violate, or enable the circumvention or violation of, any12* terms of an Apple operating system software license agreement.13*14* Please obtain a copy of the License at15* http://www.opensource.apple.com/apsl/ and read it before using this file.16*17* The Original Code and all software distributed under the License are18* distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER19* EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,20* INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,21* FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.22* Please see the License for the specific language governing rights and23* limitations under the License.24*25* @APPLE_OSREFERENCE_LICENSE_HEADER_END@26*/272829#ifndef _SYSTEM_DOMAIN_H_30#define _SYSTEM_DOMAIN_H_3132#include <sys/appleapiopts.h>33#include <sys/cdefs.h>34#include <sys/types.h>353637/* Kernel Events Protocol */38#define SYSPROTO_EVENT 1 /* kernel events protocol */3940/* Kernel Control Protocol */41#define SYSPROTO_CONTROL 2 /* kernel control protocol */42#define AF_SYS_CONTROL 2 /* corresponding sub address type */4344/* System family socket address */45struct sockaddr_sys {46u_char ss_len; /* sizeof(struct sockaddr_sys) */47u_char ss_family; /* AF_SYSTEM */48u_int16_t ss_sysaddr; /* protocol address in AF_SYSTEM */49u_int32_t ss_reserved[7]; /* reserved to the protocol use */50};51525354#endif /* _SYSTEM_DOMAIN_H_ */555657