Vitalii Koshura
44742026e2
Remove trailing whitespaces. Add CI script to verify in on every commit
...
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2023-05-05 20:08:17 +02:00
Brian Nixon
8e5054248d
Improve Windows diagnostics
2023-04-10 20:58:13 +01:00
Bernd Machenschalk
0b6f3678e5
fix API build for C apps
...
- protect bool variable in cplusplus in diagnostics.h
2021-03-04 16:06:26 +01:00
davidpanderson
07dda83f2e
Client and manager, Win: fix crashes and runtime warnings with VS2019
...
In VS2019, making CRT calls like printf after main.cpp() has returned
raises and exception. Don't do this.
Also, there were some runtime warnings from WxWidgets about bad flags
for vertical spacers. Fix these.
2020-06-03 22:39:57 -07:00
David Anderson
a79d60b889
client: make max_std(err/out)_file_size double
...
File sizes should always be double, not int
This fixes #3435
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2020-01-29 07:42:43 +01:00
davidpanderson
e14cef28ac
Fix more compiler warnings (snprintf, sigaction). No functional changes.
2019-11-05 23:25:06 -08:00
Vitalii Koshura
58f9a6d67b
Fix prototype header leftovers
...
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2019-03-26 21:22:06 +02:00
Gabor Gombas
0cab8848f3
Fix "-Wstrict-prototypes" warnings in API headers
...
When the BOINC API headers are included from C source code that gets compiled with "-Wstrict-prototypes", they generate a lot of "function declaration isn’t a prototype" warnings. The attached patch fixes it by turning "foo()" to "foo(void)".
Gabor
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2019-03-26 21:21:51 +02:00
David Anderson
6dc6615154
Android (client and API): stack trace voodoo causes crashes on some devices; disable by default.
2017-04-12 15:48:09 -07:00
David Anderson
13a5b9bf3e
change multiple-inclusion guard names to BOINC_FILENAME_H
2017-04-07 23:54:49 -07:00
Rom Walton
a97b15c209
LIB: Explicitly declare a termination function for handling terminate()/unhandled()/abort() CRT calls.
...
Call DebugBreak() to make our exception handling technology kick in.
2015-12-11 18:24:34 -05:00
Rom Walton
6bc87783dc
LIB: We do not need to log trace statements on release builds (MSVC only).
...
LIB: Reset the file buffer size to 0 after cycling the stderr log file.
2015-01-06 11:31:04 -05:00
Charlie Fenton
538e1ab5d1
MGR: Fix compiler warnings, including many caused by commit 45aaaee
2014-06-28 02:10:50 -07:00
Eric J Korpela
45aaaeed99
Fixed bad #defines MinGW and Cygwin
2014-06-20 09:40:49 -07:00
Rom Walton
ba843869a7
client & MGR: Make writing trace statements to the debugger viewport something you have to opt into on Windows.
...
I use it a lot, but other developers using BOINC may not care to see BOINC messages while debugging their own stuff.
2014-03-25 18:23:58 -04:00
Rom Walton
2f83235e0c
LIB: Introduce the notion of per-user account log files. Setup the manager, tray applet, and screen saver to use per-user account log files. Technically the default screen saver should be as well.
...
Log Locations:
WIN : %APPDATA%\BOINC
MAC : $(HOME)/Library/Logs/BOINC
Linux : $(HOME)/.BOINC
2014-03-06 23:02:04 -05:00
David Anderson
0fc0f80c30
Fix win compile warnings. Let's shoot for zero warnings, OK?
2013-11-11 10:42:03 -08:00
Rom Walton
70de6a60df
LIB: Provide a mechanism for BOINC client software to initialize the exception filter for secondary threads
2013-10-03 20:09:22 -04:00
Eric J Korpela
19fcc1f6ad
Implemented stackdumps for Android using libcorkscrew.so interfaces.
2013-09-26 16:13:24 -07:00
Rom Walton
ad60b45f72
- lib: Don't allow the diagnostics threads to be suspended, if a crash happens within
...
the remaining thread the process will deadlock.
lib/
diagnostics.h
diagnostics_win.cpp
win_util.cpp
svn path=/trunk/boinc/; revision=20198
2010-01-19 17:22:46 +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
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
Rom Walton
2ed310e1c4
Quick Updates
...
svn path=/trunk/boinc/; revision=17969
2009-05-01 22:57:00 +00:00
David Anderson
fba2e5ee3d
- 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
2009-04-30 21:48:20 +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
David Anderson
6e731f0b7a
- API, Unix: when boinc_finish(x) is called, exit with code x
...
even if signals happen in the atexit() handling
- API: don't print XML parse warnings for init_data.xml file
svn path=/trunk/boinc/; revision=15454
2008-06-23 19:51:07 +00:00
Rom Walton
f28fda8dac
- DIAG: For Windows, lookup and store the install directory
...
location so that the diagnostics framework can use the
debugger libraries.
NOTE: This is only a problem for applications running
under the v6 clients.
lib/
diagnostics.C, .h
diagnostics_win.C
svn path=/trunk/boinc/; revision=15266
2008-05-21 05:09:15 +00:00
Rom Walton
e796847658
- DIAG: Add an easy way for projects to initialize the diagnostics
...
framework for graphics applications.
- DIAG: Make SetDllDirectory work for Win2k3, Vista, and Win2k8
lib/
diagnostics.C, .h
stackwalker_win.cpp
svn path=/trunk/boinc/; revision=15105
2008-04-30 05:42:06 +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
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
4da66bfaa8
- DIAG: Visual Studio 2005 enforces parameter checking, and if
...
a parameter is wrong it just terminates the process with
a 0xc000000d. This is a shot in the dark but I think it
is a good guess as to what is happening right now.
lib/
diagnostics.C, .h
diagnostics_win.C
svn path=/trunk/boinc/; revision=13042
2007-06-27 21:12:13 +00:00
David Anderson
18c29a91ee
- rename BOINC_DIAG_USEDEFALUTS (??) to BOINC_DIAG_DEFAULTS
...
api/
boinc_api.C
lib/
diagnostics.h
svn path=/trunk/boinc/; revision=12848
2007-06-08 07:38:17 +00:00
Eric J. Korpela
ee0a50636a
Fix for cygwin and mingw32 compiles.
...
svn path=/trunk/boinc/; revision=12262
2007-03-22 00:22:02 +00:00
Rom Walton
3f1b440837
*** empty log message ***
...
svn path=/trunk/boinc/; revision=10338
2006-06-14 07:44:51 +00:00
Rom Walton
0312154260
*** empty log message ***
...
svn path=/trunk/boinc/; revision=10336
2006-06-14 07:14:09 +00:00
Rom Walton
89d6e1fab7
*** empty log message ***
...
svn path=/trunk/boinc/; revision=10194
2006-05-24 23:56:41 +00:00
Rom Walton
01d2897c6b
*** empty log message ***
...
svn path=/trunk/boinc/; revision=10160
2006-05-19 02:06:14 +00:00
Rom Walton
eb66934f8a
*** empty log message ***
...
svn path=/trunk/boinc/; revision=10153
2006-05-17 07:44:54 +00:00
Rom Walton
aad7a928b2
*** empty log message ***
...
svn path=/trunk/boinc/; revision=10113
2006-05-08 18:35:56 +00:00
Rom Walton
cecb7f4c98
*** empty log message ***
...
svn path=/trunk/boinc/; revision=10077
2006-05-02 07:53:28 +00:00
Rom Walton
f74d8bd38a
*** empty log message ***
...
svn path=/trunk/boinc/; revision=10072
2006-05-01 21:36:38 +00:00
Rom Walton
fe570894fc
*** empty log message ***
...
svn path=/trunk/boinc/; revision=9975
2006-04-19 23:28:08 +00:00
Eric J. Korpela
069aca1e19
*** empty log message ***
...
svn path=/trunk/boinc/; revision=9861
2006-04-12 23:07:17 +00:00
Rom Walton
654631a291
*** empty log message ***
...
svn path=/trunk/boinc/; revision=9828
2006-04-10 06:20:02 +00:00
Rom Walton
e4f0531fbc
*** empty log message ***
...
svn path=/trunk/boinc/; revision=9696
2006-03-21 19:04:05 +00:00
Rom Walton
41c81b238e
*** empty log message ***
...
svn path=/trunk/boinc/; revision=9695
2006-03-21 12:04:14 +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
260daa8f7d
*** empty log message ***
...
svn path=/trunk/boinc/; revision=8944
2005-11-26 08:02:05 +00:00