Commit Graph

62 Commits

Author SHA1 Message Date
David Anderson 5b740acee0 - client/manager: move the conditional define of MAXPATHLEN
from boinc_win.h to filesys.h,
	so that the client will hopefully build on Hurd,
	which doesn't define MAXPATHLEN.
2013-03-01 16:17:19 +01:00
David Anderson 76282d0a20 - Win compile fixes.
For now, include psapi.lib in various project properties.
		Try to figure out a different way.

svn path=/trunk/boinc/; revision=26149
2012-10-11 19:22:34 +00:00
David Anderson f022b566de - Win compile fixes
svn path=/trunk/boinc/; revision=25665
2012-05-09 20:06:54 +00:00
David Anderson 77e3c4d06c - API: compile fixes for MinGW. From Oliver Bock.
svn path=/trunk/boinc/; revision=24474
2011-10-24 23:38:19 +00:00
Eric J. Korpela bb4d2ec479 Fixes for MinGW build with GCC 4.5 and 3.X
svn path=/trunk/boinc/; revision=23631
2011-06-02 16:25:30 +00:00
David Anderson 4a4ee2a013 - API: compile fixes for MinGW. Fixes #955. from Matt Arsenault
svn path=/trunk/boinc/; revision=23282
2011-03-26 02:19:21 +00:00
Bernd Machenschalk a73bbac1dc lib:
- fixed whitespace error in Makefile.mingw                                                                                                                                                  
        - build and install svn_version.h in Makefile.mingw                                                                                                                                         
        - fixed boinc_win.h for MinGW gcc-4                                                                                                                                                         
        - not sure why client_msgs.h was ever included in procinfo_unix.cpp,                                                                                                                      
          but in current code caused a nasty trail of includes breaking the                                                                                                                         
          Linux build, so removed it

svn path=/trunk/boinc/; revision=22561
2010-10-20 11:28:02 +00:00
David Anderson 50724b0ed9 - API: compile fixes for MinGW
svn path=/trunk/boinc/; revision=21522
2010-05-14 16:22:57 +00:00
Rom Walton 9cb3e6ffc7 - client & lib: bring header inclusion up-to-date for the CC to begin
hunting down a memory leak.
        
    client/
        <Various Files>
    lib/
        <Various Files>

svn path=/trunk/boinc/; revision=21457
2010-05-11 19:10:29 +00:00
Rom Walton 9961002b4c - Define HAVE_ALLOCA in boinc_win.h so that any component using
strcasestr in str_util.cpp uses stack allocations instead of
      more expensive heap allocations.
    - Move remaining HAVE_* defines from project files to boinc_win.h

    lib/
        boinc_win.h
    win_build/
        *.vcproc

svn path=/trunk/boinc/; revision=20928
2010-03-16 18:53:55 +00:00
Rom Walton a5bbf07ccc - client: Add a function to the client software to be able to detect
the number of bytes sent and received across all non-loopback
        interfaces.
        
    client/
        hostinfo_win.cpp

svn path=/trunk/boinc/; revision=20704
2010-02-23 05:13:54 +00:00
Bernd Machenschalk cdcbfc29fd api: updates for building Win32 libs & API with MinGW gcc
added Makefile.mingw used for Einstein@home in lib/ as an
_alternative_ to api/Makefile.mingw

svn path=/trunk/boinc/; revision=19583
2009-11-16 13:13:42 +00:00
Rom Walton 329303b323 - Remove need for boinc.dll from the client.
client/
        hostinfo_win.cpp
        main.cpp
    clientctrl/
        boincsvcctrl.cpp
    clientgui/
        BOINCClientManager.cpp
        BOINCGUIApp.cpp
        BOINCGUIApp.h
        stdwx.h
    clienttray/
        tray_win.cpp
        tray_win.h
    lib/
        boinc_win.h
        daemonmgt.cpp (Deleted)
        daemonmgt.h (Added)
        daemonmgt_win.cpp (Added)
        idlemon.h (Added)
        idlemon_win.cpp (Added)
        idlemon_win.h (Deleted)
    win_build/
        boinc.sln
        boinc_dll.vcproj
        boincmgr.vcproj
        boincsvcctrl.vcproj
        boinctray.vcproj
        libboinc.vcproj

