libgtop r2804 - branches/gnome-2-24/sysdeps/darwin
- From: bdejean svn gnome org
- To: svn-commits-list gnome org
- Subject: libgtop r2804 - branches/gnome-2-24/sysdeps/darwin
- Date: Mon, 16 Feb 2009 23:12:13 +0000 (UTC)
Author: bdejean
Date: Mon Feb 16 23:12:13 2009
New Revision: 2804
URL: http://svn.gnome.org/viewvc/libgtop?rev=2804&view=rev
Log:
Oops, missing file
Added:
branches/gnome-2-24/sysdeps/darwin/procaffinity.c
Added: branches/gnome-2-24/sysdeps/darwin/procaffinity.c
==============================================================================
--- (empty file)
+++ branches/gnome-2-24/sysdeps/darwin/procaffinity.c Mon Feb 16 23:12:13 2009
@@ -0,0 +1,44 @@
+/*
+
+ This file is part of LibGTop 2.
+
+ 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 <config.h>
+#include <glibtop/procaffinity.h>
+#include <glibtop/error.h>
+
+#include <sys/param.h>
+
+void
+_glibtop_init_proc_affinity_s(glibtop *server)
+{
+ server->sysdeps.proc_affinity =
+ (1 << GLIBTOP_PROC_AFFINITY_NUMBER) |
+ (1 << GLIBTOP_PROC_AFFINITY_ALL);
+
+}
+
+
+guint16 *
+glibtop_get_proc_affinity_s(glibtop *server, glibtop_proc_affinity *buf, pid_t pid)
+{
+ memset(buf, 0, sizeof *buf);
+
+ return NULL;
+}
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]