summaryrefslogtreecommitdiff
path: root/src/common/compat.h
AgeCommit message (Collapse)Author
2006-09-19Merge in some bsockets calls, all wrapped inside #if defined(USE_BSOCKETS)Nick Mathewson
svn:r8427
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 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-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 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 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 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-31 r6978@Kushana: nickm | 2006-07-31 13:16:14 -0400Nick Mathewson
Add isupper and islower wrappers to compat.h svn:r6957
2006-07-21Another MSVC6 fix. Grnk.Nick Mathewson
svn:r6802
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-04minor fixesRoger Dingledine
svn:r6710
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-03Patch based on post by Mike C to or-dev; special-case based on use of MSVC, ↵Nick Mathewson
rather than on MS_WINDOWS, so that mingw builds. svn:r6523
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-17normalize whitespace.Nick Mathewson
svn:r6173
2006-03-13Instead of listing a set of compilers that prefers __func__ to __FUNCTION__, ↵Nick Mathewson
use autoconf. Also, prefer __func__ in our own code: __func__ is a C99 standard, whereas __FUNCTION__ is not. [Fixes bug 254.] svn:r6144
2006-02-09Happy new year!Roger Dingledine
svn:r5949
2006-02-03check for EADDRINUSE in a cross-platform way (unless i'm wrong)Roger Dingledine
svn:r5899
2005-12-14Bite the bullet and limit all our source lines to 80 characters, the way IBM ↵Nick Mathewson
intended. svn:r5582
2005-12-07fix typo noticed by scrimblyRoger Dingledine
svn:r5522
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-06Make doxygen marginally happierNick Mathewson
svn:r5208
2005-09-14Add a touch_file() function to compat so we can update cache mtimes.Nick Mathewson
svn:r5067
2005-09-10Use tor_listdir in test.c instead of duplicating ode.Nick Mathewson
svn:r4981
2005-08-12Make GCC very happy, even with lots of warnings set. Also, try to fix some ↵Nick Mathewson
reported Solaris x86 warnings. svn:r4770
2005-07-23and a nearby defineRoger Dingledine
svn:r4643
2005-07-23add parenthesis to U64_PRINTF_ARG macroNick Mathewson
svn:r4642
2005-06-18Add a tor_memmem functionNick Mathewson
svn:r4452
2005-06-09Change end-of-file NLNL convention. It turns out arma I and I agree.Nick Mathewson
svn:r4382
2005-05-10Implement --disable-threadsNick Mathewson
svn:r4187
2005-05-07Make Tor compile with no warnings with gcc4.0 on OSXNick Mathewson
svn:r4184
2005-04-01update copyright notices.Nick Mathewson
svn:r3982
2005-03-14Fix some more obscure compiler warningsNick Mathewson
svn:r3758
2005-03-14Renormalize whitespaceNick Mathewson
svn:r3757
2005-02-25Implement more control spec functionalityNick Mathewson
- Mapaddress - Postdescriptor - GetInfo on descriptors Required changes elsewhere: - Keep the most recent running_routers_t in the routerlist_t. That way we can learn about new routers and remember whether we were last told that they were up or down. Also enables more simplifications. - Keep the signed descriptor inside routerinfo_t. This makes descriptor_entry_t in dirservers.c unneeded. - Rename AddressMap (the verb) to MapAddress. Keep AddressMap as a noun. - Check addresses for plausibility before mapping them. svn:r3696
2005-02-22Forward-port the trick to bump up ConnLimit as far as it canRoger Dingledine
go, but not past MAXCONNECTIONS. Also throw away the FAKE_POLL caveats since 0.1.0 doesn't need it any more. svn:r3657
2005-02-22Patch to localtime/gmtime handling: use the _r variants where available. ↵Nick Mathewson
Use mutexes to fake _r where necessary. Make mutexes no-ops where no threading is enabled. svn:r3653
2005-02-13Tell openssl how to use locks and how to find thread ids -- this may prevent ↵Nick Mathewson
race conditions surrounding the error queue. svn:r3622
2005-02-03Forward-port SGI Compatibility patches from Jan SchaumannNick Mathewson
svn:r3517
2005-01-27Add rudimentary pthread support that needs more testing.Nick Mathewson
svn:r3439
2005-01-22fwd-port win32 isprint fixNick Mathewson
svn:r3410
2005-01-12Make Tor use Niels Provos's libevent instead of it's currentNick Mathewson
poll-but-sometimes-select mess. This will let us use faster async cores (like epoll, kpoll, and /dev/poll), and hopefully work better on Windows too. There are some fairly nasty changes to main.c here; this will almost certainly break something. But hey, that's what alphas are for. svn:r3341
2005-01-03Possible fix for task #43: when running on a multithreaded environment ↵Nick Mathewson
(currently only windows), threads should not close opposite sides of their socketpairs, and workers should not call connection_free_all(). This may fix win32 servers. svn:r3247
2004-12-22move network_init from or/main to common/compatRoger Dingledine
call network_init in tor-resolve.c too move tor_lookup_hostname from common/util to common/compat svn:r3203