aboutsummaryrefslogtreecommitdiff
path: root/src/common/compat.c
Commit message (Collapse)AuthorAge
* r16367@catbus: nickm | 2007-11-02 13:13:15 -0400Nick Mathewson2007-11-02
| | | | | | | Space fixes. svn:r12345
* r14652@tombo: nickm | 2007-11-02 12:02:13 -0400Nick Mathewson2007-11-02
| | | | | | | 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
* r14647@tombo: nickm | 2007-11-02 10:48:37 -0400Nick Mathewson2007-11-02
| | | | | | | Use rlim_t instead of unsigned long to manipulate rlimit values. svn:r12339
* r16128@catbus: nickm | 2007-10-24 22:52:16 -0400Nick Mathewson2007-10-25
| | | | | | | Fix windows mmap changes. svn:r12171
* r16100@catbus: nickm | 2007-10-24 11:33:52 -0400Nick Mathewson2007-10-24
| | | | | | | Make tor_mmap_file() set and preserve errno in a useful way. svn:r12153
* r14639@catbus: nickm | 2007-08-17 17:45:28 -0400Nick Mathewson2007-08-17
| | | | | | | Compile without warnings on MinGW, even with --enable-gcc-warnings enabled. svn:r11157
* r14051@Kushana: nickm | 2007-08-15 15:55:36 -0400Nick Mathewson2007-08-15
| | | | | | | Fix an XXXX020 and a few DOCDOCs. svn:r11127
* r13926@Kushana: nickm | 2007-08-03 00:55:23 -0700Nick Mathewson2007-08-03
| | | | | | | Fix compilation with HAVE_GETADDRINFO unset svn:r11042
* r14015@catbus: nickm | 2007-07-30 13:18:05 -0400Nick Mathewson2007-07-30
| | | | | | | Add missing code documentation in src/common svn:r10991
* r13944@catbus: nickm | 2007-07-27 15:52:35 -0400Nick Mathewson2007-07-27
| | | | | | | | | Fix warnings on platforms where rlim values can be signed. Add an 8k buffer freelist. svn:r10948
* r13856@catbus: nickm | 2007-07-20 14:30:44 -0400Nick Mathewson2007-07-20
| | | | | | | slightly smarter heuristic about when to use obsolete ::a.b.c.d format. svn:r10893
* r13850@catbus: nickm | 2007-07-20 12:25:24 -0400Nick Mathewson2007-07-20
| | | | | | | Fix some bugs in ntop/pton. svn:r10891
* r13848@catbus: nickm | 2007-07-19 16:47:16 -0400Nick Mathewson2007-07-19
| | | | | | | Use our own version of inet_ntop and inet_pton everywhere, to avoid partitioning attacks. svn:r10888
* r13827@catbus: nickm | 2007-07-19 14:42:25 -0400Nick Mathewson2007-07-19
| | | | | | | Merge in some generic address manipulation code from croup. Needs some work. svn:r10880
* r13788@catbus: nickm | 2007-07-16 14:26:25 -0400Nick Mathewson2007-07-16
| | | | | | | 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
* r13631@catbus: nickm | 2007-07-06 10:17:22 -0400Nick Mathewson2007-07-06
| | | | | | | Try to fix win32 build again. svn:r10750
* r13600@Kushana: nickm | 2007-07-05 23:49:47 -0400Nick Mathewson2007-07-06
| | | | | | | try to fix mingw compile svn:r10743
* r13596@kushana: nickm | 2007-07-05 10:53:22 -0400Nick Mathewson2007-07-05
| | | | | | | Argh, re-enable CRITICAL_SECTION code in win32. svn:r10741
* svn:r10740Nick Mathewson2007-07-05
|
* r13570@catbus: nickm | 2007-06-30 20:41:05 -0400Nick Mathewson2007-07-01
| | | | | | | 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
* trivial changes from my sandboxRoger Dingledine2007-05-31
| | | | svn:r10429
* r13111@catbus: nickm | 2007-05-31 15:03:41 -0400Nick Mathewson2007-05-31
| | | | | | | Cleanup whitespace. svn:r10425
* r13101@catbus: nickm | 2007-05-31 12:57:42 -0400Nick Mathewson2007-05-31
| | | | | | | Unit tests [and debugging] for tor_inet_ntop() and tor_inet_pton() svn:r10420
* r13050@catbus: nickm | 2007-05-29 13:31:11 -0400Nick Mathewson2007-05-29
| | | | | | | Resolve all but 3 DOCDOCs. svn:r10393
* r13042@catbus: nickm | 2007-05-29 10:41:10 -0400Nick Mathewson2007-05-29
| | | | | | | oops; use tor_inet_aton rather than inet_aton in tor_inet_ntop. Spotted by Li-Hui Zhou. svn:r10389
* r12955@catbus: nickm | 2007-05-25 13:17:30 -0400Nick Mathewson2007-05-25
| | | | | | | First bare stubs of ipv6 work: commit some (untested, hence doublessly broken) implementations of inet_ntop/pton for systems that lack them. svn:r10326
* r12700@catbus: nickm | 2007-05-09 17:22:53 -0400Nick Mathewson2007-05-09
| | | | | | | [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
* r12546@catbus: nickm | 2007-04-29 21:27:43 -0400Nick Mathewson2007-04-30
| | | | | | | Correctly report win98se and win95osr2 versions. svn:r10047
* r12759@Kushana: nickm | 2007-04-20 08:47:20 -0400Nick Mathewson2007-04-21
| | | | | | | 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
* r12191@catbus: nickm | 2007-03-15 15:33:37 -0400Nick Mathewson2007-03-17
| | | | | | | Check return values from pthread_mutex functions. svn:r9862
* clean up some minor typos and log confusionsRoger Dingledine2007-03-15
| | | | svn:r9832
* r12001@catbus: nickm | 2007-02-28 15:24:12 -0500Nick Mathewson2007-02-28
| | | | | | | Try to build without warnings on mingw with verbose warnings on. First attempt. svn:r9688
* more cleanups; getting closerRoger Dingledine2007-02-26
| | | | svn:r9655
* doc pedantRoger Dingledine2007-02-24
| | | | svn:r9634
* r11852@catbus: nickm | 2007-02-20 17:25:17 -0500Nick Mathewson2007-02-20
| | | | | | | Reverse arguments in memset() call in no-mmap version of tor_munmap_file(). Resolves bug 392. Spotted by "fookoowa"--thanks! svn:r9604
* r11850@catbus: nickm | 2007-02-20 13:34:13 -0500Nick Mathewson2007-02-20
| | | | | | | 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
* r11826@catbus: nickm | 2007-02-16 14:58:38 -0500Nick Mathewson2007-02-16
| | | | | | | Resolve 56 DOCDOC comments. svn:r9594
* r11824@catbus: nickm | 2007-02-16 13:16:47 -0500Nick Mathewson2007-02-16
| | | | | | | 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
* r11791@catbus: nickm | 2007-02-13 11:36:07 -0500Nick Mathewson2007-02-13
| | | | | | | Try to fix mingw compile error reported by Li-Hui Zhou. svn:r9578
* r11775@catbus: nickm | 2007-02-12 16:39:09 -0500Nick Mathewson2007-02-12
| | | | | | | Update copyright dates. svn:r9570
* r11774@catbus: nickm | 2007-02-12 16:31:47 -0500Nick Mathewson2007-02-12
| | | | | | | 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
* r11629@catbus: nickm | 2007-02-02 15:06:17 -0500Nick Mathewson2007-02-02
| | | | | | | 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
* r11620@catbus: nickm | 2007-02-01 13:06:27 -0500Nick Mathewson2007-02-01
| | | | | | | Call stat() slightly less often; use fstat() when possible. svn:r9472
* r11607@catbus: nickm | 2007-01-30 17:19:27 -0500Nick Mathewson2007-01-30
| | | | | | | Audit non-const char arguments; make a lot more of them const. svn:r9466
* when we decide not to mmap, because the file is empty or isn'tRoger Dingledine2006-12-11
| | | | | | | there at all, don't yell so loud. svn:r9065
* r11444@Kushana: nickm | 2006-12-07 09:38:52 -0500Nick Mathewson2006-12-07
| | | | | | | 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
* cleanups, bump to 0.1.2.4-alphaRoger Dingledine2006-12-02
| | | | svn:r9015
* r9371@totoro: nickm | 2006-11-21 10:59:28 -0500Nick Mathewson2006-11-21
| | | | | | | Fix a trivial comment. svn:r8979
* r9313@totoro: nickm | 2006-11-13 20:07:41 -0500Nick Mathewson2006-11-14
| | | | | | | | | | | | | | | | | | | | | | | 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
* Avoid assert failure when our cached-routers file is empty on startup.Roger Dingledine2006-11-12
| | | | | | | (reported by revstray) svn:r8928