Commit Graph

1412 Commits

Author SHA1 Message Date
Charlie Fenton f5114ac1c5 Mac: Add 64-bit Intel support to Client and libraries.
svn path=/trunk/boinc/; revision=14225
2007-11-16 13:27:35 +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
David Anderson ee1621c566 - user web: more of the above.
Also, try to make it PHP 4 compatible

svn path=/trunk/boinc/; revision=13982
2007-10-29 04:02:41 +00:00
Charlie Fenton 06012437a6 Mac: Fix compiler warnings
svn path=/trunk/boinc/; revision=13958
2007-10-25 09:34:16 +00:00
Rom Walton 23609b858b - DIAG: Remove references to diagnostics_set_thread_name().
api/
        boinc_api.C
        windows_opengl.C
    lib/
        diagnostics.h
        diagnostics_win.C

svn path=/trunk/boinc/; revision=13956
2007-10-24 23:49:52 +00:00
David Anderson 7c20a8c5cf - client: add <max_stdout_file_size> and <max_stderr_file_size>
cc_config.xml options to change log file size limit
    from the default of 2 MB

svn path=/trunk/boinc/; revision=13955
2007-10-24 22:48:47 +00:00
David Anderson 5e5a063ef5 - GUI RPC: fix format of <auth2> request
- GUI RPC: don't enable network on bad request

svn path=/trunk/boinc/; revision=13933
2007-10-22 23:41:12 +00:00
David Anderson b079d40cb9 - API, Unix: call getrusage() from the timer thread,
not the worker signal handler.
    There's no reason to call it from the signal handler -
    it returns the CPU for the entire process, not the calling thread.
    And it may be asynch-signal-handler-unsafe.
- API: comment out checks for bad CPU times.
    I don't think this is needed now, and in some cases it's wrong
    (multi-threaded apps can accumulate CPU faster than real time)
- API, Unix: in boinc_calling_thread_cpu_time(), don't retry getrusage().
- Bossa: switch to better class structure (suggested by Nicolas Alvarez).
    Haven't switched to mysqli yet, but will later.
    Also various other Bossa fixes

svn path=/trunk/boinc/; revision=13855
2007-10-16 23:02:13 +00:00
David Anderson 028544e184 - API: get rid of getrusage_mutex to synchronize calls to getrusage()
and access to worker_thread_ru.
    This was being used in the worker signal handler,
    which is bad because pthread_mutex_lock() can allocate memory.
    I don't think this matters; at worst we might get
    CPU times off by < 1 sec.

svn path=/trunk/boinc/; revision=13844
2007-10-12 19:28:30 +00:00
David Anderson fde3a60e13 - client/lib: compile fixes for OpenBSD
svn path=/trunk/boinc/; revision=13821
2007-10-10 15:57:59 +00:00
Frank Thomas fbcfeaf456 - Removed the svn:executable property from files that should not be executable,
like source code and text files. I skipped to check most files in html/
  and mac_*/ though.
- Added svn:executable to tools/watch_tcp because it has a shebang.


svn path=/trunk/boinc/; revision=13819
2007-10-10 09:25:40 +00:00
David Anderson 383b21dd5a - update_versions now generates <api_version> for all app versions
- user web: don't XML-escape team names in DB
- deleted obsolete files
- calloc() return check, fixes #277

svn path=/trunk/boinc/; revision=13817
2007-10-09 22:58:49 +00:00
Rom Walton 38d4aecc0b Delete outdated .cvsignore files
svn path=/trunk/boinc/; revision=13814
2007-10-09 18:03:21 +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
Charlie Fenton 3158d103ab client/manager/API: Finish & fix bugs in code cleanup to disentangle sandbox code from lib/.
svn path=/trunk/boinc/; revision=13798
2007-10-09 00:34:38 +00:00
David Anderson d302a5e107 - client/manager/API: code cleanup to disentangle sandbox code from lib/.
- move client sandbox-specific code to a new file, sandbox.C
    - remove g_use_sandbox from util.C; move to MainDocument.cpp (manager)
        and sandbox.C (client)
    - don't declare check_security() in util.h; it's not in util.C
    - don't call remove_project_owned_file_or_dir() in
        boinc_delete_file_aux() or boinc_rmdir();
        rather, at the points in the client that delete
        dirs that are usually owned by boinc_projects,
        call remove_project_owned_file_or_dir() first,
        then clean_out_dir().
    - rename boinc_exec() to switcher_exec() and move it to sandbox.C

