aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.c
AgeCommit message (Collapse)Author
2018-06-29Remove compat.c and util.cNick Mathewson
2018-06-29Move fd and memory-info functions.Nick Mathewson
2018-06-28Move DLL support to lib/fsNick Mathewson
2018-06-28Extract time functionality into lib/wallclock and lib/timeNick Mathewson
2018-06-28Move floating-point math functions into a new lib/mathNick Mathewson
2018-06-28Move tor_escape_str_for_pt_args into or/transports.cNick Mathewson
2018-06-28Move string_is_key_value to lib/encodingNick Mathewson
2018-06-28Move weakrng into lib/intmathNick Mathewson
2018-06-28Extract process-management functionality into a new lib/processNick Mathewson
Note that procmon does *not* go here, since procmon needs to integrate with the event loop.
2018-06-27Move confline.c to lib/encoding: it is about encoding key-value pairsNick Mathewson
Also, move "unescape_string()" to encoding too, since it's about encoding data as C strings.
2018-06-27Move hex_str to binascii.cNick Mathewson
2018-06-27Extract time encoding functions into lib/encodingNick Mathewson
2018-06-27Move util_format into a new libtor-encoding libraryNick Mathewson
libtor-encoding is about various ways to transform data to and from character sequences.
2018-06-27Move several address-string-testing functions to address.cNick Mathewson
2018-06-27Move various mem* functions to lib/stringNick Mathewson
2018-06-27Move set/get_uint*() to inline functions in arch/bytes.hNick Mathewson
Also move our ntohll/htonll functions.
2018-06-27Extract functions from compat.c and util.h into a new fs libraryNick Mathewson
2018-06-27Move read/write_all_to_socket into lib/net.Nick Mathewson
2018-06-27Split read_all and write_all into separate functionsNick Mathewson
2018-06-27Fix up include paths for sandbox.h (automated)Nick Mathewson
2018-06-27rectify include paths (automatic) for address.hNick Mathewson
2018-06-26Move tor_parse_long and friends into parse_int.h in libtor-stringNick Mathewson
2018-06-26Move the escape-for-log code into src/lib/logNick Mathewson
It doesn't need anything higher-level, and everything that needs the logs potentially needs this.
2018-06-22Finally extract the log library and make it build.Nick Mathewson
This patch: - introduces an fdio module for low-level fd functions that don't need to log. - moves the responsibility for opening files outside of torlog.c, so it won't need to call tor_open_cloexec.
2018-06-22Automated fixup of include paths after torlog.h movement.Nick Mathewson
2018-06-22Extract the locking and logging codeNick Mathewson
The locking code gets its own module, since it's more fundamental than the higher-level locking code. Extracting the logging code was the whole point here. :)
2018-06-22Extract simple integer math into its own moduleNick Mathewson
2018-06-22Move smartlist_add_{v,}asprintf into smartlist.[ch]Nick Mathewson
Now that I know that "strings" nests below "container", I know this is safe.
2018-06-22Extract key string manipulation functions into a new library.Nick Mathewson
2018-06-22Extract our code for answering "what time is it right now".Nick Mathewson
The other time stuff is higher-level
2018-06-22Extract smartlist.h from container.hNick Mathewson
2018-06-22Rectify include paths after container split (automatic)Nick Mathewson
2018-06-21Simplify include structure of container.[ch]Nick Mathewson
2018-06-21Extract tor_malloc and friends to a new module.Nick Mathewson
2018-06-21Rectify include paths (automated)Nick Mathewson
2018-06-21Rectify include paths (automated)Nick Mathewson
2018-06-21Rectify include paths (automated)Nick Mathewson
2018-06-21Merge branch 'maint-0.3.4'Nick Mathewson
2018-06-20eol@eof is still the law in 0.3.4 :(Nick Mathewson
2018-06-20Merge branch 'maint-0.3.4'Nick Mathewson
2018-06-20Fix clang warnings introduced by 9f2b887c5d251b93ee9def708Nick Mathewson
2018-06-20Use raw_assert() in write_all().Nick Mathewson
This makes tor_log() finally non-circular.
2018-06-20Use raw_assert() in central allocation functions.Nick Mathewson
This is, again, to avoid circularity in the log code.
2018-06-20Move horrible-emergency handling into torerr.[ch]Nick Mathewson
Previously we had code like this for bad things happening from signal handlers, but it makes sense to use the same logic to handle cases when something is happening at a level too low for log.c to be involved. My raw_assert*() stuff now uses this code.
2018-06-20Remove all use of the assert.h headerNick Mathewson
Nothing in Tor has actually called assert() for some while.
2018-06-20Remove dmalloc support; closes #26426Nick Mathewson
Dmalloc hasn't seen a release in over a decade, and there are much better tools to use these days.
2018-06-20Run rectify_include_paths.pyNick Mathewson
2018-06-20Update copyrights to 2018.Nick Mathewson
2018-06-04Avoid casting smartlist index implicitlyrl1987
2018-04-23Merge remote-tracking branch 'neel/b25511-r4'Nick Mathewson