summaryrefslogtreecommitdiff
path: root/src/common/compat.c
AgeCommit message (Collapse)Author
2008-02-22 r18360@catbus: nickm | 2008-02-21 22:26:32 -0500Nick Mathewson
Make torint.h define ssize_t more robustly; add spaces to last patch svn:r13670
2008-02-22 r18358@catbus: nickm | 2008-02-21 22:21:57 -0500Nick Mathewson
Remove extraneous commas in compat.c svn:r13669
2008-02-21 r14374@tombo: nickm | 2008-02-21 16:57:39 -0500Nick Mathewson
Fix all remaining shorten-64-to-32 errors in src/common. Some were genuine problems. Many were compatibility errors with libraries (openssl, zlib) that like predate size_t. Partial backport candidate. svn:r13665
2008-02-21 r14371@tombo: nickm | 2008-02-21 16:13:18 -0500Nick Mathewson
Fix all -Wshorten-64-to-32 warnings that appear on my macbook. svn:r13662
2008-02-21 r18291@catbus: nickm | 2008-02-20 22:35:32 -0500Nick Mathewson
Resolve all DOCDOC issues, and document some other undocumented code, and fix a changelog entry. svn:r13638
2008-02-20 r18269@catbus: nickm | 2008-02-20 17:28:24 -0500Nick Mathewson
Apply patch from Sebastian Hahn: stop imposing an arbitrary maximum on the number of file descriptors used for busy servers. Bug reported by Olaf Selke. svn:r13626
2008-02-19 r18233@catbus: nickm | 2008-02-19 18:46:07 -0500Nick Mathewson
Count sockets returned from socketpair() too. This is probably not the socket counting bug. svn:r13600
2008-02-19 r18226@catbus: nickm | 2008-02-19 18:01:01 -0500Nick Mathewson
Brown-paper-bag time. We were failing to count all the sockets from accept(). svn:r13595
2008-02-19 r18221@catbus: nickm | 2008-02-19 17:46:16 -0500Nick Mathewson
New debugging code to figure out what is happending with socket counts. svn:r13593
2008-02-19clean up the socket counting thing. third time's a charm.Roger Dingledine
svn:r13581
2008-02-19 r18198@catbus: nickm | 2008-02-19 14:30:30 -0500Nick Mathewson
Try to *fix* the socket counting problem, and add an info log to detect whether we really fixed it svn:r13580
2008-02-19hunt for killerchicken's socket counting problemRoger Dingledine
svn:r13578
2008-02-13We were leaking a file descriptor if Tor started with a zero-lengthRoger Dingledine
cached-descriptors file. Patch by freddy77; bugfix on 0.1.2. svn:r13488
2008-02-09tweakRoger Dingledine
svn:r13443
2008-02-07Update some copyright notices: it is now 2008.Nick Mathewson
svn:r13412
2008-02-05 r17899@catbus: nickm | 2008-02-05 14:14:06 -0500Nick Mathewson
Fix a couple of XXX020 items. Also, disable all "condition" sychronization code, since Tor does not use it yet svn:r13380
2007-12-12clean up copyrights, and assign 2007 copyrights to The Tor Project, IncRoger Dingledine
svn:r12786
2007-12-04 r15106@tombo: nickm | 2007-12-04 00:08:35 -0500Nick Mathewson
Change tor_addr_t to be a tagged union of in_addr and in6_addr, not of sockaddr_in and sockaddr_in6. It's hardly used in the main code as it is, but let's get it right before it gets popular. svn:r12660
2007-11-06 r16450@catbus: nickm | 2007-11-06 09:18:11 -0500Nick Mathewson
Fix compile on sparc64 svn:r12394
2007-11-02 r16367@catbus: nickm | 2007-11-02 13:13:15 -0400Nick Mathewson
Space fixes. svn:r12345
2007-11-02 r14652@tombo: nickm | 2007-11-02 12:02:13 -0400Nick Mathewson
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
2007-11-02 r14647@tombo: nickm | 2007-11-02 10:48:37 -0400Nick Mathewson
Use rlim_t instead of unsigned long to manipulate rlimit values. svn:r12339
2007-10-25 r16128@catbus: nickm | 2007-10-24 22:52:16 -0400Nick Mathewson
Fix windows mmap changes. svn:r12171
2007-10-24 r16100@catbus: nickm | 2007-10-24 11:33:52 -0400Nick Mathewson
Make tor_mmap_file() set and preserve errno in a useful way. svn:r12153
2007-08-17 r14639@catbus: nickm | 2007-08-17 17:45:28 -0400Nick Mathewson
Compile without warnings on MinGW, even with --enable-gcc-warnings enabled. svn:r11157
2007-08-15 r14051@Kushana: nickm | 2007-08-15 15:55:36 -0400Nick Mathewson
Fix an XXXX020 and a few DOCDOCs. svn:r11127
2007-08-03 r13926@Kushana: nickm | 2007-08-03 00:55:23 -0700Nick Mathewson
Fix compilation with HAVE_GETADDRINFO unset svn:r11042
2007-07-30 r14015@catbus: nickm | 2007-07-30 13:18:05 -0400Nick Mathewson
Add missing code documentation in src/common svn:r10991
2007-07-27 r13944@catbus: nickm | 2007-07-27 15:52:35 -0400Nick Mathewson
Fix warnings on platforms where rlim values can be signed. Add an 8k buffer freelist. svn:r10948
2007-07-20 r13856@catbus: nickm | 2007-07-20 14:30:44 -0400Nick Mathewson
slightly smarter heuristic about when to use obsolete ::a.b.c.d format. svn:r10893
2007-07-20 r13850@catbus: nickm | 2007-07-20 12:25:24 -0400Nick Mathewson
Fix some bugs in ntop/pton. svn:r10891
2007-07-19 r13848@catbus: nickm | 2007-07-19 16:47:16 -0400Nick Mathewson
Use our own version of inet_ntop and inet_pton everywhere, to avoid partitioning attacks. svn:r10888
2007-07-19 r13827@catbus: nickm | 2007-07-19 14:42:25 -0400Nick Mathewson
Merge in some generic address manipulation code from croup. Needs some work. svn:r10880
2007-07-16 r13788@catbus: nickm | 2007-07-16 14:26:25 -0400Nick Mathewson
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
2007-07-06 r13631@catbus: nickm | 2007-07-06 10:17:22 -0400Nick Mathewson
Try to fix win32 build again. svn:r10750
2007-07-06 r13600@Kushana: nickm | 2007-07-05 23:49:47 -0400Nick Mathewson
try to fix mingw compile svn:r10743
2007-07-05 r13596@kushana: nickm | 2007-07-05 10:53:22 -0400Nick Mathewson
Argh, re-enable CRITICAL_SECTION code in win32. svn:r10741
2007-07-05svn:r10740Nick Mathewson
2007-07-01 r13570@catbus: nickm | 2007-06-30 20:41:05 -0400Nick Mathewson
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
2007-05-31trivial changes from my sandboxRoger Dingledine
svn:r10429
2007-05-31 r13111@catbus: nickm | 2007-05-31 15:03:41 -0400Nick Mathewson
Cleanup whitespace. svn:r10425
2007-05-31 r13101@catbus: nickm | 2007-05-31 12:57:42 -0400Nick Mathewson
Unit tests [and debugging] for tor_inet_ntop() and tor_inet_pton() svn:r10420
2007-05-29 r13050@catbus: nickm | 2007-05-29 13:31:11 -0400Nick Mathewson
Resolve all but 3 DOCDOCs. svn:r10393
2007-05-29 r13042@catbus: nickm | 2007-05-29 10:41:10 -0400Nick Mathewson
oops; use tor_inet_aton rather than inet_aton in tor_inet_ntop. Spotted by Li-Hui Zhou. svn:r10389
2007-05-25 r12955@catbus: nickm | 2007-05-25 13:17:30 -0400Nick Mathewson
First bare stubs of ipv6 work: commit some (untested, hence doublessly broken) implementations of inet_ntop/pton for systems that lack them. svn:r10326
2007-05-09 r12700@catbus: nickm | 2007-05-09 17:22:53 -0400Nick Mathewson
[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
2007-04-30 r12546@catbus: nickm | 2007-04-29 21:27:43 -0400Nick Mathewson
Correctly report win98se and win95osr2 versions. svn:r10047
2007-04-21 r12759@Kushana: nickm | 2007-04-20 08:47:20 -0400Nick Mathewson
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
2007-03-17 r12191@catbus: nickm | 2007-03-15 15:33:37 -0400Nick Mathewson
Check return values from pthread_mutex functions. svn:r9862
2007-03-15clean up some minor typos and log confusionsRoger Dingledine
svn:r9832