/*
* 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.
*/
/*
* Copyright (c) 2015, Joyent, Inc. All rights reserved.
*/
#ifndef _SYS_TIMER_H
#define _SYS_TIMER_H
#ifdef __cplusplus
extern "C" {
#endif
#ifdef _KERNEL
/*
* Bit values for the it_lock field.
*/
/*
* Bit values for the it_flags field.
*/
struct clock_backend;
struct itimer;
struct itimer {
union {
struct {
} __proc;
void *__it_frontend;
int it_blockers;
int it_pending;
int it_overrun;
};
typedef struct clock_backend {
extern void timer_lwpbind();
extern void timer_func(sigqueue_t *);
extern void timer_exit(void);
extern void timer_lwpexit(void);
extern int itimerspecfix(timespec_t *);
extern void timespecfix(timespec_t *);
extern void delete_itimer_realprof(void);
struct oldsigevent {
/* structure definition prior to notification attributes member */
int _notify;
union {
int _signo;
} _un;
};
#if defined(_SYSCALL32)
struct oldsigevent32 {
union {
} _un;
};
#endif /* _SYSCALL32 */
#endif /* _KERNEL */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_TIMER_H */