Note: this change was sparked by needing to remove a call to getgrnam()
from boinclib, to avoid requiring the same version of glibc
on both compile and target hosts

svn path=/trunk/boinc/; revision=13784
2007-10-05 16:47:07 +00:00
David Anderson 066f01dc26 - Terminology in user web and client:
"task" instead of "result";
    "computer" instead of "host";
    "scheduler request" instead of "scheduler RPC"
    "access to Internet" instead of "access to reference web site"

svn path=/trunk/boinc/; revision=13774
2007-10-04 17:30:28 +00:00
Frank Thomas b46bda9d6f Added clean-local target to lib/Makefile.am to remove lib/boinccmd and
lib/boinccmd.unmodified on "make clean" and also added client/boinc.unmodified
and clientgui/boincmgr.unmodified to the respective clean-local targets.


svn path=/trunk/boinc/; revision=13772
2007-10-03 23:23:02 +00:00
Eric J. Korpela e57c9d233e - MacOS: Changes to allow command line builds on MacOS 10.3
- New preprocessor symbol DARWIN_10_3 is defined in config.h when 
      configure script detects MacOS 10.3
    - Added explicit include of config.h in some files in lib/mac


svn path=/trunk/boinc/; revision=13771
2007-10-03 21:31:20 +00:00
David Anderson 8a423e83cb - client: fix bug where failure to get project list would result
in an empty project list file.
 - client: if failed to get project list file, retry in an hour, not immediately


svn path=/trunk/boinc/; revision=13753
2007-10-02 18:43:12 +00:00
David Anderson ab09ba8834 - graphics API: redo the code for backwards compatibility with V5 so that
at most one regular and one full-screen graphics window can be open,
    and a "hide" message kills the full-screen window if one exists,
    else a regular window.
    Keep track of the PIDs separately for regular and full-screen.
    Also, don't send a "hide" ack if we don't do graphics.

svn path=/trunk/boinc/; revision=13697
2007-09-28 04:23:34 +00:00
David Anderson 7bdacec895 - API: debug the code for handling V5 graphics messages
in a V6 app (and launching/killing the graphics app)
	- API: start timer thread even if in standalone mode
		(needed to get timer callbacks for V6 graphics)
	- API: remove BOINCSetForegroundWindow stuff
	- API: call DestroyWindow instead of boinc_exit() in WM_CLOSE.
		boinc_exit() is the wrong thing to call - e.g. it tries to delete
		the lock file, resulting in a 5-sec delay on exit

svn path=/trunk/boinc/; revision=13679
2007-09-27 03:34:27 +00:00
Charlie Fenton e751a514a5 Mac/Linux/UNIX: V6 client uses shmget() to run V5 apps, V6 apps uses shmget() to run with V5 clients
svn path=/trunk/boinc/; revision=13668
2007-09-26 10:16:42 +00:00
David Anderson f1f5930579 - client: removed everything related to screensaver
(deciding which app to use, implementing blanking interval, etc.)
    This logic is all now in the screensaver itself.
- GUI RPC: removed get/set screensaver mode RPCs
- API: added a "backwards_compatible_graphics" flag to BOINC_OPTIONS.
    V6 apps should set this.
    If set, the runtime library checks for graphics messages
    from the client, and launches/kills the graphics app (if any).
    The app will then work graphically with pre-V6 clients.
- removed some old files

