aboutsummaryrefslogtreecommitdiff
path: root/src/common/compat.c
Commit message (Expand)AuthorAge
...
* Cast uid_t and gid_t to unsigned before passing to printf %u.•••svn:r17392 Nick Mathewson2008-11-26
* Use fcntl for file locking when flock() is not available.•••svn:r17391 Nick Mathewson2008-11-26
* apply sebastian's fix for bug 859. Apparently on win32 one must lock at least...•••svn:r17244 Nick Mathewson2008-11-11
* Document a couple of functions.•••svn:r17239 Nick Mathewson2008-11-10
* beg nick for some documentation on the locking functions•••svn:r17233 Roger Dingledine2008-11-10
* better error message when you set User but start tor as non-root.•••hopefully will address bug 857. svn:r17232 Roger Dingledine2008-11-10
* Log a little more when credential-switching fails.•••svn:r17228 Nick Mathewson2008-11-09
* while we're cleaning code, get rid of some unreachable code at•••the bottom of switch_id svn:r17205 Roger Dingledine2008-11-07
* now that we drop privs more thoroughly, switch_id() is no longer•••idempotent. so now we remember if we've succeeded, and if so we don't even try. svn:r17204 Roger Dingledine2008-11-07
* remove more redundant code from r17200•••svn:r17203 Roger Dingledine2008-11-07
* Developers should usually configure with --enable-gcc-warnings, and should re...•••svn:r17201 Nick Mathewson2008-11-07
* Patch from Jacob Appelbaum and me to make User option more robust, properly s...•••svn:r17200 Steven Murdoch2008-11-07
* Fix mingw build with --enable-gcc-warnings set.•••svn:r16759 Nick Mathewson2008-09-04
* remove some redundant includes. i expect the first one to be a problem•••for tas, but who knows. svn:r16723 Roger Dingledine2008-09-01
* Add a lockfile to the Tor data directory to avoid situations where two Tors s...•••svn:r16722 Nick Mathewson2008-09-01
* r17848@tombo: nickm | 2008-08-22 12:10:11 -0400••• Make definition of tor_mutex_t go into compat.h, so that it is possible to inline mutexes in critical objects. Add init/uninit functions for mutexes allocated inside other structs. svn:r16623 Nick Mathewson2008-08-22
* r17358@pc-10-8-1-079: nickm | 2008-07-25 16:41:03 +0200••• Split out the address manipulation functions from compat and util: they were about 21% of the total of those, and spread out too much. svn:r16208 Nick Mathewson2008-07-25
* r17346@aud-055: nickm | 2008-07-24 15:37:19 +0200••• Make generic address manipulation functions work better. Switch address policy code to use tor_addr_t, so it can handle IPv6. That is a good place to start. svn:r16178 Nick Mathewson2008-07-24
* r19795@catbus: nickm | 2008-05-16 14:54:24 -0400••• Rename tor_addr_t manipulation functions for a consistent style. svn:r14639 Nick Mathewson2008-05-16
* r15304@tombo: nickm | 2008-04-23 16:31:40 -0400••• Forward-port: I had apparently broken OSX and Freebsd by not initializing threading before we initialize the logging system. This patch should do so, and fix bug 671. svn:r14430 Nick Mathewson2008-04-23
* r15251@tombo: nickm | 2008-04-22 11:59:46 -0400••• On platforms using pthreads, allow a thread to acquire a lock it already holds. This is crucial for logging: otherwise any log message thrown from inside the logging process (especially from control.c) will deadlock. Win32 CriticalSections are already recursive. Bug spotted by nwf. Bugfix on 0.2.0.16-alpha. Backport candidate. I hope this is portable. svn:r14406 Nick Mathewson2008-04-22
* r18927@catbus: nickm | 2008-03-18 11:11:49 -0400••• Combine common code in set_max_file_descriptors(): all that varies from platform to platform in the no-getrlimit() case is the connection limit and the platform name. svn:r14101 Nick Mathewson2008-03-18
* r18923@catbus: nickm | 2008-03-18 11:01:22 -0400••• Add missing typecasts to log message in set_max_file_descriptors to tell gcc everything is okay on windows. Fixes bug 630. svn:r14099 Nick Mathewson2008-03-18
* r18360@catbus: nickm | 2008-02-21 22:26:32 -0500••• Make torint.h define ssize_t more robustly; add spaces to last patch svn:r13670 Nick Mathewson2008-02-22
* r18358@catbus: nickm | 2008-02-21 22:21:57 -0500••• Remove extraneous commas in compat.c svn:r13669 Nick Mathewson2008-02-22
* r14374@tombo: nickm | 2008-02-21 16:57:39 -0500••• Fix all remaining shorten-64-to-32 errors in src/common. Some were genuine problems. Many were compatibility errors with libraries (openssl, zlib) that like predate size_t. Partial backport candidate. svn:r13665 Nick Mathewson2008-02-21
* r14371@tombo: nickm | 2008-02-21 16:13:18 -0500••• Fix all -Wshorten-64-to-32 warnings that appear on my macbook. svn:r13662 Nick Mathewson2008-02-21
* r18291@catbus: nickm | 2008-02-20 22:35:32 -0500••• Resolve all DOCDOC issues, and document some other undocumented code, and fix a changelog entry. svn:r13638 Nick Mathewson2008-02-21
* r18269@catbus: nickm | 2008-02-20 17:28:24 -0500••• Apply patch from Sebastian Hahn: stop imposing an arbitrary maximum on the number of file descriptors used for busy servers. Bug reported by Olaf Selke. svn:r13626 Nick Mathewson2008-02-20
* r18233@catbus: nickm | 2008-02-19 18:46:07 -0500••• Count sockets returned from socketpair() too. This is probably not the socket counting bug. svn:r13600 Nick Mathewson2008-02-19
* r18226@catbus: nickm | 2008-02-19 18:01:01 -0500••• Brown-paper-bag time. We were failing to count all the sockets from accept(). svn:r13595 Nick Mathewson2008-02-19
* r18221@catbus: nickm | 2008-02-19 17:46:16 -0500••• New debugging code to figure out what is happending with socket counts. svn:r13593 Nick Mathewson2008-02-19
* clean up the socket counting thing. third time's a charm.•••svn:r13581 Roger Dingledine2008-02-19
* r18198@catbus: nickm | 2008-02-19 14:30:30 -0500••• Try to *fix* the socket counting problem, and add an info log to detect whether we really fixed it svn:r13580 Nick Mathewson2008-02-19
* hunt for killerchicken's socket counting problem•••svn:r13578 Roger Dingledine2008-02-19
* We were leaking a file descriptor if Tor started with a zero-length•••cached-descriptors file. Patch by freddy77; bugfix on 0.1.2. svn:r13488 Roger Dingledine2008-02-13
* tweak•••svn:r13443 Roger Dingledine2008-02-09
* Update some copyright notices: it is now 2008.•••svn:r13412 Nick Mathewson2008-02-07
* r17899@catbus: nickm | 2008-02-05 14:14:06 -0500••• Fix a couple of XXX020 items. Also, disable all "condition" sychronization code, since Tor does not use it yet svn:r13380 Nick Mathewson2008-02-05
* clean up copyrights, and assign 2007 copyrights to The Tor Project, Inc•••svn:r12786 Roger Dingledine2007-12-12
* r15106@tombo: nickm | 2007-12-04 00:08:35 -0500••• Change tor_addr_t to be a tagged union of in_addr and in6_addr, not of sockaddr_in and sockaddr_in6. It's hardly used in the main code as it is, but let's get it right before it gets popular. svn:r12660 Nick Mathewson2007-12-04
* r16450@catbus: nickm | 2007-11-06 09:18:11 -0500••• Fix compile on sparc64 svn:r12394 Nick Mathewson2007-11-06
* r16367@catbus: nickm | 2007-11-02 13:13:15 -0400••• Space fixes. svn:r12345 Nick Mathewson2007-11-02
* r14652@tombo: nickm | 2007-11-02 12:02:13 -0400••• If setting our rlimit to rlim_max or cap fails, fall back to OPEN_FILES if defiled. This makes Tor run on OSX 10.5, while allowing OSX to mend its ways in the future. svn:r12341 Nick Mathewson2007-11-02
* r14647@tombo: nickm | 2007-11-02 10:48:37 -0400••• Use rlim_t instead of unsigned long to manipulate rlimit values. svn:r12339 Nick Mathewson2007-11-02
* r16128@catbus: nickm | 2007-10-24 22:52:16 -0400••• Fix windows mmap changes. svn:r12171 Nick Mathewson2007-10-25
* r16100@catbus: nickm | 2007-10-24 11:33:52 -0400••• Make tor_mmap_file() set and preserve errno in a useful way. svn:r12153 Nick Mathewson2007-10-24
* r14639@catbus: nickm | 2007-08-17 17:45:28 -0400••• Compile without warnings on MinGW, even with --enable-gcc-warnings enabled. svn:r11157 Nick Mathewson2007-08-17
* r14051@Kushana: nickm | 2007-08-15 15:55:36 -0400••• Fix an XXXX020 and a few DOCDOCs. svn:r11127 Nick Mathewson2007-08-15
* r13926@Kushana: nickm | 2007-08-03 00:55:23 -0700••• Fix compilation with HAVE_GETADDRINFO unset svn:r11042 Nick Mathewson2007-08-03