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
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 /*
  22  * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
  23  */
  24 
  25 #ifndef _SN1_BRAND_H
  26 #define _SN1_BRAND_H
  27 
  28 #ifdef  __cplusplus
  29 extern "C" {
  30 #endif
  31 
  32 #include <sys/brand.h>
  33 
  34 #define SN1_BRANDNAME           "sn1"
  35 
  36 #define SN1_VERSION_1           1
  37 #define SN1_VERSION             SN1_VERSION_1
  38 
  39 #define SN1_LIB_NAME            "sn1_brand.so.1"
  40 #define SN1_LINKER_NAME         "ld.so.1"
  41 
  42 #define SN1_LIB32               BRAND_NATIVE_DIR "usr/lib/" SN1_LIB_NAME
  43 #define SN1_LINKER32            "/lib/" SN1_LINKER_NAME
  44 
  45 #define SN1_LIB64               BRAND_NATIVE_DIR "usr/lib/64/" SN1_LIB_NAME
  46 #define SN1_LINKER64            "/lib/64/" SN1_LINKER_NAME
  47 
  48 #if defined(_LP64)
  49 #define SN1_LIB         SN1_LIB64
  50 #define SN1_LINKER      SN1_LINKER64
  51 #else /* !_LP64 */
  52 #define SN1_LIB         SN1_LIB32
  53 #define SN1_LINKER      SN1_LINKER32
  54 #endif /* !_LP64 */
  55 
  56 #if defined(_KERNEL)
  57 
  58 void sn1_brand_syscall_callback(void);
  59 void sn1_brand_syscall32_callback(void);
  60 
  61 #if !defined(sparc)
  62 void sn1_brand_sysenter_callback(void);
  63 #endif /* !sparc */
  64 
  65 #if defined(__amd64)
  66 void sn1_brand_int91_callback(void);
  67 #endif /* __amd64 */
  68 #endif /* _KERNEL */
  69 
  70 #ifdef  __cplusplus
  71 }
  72 #endif
  73 
 | 
 
 
   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
   9  * or http://www.opensolaris.org/os/licensing.
  10  * See the License for the specific language governing permissions
  11  * and limitations under the License.
  12  *
  13  * When distributing Covered Code, include this CDDL HEADER in each
  14  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15  * If applicable, add the following below this CDDL HEADER, with the
  16  * fields enclosed by brackets "[]" replaced with your own identifying
  17  * information: Portions Copyright [yyyy] [name of copyright owner]
  18  *
  19  * CDDL HEADER END
  20  */
  21 /*
  22  * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
  23  * Copyright (c) 2014, Joyent, Inc. All rights reserved.
  24  */
  25 
  26 #ifndef _SN1_BRAND_H
  27 #define _SN1_BRAND_H
  28 
  29 #ifdef  __cplusplus
  30 extern "C" {
  31 #endif
  32 
  33 #include <sys/brand.h>
  34 
  35 #define SN1_BRANDNAME           "sn1"
  36 
  37 #define SN1_VERSION_1           1
  38 #define SN1_VERSION             SN1_VERSION_1
  39 
  40 #define SN1_LIB_NAME            "sn1_brand.so.1"
  41 
  42 #define SN1_LIB32               BRAND_NATIVE_DIR "usr/lib/" SN1_LIB_NAME
  43 #define SN1_LIB64               BRAND_NATIVE_DIR "usr/lib/64/" SN1_LIB_NAME
  44 
  45 #if defined(_LP64)
  46 #define SN1_LIB         SN1_LIB64
  47 #else /* !_LP64 */
  48 #define SN1_LIB         SN1_LIB32
  49 #endif /* !_LP64 */
  50 
  51 #if defined(_KERNEL)
  52 
  53 void sn1_brand_syscall_callback(void);
  54 void sn1_brand_syscall32_callback(void);
  55 
  56 #if !defined(sparc)
  57 void sn1_brand_sysenter_callback(void);
  58 #endif /* !sparc */
  59 
  60 #if defined(__amd64)
  61 void sn1_brand_int91_callback(void);
  62 #endif /* __amd64 */
  63 #endif /* _KERNEL */
  64 
  65 #ifdef  __cplusplus
  66 }
  67 #endif
  68 
 |