svn path=/trunk/boinc/; revision=13651
2007-09-25 16:04:45 +00:00
David Anderson 513fa98c55 - user web: add links to BOINC-wide team sites
and www.boincteams.com from Team management page
- client: change error strings from, e.g.,
    "system chown" to "chown() failed"

svn path=/trunk/boinc/; revision=13644
2007-09-24 20:13:38 +00:00
Charlie Fenton afa0babf5b Fix a typo
svn path=/trunk/boinc/; revision=13605
2007-09-20 11:21:35 +00:00
Charlie Fenton 8066ab1f97 SCR: Impelement new RPC::get_screensaver_tasks()
svn path=/trunk/boinc/; revision=13587
2007-09-14 01:45:00 +00:00
David Anderson 9253114f0c - Manager: clean up text in system tray balloon
- Client: use dd-MMM-yyyy format for dates;
		mm/dd/yyyy is ambiguous and mixed-endian

svn path=/trunk/boinc/; revision=13582
2007-09-12 18:52:46 +00:00
David Anderson c0c6cf779d - file upload handler:
in get_file_size() RPC, check if volume has < 1MB available space
    and if so return transient error.
    This prevents client from trying upload,
    which apparently sends entire file even if
    handler fails at the beginning
- API, Win: remove use of GetTickCount(); use dtime() instead
- use new BOINC logo in sample project home page

svn path=/trunk/boinc/; revision=13574
2007-09-12 08:25:22 +00:00
David Anderson 0505c15ec8 - boinc_cmd: improve output of --help
- scheduler: remove giant log output when use <workload_sim>
- db_purge: fix crash if nothing logged

svn path=/trunk/boinc/; revision=13556
2007-09-08 21:34:20 +00:00
Charlie Fenton 902b5a4597 Fx a compiler warning
svn path=/trunk/boinc/; revision=13545
2007-09-05 11:12:32 +00:00
Charlie Fenton a5619dffcc make shared memory using memory mapped files more robust
svn path=/trunk/boinc/; revision=13536
2007-09-04 10:33:50 +00:00
Charlie Fenton 9c939288df make shared memory using memory mapped files more robust
svn path=/trunk/boinc/; revision=13534
2007-09-04 07:41:25 +00:00
David Anderson dabba949a4 - client: when a job finishes, read last (not first) 63KB of stderr
- client: parse <cpid_time> in scheduler reply;
        add cpid_time field to PROJECT.
        This defaults to the user_create_time.
        In deciding which CPID to send in a scheduler request,
        use the one with oldest cpid_time (not user_create_time).
        This is the client half of fixing a bug that causes
        CPID to flip/flop between to values in a certain case.

svn path=/trunk/boinc/; revision=13531
2007-09-03 23:00:22 +00:00
Charlie Fenton c27299baa6 improvements to shared memory using memory mapped files
svn path=/trunk/boinc/; revision=13524
2007-09-03 05:14:57 +00:00
Charlie Fenton 4b0653b8f6 Implement file-mapped shared memory with SANDBOX security
svn path=/trunk/boinc/; revision=13472
2007-08-28 06:12:48 +00:00
Charlie Fenton ca051eb314 Implement file-mapped shared memory
svn path=/trunk/boinc/; revision=13471
2007-08-28 00:28:11 +00:00
Charlie Fenton c700873296 Implement using memory-mapped files for shared memory
svn path=/trunk/boinc/; revision=13468
2007-08-27 11:34:32 +00:00
Charlie Fenton 5cd7cdbc04 Begin implementation of using memory-mapped files for shared memory
svn path=/trunk/boinc/; revision=13467
2007-08-27 09:17:38 +00:00
Charlie Fenton 5a1dfe2285 Preferences: fix #363: per-day time preferences work incorrectly; MGR: use cached preferences if connected to pre-5.10.18 client..
svn path=/trunk/boinc/; revision=13454
2007-08-25 09:53:33 +00:00
David Anderson 9debbe3b4f screensaver fix
svn path=/trunk/boinc/; revision=13395
2007-08-16 23:52:40 +00:00
Rom Walton 05cee3eb0d - SCR: Fix the new screensaver so that it doesn't start a new
graphics window every second.
    - LIB: CreateProcess always returns a 1 on success, which means
           the last part of the run_program function was never being
           executed.
    
    clientscr/
        screensaver_win.cpp
    lib/
        util.C

