Initial revision
This commit is contained in:
25
sysdeps/guile/.cvsignore
Normal file
25
sysdeps/guile/.cvsignore
Normal file
@@ -0,0 +1,25 @@
|
||||
.deps
|
||||
.libs
|
||||
Makefile
|
||||
Makefile.in
|
||||
boot.lo
|
||||
cpu.lo
|
||||
libgtop_guile.la
|
||||
loadavg.lo
|
||||
mem.lo
|
||||
msg_limits.lo
|
||||
procdata.lo
|
||||
prockernel.lo
|
||||
proclist.lo
|
||||
procmem.lo
|
||||
procsegment.lo
|
||||
procsignal.lo
|
||||
procstate.lo
|
||||
proctime.lo
|
||||
procuid.lo
|
||||
sem_limits.lo
|
||||
shm_limits.lo
|
||||
so_locations
|
||||
swap.lo
|
||||
sysdeps.lo
|
||||
uptime.lo
|
15
sysdeps/guile/Makefile.am
Normal file
15
sysdeps/guile/Makefile.am
Normal file
@@ -0,0 +1,15 @@
|
||||
SUBDIRS = names
|
||||
|
||||
LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@
|
||||
|
||||
INCLUDES = @GTOP_INCS@
|
||||
|
||||
CFLAGS = -Wall -W @CFLAGS@
|
||||
|
||||
lib_LTLIBRARIES = libgtop_guile.la
|
||||
|
||||
libgtop_guile_la_SOURCES = boot.c sysdeps.c cpu.c mem.c swap.c uptime.c \
|
||||
loadavg.c shm_limits.c msg_limits.c \
|
||||
sem_limits.c proclist.c procstate.c procuid.c \
|
||||
proctime.c procmem.c procsignal.c prockernel.c \
|
||||
procsegment.c
|
66
sysdeps/guile/boot.c
Normal file
66
sysdeps/guile/boot.c
Normal file
@@ -0,0 +1,66 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
This file is part of the Gnome Top Library.
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
The Gnome Top Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
The Gnome Top Library 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
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/sysdeps.h>
|
||||
|
||||
#include <guile/gh.h>
|
||||
|
||||
void
|
||||
glibtop_boot_guile (void)
|
||||
{
|
||||
gh_new_procedure0_0
|
||||
("glibtop-get-cpu", glibtop_guile_get_cpu);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-get-mem", glibtop_guile_get_mem);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-get-swap", glibtop_guile_get_swap);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-get-uptime", glibtop_guile_get_uptime);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-get-loadavg", glibtop_guile_get_loadavg);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-get-shm_limits",glibtop_guile_get_shm_limits);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-get-msg_limits", glibtop_guile_get_msg_limits);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-get-sem_limits", glibtop_guile_get_sem_limits);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-get-sysdeps", glibtop_guile_get_sysdeps);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-get-proclist", glibtop_guile_get_proclist);
|
||||
|
||||
gh_new_procedure1_0
|
||||
("glibtop-get-proc_state", glibtop_guile_get_proc_state);
|
||||
gh_new_procedure1_0
|
||||
("glibtop-get-proc_uid", glibtop_guile_get_proc_uid);
|
||||
gh_new_procedure1_0
|
||||
("glibtop-get-proc_mem", glibtop_guile_get_proc_mem);
|
||||
gh_new_procedure1_0
|
||||
("glibtop-get-proc_time", glibtop_guile_get_proc_time);
|
||||
gh_new_procedure1_0
|
||||
("glibtop-get-proc_signal", glibtop_guile_get_proc_signal);
|
||||
gh_new_procedure1_0
|
||||
("glibtop-get-proc_kernel", glibtop_guile_get_proc_kernel);
|
||||
gh_new_procedure1_0
|
||||
("glibtop-get-proc_segment", glibtop_guile_get_proc_segment);
|
||||
|
||||
}
|
41
sysdeps/guile/cpu.c
Normal file
41
sysdeps/guile/cpu.c
Normal file
@@ -0,0 +1,41 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
This file is part of the Gnome Top Library.
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
The Gnome Top Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
The Gnome Top Library 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
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/cpu.h>
|
||||
|
||||
#include <guile/gh.h>
|
||||
|
||||
SCM glibtop_guile_get_cpu (void)
|
||||
{
|
||||
glibtop_cpu cpu;
|
||||
|
||||
glibtop_get_cpu (&cpu);
|
||||
|
||||
return gh_list (gh_ulong2scm (cpu.flags),
|
||||
gh_ulong2scm (cpu.total),
|
||||
gh_ulong2scm (cpu.user),
|
||||
gh_ulong2scm (cpu.nice),
|
||||
gh_ulong2scm (cpu.sys),
|
||||
gh_ulong2scm (cpu.idle),
|
||||
gh_ulong2scm (cpu.frequency),
|
||||
SCM_UNDEFINED);
|
||||
}
|
38
sysdeps/guile/loadavg.c
Normal file
38
sysdeps/guile/loadavg.c
Normal file
@@ -0,0 +1,38 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
This file is part of the Gnome Top Library.
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
The Gnome Top Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
The Gnome Top Library 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
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/loadavg.h>
|
||||
|
||||
#include <guile/gh.h>
|
||||
|
||||
SCM glibtop_guile_get_loadavg (void)
|
||||
{
|
||||
glibtop_loadavg loadavg;
|
||||
|
||||
glibtop_get_loadavg (&loadavg);
|
||||
|
||||
return gh_list (gh_ulong2scm (loadavg.flags),
|
||||
gh_double2scm (loadavg.loadavg [0]),
|
||||
gh_double2scm (loadavg.loadavg [1]),
|
||||
gh_double2scm (loadavg.loadavg [2]),
|
||||
SCM_UNDEFINED);
|
||||
}
|
42
sysdeps/guile/mem.c
Normal file
42
sysdeps/guile/mem.c
Normal file
@@ -0,0 +1,42 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
This file is part of the Gnome Top Library.
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
The Gnome Top Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
The Gnome Top Library 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
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/mem.h>
|
||||
|
||||
#include <guile/gh.h>
|
||||
|
||||
SCM glibtop_guile_get_mem (void)
|
||||
{
|
||||
glibtop_mem mem;
|
||||
|
||||
glibtop_get_mem (&mem);
|
||||
|
||||
return gh_list (gh_ulong2scm (mem.flags),
|
||||
gh_ulong2scm (mem.total),
|
||||
gh_ulong2scm (mem.used),
|
||||
gh_ulong2scm (mem.free),
|
||||
gh_ulong2scm (mem.shared),
|
||||
gh_ulong2scm (mem.buffer),
|
||||
gh_ulong2scm (mem.cached),
|
||||
gh_ulong2scm (mem.user),
|
||||
SCM_UNDEFINED);
|
||||
}
|
42
sysdeps/guile/msg_limits.c
Normal file
42
sysdeps/guile/msg_limits.c
Normal file
@@ -0,0 +1,42 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
This file is part of the Gnome Top Library.
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
The Gnome Top Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
The Gnome Top Library 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
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/msg_limits.h>
|
||||
|
||||
#include <guile/gh.h>
|
||||
|
||||
SCM glibtop_guile_get_msg_limits (void)
|
||||
{
|
||||
glibtop_msg_limits msg_limits;
|
||||
|
||||
glibtop_get_msg_limits (&msg_limits);
|
||||
|
||||
return gh_list (gh_ulong2scm (msg_limits.flags),
|
||||
gh_ulong2scm (msg_limits.msgpool),
|
||||
gh_ulong2scm (msg_limits.msgmap),
|
||||
gh_ulong2scm (msg_limits.msgmax),
|
||||
gh_ulong2scm (msg_limits.msgmnb),
|
||||
gh_ulong2scm (msg_limits.msgmni),
|
||||
gh_ulong2scm (msg_limits.msgssz),
|
||||
gh_ulong2scm (msg_limits.msgtql),
|
||||
SCM_UNDEFINED);
|
||||
}
|
26
sysdeps/guile/names/.cvsignore
Normal file
26
sysdeps/guile/names/.cvsignore
Normal file
@@ -0,0 +1,26 @@
|
||||
.deps
|
||||
.libs
|
||||
Makefile
|
||||
Makefile.in
|
||||
boot.lo
|
||||
cpu.lo
|
||||
libgtop_guile.la
|
||||
libgtop_guile_names.la
|
||||
loadavg.lo
|
||||
mem.lo
|
||||
msg_limits.lo
|
||||
procdata.lo
|
||||
prockernel.lo
|
||||
proclist.lo
|
||||
procmem.lo
|
||||
procsegment.lo
|
||||
procsignal.lo
|
||||
procstate.lo
|
||||
proctime.lo
|
||||
procuid.lo
|
||||
sem_limits.lo
|
||||
shm_limits.lo
|
||||
so_locations
|
||||
swap.lo
|
||||
sysdeps.lo
|
||||
uptime.lo
|
16
sysdeps/guile/names/Makefile.am
Normal file
16
sysdeps/guile/names/Makefile.am
Normal file
@@ -0,0 +1,16 @@
|
||||
LINK = $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@
|
||||
|
||||
INCLUDES = @GTOP_INCS@
|
||||
|
||||
CFLAGS = -Wall -W @CFLAGS@
|
||||
|
||||
DEFS = -DGLIBTOP_GUILE_NAMES @DEFS@
|
||||
|
||||
lib_LTLIBRARIES = libgtop_guile_names.la
|
||||
|
||||
libgtop_guile_names_la_SOURCES = boot.c sysdeps.c cpu.c mem.c swap.c uptime.c \
|
||||
loadavg.c shm_limits.c msg_limits.c \
|
||||
sem_limits.c proclist.c procstate.c procuid.c \
|
||||
proctime.c procmem.c procsignal.c prockernel.c \
|
||||
procsegment.c
|
||||
|
168
sysdeps/guile/names/boot.c
Normal file
168
sysdeps/guile/names/boot.c
Normal file
@@ -0,0 +1,168 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
This file is part of the Gnome Top Library.
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
The Gnome Top Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
The Gnome Top Library 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
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/sysdeps.h>
|
||||
|
||||
#include <guile/gh.h>
|
||||
|
||||
void
|
||||
glibtop_boot_guile_names (void)
|
||||
{
|
||||
gh_new_procedure0_0
|
||||
("glibtop-names-cpu", glibtop_guile_names_cpu);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-names-mem", glibtop_guile_names_mem);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-names-swap", glibtop_guile_names_swap);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-names-uptime", glibtop_guile_names_uptime);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-names-loadavg", glibtop_guile_names_loadavg);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-names-shm_limits", glibtop_guile_names_shm_limits);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-names-msg_limits", glibtop_guile_names_msg_limits);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-names-sem_limits", glibtop_guile_names_sem_limits);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-names-sysdeps", glibtop_guile_names_sysdeps);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-names-proclist", glibtop_guile_names_proclist);
|
||||
|
||||
gh_new_procedure0_0
|
||||
("glibtop-names-proc_state", glibtop_guile_names_proc_state);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-names-proc_uid", glibtop_guile_names_proc_uid);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-names-proc_mem", glibtop_guile_names_proc_mem);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-names-proc_time", glibtop_guile_names_proc_time);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-names-proc_signal", glibtop_guile_names_proc_signal);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-names-proc_kernel", glibtop_guile_names_proc_kernel);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-names-proc_segment", glibtop_guile_names_proc_segment);
|
||||
|
||||
gh_new_procedure0_0
|
||||
("glibtop-types-cpu", glibtop_guile_types_cpu);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-types-mem", glibtop_guile_types_mem);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-types-swap", glibtop_guile_types_swap);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-types-uptime", glibtop_guile_types_uptime);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-types-loadavg", glibtop_guile_types_loadavg);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-types-shm_limits", glibtop_guile_types_shm_limits);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-types-msg_limits", glibtop_guile_types_msg_limits);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-types-sem_limits", glibtop_guile_types_sem_limits);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-types-sysdeps", glibtop_guile_types_sysdeps);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-types-proclist", glibtop_guile_types_proclist);
|
||||
|
||||
gh_new_procedure0_0
|
||||
("glibtop-types-proc_state", glibtop_guile_types_proc_state);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-types-proc_uid", glibtop_guile_types_proc_uid);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-types-proc_mem", glibtop_guile_types_proc_mem);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-types-proc_signal", glibtop_guile_types_proc_signal);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-types-proc_kernel", glibtop_guile_types_proc_kernel);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-types-proc_segment", glibtop_guile_types_proc_segment);
|
||||
|
||||
|
||||
gh_new_procedure0_0
|
||||
("glibtop-labels-cpu", glibtop_guile_labels_cpu);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-labels-mem", glibtop_guile_labels_mem);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-labels-swap", glibtop_guile_labels_swap);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-labels-uptime", glibtop_guile_labels_uptime);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-labels-loadavg", glibtop_guile_labels_loadavg);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-labels-shm_limits", glibtop_guile_labels_shm_limits);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-labels-msg_limits", glibtop_guile_labels_msg_limits);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-labels-sem_limits", glibtop_guile_labels_sem_limits);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-labels-sysdeps", glibtop_guile_labels_sysdeps);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-labels-proclist", glibtop_guile_labels_proclist);
|
||||
|
||||
gh_new_procedure0_0
|
||||
("glibtop-labels-proc_state", glibtop_guile_labels_proc_state);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-labels-proc_uid", glibtop_guile_labels_proc_uid);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-labels-proc_mem", glibtop_guile_labels_proc_mem);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-labels-proc_signal", glibtop_guile_labels_proc_signal);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-labels-proc_kernel", glibtop_guile_labels_proc_kernel);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-labels-proc_segment", glibtop_guile_labels_proc_segment);
|
||||
|
||||
gh_new_procedure0_0
|
||||
("glibtop-descriptions-cpu", glibtop_guile_descriptions_cpu);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-descriptions-mem", glibtop_guile_descriptions_mem);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-descriptions-swap", glibtop_guile_descriptions_swap);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-descriptions-uptime", glibtop_guile_descriptions_uptime);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-descriptions-loadavg", glibtop_guile_descriptions_loadavg);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-descriptions-shm_limits", glibtop_guile_descriptions_shm_limits);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-descriptions-msg_limits", glibtop_guile_descriptions_msg_limits);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-descriptions-sem_limits", glibtop_guile_descriptions_sem_limits);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-descriptions-sysdeps", glibtop_guile_descriptions_sysdeps);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-descriptions-proclist", glibtop_guile_descriptions_proclist);
|
||||
|
||||
gh_new_procedure0_0
|
||||
("glibtop-descriptions-proc_state", glibtop_guile_descriptions_proc_state);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-descriptions-proc_uid", glibtop_guile_descriptions_proc_uid);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-descriptions-proc_mem", glibtop_guile_descriptions_proc_mem);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-descriptions-proc_signal", glibtop_guile_descriptions_proc_signal);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-descriptions-proc_kernel", glibtop_guile_descriptions_proc_kernel);
|
||||
gh_new_procedure0_0
|
||||
("glibtop-descriptions-proc_segment", glibtop_guile_descriptions_proc_segment);
|
||||
}
|
95
sysdeps/guile/names/cpu.c
Normal file
95
sysdeps/guile/names/cpu.c
Normal file
@@ -0,0 +1,95 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
This file is part of the Gnome Top Library.
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
The Gnome Top Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
The Gnome Top Library 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
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/cpu.h>
|
||||
|
||||
#include <guile/gh.h>
|
||||
|
||||
SCM
|
||||
glibtop_guile_names_cpu (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_CPU; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (glibtop_names_cpu [i]),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_types_cpu (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_CPU; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (glibtop_types_cpu [i]),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_labels_cpu (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_CPU; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (gettext
|
||||
(glibtop_labels_cpu [i])),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_descriptions_cpu (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_CPU; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (gettext
|
||||
(glibtop_descriptions_cpu [i])),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
95
sysdeps/guile/names/loadavg.c
Normal file
95
sysdeps/guile/names/loadavg.c
Normal file
@@ -0,0 +1,95 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
This file is part of the Gnome Top Library.
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
The Gnome Top Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
The Gnome Top Library 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
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/loadavg.h>
|
||||
|
||||
#include <guile/gh.h>
|
||||
|
||||
SCM
|
||||
glibtop_guile_names_loadavg (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_LOADAVG; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (glibtop_names_loadavg [i]),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_types_loadavg (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_LOADAVG; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (glibtop_types_loadavg [i]),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_labels_loadavg (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_LOADAVG; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (gettext
|
||||
(glibtop_labels_loadavg [i])),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_descriptions_loadavg (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_LOADAVG; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (gettext
|
||||
(glibtop_descriptions_loadavg [i])),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
95
sysdeps/guile/names/mem.c
Normal file
95
sysdeps/guile/names/mem.c
Normal file
@@ -0,0 +1,95 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
This file is part of the Gnome Top Library.
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
The Gnome Top Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
The Gnome Top Library 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
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/mem.h>
|
||||
|
||||
#include <guile/gh.h>
|
||||
|
||||
SCM
|
||||
glibtop_guile_names_mem (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_MEM; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (glibtop_names_mem [i]),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_types_mem (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_MEM; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (glibtop_types_mem [i]),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_labels_mem (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_MEM; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (gettext
|
||||
(glibtop_labels_mem [i])),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_descriptions_mem (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_MEM; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (gettext
|
||||
(glibtop_descriptions_mem [i])),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
95
sysdeps/guile/names/msg_limits.c
Normal file
95
sysdeps/guile/names/msg_limits.c
Normal file
@@ -0,0 +1,95 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
This file is part of the Gnome Top Library.
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
The Gnome Top Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
The Gnome Top Library 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
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/msg_limits.h>
|
||||
|
||||
#include <guile/gh.h>
|
||||
|
||||
SCM
|
||||
glibtop_guile_names_msg_limits (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_MSG_LIMITS; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (glibtop_names_msg_limits [i]),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_types_msg_limits (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_MSG_LIMITS; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (glibtop_types_msg_limits [i]),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_labels_msg_limits (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_MSG_LIMITS; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (gettext
|
||||
(glibtop_labels_msg_limits [i])),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_descriptions_msg_limits (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_MSG_LIMITS; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (gettext
|
||||
(glibtop_descriptions_msg_limits [i])),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
95
sysdeps/guile/names/prockernel.c
Normal file
95
sysdeps/guile/names/prockernel.c
Normal file
@@ -0,0 +1,95 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
This file is part of the Gnome Top Library.
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
The Gnome Top Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
The Gnome Top Library 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
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/prockernel.h>
|
||||
|
||||
#include <guile/gh.h>
|
||||
|
||||
SCM
|
||||
glibtop_guile_names_proc_kernel (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_PROC_KERNEL; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (glibtop_names_proc_kernel [i]),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_types_proc_kernel (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_PROC_KERNEL; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (glibtop_types_proc_kernel [i]),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_labels_proc_kernel (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_PROC_KERNEL; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (gettext
|
||||
(glibtop_labels_proc_kernel [i])),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_descriptions_proc_kernel (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_PROC_KERNEL; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (gettext
|
||||
(glibtop_descriptions_proc_kernel [i])),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
96
sysdeps/guile/names/proclist.c
Normal file
96
sysdeps/guile/names/proclist.c
Normal file
@@ -0,0 +1,96 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
This file is part of the Gnome Top Library.
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
The Gnome Top Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
The Gnome Top Library 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
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/xmalloc.h>
|
||||
#include <glibtop/proclist.h>
|
||||
|
||||
#include <guile/gh.h>
|
||||
|
||||
SCM
|
||||
glibtop_guile_names_proclist (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_PROCLIST; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (glibtop_names_proclist [i]),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_types_proclist (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_PROCLIST; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (glibtop_labels_proclist [i]),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_labels_proclist (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_PROCLIST; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (gettext
|
||||
(glibtop_labels_proclist [i])),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_descriptions_proclist (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_PROCLIST; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (gettext
|
||||
(glibtop_descriptions_proclist [i])),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
95
sysdeps/guile/names/procmem.c
Normal file
95
sysdeps/guile/names/procmem.c
Normal file
@@ -0,0 +1,95 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
This file is part of the Gnome Top Library.
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
The Gnome Top Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
The Gnome Top Library 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
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/procmem.h>
|
||||
|
||||
#include <guile/gh.h>
|
||||
|
||||
SCM
|
||||
glibtop_guile_names_proc_mem (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_PROC_MEM; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (glibtop_names_proc_mem [i]),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_types_proc_mem (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_PROC_MEM; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (glibtop_labels_proc_mem [i]),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_labels_proc_mem (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_PROC_MEM; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (gettext
|
||||
(glibtop_labels_proc_mem [i])),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_descriptions_proc_mem (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_PROC_MEM; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (gettext
|
||||
(glibtop_descriptions_proc_mem [i])),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
95
sysdeps/guile/names/procsegment.c
Normal file
95
sysdeps/guile/names/procsegment.c
Normal file
@@ -0,0 +1,95 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
This file is part of the Gnome Top Library.
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
The Gnome Top Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
The Gnome Top Library 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
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/procsegment.h>
|
||||
|
||||
#include <guile/gh.h>
|
||||
|
||||
SCM
|
||||
glibtop_guile_names_proc_segment (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_PROC_SEGMENT; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (glibtop_names_proc_segment [i]),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_types_proc_segment (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_PROC_SEGMENT; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (glibtop_types_proc_segment [i]),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_labels_proc_segment (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_PROC_SEGMENT; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (gettext
|
||||
(glibtop_labels_proc_segment [i])),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_descriptions_proc_segment (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_PROC_SEGMENT; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (gettext
|
||||
(glibtop_descriptions_proc_segment [i])),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
95
sysdeps/guile/names/procsignal.c
Normal file
95
sysdeps/guile/names/procsignal.c
Normal file
@@ -0,0 +1,95 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
This file is part of the Gnome Top Library.
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
The Gnome Top Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
The Gnome Top Library 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
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/procsignal.h>
|
||||
|
||||
#include <guile/gh.h>
|
||||
|
||||
SCM
|
||||
glibtop_guile_names_proc_signal (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_PROC_SIGNAL; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (glibtop_names_proc_signal [i]),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_types_proc_signal (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_PROC_SIGNAL; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (glibtop_types_proc_signal [i]),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_labels_proc_signal (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_PROC_SIGNAL; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (gettext
|
||||
(glibtop_labels_proc_signal [i])),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_descriptions_proc_signal (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_PROC_SIGNAL; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (gettext
|
||||
(glibtop_descriptions_proc_signal [i])),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
95
sysdeps/guile/names/procstate.c
Normal file
95
sysdeps/guile/names/procstate.c
Normal file
@@ -0,0 +1,95 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
This file is part of the Gnome Top Library.
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
The Gnome Top Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
The Gnome Top Library 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
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/procstate.h>
|
||||
|
||||
#include <guile/gh.h>
|
||||
|
||||
SCM
|
||||
glibtop_guile_names_proc_state (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_PROC_STATE; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (glibtop_names_proc_state [i]),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_types_proc_state (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_PROC_STATE; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (glibtop_types_proc_state [i]),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_labels_proc_state (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_PROC_STATE; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (gettext
|
||||
(glibtop_labels_proc_state [i])),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_descriptions_proc_state (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_PROC_STATE; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (gettext
|
||||
(glibtop_descriptions_proc_state [i])),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
95
sysdeps/guile/names/proctime.c
Normal file
95
sysdeps/guile/names/proctime.c
Normal file
@@ -0,0 +1,95 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
This file is part of the Gnome Top Library.
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
The Gnome Top Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
The Gnome Top Library 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
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/proctime.h>
|
||||
|
||||
#include <guile/gh.h>
|
||||
|
||||
SCM
|
||||
glibtop_guile_names_proc_time (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_PROC_TIME; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (glibtop_names_proc_time [i]),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_types_proc_time (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_PROC_TIME; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (glibtop_types_proc_time [i]),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_labels_proc_time (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_PROC_TIME; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (gettext
|
||||
(glibtop_labels_proc_time [i])),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_descriptions_proc_time (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_PROC_TIME; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (gettext
|
||||
(glibtop_descriptions_proc_time [i])),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
95
sysdeps/guile/names/procuid.c
Normal file
95
sysdeps/guile/names/procuid.c
Normal file
@@ -0,0 +1,95 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
This file is part of the Gnome Top Library.
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
The Gnome Top Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
The Gnome Top Library 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
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/procuid.h>
|
||||
|
||||
#include <guile/gh.h>
|
||||
|
||||
SCM
|
||||
glibtop_guile_names_proc_uid (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_PROC_UID; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (glibtop_names_proc_uid [i]),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_types_proc_uid (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_PROC_UID; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (glibtop_types_proc_uid [i]),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_labels_proc_uid (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_PROC_UID; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (gettext
|
||||
(glibtop_labels_proc_uid [i])),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_descriptions_proc_uid (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_PROC_UID; i++)
|
||||
list = gh_append2
|
||||
(list, gh_list
|
||||
(gh_str02scm (gettext
|
||||
(glibtop_descriptions_proc_uid [i])),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
85
sysdeps/guile/names/sem_limits.c
Normal file
85
sysdeps/guile/names/sem_limits.c
Normal file
@@ -0,0 +1,85 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
This file is part of the Gnome Top Library.
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
The Gnome Top Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
The Gnome Top Library 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
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/sem_limits.h>
|
||||
|
||||
#include <guile/gh.h>
|
||||
|
||||
SCM
|
||||
glibtop_guile_names_sem_limits (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_SEM_LIMITS; i++)
|
||||
list = gh_append2 (list, gh_list (gh_str02scm (glibtop_names_sem_limits [i]),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_types_sem_limits (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_SEM_LIMITS; i++)
|
||||
list = gh_append2 (list, gh_list (gh_str02scm (gettext (glibtop_types_sem_limits [i])),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_labels_sem_limits (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_SEM_LIMITS; i++)
|
||||
list = gh_append2 (list, gh_list (gh_str02scm (gettext (glibtop_labels_sem_limits [i])),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_descriptions_sem_limits (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_SEM_LIMITS; i++)
|
||||
list = gh_append2 (list, gh_list (gh_str02scm (gettext (glibtop_descriptions_sem_limits [i])),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
85
sysdeps/guile/names/shm_limits.c
Normal file
85
sysdeps/guile/names/shm_limits.c
Normal file
@@ -0,0 +1,85 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
This file is part of the Gnome Top Library.
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
The Gnome Top Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
The Gnome Top Library 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
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/shm_limits.h>
|
||||
|
||||
#include <guile/gh.h>
|
||||
|
||||
SCM
|
||||
glibtop_guile_names_shm_limits (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_SHM_LIMITS; i++)
|
||||
list = gh_append2 (list, gh_list (gh_str02scm (glibtop_names_shm_limits [i]),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_types_shm_limits (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_SHM_LIMITS; i++)
|
||||
list = gh_append2 (list, gh_list (gh_str02scm (gettext (glibtop_types_shm_limits [i])),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_labels_shm_limits (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_SHM_LIMITS; i++)
|
||||
list = gh_append2 (list, gh_list (gh_str02scm (gettext (glibtop_labels_shm_limits [i])),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_descriptions_shm_limits (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_SHM_LIMITS; i++)
|
||||
list = gh_append2 (list, gh_list (gh_str02scm (gettext (glibtop_descriptions_shm_limits [i])),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
84
sysdeps/guile/names/swap.c
Normal file
84
sysdeps/guile/names/swap.c
Normal file
@@ -0,0 +1,84 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
This file is part of the Gnome Top Library.
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
The Gnome Top Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
The Gnome Top Library 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
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/swap.h>
|
||||
|
||||
#include <guile/gh.h>
|
||||
|
||||
SCM
|
||||
glibtop_guile_names_swap (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_SWAP; i++)
|
||||
list = gh_append2 (list, gh_list (gh_str02scm (glibtop_names_swap [i]), SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_types_swap (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_SWAP; i++)
|
||||
list = gh_append2 (list, gh_list (gh_str02scm (gettext (glibtop_types_swap [i])),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_labels_swap (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_SWAP; i++)
|
||||
list = gh_append2 (list, gh_list (gh_str02scm (gettext (glibtop_labels_swap [i])),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_descriptions_swap (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_SWAP; i++)
|
||||
list = gh_append2 (list, gh_list (gh_str02scm (gettext (glibtop_descriptions_swap [i])),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
85
sysdeps/guile/names/sysdeps.c
Normal file
85
sysdeps/guile/names/sysdeps.c
Normal file
@@ -0,0 +1,85 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
This file is part of the Gnome Top Library.
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
The Gnome Top Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
The Gnome Top Library 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
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/sysdeps.h>
|
||||
|
||||
#include <guile/gh.h>
|
||||
|
||||
SCM
|
||||
glibtop_guile_names_sysdeps (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_SYSDEPS; i++)
|
||||
list = gh_append2 (list, gh_list (gh_str02scm (glibtop_names_sysdeps [i]),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_types_sysdeps (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_SYSDEPS; i++)
|
||||
list = gh_append2 (list, gh_list (gh_str02scm (gettext (glibtop_types_sysdeps [i])),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_labels_sysdeps (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_SYSDEPS; i++)
|
||||
list = gh_append2 (list, gh_list (gh_str02scm (gettext (glibtop_labels_sysdeps [i])),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_descriptions_sysdeps (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_SYSDEPS; i++)
|
||||
list = gh_append2 (list, gh_list (gh_str02scm (gettext (glibtop_descriptions_sysdeps [i])),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
84
sysdeps/guile/names/uptime.c
Normal file
84
sysdeps/guile/names/uptime.c
Normal file
@@ -0,0 +1,84 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
This file is part of the Gnome Top Library.
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
The Gnome Top Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
The Gnome Top Library 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
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/uptime.h>
|
||||
|
||||
#include <guile/gh.h>
|
||||
|
||||
SCM
|
||||
glibtop_guile_names_uptime (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_UPTIME; i++)
|
||||
list = gh_append2 (list, gh_list (gh_str02scm (glibtop_names_uptime [i]), SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_types_uptime (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_UPTIME; i++)
|
||||
list = gh_append2 (list, gh_list (gh_str02scm (gettext (glibtop_types_uptime [i])),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_labels_uptime (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_UPTIME; i++)
|
||||
list = gh_append2 (list, gh_list (gh_str02scm (gettext (glibtop_labels_uptime [i])),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
||||
|
||||
SCM
|
||||
glibtop_guile_descriptions_uptime (void)
|
||||
{
|
||||
int i;
|
||||
SCM list;
|
||||
|
||||
list = gh_list (SCM_UNDEFINED);
|
||||
|
||||
for (i = 0; i < GLIBTOP_MAX_UPTIME; i++)
|
||||
list = gh_append2 (list, gh_list (gh_str02scm (gettext (glibtop_descriptions_uptime [i])),
|
||||
SCM_UNDEFINED));
|
||||
|
||||
return list;
|
||||
}
|
44
sysdeps/guile/prockernel.c
Normal file
44
sysdeps/guile/prockernel.c
Normal file
@@ -0,0 +1,44 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
This file is part of the Gnome Top Library.
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
The Gnome Top Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
The Gnome Top Library 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
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/prockernel.h>
|
||||
|
||||
#include <guile/gh.h>
|
||||
|
||||
SCM
|
||||
glibtop_guile_get_proc_kernel (SCM pid)
|
||||
{
|
||||
glibtop_proc_kernel p;
|
||||
|
||||
glibtop_get_proc_kernel (&p, (pid_t) gh_scm2long (pid));
|
||||
|
||||
return gh_list (gh_ulong2scm (p.flags),
|
||||
gh_ulong2scm (p.k_flags),
|
||||
gh_ulong2scm (p.min_flt),
|
||||
gh_ulong2scm (p.maj_flt),
|
||||
gh_ulong2scm (p.cmin_flt),
|
||||
gh_ulong2scm (p.cmaj_flt),
|
||||
gh_ulong2scm (p.kstk_esp),
|
||||
gh_ulong2scm (p.kstk_eip),
|
||||
gh_ulong2scm (p.wchan),
|
||||
SCM_UNDEFINED);
|
||||
}
|
52
sysdeps/guile/proclist.c
Normal file
52
sysdeps/guile/proclist.c
Normal file
@@ -0,0 +1,52 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
This file is part of the Gnome Top Library.
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
The Gnome Top Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
The Gnome Top Library 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
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/xmalloc.h>
|
||||
#include <glibtop/proclist.h>
|
||||
|
||||
#include <guile/gh.h>
|
||||
|
||||
SCM
|
||||
glibtop_guile_get_proclist (void)
|
||||
{
|
||||
glibtop_proclist proclist;
|
||||
unsigned *ptr;
|
||||
unsigned i;
|
||||
SCM list;
|
||||
|
||||
ptr = glibtop_get_proclist (&proclist);
|
||||
|
||||
list = gh_list (gh_ulong2scm (proclist.flags),
|
||||
gh_ulong2scm (proclist.number),
|
||||
gh_ulong2scm (proclist.size),
|
||||
gh_ulong2scm (proclist.total),
|
||||
SCM_UNDEFINED);
|
||||
|
||||
if (ptr) {
|
||||
for (i = 0; i < proclist.number; i++)
|
||||
list = gh_append2 (list, gh_list (gh_ulong2scm ((unsigned long) ptr [i]), SCM_UNDEFINED));
|
||||
}
|
||||
|
||||
glibtop_free (ptr);
|
||||
|
||||
return list;
|
||||
}
|
42
sysdeps/guile/procmem.c
Normal file
42
sysdeps/guile/procmem.c
Normal file
@@ -0,0 +1,42 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
This file is part of the Gnome Top Library.
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
The Gnome Top Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
The Gnome Top Library 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
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/procmem.h>
|
||||
|
||||
#include <guile/gh.h>
|
||||
|
||||
SCM
|
||||
glibtop_guile_get_proc_mem (SCM pid)
|
||||
{
|
||||
glibtop_proc_mem p;
|
||||
|
||||
glibtop_get_proc_mem (&p, (pid_t) gh_scm2long (pid));
|
||||
|
||||
return gh_list (gh_ulong2scm (p.flags),
|
||||
gh_long2scm (p.size),
|
||||
gh_long2scm (p.vsize),
|
||||
gh_long2scm (p.resident),
|
||||
gh_long2scm (p.share),
|
||||
gh_long2scm (p.rss),
|
||||
gh_long2scm (p.rss_rlim),
|
||||
SCM_UNDEFINED);
|
||||
}
|
43
sysdeps/guile/procsegment.c
Normal file
43
sysdeps/guile/procsegment.c
Normal file
@@ -0,0 +1,43 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
This file is part of the Gnome Top Library.
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
The Gnome Top Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
The Gnome Top Library 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
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/procsegment.h>
|
||||
|
||||
#include <guile/gh.h>
|
||||
|
||||
SCM
|
||||
glibtop_guile_get_proc_segment (SCM pid)
|
||||
{
|
||||
glibtop_proc_segment p;
|
||||
|
||||
glibtop_get_proc_segment (&p, (pid_t) gh_scm2long (pid));
|
||||
|
||||
return gh_list (gh_ulong2scm (p.flags),
|
||||
gh_long2scm (p.trs),
|
||||
gh_long2scm (p.lrs),
|
||||
gh_long2scm (p.drs),
|
||||
gh_long2scm (p.dt),
|
||||
gh_ulong2scm (p.start_code),
|
||||
gh_ulong2scm (p.end_code),
|
||||
gh_ulong2scm (p.start_stack),
|
||||
SCM_UNDEFINED);
|
||||
}
|
40
sysdeps/guile/procsignal.c
Normal file
40
sysdeps/guile/procsignal.c
Normal file
@@ -0,0 +1,40 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
This file is part of the Gnome Top Library.
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
The Gnome Top Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
The Gnome Top Library 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
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/procsignal.h>
|
||||
|
||||
#include <guile/gh.h>
|
||||
|
||||
SCM
|
||||
glibtop_guile_get_proc_signal (SCM pid)
|
||||
{
|
||||
glibtop_proc_signal p;
|
||||
|
||||
glibtop_get_proc_signal (&p, (pid_t) gh_scm2long (pid));
|
||||
|
||||
return gh_list (gh_ulong2scm (p.flags),
|
||||
gh_long2scm (p.signal),
|
||||
gh_long2scm (p.blocked),
|
||||
gh_long2scm (p.sigignore),
|
||||
gh_long2scm (p.sigcatch),
|
||||
SCM_UNDEFINED);
|
||||
}
|
40
sysdeps/guile/procstate.c
Normal file
40
sysdeps/guile/procstate.c
Normal file
@@ -0,0 +1,40 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
This file is part of the Gnome Top Library.
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
The Gnome Top Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
The Gnome Top Library 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
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/procstate.h>
|
||||
|
||||
#include <guile/gh.h>
|
||||
|
||||
SCM
|
||||
glibtop_guile_get_proc_state (SCM pid)
|
||||
{
|
||||
glibtop_proc_state p;
|
||||
|
||||
glibtop_get_proc_state (&p, (pid_t) gh_scm2long (pid));
|
||||
|
||||
return gh_list (gh_ulong2scm (p.flags),
|
||||
gh_str02scm (p.cmd),
|
||||
gh_char2scm (p.state),
|
||||
gh_ulong2scm (p.uid),
|
||||
gh_ulong2scm (p.gid),
|
||||
SCM_UNDEFINED);
|
||||
}
|
43
sysdeps/guile/proctime.c
Normal file
43
sysdeps/guile/proctime.c
Normal file
@@ -0,0 +1,43 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
This file is part of the Gnome Top Library.
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
The Gnome Top Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
The Gnome Top Library 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
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/proctime.h>
|
||||
|
||||
#include <guile/gh.h>
|
||||
|
||||
SCM
|
||||
glibtop_guile_get_proc_time (SCM pid)
|
||||
{
|
||||
glibtop_proc_time p;
|
||||
|
||||
glibtop_get_proc_time (&p, (pid_t) gh_scm2long (pid));
|
||||
|
||||
return gh_list (gh_ulong2scm (p.flags),
|
||||
gh_long2scm (p.start_time),
|
||||
gh_long2scm (p.utime),
|
||||
gh_long2scm (p.stime),
|
||||
gh_long2scm (p.cutime),
|
||||
gh_long2scm (p.cstime),
|
||||
gh_long2scm (p.timeout),
|
||||
gh_long2scm (p.it_real_value),
|
||||
SCM_UNDEFINED);
|
||||
}
|
48
sysdeps/guile/procuid.c
Normal file
48
sysdeps/guile/procuid.c
Normal file
@@ -0,0 +1,48 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
This file is part of the Gnome Top Library.
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
The Gnome Top Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
The Gnome Top Library 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
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/procuid.h>
|
||||
|
||||
#include <guile/gh.h>
|
||||
|
||||
SCM
|
||||
glibtop_guile_get_proc_uid (SCM pid)
|
||||
{
|
||||
glibtop_proc_uid p;
|
||||
|
||||
glibtop_get_proc_uid (&p, (pid_t) gh_scm2long (pid));
|
||||
|
||||
return gh_list (gh_ulong2scm (p.flags),
|
||||
gh_long2scm (p.uid),
|
||||
gh_long2scm (p.euid),
|
||||
gh_long2scm (p.gid),
|
||||
gh_long2scm (p.egid),
|
||||
gh_long2scm (p.pid),
|
||||
gh_long2scm (p.ppid),
|
||||
gh_long2scm (p.pgrp),
|
||||
gh_long2scm (p.session),
|
||||
gh_long2scm (p.tty),
|
||||
gh_long2scm (p.tpgid),
|
||||
gh_long2scm (p.priority),
|
||||
gh_long2scm (p.nice),
|
||||
SCM_UNDEFINED);
|
||||
}
|
45
sysdeps/guile/sem_limits.c
Normal file
45
sysdeps/guile/sem_limits.c
Normal file
@@ -0,0 +1,45 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
This file is part of the Gnome Top Library.
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
The Gnome Top Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
The Gnome Top Library 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
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/sem_limits.h>
|
||||
|
||||
#include <guile/gh.h>
|
||||
|
||||
SCM glibtop_guile_get_sem_limits (void)
|
||||
{
|
||||
glibtop_sem_limits sem_limits;
|
||||
|
||||
glibtop_get_sem_limits (&sem_limits);
|
||||
|
||||
return gh_list (gh_ulong2scm (sem_limits.flags),
|
||||
gh_ulong2scm (sem_limits.semmap),
|
||||
gh_ulong2scm (sem_limits.semmni),
|
||||
gh_ulong2scm (sem_limits.semmns),
|
||||
gh_ulong2scm (sem_limits.semmnu),
|
||||
gh_ulong2scm (sem_limits.semmsl),
|
||||
gh_ulong2scm (sem_limits.semopm),
|
||||
gh_ulong2scm (sem_limits.semume),
|
||||
gh_ulong2scm (sem_limits.semusz),
|
||||
gh_ulong2scm (sem_limits.semvmx),
|
||||
gh_ulong2scm (sem_limits.semaem),
|
||||
SCM_UNDEFINED);
|
||||
}
|
40
sysdeps/guile/shm_limits.c
Normal file
40
sysdeps/guile/shm_limits.c
Normal file
@@ -0,0 +1,40 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
This file is part of the Gnome Top Library.
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
The Gnome Top Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
The Gnome Top Library 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
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/shm_limits.h>
|
||||
|
||||
#include <guile/gh.h>
|
||||
|
||||
SCM glibtop_guile_get_shm_limits (void)
|
||||
{
|
||||
glibtop_shm_limits shm_limits;
|
||||
|
||||
glibtop_get_shm_limits (&shm_limits);
|
||||
|
||||
return gh_list (gh_ulong2scm (shm_limits.flags),
|
||||
gh_ulong2scm (shm_limits.shmmax),
|
||||
gh_ulong2scm (shm_limits.shmmin),
|
||||
gh_ulong2scm (shm_limits.shmmni),
|
||||
gh_ulong2scm (shm_limits.shmseg),
|
||||
gh_ulong2scm (shm_limits.shmall),
|
||||
SCM_UNDEFINED);
|
||||
}
|
38
sysdeps/guile/swap.c
Normal file
38
sysdeps/guile/swap.c
Normal file
@@ -0,0 +1,38 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
This file is part of the Gnome Top Library.
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
The Gnome Top Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
The Gnome Top Library 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
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/swap.h>
|
||||
|
||||
#include <guile/gh.h>
|
||||
|
||||
SCM glibtop_guile_get_swap (void)
|
||||
{
|
||||
glibtop_swap swap;
|
||||
|
||||
glibtop_get_swap (&swap);
|
||||
|
||||
return gh_list (gh_ulong2scm (swap.flags),
|
||||
gh_ulong2scm (swap.total),
|
||||
gh_ulong2scm (swap.used),
|
||||
gh_ulong2scm (swap.free),
|
||||
SCM_UNDEFINED);
|
||||
}
|
51
sysdeps/guile/sysdeps.c
Normal file
51
sysdeps/guile/sysdeps.c
Normal file
@@ -0,0 +1,51 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
This file is part of the Gnome Top Library.
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
The Gnome Top Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
The Gnome Top Library 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
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/sysdeps.h>
|
||||
|
||||
#include <guile/gh.h>
|
||||
|
||||
SCM glibtop_guile_get_sysdeps (void)
|
||||
{
|
||||
glibtop_sysdeps sysdeps;
|
||||
|
||||
glibtop_get_sysdeps (&sysdeps);
|
||||
|
||||
return gh_list (gh_ulong2scm (sysdeps.flags),
|
||||
gh_ulong2scm (sysdeps.cpu),
|
||||
gh_ulong2scm (sysdeps.mem),
|
||||
gh_ulong2scm (sysdeps.swap),
|
||||
gh_ulong2scm (sysdeps.uptime),
|
||||
gh_ulong2scm (sysdeps.loadavg),
|
||||
gh_ulong2scm (sysdeps.shm_limits),
|
||||
gh_ulong2scm (sysdeps.msg_limits),
|
||||
gh_ulong2scm (sysdeps.sem_limits),
|
||||
gh_ulong2scm (sysdeps.proclist),
|
||||
gh_ulong2scm (sysdeps.proc_state),
|
||||
gh_ulong2scm (sysdeps.proc_uid),
|
||||
gh_ulong2scm (sysdeps.proc_mem),
|
||||
gh_ulong2scm (sysdeps.proc_time),
|
||||
gh_ulong2scm (sysdeps.proc_signal),
|
||||
gh_ulong2scm (sysdeps.proc_kernel),
|
||||
gh_ulong2scm (sysdeps.proc_segment),
|
||||
SCM_UNDEFINED);
|
||||
}
|
37
sysdeps/guile/uptime.c
Normal file
37
sysdeps/guile/uptime.c
Normal file
@@ -0,0 +1,37 @@
|
||||
/* $Id$ */
|
||||
|
||||
/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
|
||||
This file is part of the Gnome Top Library.
|
||||
Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
|
||||
|
||||
The Gnome Top Library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public License as
|
||||
published by the Free Software Foundation; either version 2 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
The Gnome Top Library 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
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with the GNU C Library; see the file COPYING.LIB. If not,
|
||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#include <glibtop.h>
|
||||
#include <glibtop/uptime.h>
|
||||
|
||||
#include <guile/gh.h>
|
||||
|
||||
SCM glibtop_guile_get_uptime (void)
|
||||
{
|
||||
glibtop_uptime uptime;
|
||||
|
||||
glibtop_get_uptime (&uptime);
|
||||
|
||||
return gh_list (gh_ulong2scm (uptime.flags),
|
||||
gh_double2scm (uptime.uptime),
|
||||
gh_double2scm (uptime.idletime),
|
||||
SCM_UNDEFINED);
|
||||
}
|
Reference in New Issue
Block a user