aboutsummaryrefslogtreecommitdiff
path: root/src/common/compat.h
Commit message (Collapse)AuthorAge
* r11607@catbus: nickm | 2007-01-30 17:19:27 -0500Nick Mathewson2007-01-30
| | | | | | | Audit non-const char arguments; make a lot more of them const. svn:r9466
* r9380@Kushana: nickm | 2006-10-24 21:25:07 -0400Nick Mathewson2006-10-25
| | | | | | | Add string.h include to compat.h so that strlcpy() and strlcat() will always be defined after including compat.h. This should resolve warnings on centos. svn:r8824
* r9274@Kushana: nickm | 2006-10-19 16:16:58 -0400Nick Mathewson2006-10-19
| | | | | | | Add unit tests for tor_mmap_file(); make tor_mmap_t.size always be the size of the file (not the size of the mapping); add an extra argument to read_file_to_str() so it can return the size of the result string. svn:r8762
* Merge in some bsockets calls, all wrapped inside #if defined(USE_BSOCKETS)Nick Mathewson2006-09-19
| | | | svn:r8427
* 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
* 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
* 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
* 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
* r7029@Kushana: nickm | 2006-08-04 14:08:41 -0700Nick Mathewson2006-08-05
| | | | | | | Remove now-spurious size and data arguments from tor_mmap_file svn:r6987
* r7028@Kushana: nickm | 2006-08-04 13:10:16 -0700Nick Mathewson2006-08-05
| | | | | | | Make data and size fields visible in tor_mmap_t; hide win magic differently. svn:r6986
* r7012@Kushana: nickm | 2006-08-03 19:21:25 -0700Nick Mathewson2006-08-04
| | | | | | | Add an "mmap handle" type to encapsulate bookkeeping elements of mmap issues; add prelim win32 impl svn:r6980
* r6978@Kushana: nickm | 2006-07-31 13:16:14 -0400Nick Mathewson2006-07-31
| | | | | | | Add isupper and islower wrappers to compat.h svn:r6957
* Another MSVC6 fix. Grnk.Nick Mathewson2006-07-21
| | | | svn:r6802
* MSVC6 is apparently terrified of unnatural cross-breeding between uint64_t ↵Nick Mathewson2006-07-17
| | | | | | 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
* minor fixesRoger Dingledine2006-07-04
| | | | svn:r6710
* simplify code now that libevent considers all sockets pollable.Roger Dingledine2006-06-05
| | | | | | | what we really mean now is ">= 0", which is clearer to test for. svn:r6543
* Patch based on post by Mike C to or-dev; special-case based on use of MSVC, ↵Nick Mathewson2006-06-03
| | | | | | rather than on MS_WINDOWS, so that mingw builds. svn:r6523
* Add a basic mmap function, with a "fake-it" wrapper to do read_file_from_str ↵Nick Mathewson2006-05-28
| | | | | | instead. Based on code from Michael Mohr. svn:r6510
* Throw out this UNALIGNED_INT_ACCESS_OK nonsense. Even where it works, it is ↵Nick Mathewson2006-05-23
| | | | | | often way way slower than doing the right thing. Backport candidate. svn:r6473
* normalize whitespace.Nick Mathewson2006-03-17
| | | | svn:r6173
* Instead of listing a set of compilers that prefers __func__ to __FUNCTION__, ↵Nick Mathewson2006-03-13
| | | | | | use autoconf. Also, prefer __func__ in our own code: __func__ is a C99 standard, whereas __FUNCTION__ is not. [Fixes bug 254.] svn:r6144
* Happy new year!Roger Dingledine2006-02-09
| | | | svn:r5949
* check for EADDRINUSE in a cross-platform way (unless i'm wrong)Roger Dingledine2006-02-03
| | | | svn:r5899
* Bite the bullet and limit all our source lines to 80 characters, the way IBM ↵Nick Mathewson2005-12-14
| | | | | | intended. svn:r5582
* fix typo noticed by scrimblyRoger Dingledine2005-12-07
| | | | svn:r5522
* 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