aboutsummaryrefslogtreecommitdiff
path: root/src/common
Commit message (Collapse)AuthorAge
* r8971@totoro: nickm | 2006-10-09 10:16:23 -0400Nick Mathewson2006-10-09
| | | | | | | Move definition of ssize_t to torint.h svn:r8670
* r8967@totoro: nickm | 2006-10-08 23:38:50 -0400Nick Mathewson2006-10-09
| | | | | | | Fix some test and warn failures in last commit svn:r8665
* r8957@totoro: nickm | 2006-10-08 22:35:17 -0400Nick Mathewson2006-10-09
| | | | | | | The otherwise regrettable MIPSpro C compiler warns about values set but never used, and about mixing enums and ints; these are good warnings, and so should be fixed. This removes some dead code and some potential bugs. Thanks to pnx. svn:r8664
* Add missing return so this builds on mingw.Andrew Lewman2006-10-08
| | | | svn:r8649
* r8923@totoro: nickm | 2006-10-07 11:44:33 -0400Nick Mathewson2006-10-07
| | | | | | | More doxygen comments svn:r8637
* more minor cleanupsRoger Dingledine2006-10-07
| | | | svn:r8630
* fix something that looked scary to me. i believe this won'tRoger Dingledine2006-10-07
| | | | | | | | | | change any behavior currently, but it will avoiding calling noop code that might change for the worse some time. nick, please confirm. svn:r8623
* minor cleanupsRoger Dingledine2006-10-07
| | | | svn:r8622
* r8860@totoro: nickm | 2006-10-03 14:48:33 -0400Nick Mathewson2006-10-03
| | | | | | | Use ANSI-style definition syntax in strlcat.c and strlcpy.c so that gcc stops barfing with -Wold-style-definition svn:r8591
* r8851@totoro: nickm | 2006-10-02 18:13:27 -0400Nick Mathewson2006-10-02
| | | | | | | 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
* r8846@totoro: nickm | 2006-10-02 16:59:57 -0400Nick Mathewson2006-10-02
| | | | | | | 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
* r8845@totoro: nickm | 2006-10-02 16:34:58 -0400Nick Mathewson2006-10-02
| | | | | | | Fix an XXXX: make path_is_relative work on windows even though we never use it there. svn:r8577
* r8844@totoro: nickm | 2006-10-02 16:32:44 -0400Nick Mathewson2006-10-02
| | | | | | | Resolve an XXXX: make sure that we are actually on 2s-complement hardware. svn:r8576
* r8825@totoro: nickm | 2006-10-01 17:41:27 -0400Nick Mathewson2006-10-01
| | | | | | | Add function to return a random uint64_t. svn:r8570
* r9032@Kushana: nickm | 2006-09-29 18:51:42 -0400Nick Mathewson2006-09-29
| | | | | | | Now, all log messages should be distinct. svn:r8545
* r9025@Kushana: nickm | 2006-09-29 18:33:13 -0400Nick Mathewson2006-09-29
| | | | | | | Differentiate more duplicated log entries svn:r8542
* r9023@Kushana: nickm | 2006-09-29 17:27:24 -0400Nick Mathewson2006-09-29
| | | | | | | Make distinct all non-bug messages at notice or higher that appear 3 or more times. svn:r8541
* r9008@Kushana: nickm | 2006-09-29 13:50:10 -0400Nick Mathewson2006-09-29
| | | | | | | Doxygen comments for code in common. Also simplify a few code paths to be more clear/speedy/correct. svn:r8536
* r9006@Kushana: nickm | 2006-09-29 10:48:23 -0400Nick Mathewson2006-09-29
| | | | | | | Omit function names from NOTICE, WARN and ERR messages unless they are in LD_BUG. svn:r8534
* r8974@Kushana: nickm | 2006-09-28 17:05:59 -0400Nick Mathewson2006-09-28
| | | | | | | 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
* r8750@totoro: nickm | 2006-09-27 20:52:01 -0400Nick Mathewson2006-09-28
| | | | | | | Fix some warnings on mingw; hopefully this should let us build on mingw without warnings. svn:r8509
* Backport candidate: remove dangerous free(0) on hashtable initNick Mathewson2006-09-25
| | | | svn:r8499
* add missing paren in dmalloc tor_freeNick Mathewson2006-09-25
| | | | svn:r8498
* r8878@Kushana: nickm | 2006-09-21 17:15:47 -0400Nick Mathewson2006-09-21
| | | | | | | Trivial whitespace cleanups. svn:r8443
* Speed up eat_whitespace by a lot.Nick Mathewson2006-09-19
| | | | svn:r8434
* NEEDS REVIEW. Act on previous comment, and handle named servers differently: ↵Nick Mathewson2006-09-19
| | | | | | now, we allow multiple servers with the same name in the routerlist even if that name is reserved, but we check whether names are reserved when we try to look up routers by nickname. This is a minor security fix. This makes router_add_to_routerlist O(1). This is a backport candidate. svn:r8433
* Malloc and friends are critical-path: Thus, add an it-wont-happen branch ↵Nick Mathewson2006-09-19
| | | | | | prediction for NULL returns, and skip the malloc(0) check on platforms where malloc(0) returns a pointer. svn:r8431
* Switch routerlist.c to using memcmp on digests rather than ↵Nick Mathewson2006-09-19
| | | | | | crypto_pk_cmp_keys(); speed up find_whitespace a lot (8x for me) by using a switch statement. This should speed parsing a lot of routers at once by a lot. svn:r8430
* Merge in some bsockets calls, all wrapped inside #if defined(USE_BSOCKETS)Nick Mathewson2006-09-19
| | | | svn:r8427
* r8819@Kushana: nickm | 2006-09-15 00:27:45 -0400Nick Mathewson2006-09-15
| | | | | | | Implement a smartlist_uniq() that will with luck not end the world. svn:r8396
* r9749@danube: weasel | 2006-09-14 06:53:12 +0200Peter Palfrader2006-09-14
| | | | | | | | | | | Do not graciously increase the size to be mmaped if the current size already is at a page_size boundary. This is important since if a file has a size of zero and we mmap() it with length > 0, then accessing the mmaped memory area causes a bus error. However, if we pass a length of 0 to mmap() it will return with -1 and things work from there. svn:r8387
* parameterize the loudness of get_interface_address()Roger Dingledine2006-09-09
| | | | svn:r8358
* fix typo, add log messageRoger Dingledine2006-09-09
| | | | svn:r8357
* r8725@Kushana: nickm | 2006-09-06 04:39:29 -0400Nick Mathewson2006-09-06
| | | | | | | spawn_func fixes: have cpuworker_main and dnsworker_main confirm to the right interfaces [casting func to void* is icky]. Also, make pthread_create() build without warnings. svn:r8327
* r8724@Kushana: nickm | 2006-09-06 04:32:28 -0400Nick Mathewson2006-09-06
| | | | | | | Fix spaces; restore support for mapping files over 4GB on win32 (?) svn:r8326
* - made configure check if we are building for win32Mike Chiussi2006-09-06
| | | | | | | | | | | | | - made configure link to required system dll's if building for win32 - added diffs for libevent 1.1b - forced user to turn off eventdns if win32 is set - cleaned up tor_mmap_file()_win32 (not sure if it's stable) - cleaned up some warnings and typos svn:r8322
* r8696@Kushana: nickm | 2006-08-31 14:43:44 -0400Nick Mathewson2006-08-31
| | | | | | | Try to appease some warnings with newer gccs that believe that ignoring a return value is okay, but casting a return value and then ignoring it is a sign of madness. svn:r8312
* r8692@Kushana: nickm | 2006-08-31 13:38:07 -0400Nick Mathewson2006-08-31
| | | | | | | 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
* r8691@Kushana: nickm | 2006-08-31 13:30:46 -0400Nick Mathewson2006-08-31
| | | | | | | Fix bug 327 (part 1): Use correct macro to test for GCC 3 or later. svn:r8309
* r8682@Kushana: nickm | 2006-08-29 17:58:59 -0400Nick Mathewson2006-08-29
| | | | | | | Fix compilation on GCC2 by disabling fun attributes unless __GNUC_MAJOR__ >= 3. svn:r8303
* r8626@Kushana: nickm | 2006-08-27 23:45:46 -0400Nick Mathewson2006-08-28
| | | | | | | Aw, crap. Non-gcc bug. We need regular windows builds. svn:r8259
* stop three memory leaks. nick, fix these if i'm wrong.Roger Dingledine2006-08-27
| | | | svn:r8235
* r7404@Kushana: nickm | 2006-08-16 09:32:19 -0400Nick Mathewson2006-08-16
| | | | | | | Pass hints to getaddrinfo; fix bug 280 (?) svn:r7069
* note a compile warning that we should investigate one day.Roger Dingledine2006-08-14
| | | | svn:r7052
* r7341@Kushana: nickm | 2006-08-11 00:51:05 -0700Nick Mathewson2006-08-11
| | | | | | | Amazing how much difference adding a ! to all your asserts can make. svn:r7029
* r7337@Kushana: nickm | 2006-08-11 00:42:04 -0700Nick Mathewson2006-08-11
| | | | | | | Only use __builtin_offsetof with gcc 4 or later svn:r7028
* r7335@Kushana: nickm | 2006-08-11 00:13:03 -0700Nick Mathewson2006-08-11
| | | | | | | fix wide lines svn:r7025
* r7326@Kushana: nickm | 2006-08-10 23:50:49 -0700Nick Mathewson2006-08-11
| | | | | | | 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
* r7325@Kushana: nickm | 2006-08-10 23:37:31 -0700Nick Mathewson2006-08-11
| | | | | | | Use gcc offsetof where available. svn:r7021
* r7324@Kushana: nickm | 2006-08-10 23:23:15 -0700Nick Mathewson2006-08-11
| | | | | | | 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