1249666Strociny/*- 2249666Strociny * Copyright (c) 2013 Mikolaj Golub <trociny@FreeBSD.org> 3249666Strociny * All rights reserved. 4249666Strociny * 5249666Strociny * Redistribution and use in source and binary forms, with or without 6249666Strociny * modification, are permitted provided that the following conditions 7249666Strociny * are met: 8249666Strociny * 1. Redistributions of source code must retain the above copyright 9249666Strociny * notice, this list of conditions and the following disclaimer. 10249666Strociny * 2. Redistributions in binary form must reproduce the above copyright 11249666Strociny * notice, this list of conditions and the following disclaimer in the 12249666Strociny * documentation and/or other materials provided with the distribution. 13249666Strociny * 14249666Strociny * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 15249666Strociny * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16249666Strociny * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17249666Strociny * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 18249666Strociny * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19249666Strociny * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20249666Strociny * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21249666Strociny * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22249666Strociny * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23249666Strociny * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24249666Strociny * SUCH DAMAGE. 25249666Strociny * 26249666Strociny * $FreeBSD: releng/10.3/lib/libprocstat/core.h 249681 2013-04-20 08:10:47Z trociny $ 27249666Strociny */ 28249666Strociny 29249666Strociny#ifndef _CORE_H 30249666Strociny#define _CORE_H 31249666Strociny 32249666Strocinyenum psc_type { 33249666Strociny PSC_TYPE_PROC, 34249666Strociny PSC_TYPE_FILES, 35249666Strociny PSC_TYPE_VMMAP, 36249670Strociny PSC_TYPE_GROUPS, 37249672Strociny PSC_TYPE_UMASK, 38249674Strociny PSC_TYPE_RLIMIT, 39249677Strociny PSC_TYPE_OSREL, 40249679Strociny PSC_TYPE_PSSTRINGS, 41249679Strociny PSC_TYPE_ARGV, 42249679Strociny PSC_TYPE_ENVV, 43249681Strociny PSC_TYPE_AUXV, 44249666Strociny}; 45249666Strociny 46249666Strocinystruct procstat_core; 47249666Strociny 48249666Strocinyvoid procstat_core_close(struct procstat_core *core); 49249666Strocinyvoid *procstat_core_get(struct procstat_core *core, enum psc_type type, 50249666Strociny void * buf, size_t *lenp); 51249666Strocinystruct procstat_core *procstat_core_open(const char *filename); 52249666Strociny 53249666Strociny#endif /* !_CORE_H_ */ 54