aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.h
Commit message (Expand)AuthorAge
* r12850@catbus: nickm | 2007-05-21 22:20:42 -0400••• Partial backport candidate: do not rely on finding a \0 after an mmaped() router/extrainfo file. Also, set journal length correctly when starting up. svn:r10248 Nick Mathewson2007-05-22
* Turn bool_neq and bool_eq into macros.•••svn:r9914 Nick Mathewson2007-03-29
* r12473@Kushana: nickm | 2007-03-06 15:49:45 -0500••• Excise PREDICT and PREDICT_FALSE in favor of PREDICT_LIKELY and PREDICT_UNLIKELY. svn:r9781 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
* cosmetic, comment, and todo fixes•••svn:r9627 Roger Dingledine2007-02-24
* 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
* 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
* 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
* 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
* 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
* 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
* add missing paren in dmalloc tor_free•••svn:r8498 Nick Mathewson2006-09-25
* NEEDS REVIEW. Act on previous comment, and handle named servers differently: ...•••svn:r8433 Nick Mathewson2006-09-19
* parameterize the loudness of get_interface_address()•••svn:r8358 Roger Dingledine2006-09-09
* r7341@Kushana: nickm | 2006-08-11 00:51:05 -0700••• Amazing how much difference adding a ! to all your asserts can make. svn:r7029 Nick Mathewson2006-08-11
* r7337@Kushana: nickm | 2006-08-11 00:42:04 -0700••• Only use __builtin_offsetof with gcc 4 or later svn:r7028 Nick Mathewson2006-08-11
* r7326@Kushana: nickm | 2006-08-10 23:50:49 -0700••• And another GCC change: predict that tor_frees() are usually real frees, and tor_asserts() usually wont happen. Other test should wait till -fprofile-arcs svn:r7022 Nick Mathewson2006-08-11
* r7325@Kushana: nickm | 2006-08-10 23:37:31 -0700••• Use gcc offsetof where available. svn:r7021 Nick Mathewson2006-08-11
* r7324@Kushana: nickm | 2006-08-10 23:23:15 -0700••• Add more warnings to the list of those we tolerate. Start using GCC attributes more, for better error checking and better code generation. svn:r7020 Nick Mathewson2006-08-11
* 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
* 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
* minor fixes•••svn:r6710 Roger Dingledine2006-07-04
* perhaps the reason I rail against cut-and-paste programming so vehemently is ...•••svn:r6638 Nick Mathewson2006-06-18
* Add a memdup function to util•••svn:r6635 Nick Mathewson2006-06-18
* add tor_strisprint() back in, this time with comments.•••svn:r6170 Roger Dingledine2006-03-15
* and remove now-extraneous function•••svn:r6168 Roger Dingledine2006-03-15
* Instead of listing a set of compilers that prefers __func__ to __FUNCTION__, ...•••svn:r6144 Nick Mathewson2006-03-13
* Add some functions to escape values from the network before sending them to t...•••svn:r6087 Nick Mathewson2006-03-05
* Allow private:* in routerdescs; not generated yet (because older Tors do not ...•••svn:r6086 Nick Mathewson2006-03-05
* Generate 18.0.0.0/8 address policy format in descs when we can; warn when the...•••svn:r5991 Nick Mathewson2006-02-12
* Happy new year!•••svn:r5949 Roger Dingledine2006-02-09
* Refuse to use RunAsDaemon when torrc is a relative path. Fixes bug 229.•••svn:r5767 Nick Mathewson2006-01-10
* util.c:1308: error: conflicting types for "is_internal_IP"•••svn:r5545 Nick Mathewson2005-12-09
* Move code to check for zero digests into util.c•••svn:r5468 Nick Mathewson2005-11-30
* tor_assert had a misleading comment•••svn:r5338 Roger Dingledine2005-11-01
* Remove last vestiges of old logging interface.•••svn:r5317 Nick Mathewson2005-10-25
* Efficiency hack: call tor_fix_source_file late, not early. Add "BUG" domain....•••svn:r5309 Nick Mathewson2005-10-25
* Start dividing log messages into logging domains. No, LD_ is not the best of...•••svn:r5284 Nick Mathewson2005-10-18
* Inline key smartlist functions; use fast versions by default.•••svn:r5265 Nick Mathewson2005-10-18
* Make doxygen marginally happier•••svn:r5208 Nick Mathewson2005-10-06
* Reorganize some quick-and-dirty code to find out what openssl stuff is leakin...•••svn:r5178 Nick Mathewson2005-10-03
* even better function start checks; give dmalloc a chance of working.•••svn:r5162 Nick Mathewson2005-09-30
* Add a bunch more warnings to out warning suite; resolve them; pack structs a ...•••svn:r5150 Nick Mathewson2005-09-29
* Two new functions like write_bytes_to_file: one takes a list of byte-and-len ...•••svn:r5024 Nick Mathewson2005-09-13
* add strupper function•••svn:r4934 Nick Mathewson2005-09-08