/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (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 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#include "lint.h"
#include <time.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include "sigev_thread.h"
/*
* System call wrappers found elsewhere in libc (common/sys/__clock_timer.s).
*/
extern int __timer_delete(timer_t);
extern int __timer_getoverrun(timer_t);
/*
* Array of pointers to tcd's, indexed by timer id.
* No more than 'timer_max' timers can be created by any process.
*/
int timer_max = 0;
static void
timer_init(void)
{
}
int
{
}
int
{
}
int
{
}
int
{
int sigev_thread = 0;
int rc;
sigev_thread = 1;
return (-1);
/* copy the sigevent structure so we can modify it */
}
if (sigev_thread) {
if (rc == 0) {
(void) __timer_delete(*timerid);
else
}
if (rc != 0)
}
return (rc);
}
int
{
int rc;
return (__timer_delete(timerid));
else
return (rc);
}
int
{
}
int
{
}
int
{
}
/*
* Cleanup after fork1() in the child process.
*/
void
{
int timer;
}
}
}