Commit Graph

152 Commits

Author SHA1 Message Date
Charlie Fenton 8743712223 Fix is_file() and is_dir() to compile properly on Windows.
svn path=/trunk/boinc/; revision=15064
2008-04-16 09:04:12 +00:00
Charlie Fenton 8a3f4dc1e5 Fix is_file() to use S_ISREG() macro; fix is_dir() to use S_ISDIR() macro
svn path=/trunk/boinc/; revision=15063
2008-04-16 02:30:11 +00:00
Charlie Fenton 4cfdf581f8 Fix is_symlink() to use S_ISLNK() macro
svn path=/trunk/boinc/; revision=15044
2008-04-14 09:15:01 +00:00
David Anderson ff70bf259e - client: use symlinks only if project has <use_symlinks/> element.
- API: fixed boinc_resolve_filename() bug: didn't work right for symlinks

svn path=/trunk/boinc/; revision=15043
2008-04-14 04:04:45 +00:00
David Anderson e584774f08 - API: change boinc_resolve_filename() so that it detects symbolic links
and treats them as a special case.
    Also, if the virtual file doesn't exist (as in the standalone case)
    just return zero; otherwise if the app is running standalone
    and checks the return value, it will error out.

    NOTE: apps that check the return value of boinc_resolve_filename()
    won't work on 6.12+ under Unix;
    recompiling with this change will fix the problem.

svn path=/trunk/boinc/; revision=15012
2008-04-03 21:59:05 +00:00
David Anderson 64d7e70ddd - client (Unix): don't follow symbolic links when
computing directory size.
    This will avoid counting the size of executables and input files
    in slot directories.

svn path=/trunk/boinc/; revision=14995
2008-04-01 21:10:03 +00:00
David Anderson 2080d9dcc0 - Library: switch from lstat() back to stat() most places;
this broke some projects' back-end code.
    Make a new function (boinc_file_or_symlink_exists())
    for use by the client when clearing out slot dirs

svn path=/trunk/boinc/; revision=14968
2008-03-27 20:30:19 +00:00
David Anderson 5859b98fb8 - win fixes
svn path=/trunk/boinc/; revision=14947
2008-03-19 18:35:25 +00:00
David Anderson f9186d582b - client: fixes to the above. Need to use lstat() instead of stat()
so that we see the symlink, not what it's pointing to

svn path=/trunk/boinc/; revision=14946
2008-03-19 18:24:42 +00:00
David Anderson cf4e42b4a3 - client: restore proper sense of --check_all_logins
(should this be set by default?)
- web: removed addslashes() when building language translation arrays.
    These caused 's to be displayed as \' everywhere.
    They may serve some purpose, but I can't think of what it is.
- web: changed max profile image dimensions from 800x600 to 640x480.
    The new profile page puts a column to the right
    of the image, so it shouldn't be quite that wide.

svn path=/trunk/boinc/; revision=14562
2008-01-15 22:22:08 +00:00
David Anderson d0241d359c - renamed clean_out_dir() to client_clean_out_dir(),
and put the original clean_out_dir() back in lib/filesys.C

svn path=/trunk/boinc/; revision=14549
2008-01-14 18:32:20 +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
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 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
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 2d74b133a1 - scheduler: move startup checks (stop_sched, shmem) inside FCGI loop.
Hopefully this will make it feasible to run scheduler
    even when project is down.
- lib: fix cygwin build error

svn path=/trunk/boinc/; revision=13172
2007-07-17 20:34:37 +00:00
David Anderson 2ffad3214a another dir_size() fix
svn path=/trunk/boinc/; revision=13120
2007-07-08 04:38:12 +00:00
David Anderson dbd539bc33 fix to dir_size()
svn path=/trunk/boinc/; revision=13119
2007-07-08 04:03:11 +00:00
David Anderson b762522c9e - Client: radically faster (on Win) version of dir_size()
(from John McLeod)

svn path=/trunk/boinc/; revision=13118
2007-07-08 03:30:06 +00:00
David Anderson 7ea662932c - add new stats site
- back end: use boinc_mkdir to get permissions right

html/inc/
    stats_sites.inc
lib/
    filesys.C
sched/
    db_dump.C
    db_purge.C
    feeder.C

svn path=/trunk/boinc/; revision=13033
2007-06-26 21:14:58 +00:00
Charlie Fenton c2c8ba9313 Sandbox: fix build break.
svn path=/trunk/boinc/; revision=12991
2007-06-23 08:42:16 +00:00
David Anderson e1a0c552e2 - compile fixes for Win
client/
		acct_setup.C
		cs_prefs.C
		cs_trickle.C
	lib/
		filesys.C
		str_util.C,h
		util.C,h
	tools/
		updater.C
	win_build/
		sim.vcproj

