- 12 Dec, 2009 1 commit
-
-
Sebastian Hahn authored
Some *_free functions threw asserts when passed NULL. Now all of them accept NULL as input and perform no action when called that way. This gains us consistence for our free functions, and allows some code simplifications where an explicit null check is no longer necessary.
-
- 20 Nov, 2009 2 commits
-
-
Nick Mathewson authored
-
Nick Mathewson authored
On this OSX version, there is a stub mlockall() function that doesn't work, *and* the declaration for it is hidden by an '#ifdef _P1003_1B_VISIBLE'. This would make autoconf successfully find the function, but our code fail to build when no declaration was found. This patch adds an additional test for the declaration.
-
- 14 Nov, 2009 1 commit
-
-
This fixes bug 1147: bionic doesn't have an actual implementation of mlockall(); mlockall() is merely in the headers but not actually in the library. This prevents Tor compilation with the bionic libc for Android handsets.
-
- 27 Oct, 2009 1 commit
-
-
This commit implements a new config option: 'DisableAllSwap' This option probably only works properly when Tor is started as root. We added two new functions: tor_mlockall() and tor_set_max_memlock(). tor_mlockall() attempts to mlock() all current and all future memory pages. For tor_mlockall() to work properly we set the process rlimits for memory to RLIM_INFINITY (and beyond) inside of tor_set_max_memlock(). We behave differently from mlockall() by only allowing tor_mlockall() to be called one single time. All other calls will result in a return code of 1. It is not possible to change DisableAllSwap while running. A sample configuration item was added to the torrc.complete.in config file. A new item in the man page for DisableAllSwap was added. Thanks to Moxie Marlinspike and Chris Palmer for their feedback on this patch. Please note that we make no guarantees about the quality of your OS and its mlock/mlockall implementation. It is possible that this will do nothing at all. It is also possible that you can ulimit the mlock properties of a given user such that root is not required. This has not been extensively tested and is unsupported. I have included some comments for possible ways we can handle this on win32.
-
- 15 Sep, 2009 1 commit
-
-
documentation fix for get_uint64 remove extra "." from a log line fix a long line
-
- 10 Aug, 2009 1 commit
-
-
Nick Mathewson authored
I don't think we actually use (or plan to use) strtok_r in a reentrant way anywhere in our code, but would be nice not to have to think about whether we're doing it.
-
- 30 May, 2009 1 commit
-
-
Nick Mathewson authored
This patch adds a function to determine whether we're in the main thread, and changes control_event_logmsg() to return immediately if we're in a subthread. This is necessary because otherwise we will call connection_write_to_buf, which modifies non-locked data structures. Bugfix on 0.2.0.x; fix for at least one of the things currently called "bug 977".
-
- 27 May, 2009 1 commit
-
-
Nick Mathewson authored
-
- 13 May, 2009 1 commit
-
-
Nick Mathewson authored
This matters because a cpuworker can close its socket when it finishes. Cpuworker typically runs in another thread, so without a lock here, we can have a race condition and get confused about how many sockets are open. Possible fix for bug 939.
-
- 04 May, 2009 1 commit
-
-
- 02 May, 2009 1 commit
-
-
Karsten Loesing authored
-
- 03 Mar, 2009 1 commit
-
-
Nick Mathewson authored
svn:r18761
-
- 02 Mar, 2009 1 commit
-
-
Nick Mathewson authored
It seems that 64-bit Sparc Solaris demands 64-bit-aligned access to uint64_t, but does not 64-bit-align the stack-allocated char array we use for cpuworker tags. So this patch adds a set/get_uint64 pair, and uses them to access the conn_id field in the tag. svn:r18743
-
- 09 Feb, 2009 2 commits
-
-
Nick Mathewson authored
svn:r18449
-
Nick Mathewson authored
svn:r18422
-
- 21 Jan, 2009 1 commit
-
-
Nick Mathewson authored
svn:r18203
-
- 20 Jan, 2009 1 commit
-
-
Nick Mathewson authored
Add a better (non-locale-having) ctypes implementation to avoid protocol and parsing mismatches on different platforms. svn:r18189
-
- 04 Jan, 2009 2 commits
-
-
Nick Mathewson authored
svn:r17887
-
Nick Mathewson authored
The subversion $Id$ fields made every commit force a rebuild of whatever file got committed. They were not actually useful for telling the version of Tor files in the wild. svn:r17867
-
- 30 Dec, 2008 1 commit
-
-
Nick Mathewson authored
svn:r17827
-
- 22 Dec, 2008 4 commits
-
-
Nick Mathewson authored
svn:r17741
-
Nick Mathewson authored
svn:r17739
-
Nick Mathewson authored
svn:r17734
-
Nick Mathewson authored
Add DOCDOC comments for all undocumented functions. Add missing *s to other comments so that they will get recognized as doxygen. svn:r17729
-
- 11 Dec, 2008 1 commit
-
-
Nick Mathewson authored
Lower sprintf buffer max to ~SSIZE_T_MAX from SIZE_T_CEILING, since we need to compare it to a signed int. svn:r17600
-
- 09 Dec, 2008 1 commit
-
-
Nick Mathewson authored
svn:r17543
-
- 08 Dec, 2008 1 commit
-
-
Nick Mathewson authored
svn:r17522
-
- 05 Dec, 2008 3 commits
-
-
Nick Mathewson authored
svn:r17493
-
Nick Mathewson authored
svn:r17490
-
Nick Mathewson authored
svn:r17484
-
- 02 Dec, 2008 2 commits
-
-
Roger Dingledine authored
svn:r17457
-
Nick Mathewson authored
Add two lseek wrappers to compat.[ch]: one to return current fd position, and one to move the fd to the end of the file. svn:r17454
-
- 26 Nov, 2008 2 commits
-
-
Nick Mathewson authored
svn:r17392
-
Nick Mathewson authored
svn:r17391
-
- 11 Nov, 2008 1 commit
-
-
Nick Mathewson authored
apply sebastian's fix for bug 859. Apparently on win32 one must lock at least one byte when locking, but locking a nonexistant byte is okay. ) svn:r17244
-
- 10 Nov, 2008 3 commits
-
-
Nick Mathewson authored
svn:r17239
-
Roger Dingledine authored
svn:r17233
-
Roger Dingledine authored
hopefully will address bug 857. svn:r17232
-
- 09 Nov, 2008 1 commit
-
-
Nick Mathewson authored
svn:r17228
-