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, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. 8 * 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 * or http://www.opensolaris.org/os/licensing. 11 * See the License for the specific language governing permissions 12 * and limitations under the License. 13 * 14 * When distributing Covered Code, include this CDDL HEADER in each 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 * If applicable, add the following below this CDDL HEADER, with the 17 * fields enclosed by brackets "[]" replaced with your own identifying 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 */ 22/* 23 * Copyright (c) 2002-2004, Network Appliance, Inc. All rights reserved. 24 */ 25 26/* 27 * Copyright 2004 Sun Microsystems, Inc. All rights reserved. 28 * Use is subject to license terms. 29 */ 30 31#ifndef _UDAT_CONFIG_H_ 32#define _UDAT_CONFIG_H_ 33 34#pragma ident "%Z%%M% %I% %E% SMI" 35 36#ifdef __cplusplus 37extern "C" { 38#endif 39 40/* 41 * 42 * HEADER: udat_config.h 43 * 44 * PURPOSE: provides uDAPL configuration information. 45 * 46 * Description: Header file for "uDAPL: User Direct Access Programming 47 * Library, Version: 1.2" 48 * 49 */ 50 51 52#define DAT_VERSION_MAJOR 1 53#define DAT_VERSION_MINOR 2 54 55/* 56 * The official header files will default DAT_THREADSAFE to DAT_TRUE. If 57 * your project does not wish to use this default, you must ensure that 58 * DAT_THREADSAFE will be set to DAT_FALSE. This may be done by an 59 * explicit #define in a common project header file that is included 60 * before any DAT header files, or through command line directives to the 61 * compiler (presumably controlled by the make environment). 62 */ 63 64/* 65 * A site, project or platform may consider setting an alternate default 66 * via their make rules, but are discouraged from doing so by editing 67 * the official header files. 68 */ 69 70/* 71 * The Reference Implementation is not Thread Safe. The Reference 72 * Implementation has chosen to go with the first method and define it 73 * explicitly in the header file. 74 */ 75 76#define DAT_THREADSAFE DAT_FALSE 77 78#ifndef DAT_THREADSAFE 79#define DAT_THREADSAFE DAT_TRUE 80#endif /* DAT_THREADSAFE */ 81 82#ifdef __cplusplus 83} 84#endif 85 86#endif /* _UDAT_CONFIG_H_ */ 87