aboutsummaryrefslogtreecommitdiff
path: root/src/common/compat.h
Commit message (Collapse)AuthorAge
* Efficiency hack: call tor_fix_source_file late, not early. Add "BUG" ↵Nick Mathewson2005-10-25
| | | | | | domain. Domains are now bitmasks... just in case. Make some err msgs non-general. svn:r5309
* Make doxygen marginally happierNick Mathewson2005-10-06
| | | | svn:r5208
* Add a touch_file() function to compat so we can update cache mtimes.Nick Mathewson2005-09-14
| | | | svn:r5067
* Use tor_listdir in test.c instead of duplicating ode.Nick Mathewson2005-09-10
| | | | svn:r4981
* Make GCC very happy, even with lots of warnings set. Also, try to fix some ↵Nick Mathewson2005-08-12
| | | | | | reported Solaris x86 warnings. svn:r4770
* and a nearby defineRoger Dingledine2005-07-23
| | | | svn:r4643
* add parenthesis to U64_PRINTF_ARG macroNick Mathewson2005-07-23
| | | | svn:r4642
* Add a tor_memmem functionNick Mathewson2005-06-18
| | | | svn:r4452
* Change end-of-file NLNL convention. It turns out arma I and I agree.Nick Mathewson2005-06-09
| | | | svn:r4382
* Implement --disable-threadsNick Mathewson2005-05-10
| | | | svn:r4187
* Make Tor compile with no warnings with gcc4.0 on OSXNick Mathewson2005-05-07
| | | | svn:r4184
* update copyright notices.Nick Mathewson2005-04-01
| | | | svn:r3982
* Fix some more obscure compiler warningsNick Mathewson2005-03-14
| | | | svn:r3758
* Renormalize whitespaceNick Mathewson2005-03-14
| | | | svn:r3757
* Implement more control spec functionalityNick Mathewson2005-02-25
| | | | | | | | | | | | | | | | | | - 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
* Forward-port the trick to bump up ConnLimit as far as it canRoger Dingledine2005-02-22
| | | | | | | | go, but not past MAXCONNECTIONS. Also throw away the FAKE_POLL caveats since 0.1.0 doesn't need it any more. svn:r3657
* Patch to localtime/gmtime handling: use the _r variants where available. ↵Nick Mathewson2005-02-22
| | | | | | Use mutexes to fake _r where necessary. Make mutexes no-ops where no threading is enabled. svn:r3653
* Tell openssl how to use locks and how to find thread ids -- this may prevent ↵Nick Mathewson2005-02-13
| | | | | | race conditions surrounding the error queue. svn:r3622
* Forward-port SGI Compatibility patches from Jan SchaumannNick Mathewson2005-02-03
| | | | svn:r3517
* Add rudimentary pthread support that needs more testing.Nick Mathewson2005-01-27
| | | | svn:r3439
* fwd-port win32 isprint fixNick Mathewson2005-01-22
| | | | svn:r3410
* Make Tor use Niels Provos's libevent instead of it's currentNick Mathewson2005-01-12
| | | | | | | | | | | | 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
* Possible fix for task #43: when running on a multithreaded environment ↵Nick Mathewson2005-01-03
| | | | | | (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
* move network_init from or/main to common/compatRoger Dingledine2004-12-22
| | | | | | | | call network_init in tor-resolve.c too move tor_lookup_hostname from common/util to common/compat svn:r3203
* Workaround for brain-damaged __FILE__ handling on MSVC: keep Nick's name outNick Mathewson2004-12-22
| | | | | | | of the warning messages. svn:r3199
* Solaris CC freaks out if isspace and friends get anything other than an int. ↵Nick Mathewson2004-12-08
| | | | | | We learned that, so we casted. But it is also a bad idea to cast a signed char to an int and expect things to work on win32. Now we cast to unsigned char, then to int, then pass to isspace. Ug svn:r3120
* Suggestion from weasel: Make tor --version --version dump the cvs Id of ↵Nick Mathewson2004-11-29
| | | | | | every file. svn:r3019
* connect() on win32 can do more things than we thought?Nick Mathewson2004-11-28
| | | | svn:r2999
* remove emacs droppings, since nick says he doesn't need them anymoreRoger Dingledine2004-11-26
| | | | svn:r2989
* Normalize a few more kinds of whitespace. We now dislike:Nick Mathewson2004-11-22
| | | | | | | | | - func (args) - if (x){ This doesn't normalize if(x), for(x); while(x), and friends. svn:r2943
* Add "MEMUNIT" and "INTERVAL" types to configuration. Also tweak Accounting ↵Nick Mathewson2004-11-20
| | | | | | setup. More docs needed svn:r2911
* Resolve FIXME items: make expand_filename handle ~ and ~usernameNick Mathewson2004-11-10
| | | | svn:r2789
* Twiddle header order to compile on OS X againNick Mathewson2004-11-04
| | | | svn:r2681
* The spelling is "d-e-f-i-n-e".Nick Mathewson2004-11-03
| | | | svn:r2650
* Add compatibility macros for printf and scanf-ing 64-bit unsigned intsNick Mathewson2004-11-02
| | | | svn:r2648
* Handle strlcat/strlcpy correctly on platforms that have them.Nick Mathewson2004-11-02
| | | | svn:r2647
* Fix signed/unsigned comparison warningNick Mathewson2004-11-01
| | | | svn:r2643
* Split util into util (general utilities), container (smartlist and strmap), ↵Nick Mathewson2004-11-01
and compat (cross-platform compatability). svn:r2640