summaryrefslogtreecommitdiff
path: root/src/common
AgeCommit message (Collapse)Author
2006-09-21 r8878@Kushana: nickm | 2006-09-21 17:15:47 -0400Nick Mathewson
Trivial whitespace cleanups. svn:r8443
2006-09-19Speed up eat_whitespace by a lot.Nick Mathewson
svn:r8434
2006-09-19NEEDS REVIEW. Act on previous comment, and handle named servers differently: ↵Nick Mathewson
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
2006-09-19Malloc and friends are critical-path: Thus, add an it-wont-happen branch ↵Nick Mathewson
prediction for NULL returns, and skip the malloc(0) check on platforms where malloc(0) returns a pointer. svn:r8431
2006-09-19Switch routerlist.c to using memcmp on digests rather than ↵Nick Mathewson
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
2006-09-19Merge in some bsockets calls, all wrapped inside #if defined(USE_BSOCKETS)Nick Mathewson
svn:r8427
2006-09-15 r8819@Kushana: nickm | 2006-09-15 00:27:45 -0400Nick Mathewson
Implement a smartlist_uniq() that will with luck not end the world. svn:r8396
2006-09-14 r9749@danube: weasel | 2006-09-14 06:53:12 +0200Peter Palfrader
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
2006-09-09parameterize the loudness of get_interface_address()Roger Dingledine
svn:r8358
2006-09-09fix typo, add log messageRoger Dingledine
svn:r8357
2006-09-06 r8725@Kushana: nickm | 2006-09-06 04:39:29 -0400Nick Mathewson
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
2006-09-06 r8724@Kushana: nickm | 2006-09-06 04:32:28 -0400Nick Mathewson
Fix spaces; restore support for mapping files over 4GB on win32 (?) svn:r8326
2006-09-06- made configure check if we are building for win32Mike Chiussi
- 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
2006-08-31 r8696@Kushana: nickm | 2006-08-31 14:43:44 -0400Nick Mathewson
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
2006-08-31 r8692@Kushana: nickm | 2006-08-31 13:38:07 -0400Nick Mathewson
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
2006-08-31 r8691@Kushana: nickm | 2006-08-31 13:30:46 -0400Nick Mathewson
Fix bug 327 (part 1): Use correct macro to test for GCC 3 or later. svn:r8309
2006-08-29 r8682@Kushana: nickm | 2006-08-29 17:58:59 -0400Nick Mathewson
Fix compilation on GCC2 by disabling fun attributes unless __GNUC_MAJOR__ >= 3. svn:r8303
2006-08-28 r8626@Kushana: nickm | 2006-08-27 23:45:46 -0400Nick Mathewson
Aw, crap. Non-gcc bug. We need regular windows builds. svn:r8259
2006-08-27stop three memory leaks. nick, fix these if i'm wrong.Roger Dingledine
svn:r8235
2006-08-16 r7404@Kushana: nickm | 2006-08-16 09:32:19 -0400Nick Mathewson
Pass hints to getaddrinfo; fix bug 280 (?) svn:r7069
2006-08-14note a compile warning that we should investigate one day.Roger Dingledine
svn:r7052
2006-08-11 r7341@Kushana: nickm | 2006-08-11 00:51:05 -0700Nick Mathewson
Amazing how much difference adding a ! to all your asserts can make. svn:r7029
2006-08-11 r7337@Kushana: nickm | 2006-08-11 00:42:04 -0700Nick Mathewson
Only use __builtin_offsetof with gcc 4 or later svn:r7028
2006-08-11 r7335@Kushana: nickm | 2006-08-11 00:13:03 -0700Nick Mathewson
fix wide lines svn:r7025
2006-08-11 r7326@Kushana: nickm | 2006-08-10 23:50:49 -0700Nick Mathewson
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
2006-08-11 r7325@Kushana: nickm | 2006-08-10 23:37:31 -0700Nick Mathewson
Use gcc offsetof where available. svn:r7021
2006-08-11 r7324@Kushana: nickm | 2006-08-10 23:23:15 -0700Nick Mathewson
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
2006-08-05 r7030@Kushana: nickm | 2006-08-04 14:46:52 -0700Nick Mathewson
Close an fd leak on failed mmap() svn:r6988
2006-08-05 r7029@Kushana: nickm | 2006-08-04 14:08:41 -0700Nick Mathewson
Remove now-spurious size and data arguments from tor_mmap_file svn:r6987
2006-08-05 r7028@Kushana: nickm | 2006-08-04 13:10:16 -0700Nick Mathewson
Make data and size fields visible in tor_mmap_t; hide win magic differently. svn:r6986
2006-08-04 r7025@Kushana: nickm | 2006-08-04 12:03:22 -0700Nick Mathewson
Finish (I hope) windows mmap impl. svn:r6981
2006-08-04 r7012@Kushana: nickm | 2006-08-03 19:21:25 -0700Nick Mathewson
Add an "mmap handle" type to encapsulate bookkeeping elements of mmap issues; add prelim win32 impl svn:r6980
2006-08-03turn future seg faults into assertsRoger Dingledine
svn:r6970
2006-07-31 r6993@Kushana: nickm | 2006-07-31 16:19:21 -0400Nick Mathewson
Interesting how much a ! can change the behavior of an assert. svn:r6962
2006-07-31 r6980@Kushana: nickm | 2006-07-31 13:18:22 -0400Nick Mathewson
Add a utility function to verify that a string has been through strlower. svn:r6959
2006-07-31 r6979@Kushana: nickm | 2006-07-31 13:16:58 -0400Nick Mathewson
Add assert_ok functions for strmap and digestmap; use them in unit test code. svn:r6958
2006-07-31 r6978@Kushana: nickm | 2006-07-31 13:16:14 -0400Nick Mathewson
Add isupper and islower wrappers to compat.h svn:r6957
2006-07-31 r6958@Kushana: nickm | 2006-07-29 18:54:15 -0400Nick Mathewson
Looks like we might need a priority queue. svn:r6953
2006-07-27Fix a bug in HT_REMOVE.Nick Mathewson
svn:r6925
2006-07-27Get better numbers out of HT_REP_OKNick Mathewson
svn:r6924
2006-07-25Remove .cvsignore files from trunkPeter Palfrader
svn:r6891
2006-07-23Whitespace fixNick Mathewson
svn:r6816
2006-07-23Add a mem_is_zero function (I think we will need this) and a STRUCT_OFFSET ↵Nick Mathewson
macro (we already need this). svn:r6810
2006-07-21Another MSVC6 fix. Grnk.Nick Mathewson
svn:r6802
2006-07-18Hm. We probably should define INT64_MAX if we really want it. (Especially ↵Nick Mathewson
since we only want it on one platform, where, coincidentally, it is not defined.) svn:r6784
2006-07-17MSVC6 is apparently terrified of unnatural cross-breeding between uint64_t ↵Nick Mathewson
and double, and needs more persuasion than usual to cast one to the other. Issue identified by Frediano Ziglio; patch revised for minimal impact on non-MSVC6 compilers. svn:r6768
2006-07-15stick to nick's nul/null conventionRoger Dingledine
svn:r6763
2006-07-09Make compilation work on old MSVCs without GetVertsionEx magic. Patch from ↵Nick Mathewson
Frediano Ziglio. svn:r6749
2006-07-06when an exit node gets a malformed begin cell, don't complain toRoger Dingledine
the node operator, since he can't do anything about it. svn:r6733
2006-07-04ok, i'm not allowed to say that there. oh well.Roger Dingledine
svn:r6720