summaryrefslogtreecommitdiff
path: root/src/common/util.h
AgeCommit message (Collapse)Author
2005-11-01tor_assert had a misleading commentRoger Dingledine
svn:r5338
2005-10-25Remove last vestiges of old logging interface.Nick Mathewson
svn:r5317
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-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-18Inline key smartlist functions; use fast versions by default.Nick Mathewson
svn:r5265
2005-10-06Make doxygen marginally happierNick Mathewson
svn:r5208
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-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-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-26add a tor_dup_addr() function to simplify malloc()+tor_inet_ntoa()Roger Dingledine
svn:r4838
2005-08-03Make clients regenerate their keys when their IP address changes.Nick Mathewson
svn:r4688
2005-06-09Change end-of-file NLNL convention. It turns out arma I and I agree.Nick Mathewson
svn:r4382
2005-04-26clean up this TOR_FRAGILE businessRoger Dingledine
svn:r4116
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-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-03Add --with-dmalloc configure optionPeter Palfrader
svn:r3508
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-22Fix a bug in last patch; and keep my name out of the assert() call too.Nick Mathewson
svn:r3200
2004-12-22Workaround for brain-damaged __FILE__ handling on MSVC: keep Nick's name outNick Mathewson
of the warning messages. svn:r3199
2004-11-30Add casei versions of strcmpstart/strcmpendNick Mathewson
svn:r3026
2004-11-29Suggestion from weasel: Make tor --version --version dump the cvs Id of ↵Nick Mathewson
every file. svn:r3019
2004-11-29Disallow NDEBUG. It is very stupid.Nick Mathewson
svn:r3012
2004-11-28Normalize space: add one between every control keyword and control clause.Nick Mathewson
svn:r3003
2004-11-26remove emacs droppings, since nick says he doesn't need them anymoreRoger Dingledine
svn:r2989
2004-11-22Add function to format local time in ISO formatNick Mathewson
svn:r2935
2004-11-09Resolve many XXXs and all DOCDOCsNick Mathewson
svn:r2755
2004-11-09Make check_private_dir trimodal (check/create/ignore), not bimodal ↵Nick Mathewson
(create/ignore). svn:r2733
2004-11-06parse_line_from_file is obsolete.Roger Dingledine
svn:r2693
2004-11-05Unify tor_parse_(numeric); make sure MAX_UINT32 and MAX_UINT64 are definedNick Mathewson
svn:r2688
2004-11-04Add code to read configuration lines from a string as well as a fileNick Mathewson
svn:r2676
2004-11-03Add a write_bytes_to_file so we can have files with NULs in them.Nick Mathewson
svn:r2662
2004-11-03my assert.h takes extra pains to be certain to _re-include_Roger Dingledine
itself if you include it twice. this is dumb, but hey. svn:r2653
2004-11-02Handle strlcat/strlcpy correctly on platforms that have them.Nick Mathewson
svn:r2647
2004-11-02canonicalize "src" and "dest" arg order in crypto.c (and others)Roger Dingledine
svn:r2644
2004-11-01Split util into util (general utilities), container (smartlist and strmap), ↵Nick Mathewson
and compat (cross-platform compatability). svn:r2640
2004-11-01make sure options.MaxConn can be reachedRoger Dingledine
svn:r2638
2004-10-27Pass with -Wstrict-prototypesNick Mathewson
svn:r2614
2004-10-27snprintf wrapper with consistant (though not C99) overflow behaviorNick Mathewson
svn:r2606
2004-10-24Handle more errnos from accept() without closing the connection. This may ↵Nick Mathewson
fix a bug that could close OR listeners when (a) TCP connections were hung up before accept() could be called, or (b) during FD exhaustion. svn:r2579
2004-10-20Check for low _MSC_VER, not high. On windows, always use winsock.Nick Mathewson
svn:r2575
2004-10-20add winsock if you've got it, regardless of whether you're msvRoger Dingledine
svn:r2573
2004-10-16Refactor parse-addr-mask-and-port-range into a separate functionNick Mathewson
svn:r2540
2004-10-16Add an autoconf test to make sure that memset(&ptr, 0, sizeof(ptr)) and ↵Nick Mathewson
ptr=NULL are equivalent svn:r2536
2004-10-15Oops; make sure that break; and continue; work within SMARTLIST_FOREACHNick Mathewson
svn:r2532
2004-10-15Use token-pasting magic to make nested SMARTLIST_FOREACH work.Nick Mathewson
svn:r2526