Path: blob/main/cddl/contrib/opensolaris/cmd/stat/common/statcommon.h
39492 views
/*1* CDDL HEADER START2*3* The contents of this file are subject to the terms of the4* Common Development and Distribution License (the "License").5* You may not use this file except in compliance with the License.6*7* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE8* or http://www.opensolaris.org/os/licensing.9* See the License for the specific language governing permissions10* and limitations under the License.11*12* When distributing Covered Code, include this CDDL HEADER in each13* file and include the License file at usr/src/OPENSOLARIS.LICENSE.14* If applicable, add the following below this CDDL HEADER, with the15* fields enclosed by brackets "[]" replaced with your own identifying16* information: Portions Copyright [yyyy] [name of copyright owner]17*18* CDDL HEADER END19*/20/*21* Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.22*23* Common routines for acquiring snapshots of kstats for24* iostat, mpstat, and vmstat.25*/2627#ifndef _STATCOMMON_H28#define _STATCOMMON_H2930#ifdef __cplusplus31extern "C" {32#endif3334#include <stdio.h>35#include <sys/types.h>36#include <time.h>3738#define NODATE 0 /* Default: No time stamp */39#define DDATE 1 /* Standard date format */40#define UDATE 2 /* Internal representation of Unix time */4142/* Print a timestamp in either Unix or standard format. */43void print_timestamp(uint_t);4445#ifdef __cplusplus46}47#endif4849#endif /* _STATCOMMON_H */505152