Age | Commit message (Collapse) | Author |
|
Try to build without warnings on mingw with verbose warnings on. First attempt.
svn:r9688
|
|
svn:r9655
|
|
svn:r9634
|
|
Reverse arguments in memset() call in no-mmap version of tor_munmap_file(). Resolves bug 392. Spotted by "fookoowa"--thanks!
svn:r9604
|
|
Apply patch from coderman: have posix subthreads mask out signals. This could prevent some kinds of crashes when subthreads try to handle SIGPIPEs and die in the attempt. Backport candidate.
svn:r9603
|
|
Resolve 56 DOCDOC comments.
svn:r9594
|
|
Move all struct-offset-manipulation macros into util.h, and use them consistently. Because there are days when "SUBTYPE_P(handle, subtype, _base)" is just easier to read and write than "(basetp*)(((handle) - STRUCT_OFFSET(subtype, _base))".
svn:r9592
|
|
Try to fix mingw compile error reported by Li-Hui Zhou.
svn:r9578
|
|
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
|
|
Removing the last DOCDOC comment hurt so much that I had to use Doxygen to identify undocumented macros and comments, and add 150 more DOCDOCs to point out where they were. Oops. Hey, kids! Fixing some of these could be your first Tor patch!
svn:r9477
|
|
Call stat() slightly less often; use fstat() when possible.
svn:r9472
|
|
Audit non-const char arguments; make a lot more of them const.
svn:r9466
|
|
there at all, don't yell so loud.
svn:r9065
|
|
Fix a couple of obvious bugs in tor_mmap_file on Windows: first, fix a boolean error when checking the return value of CreateFileMapping. Second, CreateFileMapping is documented to return NULL on failure.
svn:r9035
|
|
svn:r9015
|
|
Fix a trivial comment.
svn:r8979
|
|
Try to compile with fewer warnings on irix64's MIPSpro compiler /
environment, which apparently believes that:
- off_t can be bigger than size_t.
- only mean kids assign things they do not subsequently inspect.
I don't try to fix the "error" that makes it say:
cc-3970 cc: WARNING File = main.c, Line = 1277
conversion from pointer to same-sized integral type (potential portability
problem)
uintptr_t sig = (uintptr_t)arg;
Because really, what can you do about a compiler that claims to be c99
but doesn't understand that void* x = NULL; uintptr_t y = (uintptr_t) x;
is safe?
svn:r8948
|
|
(reported by revstray)
svn:r8928
|
|
svn:r8780
|
|
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
|
|
Differentiate more duplicated log entries
svn:r8542
|
|
Fix some warnings on mingw; hopefully this should let us build on mingw without warnings.
svn:r8509
|
|
svn:r8427
|
|
Do not graciously increase the size to be mmaped if the current size already is
at a page_size boundary. This is important since if a file has a size of zero
and we mmap() it with length > 0, then accessing the mmaped memory area causes
a bus error. However, if we pass a length of 0 to mmap() it will return with -1
and things work from there.
svn:r8387
|
|
spawn_func fixes: have cpuworker_main and dnsworker_main confirm to the right interfaces [casting func to void* is icky]. Also, make pthread_create() build without warnings.
svn:r8327
|
|
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
|
|
svn:r8235
|
|
Pass hints to getaddrinfo; fix bug 280 (?)
svn:r7069
|
|
Close an fd leak on failed mmap()
svn:r6988
|
|
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
|
|
Finish (I hope) windows mmap impl.
svn:r6981
|
|
Add an "mmap handle" type to encapsulate bookkeeping elements of mmap issues; add prelim win32 impl
svn:r6980
|
|
Frediano Ziglio.
svn:r6749
|
|
svn:r6694
|
|
what we really mean now is ">= 0", which is clearer to test for.
svn:r6543
|
|
we have to explicitly "use" unuseds, but it can catch bugs. (It caught two coding mistakes so far.)
svn:r6532
|
|
possible. Cache at the server side independently from the TTL, to
prevent attackers from probing the server to see who has been asking
for what hostnames. (Hi, Dan Kaminski!)
Also, clean some whitespace.
svn:r6526
|
|
instead. Based on code from Michael Mohr.
svn:r6510
|
|
often way way slower than doing the right thing. Backport candidate.
svn:r6473
|
|
svn:r6239
|
|
and zero out the LPOSVERSIONINFOEX struct before getting the version. This may fix the "johnboy" [major=-858993460,minor=-858993460] problem.
svn:r6233
|
|
This is needed because Windows already has an err() that we
can't clobber. And we need to be able to make the log functions
a macro so we can print the function's name in the log entry.
svn:r6000
|
|
svn:r5949
|
|
svn:r5935
|
|
constraining ourselves to a max of 1024 connections. Now if there is no
getrlimit, just assume that we can handle the whole 15000 connections.
The better answer is to find a getrlimit equivalent on Windows, but hey,
one step at a time.
svn:r5854
|
|
intended.
svn:r5582
|
|
svn:r5550
|