Age | Commit message (Collapse) | Author |
|
Check a platform assumption we have made without checking for too long: "Characters are represented in ascii."
svn:r12088
|
|
Another attempt to confirm to msvc for bug 482.
svn:r11162
|
|
Compile without warnings on MinGW, even with --enable-gcc-warnings enabled.
svn:r11157
|
|
Try to fix bug 482: do not rely on s6_addr16 or s6_addr32 on MSVC. How ugly.
svn:r11155
|
|
Try (once again) to fix mingw build wrt detecting ipv6 types.
svn:r11037
|
|
Rename IN4_ADDR and IN6_ADDR to try to avoid conflicting with Windows definitions. This may fix the windows build.
svn:r11011
|
|
Change "IN_ADDR" macro to "IN4_ADDR" in an attempt to fix mingw compilation
svn:r10963
|
|
whitespace fixes
svn:r10935
|
|
Apparently, this problem can occur on the whole BSD family. "Yay."
svn:r10884
|
|
Apparently, OSX does not define s6_addr32 or s6_addr16. How silly.
svn:r10883
|
|
Merge in some generic address manipulation code from croup. Needs some work.
svn:r10880
|
|
Switch windows locking implementation to CRITICAL_SECTION, not Mutex: Mutex is heavier-weight, and meant for multi-process situations.
svn:r10739
|
|
Implement conditions in compat.c; switch windows to use "critical sections" instead of mutexes. Apparently, mutexes are for IPC and critical sections are for multithreaded.
svn:r10716
|
|
Sun CC likes to give warnings for the do { } while(0) construction for making statement-like macros. Define STMT_BEGIN/STMT_END macros that do the right thing, and use them everywhere.
svn:r10645
|
|
Fix windows build.
svn:r10424
|
|
First bare stubs of ipv6 work: commit some (untested, hence doublessly broken) implementations of inet_ntop/pton for systems that lack them.
svn:r10326
|
|
Add math functions to round values to the nearest power of 2. Make mempools more careful about making sure that the size of their chunks is a little less than a power of 2, not a little more.
svn:r10304
|
|
Partial backport candidate: do not rely on finding a \0 after an mmaped() router/extrainfo file. Also, set journal length correctly when starting up.
svn:r10248
|
|
Enable (and cope with) more GCC 4.2 warnings.
svn:r10196
|
|
Track the number of connection_t separately from the number of open sockets. It is already possible to have connections that do not count: resolving conns, for one. Once we move from socketpairs to linked conns, and once we do dns proxying, there will be lots of such connections.
svn:r9994
|
|
Excise PREDICT and PREDICT_FALSE in favor of PREDICT_LIKELY and PREDICT_UNLIKELY.
svn:r9781
|
|
More unit tests: gcov is fun.
svn:r9748
|
|
On mingw, use "%I64u" to printf/scanf 64-bit integers, instead of the usual GCC "%llu". This prevents a bug when saving 64-bit int configuration values on mingw; the high-order 32 bits would get truncated. If the value was then reloaded, disaster would occur. (Fixes bug 400 and maybe also bug 397.) Backport candidate.
svn:r9691
|
|
Correct an MSC_VER check.
svn:r9685
|
|
compile fix on mingw: mingw does not define _MSC_VER.
svn:r9682
|
|
Update copyright dates.
svn:r9570
|
|
Handle errors on opening cached-routers* more uniformly and sanely: log not-found errors at level INFO, and all other errors at level WARN. Needs testing on win32.
svn:r9569
|
|
Audit non-const char arguments; make a lot more of them const.
svn:r9466
|
|
Add string.h include to compat.h so that strlcpy() and strlcat() will always be defined after including compat.h. This should resolve warnings on centos.
svn:r8824
|
|
Add unit tests for tor_mmap_file(); make tor_mmap_t.size always be the size of the file (not the size of the mapping); add an extra argument to read_file_to_str() so it can return the size of the result string.
svn:r8762
|
|
svn:r8427
|
|
Fix spaces; restore support for mapping files over 4GB on win32 (?)
svn:r8326
|
|
- made configure link to required system dll's if building for win32
- added diffs for libevent 1.1b
- forced user to turn off eventdns if win32 is set
- cleaned up tor_mmap_file()_win32 (not sure if it's stable)
- cleaned up some warnings and typos
svn:r8322
|
|
Fix bug 327 (part 2): Cast char to unsigned char before passing to toupper/tolower. (Follow the same idiom as with isupper and friends, in case we run into the same problem on SGI or whereever it was.)
svn:r8310
|
|
Fix bug 327 (part 1): Use correct macro to test for GCC 3 or later.
svn:r8309
|
|
Fix compilation on GCC2 by disabling fun attributes unless __GNUC_MAJOR__ >= 3.
svn:r8303
|
|
Aw, crap. Non-gcc bug. We need regular windows builds.
svn:r8259
|
|
And another GCC change: predict that tor_frees() are usually real frees, and tor_asserts() usually wont happen. Other test should wait till -fprofile-arcs
svn:r7022
|
|
Add more warnings to the list of those we tolerate. Start using GCC attributes more, for better error checking and better code generation.
svn:r7020
|
|
Remove now-spurious size and data arguments from tor_mmap_file
svn:r6987
|
|
Make data and size fields visible in tor_mmap_t; hide win magic differently.
svn:r6986
|
|
Add an "mmap handle" type to encapsulate bookkeeping elements of mmap issues; add prelim win32 impl
svn:r6980
|
|
Add isupper and islower wrappers to compat.h
svn:r6957
|
|
svn:r6802
|
|
and double, and needs more persuasion than usual to cast one to the other. Issue identified by Frediano Ziglio; patch revised for minimal impact on non-MSVC6 compilers.
svn:r6768
|
|
svn:r6710
|
|
what we really mean now is ">= 0", which is clearer to test for.
svn:r6543
|
|
rather than on MS_WINDOWS, so that mingw builds.
svn:r6523
|
|
instead. Based on code from Michael Mohr.
svn:r6510
|
|
often way way slower than doing the right thing. Backport candidate.
svn:r6473
|