xref: /freebsd/usr.bin/systat/mode.h (revision 9ff712b0f5e27b68efdb47d863ab7ef8ee243a5b)
103e00a72SGarrett Wollman /*
203e00a72SGarrett Wollman  * Copyright 1997 Massachusetts Institute of Technology
303e00a72SGarrett Wollman  *
403e00a72SGarrett Wollman  * Permission to use, copy, modify, and distribute this software and
503e00a72SGarrett Wollman  * its documentation for any purpose and without fee is hereby
603e00a72SGarrett Wollman  * granted, provided that both the above copyright notice and this
703e00a72SGarrett Wollman  * permission notice appear in all copies, that both the above
803e00a72SGarrett Wollman  * copyright notice and this permission notice appear in all
903e00a72SGarrett Wollman  * supporting documentation, and that the name of M.I.T. not be used
1003e00a72SGarrett Wollman  * in advertising or publicity pertaining to distribution of the
1103e00a72SGarrett Wollman  * software without specific, written prior permission.  M.I.T. makes
1203e00a72SGarrett Wollman  * no representations about the suitability of this software for any
1303e00a72SGarrett Wollman  * purpose.  It is provided "as is" without express or implied
1403e00a72SGarrett Wollman  * warranty.
1503e00a72SGarrett Wollman  *
1603e00a72SGarrett Wollman  * THIS SOFTWARE IS PROVIDED BY M.I.T. ``AS IS''.  M.I.T. DISCLAIMS
1703e00a72SGarrett Wollman  * ALL EXPRESS OR IMPLIED WARRANTIES WITH REGARD TO THIS SOFTWARE,
1803e00a72SGarrett Wollman  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
1903e00a72SGarrett Wollman  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT
2003e00a72SGarrett Wollman  * SHALL M.I.T. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
2103e00a72SGarrett Wollman  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
2203e00a72SGarrett Wollman  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
2303e00a72SGarrett Wollman  * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
2403e00a72SGarrett Wollman  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
2503e00a72SGarrett Wollman  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
2603e00a72SGarrett Wollman  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2703e00a72SGarrett Wollman  * SUCH DAMAGE.
2803e00a72SGarrett Wollman  *
29c3aac50fSPeter Wemm  * $FreeBSD$
3003e00a72SGarrett Wollman  */
3103e00a72SGarrett Wollman 
3203e00a72SGarrett Wollman /*
3303e00a72SGarrett Wollman  * mode.h - mechanisms for dealing with SGI-style modal displays.
3403e00a72SGarrett Wollman  */
3503e00a72SGarrett Wollman 
3603e00a72SGarrett Wollman #ifndef MODE_H
3703e00a72SGarrett Wollman #define	MODE_H	1
3803e00a72SGarrett Wollman 
3903e00a72SGarrett Wollman enum mode { display_RATE, display_DELTA, display_SINCE, display_ABS };
4003e00a72SGarrett Wollman 
419ff712b0SMark Murray extern	int		cmdmode(const char *cmd, const char *args);
4203e00a72SGarrett Wollman extern	enum mode	currentmode;
4303e00a72SGarrett Wollman 
4403e00a72SGarrett Wollman #endif /* MODE_H */
45