summaryrefslogtreecommitdiff
path: root/sysdeps/sun4/procsignal.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/procsignal.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/procsignal.c')
-rw-r--r--sysdeps/sun4/procsignal.c30
1 files changed, 16 insertions, 14 deletions
diff --git a/sysdeps/sun4/procsignal.c b/sysdeps/sun4/procsignal.c
index c09166cb..216c420d 100644
--- a/sysdeps/sun4/procsignal.c
+++ b/sysdeps/sun4/procsignal.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,28 +38,28 @@ int
glibtop_get_proc_signal_p (glibtop *server, glibtop_proc_signal *buf,
pid_t pid)
{
- struct proc *pp;
+ struct proc *pp;
- glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_PROC_SIGNAL), 0);
+ glibtop_init_p (server, (1L << GLIBTOP_SYSDEPS_PROC_SIGNAL), 0);
- memset (buf, 0, sizeof (glibtop_proc_signal));
+ memset (buf, 0, sizeof (glibtop_proc_signal));
- /* 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->signal [0] = pp->p_sig;
- buf->blocked [0] = pp->p_sigmask;
- buf->sigignore [0] = pp->p_sigignore;
- buf->sigcatch [0] = pp->p_sigcatch;
+ buf->signal [0] = pp->p_sig;
+ buf->blocked [0] = pp->p_sigmask;
+ buf->sigignore [0] = pp->p_sigignore;
+ buf->sigcatch [0] = pp->p_sigcatch;
- buf->flags = _glibtop_sysdeps_proc_signal;
+ buf->flags = _glibtop_sysdeps_proc_signal;
}