*** empty log message ***

svn path=/trunk/boinc/; revision=11050
This commit is contained in:
Walt Gribben 2006-08-31 18:52:26 +00:00
parent a318d96ca9
commit 221f40274e
3 changed files with 32 additions and 3 deletions

View File

@ -9567,3 +9567,11 @@ David 31 Aug 2006
gui_rpc_client.C,h
gui_rpc_client_ops.C
util.C
Walt 31 Aug 2006
- Add process memory info for Linux.
lib/
procinfo_unix.C (new)
Makefile.am

View File

@ -63,6 +63,7 @@ libboinc_a_SOURCES = \
network.C \
parse.C \
prefs.C \
procinfo_unix.C \
proxy_info.C \
shmem.C \
util.C \

View File

@ -1,11 +1,31 @@
// Berkeley Open Infrastructure for Network Computing
// http://boinc.berkeley.edu
// Copyright (C) 2006 University of California
//
// This is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation;
// either version 2.1 of the License, or (at your option) any later version.
//
// This software 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 Lesser General Public License for more details.
//
// To view the GNU Lesser General Public License visit
// http://www.gnu.org/copyleft/lesser.html
// or write to the Free Software Foundation, Inc.,
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#include "config.h"
#include <stdio.h>
#if HAVE_SYS_TYPES_H
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#if HAVE_DIRENT_H
#ifdef HAVE_DIRENT_H
#include <dirent.h>
#endif
@ -118,7 +138,7 @@ int PROC_STAT::parse(char* buf) {
//
int procinfo_setup(vector<PROCINFO>& pi) {
#if HAVE_DIRENT_H
#ifdef HAVE_DIRENT_H
DIR *dir;
dirent *piddir;
FILE* fd;