svn path=/trunk/boinc/; revision=12985
2007-06-22 20:17:08 +00:00
David Anderson d4266226ab - client, Windows: when making calls to get free disk space
(e.g. pGetDiskFreeSpaceEx())
		pass the path of the current directory instead of NULL.
		Otherwise, if we're running as an unprivileted user
		with no access to the root dir,
		the call fails and reports zero free space.

	lib/
		filesys.C

svn path=/trunk/boinc/; revision=12744
2007-05-24 17:04:54 +00:00
David Anderson 2fcd2cb7d5 - lib/filesys: do timed retry of delete/rename on Unix as well as Win
- client: sleep 1 sec (not 60) before retry statefile write
- client: parse <credit> in workunit XML
- scheduler: better error messages if insert_wu_tags() fails

api/
    graphics2_unix.C
client/
    client_state.C
    client_types.C
lib/
    filesys.C
sched/
    sched_send.C

svn path=/trunk/boinc/; revision=12720
2007-05-23 03:55:53 +00:00
David Anderson c08eddf7fe - GUI RPC: add new element d_boinc to DISK_USAGE;
tells how much disk space BOINC is using
        (not including projects).
    - added project.max_infeasible_count to client simulator

    client/
        gui_rpc_server_ops.C
        sim.C,h
        sim_util.C
    clientgui/
        ViewResources.cpp
    lib/
        filesys.C
        bui_rpc_client.h
        bui_rpc_client_ops.C

svn path=/trunk/boinc/; revision=12615
2007-05-08 23:12:40 +00:00
David Anderson 11869bc0be *** empty log message ***
svn path=/trunk/boinc/; revision=12333
2007-04-09 02:17:26 +00:00
Rom Walton a95deb409d *** empty log message ***
svn path=/trunk/boinc/; revision=12253
2007-03-20 01:42:36 +00:00
Charlie Fenton 62fb8f3b0b *** empty log message ***
svn path=/trunk/boinc/; revision=12249
2007-03-20 00:07:16 +00:00
David Anderson ba39bd9cb5 *** empty log message ***
svn path=/trunk/boinc/; revision=12246
2007-03-19 20:03:06 +00:00
Charlie Fenton 8b58ec7490 *** empty log message ***
svn path=/trunk/boinc/; revision=12237
2007-03-16 03:16:24 +00:00
David Anderson 71afcf8c06 *** empty log message ***
svn path=/trunk/boinc/; revision=12235
2007-03-15 23:01:51 +00:00
David Anderson 7499c10e8f *** empty log message ***
svn path=/trunk/boinc/; revision=12199
2007-03-08 21:00:26 +00:00
David Anderson 81effa6a7b *** empty log message ***
svn path=/trunk/boinc/; revision=12127
2007-02-21 16:26:51 +00:00
David Anderson 7889f369ac *** empty log message ***
svn path=/trunk/boinc/; revision=11910
2007-01-19 19:45:29 +00:00
David Anderson e06c5202bb *** empty log message ***
svn path=/trunk/boinc/; revision=11831
2007-01-11 00:20:58 +00:00
David Anderson 46695c2155 *** empty log message ***
svn path=/trunk/boinc/; revision=11683
2006-12-14 20:44:39 +00:00
David Anderson 1018cfcb67 *** empty log message ***
svn path=/trunk/boinc/; revision=11326
2006-10-20 15:56:22 +00:00
Rom Walton 61b166a173 *** empty log message ***
svn path=/trunk/boinc/; revision=11321
2006-10-20 02:29:54 +00:00
Rom Walton 158c9dea4c *** empty log message ***
svn path=/trunk/boinc/; revision=11319
2006-10-20 01:46:46 +00:00
Rom Walton d625c4a172 *** empty log message ***
svn path=/trunk/boinc/; revision=11318
2006-10-19 23:58:04 +00:00
David Anderson b4105a1a3b *** empty log message ***
svn path=/trunk/boinc/; revision=11122
2006-09-07 18:19:25 +00:00
Charlie Fenton 6ecd5de4d9 *** empty log message ***
svn path=/trunk/boinc/; revision=10803
2006-08-01 12:36:19 +00:00
David Anderson 7005522834 *** empty log message ***
svn path=/trunk/boinc/; revision=10594
2006-07-06 17:45:58 +00:00
Charlie Fenton a4896c49c4 *** empty log message ***
svn path=/trunk/boinc/; revision=10590
2006-07-06 11:44:47 +00:00
Charlie Fenton 74ae3b868b *** empty log message ***
svn path=/trunk/boinc/; revision=10589
2006-07-06 11:04:46 +00:00
Charlie Fenton d7850434bd *** empty log message ***
svn path=/trunk/boinc/; revision=10554
2006-07-01 05:32:02 +00:00
David Anderson 2cd313d7da cygwin
svn path=/trunk/boinc/; revision=10549
2006-06-30 20:45:16 +00:00