summaryrefslogtreecommitdiff
path: root/src/common/util.c
AgeCommit message (Collapse)Author
2006-02-09Happy new year!Roger Dingledine
svn:r5949
2006-01-10Refuse to use RunAsDaemon when torrc is a relative path. Fixes bug 229.Nick Mathewson
svn:r5767
2006-01-01Clearner fix for timegm assert problem.Nick Mathewson
svn:r5690
2006-01-01Fix assertion-trigger bug found by sjmurdochNick Mathewson
svn:r5689
2005-12-14Bite the bullet and limit all our source lines to 80 characters, the way IBM ↵Nick Mathewson
intended. svn:r5582
2005-12-09let is_internal_IP() know whether you're asking about an IPRoger Dingledine
address for connecting or an IP address for binding, because in the latter, 0.0.0.0 is a special case. svn:r5543
2005-12-08Do not free a constant string.Nick Mathewson
svn:r5527
2005-12-05Remove superfluous strdupPeter Palfrader
svn:r5503
2005-12-05Also print usernames, not just numeric UIDs when we tell the user that his ↵Peter Palfrader
data directory has the wrong owner svn:r5502
2005-12-05give a hint when people are running tor as the wrong user, rather thanRoger Dingledine
telling them to start chowning random directories. svn:r5500
2005-11-30Move code to check for zero digests into util.cNick Mathewson
svn:r5468
2005-11-15Loops without an increment step can suck, even on windows.Nick Mathewson
svn:r5376
2005-11-15Make new logging stuff work on windows; fix a couple of windows typos.Nick Mathewson
svn:r5375
2005-10-25Efficiency hack: call tor_fix_source_file late, not early. Add "BUG" ↵Nick Mathewson
domain. Domains are now bitmasks... just in case. Make some err msgs non-general. svn:r5309
2005-10-24Check for even more windows version flags, and note any we do not recognize.Nick Mathewson
svn:r5297
2005-10-18Start dividing log messages into logging domains. No, LD_ is not the best ↵Nick Mathewson
of identifiers. src/or has not been converted yet. Domains dont do anything yet. svn:r5284
2005-10-18Remove assert in sort-of c-itical pathNick Mathewson
svn:r5267
2005-10-03Reorganize some quick-and-dirty code to find out what openssl stuff is ↵Nick Mathewson
leaking, using dmalloc. svn:r5178
2005-09-30even better function start checks; give dmalloc a chance of working.Nick Mathewson
svn:r5162
2005-09-30Reformat inconsistent function declarations.Nick Mathewson
svn:r5160
2005-09-29Add a bunch more warnings to out warning suite; resolve them; pack structs a ↵Nick Mathewson
little better. svn:r5150
2005-09-13Two new functions like write_bytes_to_file: one takes a list of byte-and-len ↵Nick Mathewson
structs; one appends. svn:r5024
2005-09-10Fix segfault in win32 unittests.Nick Mathewson
svn:r4983
2005-09-09Add missing arg to windows tor_listdir()Nick Mathewson
svn:r4972
2005-09-09Implement tor_listdir on windows. Untested.Nick Mathewson
svn:r4971
2005-09-08add strupper functionNick Mathewson
svn:r4934
2005-09-03Add directory listing functions to util.[ch]. Watch the features creep!Nick Mathewson
svn:r4906
2005-08-26put quotes around user-supplied strings so they are more likely toRoger Dingledine
realize if they add bad characters (like quotes) to the torrc svn:r4844
2005-08-26add a tor_dup_addr() function to simplify malloc()+tor_inet_ntoa()Roger Dingledine
svn:r4838
2005-08-12Make GCC very happy, even with lots of warnings set. Also, try to fix some ↵Nick Mathewson
reported Solaris x86 warnings. svn:r4770
2005-08-05parse_addr_port was vague about what to do when port_out was NULL. Make it ↵Nick Mathewson
behave usefully. svn:r4716
2005-08-04Fix windows warningNick Mathewson
svn:r4697
2005-08-03Make clients regenerate their keys when their IP address changes.Nick Mathewson
svn:r4688
2005-06-30Fix an fd leak in start_daemonNick Mathewson
svn:r4508
2005-06-11flesh out the source file descriptions for doxygenRoger Dingledine
svn:r4404
2005-06-09Change end-of-file NLNL convention. It turns out arma I and I agree.Nick Mathewson
svn:r4382
2005-04-06bugfix: chdir to your datadirectory at the *end* of theRoger Dingledine
daemonize process, not the beginning. this was a problem because the first time you run tor, if your datadir isn't there, and you have runasdaemon set to 1, it will try to chdir to it before it tries to create it. oops. svn:r4033
2005-04-01update copyright notices.Nick Mathewson
svn:r3982
2005-03-17Commit fixes for several pending tor core tasks: document all DOCDOCed ↵Nick Mathewson
functions; time out uncontrolled unattached streams; feed reasons to SOCKS5 (refactoring connection_ap_handshake_socks_reply in the process); change DirFetchPeriod/StatusFetchPeriod to have a special "Be smart" value. svn:r3769
2005-03-16Fix a fun windows bug: apparently windows stat wants paths not to end with ↵Nick Mathewson
slash. svn:r3766
2005-02-25Implement more control spec functionalityNick Mathewson
- 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
2005-02-22Change from inet_ntoa to a threadproof tor_inet_ntoa.Nick Mathewson
svn:r3656
2005-02-22Note a non-bug in read_file_to_str as used. If we start to rely on it ↵Nick Mathewson
behaving differently, we need to change how it behaves. [Noticed by Chris Palmer] svn:r3655
2005-02-22Patch to localtime/gmtime handling: use the _r variants where available. ↵Nick Mathewson
Use mutexes to fake _r where necessary. Make mutexes no-ops where no threading is enabled. svn:r3653
2005-02-22Remove assumptions that maximum path length is anything like 1024. From ↵Nick Mathewson
comments by Chris Palmer svn:r3652
2005-02-03point out a potential thread/process leak problem when we're out of memoryRoger Dingledine
svn:r3512
2005-02-03Add --with-dmalloc configure optionPeter Palfrader
svn:r3508
2005-01-10help avoid overflow from len_in + (len_in/n)*len_insRoger Dingledine
nick, do you think this does it? if so, we should maybe backport too. svn:r3334
2004-12-22move network_init from or/main to common/compatRoger Dingledine
call network_init in tor-resolve.c too move tor_lookup_hostname from common/util to common/compat svn:r3203
2004-12-08Solaris CC freaks out if isspace and friends get anything other than an int. ↵Nick Mathewson
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