/*
* This file and its contents are supplied under the terms of the
* Common Development and Distribution License ("CDDL"), version 1.0.
* You may only use this file in accordance with the terms of version
* 1.0 of the CDDL.
*
* A full copy of the text of the CDDL should have accompanied this
* source. A copy of the CDDL is also available via the Internet at
*/
/*
* Copyright 2013 Nexenta Systems, Inc. All rights reserved.
*/
/*
* mutex(9f)
*/
/* This is the API we're emulating */
int _lwp_mutex_lock(lwp_mutex_t *);
int _lwp_mutex_unlock(lwp_mutex_t *);
int _lwp_mutex_trylock(lwp_mutex_t *);
extern clock_t ddi_get_lbolt(void);
{{0, 0, 0, {USYNC_THREAD}, _MUTEX_MAGIC},
{{{0, 0, 0, 0, 0, 0, 0, 0}}}, 0};
/* ARGSUSED */
void
{
}
/* ARGSUSED */
void
{
}
void
{
}
int
{
int rc;
if (rc == 0) {
return (1);
}
return (0);
}
void
{
}
/*
* Returns the kthread_t * of the owner.
*/
void *
{
}
int
{
void *t = _curthread();
}