Nick Mathewson
|
15a903b21c
Convenience function to do a strcmp on each member of a smartlist of strings
|
20 years ago |
Nick Mathewson
|
6453a25567
Add replace_file to util.[ch] to survive stupidity of windows rename call
|
20 years ago |
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.
|
20 years ago |
Nick Mathewson
|
2091dab7f4
fencepost
|
20 years ago |
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.)
|
20 years ago |
Nick Mathewson
|
14d5478f29
Add functions to format and parse RFC1123-style times, for HTTP protocol.
|
20 years ago |
Nick Mathewson
|
5b61dd0457
Fix all warnings on win32 build
|
20 years ago |
Nick Mathewson
|
849e998ac6
It is possible to have struct timeval but not gettimeofday.
|
20 years ago |
Roger Dingledine
|
5525606653
check return value of fclose while writing to disk, since it might
|
20 years ago |
Roger Dingledine
|
7459d067a5
now base16_encode() and base32_encode() can't ever fail
|
20 years ago |
Nick Mathewson
|
06c11a61ce
When faking gettimeofday with ftime, do it right.
|
20 years ago |
Nick Mathewson
|
bc36db351f
Resolve all DOCDOCs.
|
20 years ago |
Nick Mathewson
|
9364c40afd
Add generic expand_filename function to handle expanding ~/
|
20 years ago |
Roger Dingledine
|
7e344f191a
add is_local_IP() function to help distinguish which bandwidth "matters"
|
20 years ago |
Nick Mathewson
|
88451ce25b
Yes, I did mean "else if".
|
20 years ago |
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.
|
20 years ago |
Nick Mathewson
|
b1e9adf056
Always use get_data_directory() instead of options.DataDirectory; fix a memory leak in router.c
|
20 years ago |
Roger Dingledine
|
43295ca61f
if datadirectory isn't owned by this uid, tell the user he must
|
20 years ago |
Nick Mathewson
|
0d1b4b5024
Unbork windows whitespace
|
20 years ago |
Nick Mathewson
|
17b5b3685f
Make tor build on win32 again; handle locking for server
|
20 years ago |
Roger Dingledine
|
1ef411fefd
use sys/param.h if it's there
|
20 years ago |
Roger Dingledine
|
1841aa456b
rik's patch to not complain about freebsd's bug
|
20 years ago |
Nick Mathewson
|
7511fbf993
Resolve some XXXs
|
20 years ago |
Nick Mathewson
|
93576d5289
Add doxygen markup for util and buffers
|
20 years ago |
Nick Mathewson
|
e6f3bf2a68
tor_assert(), not assert()
|
20 years ago |
Nick Mathewson
|
3dd1ef8783
Fix windows compile.
|
20 years ago |
Nick Mathewson
|
af08c4f878
Working strerror for windows socket errors, plus some snide comments.
|
20 years ago |
Roger Dingledine
|
1558fb7650
some patches on the patches
|
20 years ago |
Nick Mathewson
|
4dc30ea3c8
Remove bogus */ so util.c compiles
|
20 years ago |
Nick Mathewson
|
9a041591ac
Finish documenting the functions in common
|
20 years ago |