/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 2002-2003, Network Appliance, Inc. All rights reserved.
*/
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
*
* MODULE: dat_osd.c
*
* PURPOSE: Operating System Dependent layer
* Description:
* Provide OS dependent functions with a canonical DAPL
* interface. Designed to be portable and hide OS specific quirks
* of common functions.
*
* $Id: dat_osd.c,v 1.8 2003/08/15 20:09:52 jlentini Exp $
*/
#include "dat_osd.h"
/*
*
* Constants
*
*/
/*
*
* Enumerations
*
*/
typedef int DAT_OS_DBG_DEST;
typedef enum
{
/*
*
* Global Variables
*
*/
/*
* Function: dat_os_dbg_init
*/
void
dat_os_dbg_init(void)
{
char *dbg_type;
char *dbg_dest;
}
}
}
/*
* Function: dat_os_dbg_print
*/
void
const char *fmt,
...)
{
if (DAT_OS_DBG_DEST_STDOUT & g_dbg_dest) {
}
if (DAT_OS_DBG_DEST_SYSLOG & g_dbg_dest) {
}
}
}
/*
* Function: dat_os_library_load
*/
const char *library_path,
{
if (NULL != library_handle_ptr) {
}
return (DAT_SUCCESS);
} else {
"DAT: library load failure: %s\n",
dlerror());
return (DAT_INTERNAL_ERROR);
}
}
/*
* Function: dat_os_library_unload
*/
{
if (0 != dlclose(library_handle)) {
return (DAT_INTERNAL_ERROR);
} else {
return (DAT_SUCCESS);
}
}