From 529f78be2ce6c9fef346a15db841a68f8d848790 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Wed, 8 Jun 2011 02:28:21 +0000 Subject: [PATCH] Mac: Add new procinfo.cpp to XCode Project svn path=/branches/boinc_core_release_6_12/; revision=23675 --- checkin_notes | 18 +++++++++++++++ lib/procinfo_mac.cpp | 27 +++++++++-------------- mac_build/boinc.xcodeproj/project.pbxproj | 14 ++++++++++++ 3 files changed, 42 insertions(+), 17 deletions(-) diff --git a/checkin_notes b/checkin_notes index 30b72ee5f6..2ead54f68d 100644 --- a/checkin_notes +++ b/checkin_notes @@ -9862,3 +9862,21 @@ Rom 7 Jun 2011 / configure.ac version.h + +Charlie 22 Feb 2011 + - Mac: Add new procinfo.cpp to XCode Project. + + mac_build/ + boinc.xcodeproj/ + project.pbxproj + +Charlie 21 Apr 2011 + - Mac: Update XCode Project to link procinfo.cpp and procinfo_mac.cpp into + boinscr (ss_app) because boinc_api.cpp now calls kill_descendants() and + suspend_or_resume_descendants(). + + lib + procinfo_mac.cpp + mac_build/ + boinc.xcodeproj/ + project.pbxproj diff --git a/lib/procinfo_mac.cpp b/lib/procinfo_mac.cpp index 2db015f808..2877e70a3a 100644 --- a/lib/procinfo_mac.cpp +++ b/lib/procinfo_mac.cpp @@ -114,8 +114,16 @@ int procinfo_setup(vector& pi) { while (1) { memset(&p, 0, sizeof(p)); - c = fscanf(fd, "%d%d%d%d%ld%d%d:%lf ", &p.id, &p.parentid, &real_mem, - &virtual_mem, &p.page_fault_count, &priority, &hours, &p.user_time); + c = fscanf(fd, "%d%d%d%d%ld%d%d:%lf ", + &p.id, + &p.parentid, + &real_mem, + &virtual_mem, + &p.page_fault_count, + &priority, + &hours, + &p.user_time + ); if (c < 7) break; if (fgets(p.command, sizeof(p.command) , fd) == NULL) break; lf = strchr(p.command, '\n'); @@ -186,18 +194,3 @@ void add_proc_totals(PROCINFO& pi, vector& piv, int pid, char* graphic void procinfo_app(PROCINFO& pi, vector& piv, char* graphics_exec_file) { add_proc_totals(pi, piv, pi.id, graphics_exec_file, 0, 0); } - -void procinfo_other(PROCINFO& pi, vector& piv) { - unsigned int i; - - memset(&pi, 0, sizeof(pi)); - for (i=0; i