Nick Mathewson
|
0ef85f6dba
Some platforms have weird translations when you open files in "test" mode; make read/write_str_to_file aware.
|
vor 20 Jahren |
Nick Mathewson
|
f311206d1d
Make split function smarter; add a strcmpstart function so we can stop bungling strcmp(x, y, strlen(y));
|
vor 20 Jahren |
Nick Mathewson
|
31b81650b7
Define LONG_MAX and UINT_MAX when they are missing
|
vor 20 Jahren |
Roger Dingledine
|
444a01610c
make the compile work (and not complain) on sunos 5.9
|
vor 20 Jahren |
Roger Dingledine
|
d91cacb839
agree with nick: this legal-chars-in-filename stuff gets us nothing
|
vor 20 Jahren |
Nick Mathewson
|
015232bd39
As far as I can tell, CONFIG_LEGAL_FILENAME_CHARACTERS is both pointless and broken. #if it out, pending agreement from arma. This fixes a bug on win32 that rejected paths with a : in them.
|
vor 20 Jahren |
Nick Mathewson
|
7cb93e5bb6
Move string-splitting into a separate function
|
vor 20 Jahren |
Nick Mathewson
|
8566bbb489
Add strmap_isempty
|
vor 20 Jahren |
Nick Mathewson
|
15a903b21c
Convenience function to do a strcmp on each member of a smartlist of strings
|
vor 20 Jahren |
Nick Mathewson
|
6453a25567
Add replace_file to util.[ch] to survive stupidity of windows rename call
|
vor 20 Jahren |
Nick Mathewson
|
f6cc218742
Refactor ISO-style (yyyy-mm-dd hh:mm:ss) time parsing into util.c; rename format/parse_rfc1123_time; make rephist remember used bandwidth; published used bandwidth in descriptors in 15-minute chunks. Breaks unittests.
|
vor 20 Jahren |
Nick Mathewson
|
2091dab7f4
fencepost
|
vor 20 Jahren |
Nick Mathewson
|
380f32f07d
hex_encode is obsoleted by base16_encode, and never actually worked in the first place. (Thanks to Timo Lindfors for noticing the never-actually-worked part.)
|
vor 20 Jahren |
Nick Mathewson
|
14d5478f29
Add functions to format and parse RFC1123-style times, for HTTP protocol.
|
vor 20 Jahren |
Nick Mathewson
|
5b61dd0457
Fix all warnings on win32 build
|
vor 20 Jahren |
Nick Mathewson
|
849e998ac6
It is possible to have struct timeval but not gettimeofday.
|
vor 20 Jahren |
Roger Dingledine
|
5525606653
check return value of fclose while writing to disk, since it might
|
vor 20 Jahren |
Roger Dingledine
|
7459d067a5
now base16_encode() and base32_encode() can't ever fail
|
vor 20 Jahren |
Nick Mathewson
|
06c11a61ce
When faking gettimeofday with ftime, do it right.
|
vor 20 Jahren |
Nick Mathewson
|
bc36db351f
Resolve all DOCDOCs.
|
vor 20 Jahren |
Nick Mathewson
|
9364c40afd
Add generic expand_filename function to handle expanding ~/
|
vor 20 Jahren |
Roger Dingledine
|
7e344f191a
add is_local_IP() function to help distinguish which bandwidth "matters"
|
vor 20 Jahren |
Nick Mathewson
|
88451ce25b
Yes, I did mean "else if".
|
vor 20 Jahren |
Nick Mathewson
|
d5e275ddf4
Fix bug reported by peter palfrader: an empty address is unresolvable, but not an occasion for an assertion failure in a dnsworker.
|
vor 20 Jahren |
Nick Mathewson
|
b1e9adf056
Always use get_data_directory() instead of options.DataDirectory; fix a memory leak in router.c
|
vor 20 Jahren |
Roger Dingledine
|
43295ca61f
if datadirectory isn't owned by this uid, tell the user he must
|
vor 20 Jahren |
Nick Mathewson
|
0d1b4b5024
Unbork windows whitespace
|
vor 20 Jahren |
Nick Mathewson
|
17b5b3685f
Make tor build on win32 again; handle locking for server
|
vor 20 Jahren |
Roger Dingledine
|
1ef411fefd
use sys/param.h if it's there
|
vor 20 Jahren |
Roger Dingledine
|
1841aa456b
rik's patch to not complain about freebsd's bug
|
vor 20 Jahren |