Add dummy proc_diskio implementation for FreeBSD.
This commit is contained in:
@@ -16,6 +16,7 @@ libgtop_sysdeps_suid_2_0_la_SOURCES = suid_open.c close.c swap.c \
|
|||||||
proclist.c procstate.c procuid.c \
|
proclist.c procstate.c procuid.c \
|
||||||
proctime.c procmem.c procsignal.c \
|
proctime.c procmem.c procsignal.c \
|
||||||
prockernel.c procsegment.c procargs.c \
|
prockernel.c procsegment.c procargs.c \
|
||||||
|
procdiskio.c \
|
||||||
procmap.c netload.c ppp.c
|
procmap.c netload.c ppp.c
|
||||||
|
|
||||||
libgtop_sysdeps_suid_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
|
libgtop_sysdeps_suid_2_0_la_LDFLAGS = $(LT_VERSION_INFO)
|
||||||
|
@@ -47,6 +47,7 @@ G_BEGIN_DECLS
|
|||||||
#define GLIBTOP_SUID_NETLIST 0
|
#define GLIBTOP_SUID_NETLIST 0
|
||||||
#define GLIBTOP_SUID_PROC_WD 0
|
#define GLIBTOP_SUID_PROC_WD 0
|
||||||
#define GLIBTOP_SUID_PROC_AFFINITY 0
|
#define GLIBTOP_SUID_PROC_AFFINITY 0
|
||||||
|
#define GLIBTOP_SUID_PROC_DISKIO (1 << GLIBTOP_SYSDEPS_PROC_DISKIO)
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
|
43
sysdeps/freebsd/procdiskio.c
Normal file
43
sysdeps/freebsd/procdiskio.c
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
/* Copyright (C) 2017 Robert Roth
|
||||||
|
This file is part of LibGTop.
|
||||||
|
|
||||||
|
Contributed by Robert Roth <robert.roth.off@gmail.com>, February 2017.
|
||||||
|
|
||||||
|
LibGTop is free software; you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2 of the License,
|
||||||
|
or (at your option) any later version.
|
||||||
|
|
||||||
|
LibGTop is distributed in the hope that it will be useful, but WITHOUT
|
||||||
|
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with LibGTop; see the file COPYING. If not, write to the
|
||||||
|
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||||
|
Boston, MA 02110-1301, USA.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <config.h>
|
||||||
|
#include <glibtop.h>
|
||||||
|
#include <glibtop/procdiskio.h>
|
||||||
|
|
||||||
|
static const unsigned long _glibtop_sysdeps_proc_diskio = 0;
|
||||||
|
|
||||||
|
/* Init function. */
|
||||||
|
|
||||||
|
void
|
||||||
|
_glibtop_init_proc_diskio_p (glibtop *server)
|
||||||
|
{
|
||||||
|
server->sysdeps.proc_diskio = _glibtop_sysdeps_proc_diskio;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Provides detailed information about a process. */
|
||||||
|
|
||||||
|
void
|
||||||
|
glibtop_get_proc_diskio_p (glibtop *server, glibtop_proc_diskio *buf,
|
||||||
|
pid_t pid)
|
||||||
|
{
|
||||||
|
memset (buf, 0, sizeof (glibtop_proc_diskio));
|
||||||
|
}
|
Reference in New Issue
Block a user