- Changes to get the client to build on IRIX:

don't use the variable name "sgi";
    include <xxx.h> instead of <cxxx>; the latter just adds
    overloaded functions that we avoid.

svn path=/trunk/boinc/; revision=17954
This commit is contained in:
David Anderson 2009-04-30 21:48:20 +00:00
parent 7a921fd252
commit fba2e5ee3d
11 changed files with 69 additions and 37 deletions

View File

@ -21,11 +21,11 @@
#include "config.h"
#endif
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <csetjmp>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <setjmp.h>
#ifdef _WIN32
@ -57,10 +57,6 @@ extern "C" {
#undef HAVE_STDLIB_H /* Avoid compiler warning (redefined in jconfig,h) */
#endif
using std::FILE;
using std::longjmp;
using std::jmp_buf;
#ifndef SANS_JPEGLIB
extern "C"{
#include <jpeglib.h>

View File

@ -23,14 +23,11 @@
#include "config.h"
#endif
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <csetjmp>
using std::size_t;
using std::FILE;
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <setjmp.h>
#ifdef _WIN32
#ifdef __cplusplus

View File

@ -4221,3 +4221,23 @@ David 28 Apr 2009
db/
db_base.cpp
David 30 Apr 2009
- Changes to get the client to build on IRIX:
don't use the variable name "sgi";
include <xxx.h> instead of <cxxx>; the latter just adds
overloaded functions that we avoid.
api/
gutil.cpp
gutil_text.cpp
client/
boinc_cmd.cpp
hostinfo_unix.cpp
whetstone.cpp
html/inc/
stats_sites.inc
lib/
diagnostics.h
gui_rpc_client_ops.cpp
str_util.cpp

View File

@ -226,9 +226,9 @@ int main(int argc, char** argv) {
retval = rpc.get_project_status(ps);
if (!retval) ps.print();
} else if (!strcmp(cmd, "--get_simple_gui_info")) {
SIMPLE_GUI_INFO sgi;
retval = rpc.get_simple_gui_info(sgi);
if (!retval) sgi.print();
SIMPLE_GUI_INFO info;
retval = rpc.get_simple_gui_info(info);
if (!retval) info.print();
} else if (!strcmp(cmd, "--get_disk_usage")) {
DISK_USAGE du;
retval = rpc.get_disk_usage(du);

View File

@ -705,14 +705,24 @@ int HOST_INFO::get_host_info() {
size_t len;
// Get machine
#ifdef IRIX
mib[0] = 0;
mib[1] = 1;
#else
mib[0] = CTL_HW;
mib[1] = HW_MACHINE;
#endif
len = sizeof(p_vendor);
sysctl(mib, 2, &p_vendor, &len, NULL, 0);
// Get model
#ifdef IRIX
mib[0] = 0;
mib[1] = 1;
#else
mib[0] = CTL_HW;
mib[1] = HW_MODEL;
#endif
len = sizeof(p_model);
sysctl(mib, 2, &p_model, &len, NULL, 0);
#elif defined(__osf__)

View File

@ -26,11 +26,11 @@
#ifndef _WIN32
#include "config.h"
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <ctime>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <time.h>
#endif
#include "util.h"

View File

@ -1,6 +1,14 @@
<?
$project_news = array(
array("April 29, 2009",
"An <a href=http://www.news.cornell.edu/stories/March09/cordes.palfa.einstein.html>article in Cornell's Chronicle Online</a> discusses
a new application in <a href=http://einstein.phys.uwm.edu/>Einstein@home</a>
that searches for pulsars in binary star systems."
),
array("April 29, 2009",
"Francois Grey discusses Citizen Cyberscience (and BOINC) in <a href=http://cerncourier.com/cws/article/cern/38718>The CERN Courier</a>."
),
array("April 21, 2009",
"A <a href=http://event.twgrid.org/isgc2009/asiaathome/wiki/index.php/Main_Page>workshop on volunteer computing with BOINC</a>
was held in Taipei on 16-17 April.

View File

@ -114,9 +114,8 @@ $team_stats_sites = array(
"Boinc.be team stats",
""
),
array("http://www.seti-teamartbell.com/",
"Team Art Bell", ""
),
array("http://www.seti-teamartbell.com/", "Team Art Bell", ""),
array("http://www.crunchers-freiburg.de/", "crunchers@freiburg", "(German)"),
);
// The following sites generate signature images based on user CPID

View File

@ -187,7 +187,9 @@ extern void set_signal_exit_code(int);
#else // _DEBUG
#define BOINCASSERT(expr)
#ifndef IRIX
#define BOINCTRACE(...)
#endif
#endif // _DEBUG

View File

@ -1210,14 +1210,14 @@ int RPC_CLIENT::get_file_transfers(FILE_TRANSFERS& t) {
return retval;
}
int RPC_CLIENT::get_simple_gui_info(SIMPLE_GUI_INFO& sgi) {
int RPC_CLIENT::get_simple_gui_info(SIMPLE_GUI_INFO& info) {
int retval;
SET_LOCALE sl;
char buf[256];
RPC rpc(this);
sgi.projects.clear();
sgi.results.clear();
info.projects.clear();
info.results.clear();
retval = rpc.do_rpc("<get_simple_gui_info/>\n");
if (!retval) {
@ -1226,13 +1226,13 @@ int RPC_CLIENT::get_simple_gui_info(SIMPLE_GUI_INFO& sgi) {
else if (match_tag(buf, "<project>")) {
PROJECT* project = new PROJECT();
project->parse(rpc.fin);
sgi.projects.push_back(project);
info.projects.push_back(project);
continue;
}
else if (match_tag(buf, "<result>")) {
RESULT* result = new RESULT();
result->parse(rpc.fin);
sgi.results.push_back(result);
info.results.push_back(result);
continue;
}
}

View File

@ -25,10 +25,10 @@
#ifndef _WIN32
#include "config.h"
#include <string>
#include <cmath>
#include <cstring>
#include <cstdlib>
#include <cctype>
#include <math.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#ifdef HAVE_ALLOCA_H
#include "alloca.h"
#endif