Blame sysdeps/solaris/glibtop_private.h

Packit Service 407539
/* Copyright (C) 1998-99 Martin Baulig
Packit Service 407539
   This file is part of LibGTop 1.0.
Packit Service 407539
Packit Service 407539
   Contributed by Martin Baulig <martin@home-of-linux.org>, March 1999.
Packit Service 407539
Packit Service 407539
   LibGTop is free software; you can redistribute it and/or modify it
Packit Service 407539
   under the terms of the GNU General Public License as published by
Packit Service 407539
   the Free Software Foundation; either version 2 of the License,
Packit Service 407539
   or (at your option) any later version.
Packit Service 407539
Packit Service 407539
   LibGTop is distributed in the hope that it will be useful, but WITHOUT
Packit Service 407539
   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
Packit Service 407539
   FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
Packit Service 407539
   for more details.
Packit Service 407539
Packit Service 407539
   You should have received a copy of the GNU General Public License
Packit Service 407539
   along with LibGTop; see the file COPYING. If not, write to the
Packit Service 407539
   Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Packit Service 407539
   Boston, MA 02110-1301, USA.
Packit Service 407539
*/
Packit Service 407539
Packit Service 407539
#ifndef __GLIBTOP_PRIVATE_H__
Packit Service 407539
#define __GLIBTOP_PRIVATE_H__
Packit Service 407539
Packit Service 407539
#include <glibtop.h>
Packit Service 407539
Packit Service 407539
#include <sys/param.h>
Packit Service 407539
#include <kstat.h>
Packit Service 407539
#include <fcntl.h>
Packit Service 407539
#if defined(HAVE_PROCFS_H)
Packit Service 407539
# include <procfs.h>
Packit Service 407539
#elif defined(HAVE_SYS_PROCFS_H)
Packit Service 407539
# include <sys/procfs.h>
Packit Service 407539
#else
Packit Service 407539
# error Cannot compile without <procfs.h> or <sys/procfs.h>
Packit Service 407539
#endif
Packit Service 407539
Packit Service 407539
G_BEGIN_DECLS
Packit Service 407539
Packit Service 407539
#ifdef HAVE_PROCFS_H
Packit Service 407539
Packit Service 407539
/* Read /proc/<pid>/psinfo */
Packit Service 407539
int glibtop_get_proc_data_psinfo_s(glibtop *, struct psinfo *, pid_t pid);
Packit Service 407539
Packit Service 407539
/* Read /proc/<pid>/status */
Packit Service 407539
int glibtop_get_proc_status_s(glibtop *, struct pstatus *, pid_t);
Packit Service 407539
#else
Packit Service 407539
int glibtop_get_proc_data_psinfo_s(glibtop *, struct prpsinfo *, pid_t);
Packit Service 407539
int glibtop_get_proc_status_s(glibtop *, struct prstatus *, pid_t);
Packit Service 407539
#endif
Packit Service 407539
Packit Service 407539
/* Read /proc/<pid>/usage */
Packit Service 407539
int glibtop_get_proc_data_usage_s(glibtop *, struct prusage *, pid_t);
Packit Service 407539
Packit Service 407539
#if LIBGTOP_VERSION_CODE >= 1001002
Packit Service 407539
/* Read /proc/<pid>/cred */
Packit Service 407539
int glibtop_get_proc_credentials_s(glibtop *, struct prcred *, gid_t *, pid_t);
Packit Service 407539
#endif
Packit Service 407539
Packit Service 407539
/* Reread kstat chains */
Packit Service 407539
void glibtop_get_kstats(glibtop *);
Packit Service 407539
Packit Service 407539
G_END_DECLS
Packit Service 407539
Packit Service 407539
#endif /* __GLIBTOP_PRIVATE_H__ */