aboutsummaryrefslogtreecommitdiff
path: root/src/common/compat.c
Commit message (Collapse)AuthorAge
...
* Document a couple of functions.Nick Mathewson2008-11-10
| | | | svn:r17239
* beg nick for some documentation on the locking functionsRoger Dingledine2008-11-10
| | | | svn:r17233
* better error message when you set User but start tor as non-root.Roger Dingledine2008-11-10
| | | | | | | hopefully will address bug 857. svn:r17232
* Log a little more when credential-switching fails.Nick Mathewson2008-11-09
| | | | svn:r17228
* while we're cleaning code, get rid of some unreachable code atRoger Dingledine2008-11-07
| | | | | | | the bottom of switch_id svn:r17205
* now that we drop privs more thoroughly, switch_id() is no longerRoger Dingledine2008-11-07
| | | | | | | | idempotent. so now we remember if we've succeeded, and if so we don't even try. svn:r17204
* remove more redundant code from r17200Roger Dingledine2008-11-07
| | | | svn:r17203
* Developers should usually configure with --enable-gcc-warnings, and should ↵Nick Mathewson2008-11-07
| | | | | | regularly make check-spaces. Also, int fn() does not mean the same in C as it does in C++ or Java. svn:r17201
* Patch from Jacob Appelbaum and me to make User option more robust, properly ↵Steven Murdoch2008-11-07
| | | | | | set supplementary groups, deprecated the Group option, and log more information on credential switching svn:r17200
* Fix mingw build with --enable-gcc-warnings set.Nick Mathewson2008-09-04
| | | | svn:r16759
* remove some redundant includes. i expect the first one to be a problemRoger Dingledine2008-09-01
| | | | | | | for tas, but who knows. svn:r16723
* Add a lockfile to the Tor data directory to avoid situations where two Tors ↵Nick Mathewson2008-09-01
| | | | | | start with the same datadir, or where a --list-fingerprints races with a server to create keys, or such. svn:r16722
* r17848@tombo: nickm | 2008-08-22 12:10:11 -0400Nick Mathewson2008-08-22
| | | | | | | 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
* r17358@pc-10-8-1-079: nickm | 2008-07-25 16:41:03 +0200Nick Mathewson2008-07-25
| | | | | | | 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
* r17346@aud-055: nickm | 2008-07-24 15:37:19 +0200Nick Mathewson2008-07-24
| | | | | | | 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
* r19795@catbus: nickm | 2008-05-16 14:54:24 -0400Nick Mathewson2008-05-16
| | | | | | | Rename tor_addr_t manipulation functions for a consistent style. svn:r14639
* r15304@tombo: nickm | 2008-04-23 16:31:40 -0400Nick Mathewson2008-04-23
| | | | | | | 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
* r15251@tombo: nickm | 2008-04-22 11:59:46 -0400Nick Mathewson2008-04-22
| | | | | | | 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
* r18927@catbus: nickm | 2008-03-18 11:11:49 -0400Nick Mathewson2008-03-18
| | | | | | | 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
* r18923@catbus: nickm | 2008-03-18 11:01:22 -0400Nick Mathewson2008-03-18
| | | | | | | Add missing typecasts to log message in set_max_file_descriptors to tell gcc everything is okay on windows. Fixes bug 630. svn:r14099
* r18360@catbus: nickm | 2008-02-21 22:26:32 -0500Nick Mathewson2008-02-22
| | | | | | | Make torint.h define ssize_t more robustly; add spaces to last patch svn:r13670
* r18358@catbus: nickm | 2008-02-21 22:21:57 -0500Nick Mathewson2008-02-22
| | | | | | | Remove extraneous commas in compat.c svn:r13669
* r14374@tombo: nickm | 2008-02-21 16:57:39 -0500Nick Mathewson2008-02-21
| | | | | | | 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
* r14371@tombo: nickm | 2008-02-21 16:13:18 -0500Nick Mathewson2008-02-21
| | | | | | | Fix all -Wshorten-64-to-32 warnings that appear on my macbook. svn:r13662
* r18291@catbus: nickm | 2008-02-20 22:35:32 -0500Nick Mathewson2008-02-21
| | | | | | | Resolve all DOCDOC issues, and document some other undocumented code, and fix a changelog entry. svn:r13638
* r18269@catbus: nickm | 2008-02-20 17:28:24 -0500Nick Mathewson2008-02-20
| | | | | | | 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
* r18233@catbus: nickm | 2008-02-19 18:46:07 -0500Nick Mathewson2008-02-19
| | | | | | | Count sockets returned from socketpair() too. This is probably not the socket counting bug. svn:r13600
* r18226@catbus: nickm | 2008-02-19 18:01:01 -0500Nick Mathewson2008-02-19
| | | | | | | Brown-paper-bag time. We were failing to count all the sockets from accept(). svn:r13595
* r18221@catbus: nickm | 2008-02-19 17:46:16 -0500Nick Mathewson2008-02-19
| | | | | | | New debugging code to figure out what is happending with socket counts. svn:r13593
* clean up the socket counting thing. third time's a charm.Roger Dingledine2008-02-19
| | | | svn:r13581
* r18198@catbus: nickm | 2008-02-19 14:30:30 -0500Nick Mathewson2008-02-19
| | | | | | | Try to *fix* the socket counting problem, and add an info log to detect whether we really fixed it svn:r13580
* hunt for killerchicken's socket counting problemRoger Dingledine2008-02-19
| | | | svn:r13578
* We were leaking a file descriptor if Tor started with a zero-lengthRoger Dingledine2008-02-13
| | | | | | | cached-descriptors file. Patch by freddy77; bugfix on 0.1.2. svn:r13488
* tweakRoger Dingledine2008-02-09
| | | | svn:r13443
* Update some copyright notices: it is now 2008.Nick Mathewson2008-02-07
| | | | svn:r13412
* r17899@catbus: nickm | 2008-02-05 14:14:06 -0500Nick Mathewson2008-02-05
| | | | | | | Fix a couple of XXX020 items. Also, disable all "condition" sychronization code, since Tor does not use it yet svn:r13380
* clean up copyrights, and assign 2007 copyrights to The Tor Project, IncRoger Dingledine2007-12-12
| | | | svn:r12786
* r15106@tombo: nickm | 2007-12-04 00:08:35 -0500Nick Mathewson2007-12-04
| | | | | | | 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
* r16450@catbus: nickm | 2007-11-06 09:18:11 -0500Nick Mathewson2007-11-06
| | | | | | | Fix compile on sparc64 svn:r12394
* r16367@catbus: nickm | 2007-11-02 13:13:15 -0400Nick Mathewson2007-11-02
| | | | | | | Space fixes. svn:r12345
* r14652@tombo: nickm | 2007-11-02 12:02:13 -0400Nick Mathewson2007-11-02
| | | | | | | 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
* r14647@tombo: nickm | 2007-11-02 10:48:37 -0400Nick Mathewson2007-11-02
| | | | | | | Use rlim_t instead of unsigned long to manipulate rlimit values. svn:r12339
* r16128@catbus: nickm | 2007-10-24 22:52:16 -0400Nick Mathewson2007-10-25
| | | | | | | Fix windows mmap changes. svn:r12171
* r16100@catbus: nickm | 2007-10-24 11:33:52 -0400Nick Mathewson2007-10-24
| | | | | | | Make tor_mmap_file() set and preserve errno in a useful way. svn:r12153
* r14639@catbus: nickm | 2007-08-17 17:45:28 -0400Nick Mathewson2007-08-17
| | | | | | | Compile without warnings on MinGW, even with --enable-gcc-warnings enabled. svn:r11157
* r14051@Kushana: nickm | 2007-08-15 15:55:36 -0400Nick Mathewson2007-08-15
| | | | | | | Fix an XXXX020 and a few DOCDOCs. svn:r11127
* r13926@Kushana: nickm | 2007-08-03 00:55:23 -0700Nick Mathewson2007-08-03
| | | | | | | Fix compilation with HAVE_GETADDRINFO unset svn:r11042
* r14015@catbus: nickm | 2007-07-30 13:18:05 -0400Nick Mathewson2007-07-30
| | | | | | | Add missing code documentation in src/common svn:r10991
* r13944@catbus: nickm | 2007-07-27 15:52:35 -0400Nick Mathewson2007-07-27
| | | | | | | | | Fix warnings on platforms where rlim values can be signed. Add an 8k buffer freelist. svn:r10948
* r13856@catbus: nickm | 2007-07-20 14:30:44 -0400Nick Mathewson2007-07-20
| | | | | | | slightly smarter heuristic about when to use obsolete ::a.b.c.d format. svn:r10893