aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.c
Commit message (Expand)AuthorAge
* r12764@catbus: nickm | 2007-05-15 17:17:39 -0400••• Enable (and cope with) more GCC 4.2 warnings. svn:r10196 Nick Mathewson2007-05-15
* 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
* r12474@Kushana: nickm | 2007-03-06 16:10:05 -0500••• We have a PATH_SEPARATOR macro. How about we use it? svn:r9782 Nick Mathewson2007-03-09
* r12468@Kushana: nickm | 2007-03-06 15:24:00 -0500••• More unit tests: gcov is fun. svn:r9748 Nick Mathewson2007-03-06
* r12074@catbus: nickm | 2007-03-04 15:11:43 -0500••• Make all LD_BUG log messsages get prefixed with "Bug: ". Remove manually-generated "Bug: "s from log-messages. (Apparently, we remembered to add them about 40% of the time.) svn:r9733 Nick Mathewson2007-03-04
* 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
* r11992@catbus: nickm | 2007-02-28 12:46:32 -0500••• compile fix on mingw: mingw does not define _MSC_VER. svn:r9682 Nick Mathewson2007-02-28
* doc pedant•••svn:r9634 Roger Dingledine2007-02-24
* r11832@catbus: nickm | 2007-02-16 15:31:59 -0500••• Fix 35 remaining DOCDOC comments. Yowza. svn:r9596 Nick Mathewson2007-02-16
* 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
* r11639@catbus: nickm | 2007-02-05 13:33:38 -0500••• Add documentation to src/common/*.h; improve documentation for SMARTLIST_FOREACH; remove never-used options and corresponding tests from tor_strpartition. svn:r9483 Nick Mathewson2007-02-05
* 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
* r11987@Kushana: nickm | 2007-01-19 14:57:28 -0500••• Implement SOCKS_BAD_HOSTNAME status event. Defer remaining status events. Clean up control-spec.txt a little, and fill in recommendations for events. svn:r9374 Nick Mathewson2007-01-19
* r9776@totoro: nickm | 2007-01-18 14:37:01 -0500••• Yes, apparently saying strcpy in front of openbsd is like saying "intellectual property" in front of RMS. They both have a point, I guess, even though they extend it to contexts where it is completely irrelevant. svn:r9370 Nick Mathewson2007-01-18
* r11978@Kushana: nickm | 2007-01-15 18:54:25 -0500••• Apparently, the OpenBSD linker thinks it knows C better than I do, and gets to call me names for having strcat and strcpy and sprintf in my code--whether I use them safely or not. All right, OpenBSD. You win... this round. svn:r9360 Nick Mathewson2007-01-15
* r11749@Kushana: nickm | 2006-12-29 00:51:42 -0500••• Remove dead code; make targets of addressmap commands/configs use AllowNonRFC953Hostnames svn:r9211 Nick Mathewson2006-12-29
* r11670@Kushana: nickm | 2006-12-21 12:23:55 -0500••• Clean up logic in parse_port_range(); accept 0 on low end and 65536 on high end for people who are bad at math. svn:r9169 Nick Mathewson2006-12-21
* r11668@Kushana: nickm | 2006-12-20 22:22:53 -0500••• Fix bug found by Keith Skinner: Treat malformed max-ports in address ranges as an error, and dont ignore errors with min-ports even if a max-port is present. svn:r9168 Nick Mathewson2006-12-21
* r11597@Kushana: nickm | 2006-12-15 15:49:27 -0500••• Add a rudimentary line-wrapping function for use in dumping comments in config files. svn:r9132 Nick Mathewson2006-12-15
* r11581@Kushana: nickm | 2006-12-15 00:12:24 -0500••• Make PIDFile work on windows. Reported by Arrakis. svn:r9116 Nick Mathewson2006-12-15
* r9315@totoro: nickm | 2006-11-13 22:40:59 -0500••• Fix a build warning on angela-sid svn:r8949 Nick Mathewson2006-11-14
* 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
* r9274@Kushana: nickm | 2006-10-19 16:16:58 -0400••• 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 Nick Mathewson2006-10-19
* Add missing return so this builds on mingw.•••svn:r8649 Andrew Lewman2006-10-08
* r8923@totoro: nickm | 2006-10-07 11:44:33 -0400••• More doxygen comments svn:r8637 Nick Mathewson2006-10-07
* more minor cleanups•••svn:r8630 Roger Dingledine2006-10-07
* r8851@totoro: nickm | 2006-10-02 18:13:27 -0400••• Remove/clarify some XXXs for no longer being accurate; for begin things we do not indend to fix; for already being parts of big todo issues (like "/* XXX ipv6 */"); etc. Also fix some spaces. svn:r8580 Nick Mathewson2006-10-02
* r8846@totoro: nickm | 2006-10-02 16:59:57 -0400••• Move is_local_IP to config.c; have it check for same-/24; make it used only for reachability (not for banwidth, because that is probably not what we want). Fixes an XXX. svn:r8578 Nick Mathewson2006-10-02
* r8845@totoro: nickm | 2006-10-02 16:34:58 -0400••• Fix an XXXX: make path_is_relative work on windows even though we never use it there. svn:r8577 Nick Mathewson2006-10-02
* r9025@Kushana: nickm | 2006-09-29 18:33:13 -0400••• Differentiate more duplicated log entries svn:r8542 Nick Mathewson2006-09-29
* r9023@Kushana: nickm | 2006-09-29 17:27:24 -0400••• Make distinct all non-bug messages at notice or higher that appear 3 or more times. svn:r8541 Nick Mathewson2006-09-29
* r9008@Kushana: nickm | 2006-09-29 13:50:10 -0400••• Doxygen comments for code in common. Also simplify a few code paths to be more clear/speedy/correct. svn:r8536 Nick Mathewson2006-09-29
* r8974@Kushana: nickm | 2006-09-28 17:05:59 -0400••• Improvement to last entry guards patch: track when we last attempted to connect to a node in our state file along with how long it has been unreachable. Also clarify behavior of parse_iso_time() when it gets extra characters. svn:r8520 Nick Mathewson2006-09-28
* r8878@Kushana: nickm | 2006-09-21 17:15:47 -0400••• Trivial whitespace cleanups. svn:r8443 Nick Mathewson2006-09-21
* Speed up eat_whitespace by a lot.•••svn:r8434 Nick Mathewson2006-09-19
* NEEDS REVIEW. Act on previous comment, and handle named servers differently: ...•••svn:r8433 Nick Mathewson2006-09-19
* Malloc and friends are critical-path: Thus, add an it-wont-happen branch pred...•••svn:r8431 Nick Mathewson2006-09-19
* Switch routerlist.c to using memcmp on digests rather than crypto_pk_cmp_keys...•••svn:r8430 Nick Mathewson2006-09-19
* Merge in some bsockets calls, all wrapped inside #if defined(USE_BSOCKETS)•••svn:r8427 Nick Mathewson2006-09-19
* parameterize the loudness of get_interface_address()•••svn:r8358 Roger Dingledine2006-09-09
* fix typo, add log message•••svn:r8357 Roger Dingledine2006-09-09
* r8692@Kushana: nickm | 2006-08-31 13:38:07 -0400••• Fix bug 327 (part 2): Cast char to unsigned char before passing to toupper/tolower. (Follow the same idiom as with isupper and friends, in case we run into the same problem on SGI or whereever it was.) svn:r8310 Nick Mathewson2006-08-31
* r6993@Kushana: nickm | 2006-07-31 16:19:21 -0400••• Interesting how much a ! can change the behavior of an assert. svn:r6962 Nick Mathewson2006-07-31
* r6980@Kushana: nickm | 2006-07-31 13:18:22 -0400••• Add a utility function to verify that a string has been through strlower. svn:r6959 Nick Mathewson2006-07-31
* Whitespace fix•••svn:r6816 Nick Mathewson2006-07-23
* Add a mem_is_zero function (I think we will need this) and a STRUCT_OFFSET ma...•••svn:r6810 Nick Mathewson2006-07-23
* when an exit node gets a malformed begin cell, don't complain to•••the node operator, since he can't do anything about it. svn:r6733 Roger Dingledine2006-07-06
* remove non-germane comment•••svn:r6640 Nick Mathewson2006-06-18