summaryrefslogtreecommitdiff
path: root/src/common/compat.c
AgeCommit message (Collapse)Author
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-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-07-09Make compilation work on old MSVCs without GetVertsionEx magic. Patch from ↵Nick Mathewson
Frediano Ziglio. svn:r6749
2006-06-28Actually enable mmap. That should improve matters.Nick Mathewson
svn:r6694
2006-06-05simplify code now that libevent considers all sockets pollable.Roger Dingledine
what we really mean now is ">= 0", which is clearer to test for. svn:r6543
2006-06-04Add a new warning to our "warn a lot" list: unused parameters. This means ↵Nick Mathewson
we have to explicitly "use" unuseds, but it can catch bugs. (It caught two coding mistakes so far.) svn:r6532
2006-06-03More DNS fixes. Send meaningful TTLs back to the client whenNick Mathewson
possible. Cache at the server side independently from the TTL, to prevent attackers from probing the server to see who has been asking for what hostnames. (Hi, Dan Kaminski!) Also, clean some whitespace. svn:r6526
2006-05-28Add a basic mmap function, with a "fake-it" wrapper to do read_file_from_str ↵Nick Mathewson
instead. Based on code from Michael Mohr. svn:r6510
2006-05-23Throw out this UNALIGNED_INT_ACCESS_OK nonsense. Even where it works, it is ↵Nick Mathewson
often way way slower than doing the right thing. Backport candidate. svn:r6473
2006-03-26failing in a support function is a warn, not an err.Roger Dingledine
svn:r6239
2006-03-24Check return value from GetVersionEx (even though the MSDN example doesnt) ↵Nick Mathewson
and zero out the LPOSVERSIONINFOEX struct before getting the version. This may fix the "johnboy" [major=-858993460,minor=-858993460] problem. svn:r6233
2006-02-13Start the process of converting warn to log_warn and so on.Roger Dingledine
This is needed because Windows already has an err() that we can't clobber. And we need to be able to make the log functions a macro so we can print the function's name in the log entry. svn:r6000
2006-02-09Happy new year!Roger Dingledine
svn:r5949
2006-02-09and maybe some function documentation will help tooRoger Dingledine
svn:r5935
2006-01-23On systems that don't have getrlimit (like windows), we were artificiallyRoger Dingledine
constraining ourselves to a max of 1024 connections. Now if there is no getrlimit, just assume that we can handle the whole 15000 connections. The better answer is to find a getrlimit equivalent on Windows, but hey, one step at a time. svn:r5854
2005-12-14Bite the bullet and limit all our source lines to 80 characters, the way IBM ↵Nick Mathewson
intended. svn:r5582
2005-12-10crank the max line limit down to 150 chars.Roger Dingledine
svn:r5550
2005-11-15Make new logging stuff work on windows; fix a couple of windows typos.Nick Mathewson
svn:r5375
2005-10-25Efficiency hack: call tor_fix_source_file late, not early. Add "BUG" ↵Nick Mathewson
domain. Domains are now bitmasks... just in case. Make some err msgs non-general. svn:r5309
2005-10-24Check for even more windows version flags, and note any we do not recognize.Nick Mathewson
svn:r5297
2005-10-18Start dividing log messages into logging domains. No, LD_ is not the best ↵Nick Mathewson
of identifiers. src/or has not been converted yet. Domains dont do anything yet. svn:r5284
2005-10-07Win32 compilation/correctness fixes.Nick Mathewson
svn:r5218
2005-10-06Make doxygen marginally happierNick Mathewson
svn:r5208
2005-10-05Make windows platform detection smarter. {Untested.}Nick Mathewson
svn:r5198
2005-09-30Reformat inconsistent function declarations.Nick Mathewson
svn:r5160
2005-09-29Add a bunch more warnings to out warning suite; resolve them; pack structs a ↵Nick Mathewson
little better. svn:r5150
2005-09-14Add a touch_file() function to compat so we can update cache mtimes.Nick Mathewson
svn:r5067
2005-09-14Clean up a few warnings that make gcc twig out a bit.Nick Mathewson
svn:r5062
2005-08-26put quotes around user-supplied strings so they are more likely toRoger Dingledine
realize if they add bad characters (like quotes) to the torrc svn:r4844
2005-08-26add a tor_dup_addr() function to simplify malloc()+tor_inet_ntoa()Roger Dingledine
svn:r4838
2005-08-22Fix bug with tor_memmem finding a match at the end of the string.Nick Mathewson
svn:r4803
2005-08-03Fix compile failures on tor_gettimeofday() fix for windowsNick Mathewson
svn:r4685
2005-08-03Probably broken attempt to improve tor_gettimeofday granularity on windows.Nick Mathewson
svn:r4683
2005-07-22Be consistent about preferring foo* to struct foo*Nick Mathewson
svn:r4637
2005-07-13whitespace fixesNick Mathewson
svn:r4544
2005-07-13Fix windows compilationNick Mathewson
svn:r4543
2005-06-30Make errors retrievable from tor_socketpair; resolve bug 163.Nick Mathewson
svn:r4509
2005-06-27Fix libc compilationNick Mathewson
svn:r4497
2005-06-27Compile on win32Nick Mathewson
svn:r4496
2005-06-26note a bug in our tor_socketpair implementationRoger Dingledine
can somebody fix this or create a flyspray entry for it? svn:r4483
2005-06-18fix typoRoger Dingledine
svn:r4453
2005-06-18Add a tor_memmem functionNick Mathewson
svn:r4452
2005-06-12a bit more cleanupRoger Dingledine
svn:r4417
2005-06-11Docment or add DOCDOC comments to undocumented functions in src/or. Make ↵Nick Mathewson
function definition format uniform. svn:r4411
2005-06-11flesh out the source file descriptions for doxygenRoger Dingledine
svn:r4404