summaryrefslogtreecommitdiff
path: root/sysdeps/sun4/procsegment.c
diff options
context:
space:
mode:
authorMartin Baulig <martin@src.gnome.org>1999-12-26 14:05:32 +0000
committerMartin Baulig <martin@src.gnome.org>1999-12-26 14:05:32 +0000
commitf1a6e1ead8fde4b03f3fcb9ea1e1635185bc7d10 (patch)
tree6d9b7ef9252e719fbb49368a10542eb7af09089d /sysdeps/sun4/procsegment.c
parentd7f088bef0e858550e5ae6890082e962fc5697ad (diff)
downloadlibgtop-f1a6e1ead8fde4b03f3fcb9ea1e1635185bc7d10.tar.gz
The indentation in LibGTop was done with the following command:
find . -name \*.[ch] | xargs -i emacs -batch {} \ -l /gnome/compile/libgtop/misc/format.el -f save-buffer December 26, 1999 Martin
Diffstat (limited to 'sysdeps/sun4/procsegment.c')
-rw-r--r--sysdeps/sun4/procsegment.c26
1 files changed, 14 insertions, 12 deletions
diff --git a/sysdeps/sun4/procsegment.c b/sysdeps/sun4/procsegment.c
index b0a4cc32..7c09ee6b 100644
--- a/sysdeps/sun4/procsegment.c
+++ b/sysdeps/sun4/procsegment.c
@@ -1,3 +1,5 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */
+
/* $Id$ */
/* Copyright (C) 1998-99 Martin Baulig
@@ -36,26 +38,26 @@ int
glibtop_get_proc_segment_p (glibtop *server, glibtop_proc_segment *buf,
pid_t pid)
{
- struct proc *pp;
+ struct proc *pp;
- glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_PROC_SEGMENT), 0);
+ glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_PROC_SEGMENT), 0);
- memset (buf, 0, sizeof (glibtop_proc_segment));
+ memset (buf, 0, sizeof (glibtop_proc_segment));
- /* Read process table from kernel. */
+ /* Read process table from kernel. */
- _glibtop_read_proc_table (server);
+ _glibtop_read_proc_table (server);
- /* Find the pid in the process table. */
+ /* Find the pid in the process table. */
- pp = _glibtop_find_pid (server, pid);
+ pp = _glibtop_find_pid (server, pid);
- if (pp == NULL) return;
+ if (pp == NULL) return;
- /* Fill in data fields. */
+ /* Fill in data fields. */
- buf->text_rss = pp->p_tsize;
- buf->data_rss = pp->p_dsize;
+ buf->text_rss = pp->p_tsize;
+ buf->data_rss = pp->p_dsize;
- buf->flags = _glibtop_sysdeps_proc_segment;
+ buf->flags = _glibtop_sysdeps_proc_segment;
}