| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
| |
Space fixes.
svn:r12345
|
|
|
|
|
|
|
| |
If setting our rlimit to rlim_max or cap fails, fall back to OPEN_FILES if defiled. This makes Tor run on OSX 10.5, while allowing OSX to mend its ways in the future.
svn:r12341
|
|
|
|
|
|
|
| |
Use rlim_t instead of unsigned long to manipulate rlimit values.
svn:r12339
|
|
|
|
|
|
|
| |
Fix windows mmap changes.
svn:r12171
|
|
|
|
|
|
|
| |
Make tor_mmap_file() set and preserve errno in a useful way.
svn:r12153
|
|
|
|
|
|
|
| |
Compile without warnings on MinGW, even with --enable-gcc-warnings enabled.
svn:r11157
|
|
|
|
|
|
|
| |
Fix an XXXX020 and a few DOCDOCs.
svn:r11127
|
|
|
|
|
|
|
| |
Fix compilation with HAVE_GETADDRINFO unset
svn:r11042
|
|
|
|
|
|
|
| |
Add missing code documentation in src/common
svn:r10991
|
|
|
|
|
|
|
|
|
| |
Fix warnings on platforms where rlim values can be signed.
Add an 8k buffer freelist.
svn:r10948
|
|
|
|
|
|
|
| |
slightly smarter heuristic about when to use obsolete ::a.b.c.d format.
svn:r10893
|
|
|
|
|
|
|
| |
Fix some bugs in ntop/pton.
svn:r10891
|
|
|
|
|
|
|
| |
Use our own version of inet_ntop and inet_pton everywhere, to avoid partitioning attacks.
svn:r10888
|
|
|
|
|
|
|
| |
Merge in some generic address manipulation code from croup. Needs some work.
svn:r10880
|
|
|
|
|
|
|
| |
Patch from croup: rewrite the logic of get_next_token() to do the right thing with input that ends at weird places, or aligns with block boundaries after mmap. should fix bug 455. Needs fuzzing.
svn:r10847
|
|
|
|
|
|
|
| |
Try to fix win32 build again.
svn:r10750
|
|
|
|
|
|
|
| |
try to fix mingw compile
svn:r10743
|
|
|
|
|
|
|
| |
Argh, re-enable CRITICAL_SECTION code in win32.
svn:r10741
|
| |
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
svn:r10429
|
|
|
|
|
|
|
| |
Cleanup whitespace.
svn:r10425
|
|
|
|
|
|
|
| |
Unit tests [and debugging] for tor_inet_ntop() and tor_inet_pton()
svn:r10420
|
|
|
|
|
|
|
| |
Resolve all but 3 DOCDOCs.
svn:r10393
|
|
|
|
|
|
|
| |
oops; use tor_inet_aton rather than inet_aton in tor_inet_ntop. Spotted by Li-Hui Zhou.
svn:r10389
|
|
|
|
|
|
|
| |
First bare stubs of ipv6 work: commit some (untested, hence doublessly broken) implementations of inet_ntop/pton for systems that lack them.
svn:r10326
|
|
|
|
|
|
|
| |
[Backport candidate] On windows, open cached-routers with the sharing mode "FILE_SHARE_READ so that other processes can read it while Tor is running. (Reported by Janbar).
svn:r10148
|
|
|
|
|
|
|
| |
Correctly report win98se and win95osr2 versions.
svn:r10047
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Check return values from pthread_mutex functions.
svn:r9862
|
|
|
|
| |
svn:r9832
|
|
|
|
|
|
|
| |
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
|