Commit Graph

22 Commits

Author SHA1 Message Date
David Anderson ac42a5ca50 win build fix 2023-05-09 00:18:29 -07:00
David Anderson decb4ea864 Apparently ftok() is missing in the wasm C library.
Fix this the right way.

BTW, why is there no mention of a wasm build in
https://github.com/BOINC/boinc/wiki/BuildSystem
2023-05-08 18:46:17 -07:00
Vitalii Koshura 92a9b34e9c
[linux] Move all fcgi dependent stdio functions to the separate 'boinc_stdio.h' header only file
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2023-02-12 19:50:22 +01:00
barton26 985cecddca lib typos 2021-10-06 14:42:17 -04:00
davidpanderson 8b852cb2c9 Win code cleanup; no functional changes
Platform-wide #defines belong in .h files, not .cpp
Also fixed a couple of compiler warnings.
2020-08-31 13:56:15 -07:00
David Anderson ac4b390ee8 client/manager, Win: remove references to _STDWX_H_; not used anymore 2020-06-04 00:48:21 -07:00
Steffen Moeller adde78647b Check return value of write function
This patch closes the file descriptor and returns with a failure,
when there is a failure.
2019-09-10 14:55:39 +02:00
Rom Walton a998eeb0ed Android: Android's standalone toolchain now includes a 'sys/shm.h' header file but does not the old-style shared memory segments.
Our Android port uses memory mapped files anyway, so just skip over it and get on with life.
2016-06-19 16:08:33 -07:00
Rom Walton 90d23b72d8 lib: Cleanup low hanging fruit with regards to cleaning up sprintf.
Use snprintf instead.
2016-02-17 18:50:28 -05:00
David Anderson a177ef0068 client: fix job scheduling bug. Sort by avg_ncpus doesn't apply to GPU jobs 2014-07-03 21:53:38 -07:00
Bernd Machenschalk 658170ab8b lib/shmem: print desired shmem size when allocation failed 2014-05-26 14:15:05 +02:00
David Anderson 53782b7de4 - lib: switch include order to the way it was (general to specific).
Should fix MinGW compile


svn path=/trunk/boinc/; revision=26008
2012-08-11 05:47:18 +00:00
David Anderson 405f567c81 - code cleanup: in foo.cpp, include foo.h first
svn path=/trunk/boinc/; revision=25933
2012-08-01 20:04:05 +00:00
David Anderson 4ce9d9e212 - scheduler: code cleanup for the above
svn path=/trunk/boinc/; revision=25427
2012-03-14 22:42:38 +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 e14e1cad34 - Remove BOINC_RCSID tags from source files, we are doing branching and tagging
properly.
        
    <Various Files>

svn path=/trunk/boinc/; revision=20873
2010-03-12 16:51:57 +00:00
Rom Walton a563b684cb - lib: Fix memory/resource leak.
(From Nicolás Alvarez)
        
    lib/
        shmem.cpp

svn path=/trunk/boinc/; revision=19229
2009-10-01 23:21:03 +00:00
Rom Walton 72e78dfbac - lib: Fix memory/resource leak.
(From Nicolás Alvarez)
        
    lib/
        shmem.cpp

svn path=/trunk/boinc/; revision=19227
2009-10-01 20:02:06 +00:00
David Anderson e31927218a - compile fixes for Haiku
svn path=/trunk/boinc/; revision=18214
2009-05-28 03:54:47 +00:00
David Anderson 97d50e12b9 - compile fixes for Haiku
svn path=/trunk/boinc/; revision=18213
2009-05-27 23:36:55 +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 98cfb8d3b0 - rename .C files to .cpp so that Doxygen will work
svn path=/trunk/boinc/; revision=16069
2008-09-26 18:20:24 +00:00