Changes between Version 1 and Version 2 of AppDev


Ignore:
Timestamp:
May 4, 2007, 1:26:11 PM (17 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AppDev

    v1 v2  
    22
    33Cross-platform functions  Most POSIX calls are supported on Unix and Windows. For areas that are different (e.g. scanning directories) BOINC supplies some generic functions with implementations for all platforms. Similar code may be available from other open-source projects.
    4  LIST THEM
     4
     5 double dtime():: return Unix time with fractional seconds
     6 double dday():: return Unix time at start of this day
     7 void boinc_sleep(double):: sleep for given period
     8 read_file_string(const char*, string):: read file into string
     9
     10etc.  See lib/util.h and lib/filesys.h for others.
    511
    612== Windows-specific issues ==
     
    1016 * Visual Studio: change 'Compile As' to 'Compile as C++ Code (/TP)' in C/C++ 'Compile As' project properties.
    1117
    12 == Cross-language issues ==
     18== Unix-specific issues ==
    1319
    14 The BOINC API is implemented in C++. Information about using it from C and FORTRAN is [Fortran here].
     20Several BOINC projects have experienced application crashes that turned out to be stack overflow.
     21This can be fixed by calling:
     22{{{
     23rlimit rlp;
     24 
     25getrlimit(RLIMIT_STACK, &rlp);
     26rlp.rlim_cur = rlp.rlim_max;
     27setrlimit(RLIMIT_STACK, &rlp);
     28}}}
     29before initializing BOINC.
     30
     31== C/FORTRAN ==
     32
     33The BOINC API is implemented in C++. Information about using it from C and FORTRAN is [FortranApps here].
    1534
    1635== Compression ==