/*
* 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) 1994, 2000 by Sun Microsystems, Inc.
* All rights reserved.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include "mhd_local.h"
/*
* manipulate conditional variables, handle errors
*/
void
)
{
mhd_perror("cond_init");
mhd_exit(1);
}
}
void
)
{
if (cond_destroy(cvp) != 0) {
mhd_perror("cond_destroy");
mhd_exit(1);
}
}
void
)
{
int err;
mhd_perror("cond_wait");
mhd_exit(1);
}
}
void
)
{
int err;
/* check lock */
/* set timer */
mhd_perror("cond_wait");
mhd_exit(1);
}
/* wait for condition or timeout */
mhd_perror("cond_wait");
mhd_exit(1);
}
/* reset timer */
mhd_perror("cond_wait");
mhd_exit(1);
}
}
}
void
)
{
if (cond_broadcast(cvp) != 0) {
mhd_perror("cond_broadcast");
mhd_exit(1);
}
}
/*
* manipulate mutexs, handle errors
*/
void
)
{
mhd_perror("mutex_init");
mhd_exit(1);
}
}
void
)
{
if (mutex_destroy(mp) != 0) {
mhd_perror("mutex_destroy");
mhd_exit(1);
}
}
void
)
{
if (mutex_lock(mp) != 0) {
mhd_perror("mutex_lock");
mhd_exit(1);
}
}
void
)
{
if (mutex_unlock(mp) != 0) {
mhd_perror("mutex_unlock");
mhd_exit(1);
}
}
/*
* manipulate rwlockss, handle errors
*/
void
)
{
mhd_perror("rw_rdlock");
mhd_exit(1);
}
}
void
)
{
mhd_perror("rw_wrlock");
mhd_exit(1);
}
}
void
)
{
mhd_perror("rw_unlock");
mhd_exit(1);
}
}