svn path=/trunk/boinc/; revision=19576
2009-11-13 21:23:15 +00:00
Rom Walton c73ea50c1b - On Windows treat all SEH exceptions as C++ style exceptions.
NOTE: I'll need to do a little more research and adjust the
          diagnostics stuff later.  I believe that the diagnostics
          framework will now always report an unhandled C++ exception
          for things like an Access Violation.
    - client: On Windows, recover from an Access Violation if/when 
        the GPU functions access violate.
        
    lib/
        boinc_in.h
        coproc.cpp
    win_build/
        *.vcproj

svn path=/trunk/boinc/; revision=19541
2009-11-11 20:33:12 +00:00
Bernd Machenschalk 3f38b286d3 lib: some changes to help building the WIN32 library with MinGW/gcc
enable by defining MINGW_WIN32 macro, nothing should change if
this is not set

svn path=/trunk/boinc/; revision=19280
2009-10-07 19:17:52 +00:00
David Anderson 563a55f37e - client/libs/samples: remove "#define read _read" etc. from boinc_win.h
These cause problems when "read" is a member name, etc.
		Do these #defines, conditioned on _MSC_VER,
		in the files that actually need them.
	- don't include boinc_win.h from parse.h.
		principle of minimal inclusion

svn path=/trunk/boinc/; revision=18902
2009-08-22 17:00:19 +00:00
Rom Walton fec945221e - client: Initial swipe at automatic proxy server configuration
detection on Windows.  Fixes #35
        
    client/
        cs_cmdline.cpp
        http_curl.cpp
        http_curl.h
    lib/
        boinc_win.h
        proxy_info.cpp
        proxy_info.h
        util.cpp
        win_util.h

svn path=/trunk/boinc/; revision=18772
2009-07-29 23:50:00 +00:00
Rom Walton 28c72cab79 - WIN: First pass through the code to fix compliation errors when
building in a Unicode enabled environment.
        
        NOTE: For files that are shared between the core client and
          the manager, it was simpliar to just call the ANSI versions
          of the specific Windows API functions then to monkey with
          all of the string handling code and convert between ANSI
          and UCS-2 strings.  CreateFile becomes CreateFileA instead
          of the default of CreateFileW.
          
        Down to 11 compile time errors from over 100.

    clientgui/
        BOINCBaseFrame.cpp
        BOINCTaskBar.cpp
        browser.cpp
        browser.h
        sg_StatImageLoader.cpp
    lib/
        boinc_win.h
        diagnostics_win.cpp
        filesys.cpp
        gui_rpc_client_ops.cpp
        proc_control.cpp
        stackwalker_imports.h
        stackwalker_win.cpp
        str_util.cpp
        util.cpp
        win_util.cpp, .h

