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