/*
* 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 "med_local.h"
#ifdef _REENTRANT
/*
* manipulate conditional variables, handle errors
*/
void
)
{
med_perror("cond_init");
med_exit(1);
}
}
void
)
{
if (cond_destroy(cvp) != 0) {
med_perror("cond_destroy");
med_exit(1);
}
}
void
)
{
int err;
med_perror("cond_wait");
med_exit(1);
}
}
void
)
{
int err;
/* check lock */
/* set timer */
med_perror("cond_wait");
med_exit(1);
}
/* wait for condition or timeout */
med_perror("cond_wait");
med_exit(1);
}
/* reset timer */
med_perror("cond_wait");
med_exit(1);
}
}
}
void
)
{
if (cond_broadcast(cvp) != 0) {
med_perror("cond_broadcast");
med_exit(1);
}
}
/*
* manipulate mutexs, handle errors
*/
void
)
{
med_perror("mutex_init");
med_exit(1);
}
}
void
)
{
if (mutex_destroy(mp) != 0) {
med_perror("mutex_destroy");
med_exit(1);
}
}
void
)
{
if (mutex_lock(mp) != 0) {
med_perror("mutex_lock");
med_exit(1);
}
}
void
)
{
if (mutex_unlock(mp) != 0) {
med_perror("mutex_unlock");
med_exit(1);
}
}
/*
* manipulate rwlockss, handle errors
*/
void
)
{
med_perror("rw_rdlock");
med_exit(1);
}
}
void
)
{
med_perror("rw_wrlock");
med_exit(1);
}
}
void
)
{
med_perror("rw_unlock");
med_exit(1);
}
}
#endif /* _REENTRANT */