svn path=/trunk/boinc/; revision=17859
2009-04-23 03:40:49 +00:00
Eric J. Korpela 8f3abcc835 - Added checks for net/*.h, arpa/*.h, netinet/*.h and code to figure out
which of those files to include
    - Modified MAC address check to work on some non-Linux unixes.
      (mac_address.cpp)
    - Added suggested change to "already attached to project" checking.
      (ProjectInfoPage.cpp)
    - changed includes of standard c header files to their c++ equivalents
      (i.e. replaced <stdio.h> with <cstdio>) for namespace protection.
    - replaced "using namespace std;" with more explicit "using std::function" in
      several files.
    - Fixed bug in checking whether the os is OS/2 and added conditional OS_OS2
      to the build environment. (boinc_platform.m4,configure.ac)
    - Changed build environment to not use -nostandardlibs unless we are using
      G++ and static linkage is specified. (configure.ac)
    - Added makefiles and package building files for solaris CSW package manager.
    - Fixed bug with attempting to find login name using logname. (configure.ac)
    - Added ifdef HAVE_* protection around some include files commonly found in
      sys.
    - Added support for unified binary for x86_64/i686-pc-solaris.
      (cs_platforms.cpp)
    - generate_host_cpid() now uses MAC address on non-linux unix.
      (hostinfo_network.cpp)
    - Macro BOINC_SET_COMPILE_FLAGS now doesn't check gcc only flags on non-gcc
      compilers. (boinc_set_compile_flags.m4)
    - Library compiles no longer depend upon the library extension or require
      the library to be prefixed with lib.
    - More fixes for fcgi builds.
    - Added declaration of "struct ether_addr" and ether_ntoa().  Have not yet
      implemented ether_ntoa() for machines that don't have it, or where it is
      buggy.  (unix_util.h)
    - Added FCGI::perror() which calls FCGI_perror(). (boinc_fcgi.{h,cpp})
    - Fixed library Makefiles so that all required headers get installed.


svn path=/trunk/boinc/; revision=17388
2009-02-26 00:23:23 +00:00
David Anderson 4f66bb4c95 - added copyright and license info to .C, .cpp, .h files
- scheduler: fix bug in adaptive replication:
    if send an unreplicated job to untrusted host,
    set both wu.target_nresults and wu.min_quorum to app.target_nresults.

svn path=/trunk/boinc/; revision=15762
2008-08-06 18:36:30 +00:00
Rom Walton c2028c37fd - CLI: Adjust the shared memory ACLs so that everybody can read/write to
them, the default ACL limits read/write access to SYSTEM and boinc_master
        when run in secure mode.
        
    lib/
        boinc_win.h
        shmem.C

svn path=/trunk/boinc/; revision=14903
2008-03-12 18:23:48 +00:00
Rom Walton 75e334811a - client: prevent information disclosure by creating a new environment
block for applications launched using the 'boinc_project' account.
        
        Windows contains environment variables that describe username,
        domain name, profile directory and even logon server.
        
    - client: correctly parse domain name information from the
        client_auth.xml file when a different account is used for
        'boinc_master'.
    - SCR/MGR: Add two API's to adjust the ACLs on the current users
        desktop and windowstation so that graphics applications can
        properly create controls and dialogs for applications
        launched using 'boinc_project'.
        
    client/
        app_start.C
    lib/
        boinc_win.h
        util.C, .h
    lib/
        win_util.C, .h
    win_build/
        boinc_cli_curl.vcproj

svn path=/trunk/boinc/; revision=14748
2008-02-15 15:52:16 +00:00
David Anderson 41bd38148d Fixes missing routines and defines for MINGW32 application builds.
Also fixes some type warnings.


svn path=/trunk/boinc/; revision=14655
2008-01-31 18:34:51 +00:00
Rom Walton 820c4c40f2 - Fix build break introduced by new libcurl headers on Windows.
lib/
        boinc_win.h

svn path=/trunk/boinc/; revision=14177
2007-11-13 17:25:23 +00:00
Frank Thomas 3bfc78b511 Updated the postal address of the Free Software Foundation in all license headers. See http://lists.ssl.berkeley.edu/pipermail/boinc_dev/2007-October/008939.html for reference.
svn path=/trunk/boinc/; revision=13804
2007-10-09 11:35:47 +00:00
Rom Walton f05cba02bf *** empty log message ***
svn path=/trunk/boinc/; revision=12297
2007-04-03 13:14:30 +00:00
Rom Walton 8c0bdc5bda *** empty log message ***
svn path=/trunk/boinc/; revision=12272
2007-03-27 17:42:45 +00:00
Rom Walton a95deb409d *** empty log message ***
svn path=/trunk/boinc/; revision=12253
2007-03-20 01:42:36 +00:00
Rom Walton 1acd03af9c *** empty log message ***
svn path=/trunk/boinc/; revision=10755
2006-07-26 06:42:56 +00:00
Rom Walton 9d5ee849a5 *** empty log message ***
svn path=/trunk/boinc/; revision=10288
2006-06-09 19:57:36 +00:00
Rom Walton d25690dba5 *** empty log message ***
svn path=/trunk/boinc/; revision=10265
2006-06-07 08:56:55 +00:00
Rom Walton eb66934f8a *** empty log message ***
svn path=/trunk/boinc/; revision=10153
2006-05-17 07:44:54 +00:00
Eric J. Korpela 45cadbcfe2 - Added check check for alloca.h and memory.h to configure.ac
- Added check for alloca and _alloca to configure.ac
    - Structural change to boinc_worker_timer() to get rid of
      essentially empty if clause.
    - (WIN32) set_worker_timer() now checks that interrupt_count is incrementing
      before assuming success.
    - Added MINGW32 fix for missing alloca() define to gutil.C
    - Added MINGW32/Dev-C++ fix for missing fpreset() prototypes to
      boinc_win.h

svn path=/trunk/boinc/; revision=10130
2006-05-15 17:14:15 +00:00
Rom Walton 8664f385ff *** empty log message ***
svn path=/trunk/boinc/; revision=10124
2006-05-11 23:19:04 +00:00
Rom Walton f74d8bd38a *** empty log message ***
svn path=/trunk/boinc/; revision=10072
2006-05-01 21:36:38 +00:00
Rom Walton 926900cedb *** empty log message ***
svn path=/trunk/boinc/; revision=9950
2006-04-18 04:26:56 +00:00
Rom Walton 33e32ecbd1 *** empty log message ***
svn path=/trunk/boinc/; revision=9888
2006-04-14 03:09:24 +00:00
Eric J. Korpela 9dfdd8de4d *** empty log message ***
svn path=/trunk/boinc/; revision=9877
2006-04-13 17:38:20 +00:00
Rom Walton bffa2065cd *** empty log message ***
svn path=/trunk/boinc/; revision=9867
2006-04-13 03:53:16 +00:00
Eric J. Korpela 92ee5275f9 Changed some function defines to inlines (i.e. formerly "#define read _read"
becomes "static inline read(...) {return read(...);})  These defines were
breaking some classes that had methods named read().

svn path=/trunk/boinc/; revision=9859
2006-04-12 22:59:20 +00:00
Eric J. Korpela 6e30e66599 Added #ifdefs and explicit inclusion of "boinc_win.h" to files to help those
trying to compile under windows with alternate compilers.

svn path=/trunk/boinc/; revision=9077
2005-12-16 03:35:15 +00:00
Eric J. Korpela c166c6beab Minor mods to allow BOINC apps to be compiled under Windows using Dev-C++
with MinGW

svn path=/trunk/boinc/; revision=9013
2005-12-01 00:25:21 +00:00
Rom Walton b2011b3e5f *** empty log message ***
svn path=/trunk/boinc/; revision=7306
2005-08-13 08:11:17 +00:00
Rom Walton b36aafd00c *** empty log message ***
svn path=/trunk/boinc/; revision=6588
2005-07-09 05:23:40 +00:00
Rom Walton d63e2eb038 *** empty log message ***
svn path=/trunk/boinc/; revision=6568
2005-07-07 22:26:49 +00:00
Rom Walton 91e5bdf46f *** empty log message ***
svn path=/trunk/boinc/; revision=6534
2005-07-06 09:14:43 +00:00
David Anderson 55d3b1c3b3 *** empty log message ***
svn path=/trunk/boinc/; revision=5964
2005-04-28 23:30:03 +00:00
David Anderson 534ead4118 *** empty log message ***
svn path=/trunk/boinc/; revision=5846
2005-04-13 18:38:55 +00:00
Rom Walton 867a2fc1fe *** empty log message ***
svn path=/trunk/boinc/; revision=5315
2005-02-04 10:14:03 +00:00
David Anderson 435f8edd47 *** empty log message ***
svn path=/trunk/boinc/; revision=5161
2005-01-20 23:22:22 +00:00