1219089Spjd/* 2219089Spjd * CDDL HEADER START 3219089Spjd * 4219089Spjd * The contents of this file are subject to the terms of the 5219089Spjd * Common Development and Distribution License (the "License"). 6219089Spjd * You may not use this file except in compliance with the License. 7219089Spjd * 8219089Spjd * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9219089Spjd * or http://www.opensolaris.org/os/licensing. 10219089Spjd * See the License for the specific language governing permissions 11219089Spjd * and limitations under the License. 12219089Spjd * 13219089Spjd * When distributing Covered Code, include this CDDL HEADER in each 14219089Spjd * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15219089Spjd * If applicable, add the following below this CDDL HEADER, with the 16219089Spjd * fields enclosed by brackets "[]" replaced with your own identifying 17219089Spjd * information: Portions Copyright [yyyy] [name of copyright owner] 18219089Spjd * 19219089Spjd * CDDL HEADER END 20219089Spjd */ 21219089Spjd/* 22219089Spjd * Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. 23219089Spjd * 24219089Spjd * Common routines for acquiring snapshots of kstats for 25219089Spjd * iostat, mpstat, and vmstat. 26219089Spjd */ 27219089Spjd 28219089Spjd#ifndef _STATCOMMON_H 29219089Spjd#define _STATCOMMON_H 30219089Spjd 31219089Spjd#ifdef __cplusplus 32219089Spjdextern "C" { 33219089Spjd#endif 34219089Spjd 35219089Spjd#include <stdio.h> 36219089Spjd#include <sys/types.h> 37219089Spjd#include <time.h> 38219089Spjd 39219089Spjd#define NODATE 0 /* Default: No time stamp */ 40219089Spjd#define DDATE 1 /* Standard date format */ 41219089Spjd#define UDATE 2 /* Internal representation of Unix time */ 42219089Spjd 43219089Spjd/* Print a timestamp in either Unix or standard format. */ 44219089Spjdvoid print_timestamp(uint_t); 45219089Spjd 46219089Spjd#ifdef __cplusplus 47219089Spjd} 48219089Spjd#endif 49219089Spjd 50219089Spjd#endif /* _STATCOMMON_H */ 51