Changeset View
Changeset View
Standalone View
Standalone View
usr.bin/procstat/procstat.h
/*- | /*- | ||||
* Copyright (c) 2007 Robert N. M. Watson | * Copyright (c) 2007 Robert N. M. Watson | ||||
* Copyright (c) 2015 Allan Jude <allanjude@freebsd.org> | |||||
* All rights reserved. | * All rights reserved. | ||||
* | * | ||||
* Redistribution and use in source and binary forms, with or without | * Redistribution and use in source and binary forms, with or without | ||||
* modification, are permitted provided that the following conditions | * modification, are permitted provided that the following conditions | ||||
* are met: | * are met: | ||||
* 1. Redistributions of source code must retain the above copyright | * 1. Redistributions of source code must retain the above copyright | ||||
* notice, this list of conditions and the following disclaimer. | * notice, this list of conditions and the following disclaimer. | ||||
* 2. Redistributions in binary form must reproduce the above copyright | * 2. Redistributions in binary form must reproduce the above copyright | ||||
Show All 10 Lines | |||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
* SUCH DAMAGE. | * SUCH DAMAGE. | ||||
* | * | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#include <libxo/xo.h> | |||||
#ifndef PROCSTAT_H | #ifndef PROCSTAT_H | ||||
#define PROCSTAT_H | #define PROCSTAT_H | ||||
#define PROCSTAT_XO_VERSION "1" | |||||
extern int hflag, nflag, Cflag, Hflag; | extern int hflag, nflag, Cflag, Hflag; | ||||
struct kinfo_proc; | struct kinfo_proc; | ||||
void kinfo_proc_sort(struct kinfo_proc *kipp, int count); | void kinfo_proc_sort(struct kinfo_proc *kipp, int count); | ||||
void procstat_args(struct procstat *prstat, struct kinfo_proc *kipp); | void procstat_args(struct procstat *prstat, struct kinfo_proc *kipp); | ||||
void procstat_auxv(struct procstat *prstat, struct kinfo_proc *kipp); | void procstat_auxv(struct procstat *prstat, struct kinfo_proc *kipp); | ||||
Show All 16 Lines |