diff options
author | Martin Baulig <martin@src.gnome.org> | 1999-03-17 18:29:40 +0000 |
---|---|---|
committer | Martin Baulig <martin@src.gnome.org> | 1999-03-17 18:29:40 +0000 |
commit | c4ccf53aad1639200e1a31b6149188d27ac7b16b (patch) | |
tree | 2bb6f3ca527e2617eba1f753f137e83427fb183f /sysdeps/solaris/open.c | |
parent | 8fe9163e6b7e4e31816668dc7fad7ced00c96303 (diff) | |
download | libgtop-c4ccf53aad1639200e1a31b6149188d27ac7b16b.tar.gz |
Initial revision
Diffstat (limited to 'sysdeps/solaris/open.c')
-rw-r--r-- | sysdeps/solaris/open.c | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/sysdeps/solaris/open.c b/sysdeps/solaris/open.c new file mode 100644 index 00000000..e9a9888a --- /dev/null +++ b/sysdeps/solaris/open.c @@ -0,0 +1,38 @@ +/* $Id$ */ + +/* Copyright (C) 1998-99 Martin Baulig + This file is part of LibGTop 1.0. + + Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998. + + LibGTop is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, + or (at your option) any later version. + + LibGTop is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + for more details. + + You should have received a copy of the GNU General Public License + along with LibGTop; see the file COPYING. If not, write to the + Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. +*/ + +#include <glibtop/open.h> + +/* Opens pipe to gtop server. Returns 0 on success and -1 on error. */ + +void +glibtop_open_s (glibtop *server, const char *program_name, + const unsigned long features, const unsigned flags) +{ + server->name = program_name; + + server->machine.kstat = kstat_open (); + + if (!server->machine.kstat) + glibtop_error_io_r (server, "kstat_open ()"); +} |