svn path=/trunk/boinc/; revision=13323
2007-08-15 15:25:52 +00:00
Charlie Fenton 82f1708512 Create boinc_exec() function for invoking switcher and setprojectgrp utilities instead of calling system()
svn path=/trunk/boinc/; revision=13311
2007-08-14 10:08:36 +00:00
David Anderson c148085143 - Manager: change "Retry communications" to "Do network communication"
- client: use gethostname() to get host name on Linux

svn path=/trunk/boinc/; revision=13295
2007-08-11 03:34:38 +00:00
David Anderson 2cd158a358 - client: timezone reflects daylight savings time (Win)
from David Barnard; fixes #334
- GUI RPC: add <success/> replies for ops that don't return anything
- GUI RPC: check args for project_attach
- GUI RPC: return error (not blank) if no prefs override file
- add error string for ERR_TOO_MANY_EXITS

svn path=/trunk/boinc/; revision=13293
2007-08-10 16:02:09 +00:00
Rom Walton 00c88b6c8a - DIAG: Disable symbol server technology for applications where a symbol
server isn't specified.
    - MGR: Provide some additional text to the begining of the attach to project
        wizard when the client is attached to an account manager. Warn the user
        that the AMS will not know about the project or its stats.
    - MGR: Fix dialog titles for the Simple GUI dialogs.
    - MGR: Eliminate bogus error messages when using the default skin.
    - MGR: Introduce new logo into the manager
    - MGR: Introduce the notion of the syncronize button in the Simple GUI.
        NOTE: This button will replace the 'attach to project' button when
        the manager detects that the client is attached to an account manager.
    
    client/win/res/
        icon.ico
    clientgui/
        DlgAbout.cpp
        sg_DlgMessages.cpp
        sg_DlgPreferences.cpp
        SkinManager.cpp, .h
        WelcomePage.cpp
    clientgui/res/
        boinc.xpm
        boinc_logo.xpm
        BOINCGUIApp.ico
    clientgui/res/templates/
        boinc.ico
        boinc16.bmp
        boinc32.bmp
        boinc48.bmp
        boinc128.bmp
        boinc256.bmp
        boinc_logo.gif
    lib/
        stackwalker_win.cpp

svn path=/trunk/boinc/; revision=13263
2007-08-02 20:03:21 +00:00
Charlie Fenton 55e7a41874 GUI RPC: Add get_global_prefs_working_struct(); rename get_global_prefs_network() to get_global_prefs_file()
svn path=/trunk/boinc/; revision=13262
2007-08-02 08:12:03 +00:00
Charlie Fenton cf14e1ca00 MGR: Populate Simple and Advanced Preference dialogs with current values of preferences (including any overrides), not with defaults or old (possibly stale) values.
svn path=/trunk/boinc/; revision=13258
2007-08-02 02:15:43 +00:00
David Anderson b4241eadd6 - GUI RPC: added get_global_prefs_network()
and get_global_prefs_working()

svn path=/trunk/boinc/; revision=13257
2007-08-01 20:26:08 +00:00
David Anderson 71fc375d1b - feeder: created shared mem seg with 0666 rather than 0660.
In principle 0660 should work (assuming apache belongs to admin group)
    but apparently on some Linux systems it doesn't,
    and the feeder gets "can't attach to shared mem" errors.
- scheduler: print uid/gid info if can't attach to shared mem
- user web: fix bug in team founder transfer form

svn path=/trunk/boinc/; revision=13255
2007-08-01 15:35:08 +00:00