Age | Commit message (Collapse) | Author | |
---|---|---|---|
2018-07-02 | Don't redefine str(n)casecmp on windows unless they're missing | Nick Mathewson | |
When we do redefine them, use inline functions instead of #define. This fixes a latent code problem in our redefinition of these functions, which was exposed by our refactoring: Previously, we would #define strcasecmp after string.h was included, so nothing bad would happen. But when we refactored, we would sometimes #define it first, which was a problem on mingw, whose headers contain (approximately): inline int strcasecmp (const char *a, const char *b) { return _stricmp(a,b); } Our define turned this into: inline int _stricmp(const char *a, const char *b) { return _stricmp(a,b); } And GCC would correctly infer that this function would loop forever, rather than actually comparing anything. This caused bug 26594. Fixes bug 26594; bug not in any released version of Tor. | |||
2018-07-01 | File-level documentation for some of src/lib. | Nick Mathewson | |
2018-07-01 | Prune the .may_include files a bit; detect unused lines in them | Nick Mathewson | |
2018-07-01 | Tabify all of the .am files. | Nick Mathewson | |
2018-06-29 | add an include to fix macos, and probably bsd too | Nick Mathewson | |
2018-06-29 | Remove non-windows system includes from compat.h and util.h | Nick Mathewson | |
2018-06-29 | Move SIO_IDEAL_SEND_BACKLOG_QUERY into socket.h | Nick Mathewson | |
2018-06-29 | Remove an errant (and unused) include permission in lib/tls | Nick Mathewson | |
2018-06-29 | Extract getpass to a new lib/term library | Nick Mathewson | |
(Term is short for terminal) | |||
2018-06-29 | Extract get_uname to lib/osinfo. | Nick Mathewson | |
2018-06-29 | Move SUBTYPE_P into compat_compiler.h | Nick Mathewson | |
2018-06-29 | Move bool_eq and bool_neq to lib/intmath | Nick Mathewson | |
2018-06-29 | Move fd and memory-info functions. | Nick Mathewson | |
2018-06-29 | Move tor_get_avail_disk_space() to lib/fs | Nick Mathewson | |
2018-06-28 | Merge remote-tracking branch 'catalyst-github/fix-macos-includes' | Nick Mathewson | |
2018-06-28 | Fix macOS includes | Taylor Yu | |
Recent code movement from refactoring missed some includes that seem to be necessary on macOS. | |||
2018-06-28 | Fix a bogus n in a comment | Nick Mathewson | |
2018-06-28 | A couple of includes to make windows compile again | Nick Mathewson | |
2018-06-28 | Move buffers into container | Nick Mathewson | |
Split the network-only and compression-only parts of buffers into the appropriate modules. | |||
2018-06-28 | Add sys/capability.h and sys/prctl.h includes in setuid.c | Nick Mathewson | |
2018-06-28 | compat_threads.c needs string.h for memset. | Nick Mathewson | |
2018-06-28 | Remove all include common/ uses in crypto_ops and tls. | Nick Mathewson | |
2018-06-28 | Fix windows compilation in compat_time | Nick Mathewson | |
We need to use lib/fs/winlib.h here so that we can use GetTickCount64. I would love to declare that XP is dead, and everybody has GetTickCount64. | |||
2018-06-28 | Use tor_ntohs in compress.c; avoid a winsocks dependency | Nick Mathewson | |
2018-06-28 | fixup! Extract time functionality into lib/wallclock and lib/time | Nick Mathewson | |
2018-06-28 | Move DLL support to lib/fs | Nick Mathewson | |
2018-06-28 | Add ntohs and htons to lib/arch/bytes.h | Nick Mathewson | |
2018-06-28 | Update lib/compress to not require common/*.h | Nick Mathewson | |
2018-06-28 | Move MIN and MAX into lib/intmath/cmp.h | Nick Mathewson | |
2018-06-28 | Extract time functionality into lib/wallclock and lib/time | Nick Mathewson | |
2018-06-28 | Move floating-point math functions into a new lib/math | Nick Mathewson | |
2018-06-28 | Move compute_num_cpus to lib/thread | Nick Mathewson | |
2018-06-28 | Move network_init to lib/net | Nick Mathewson | |
2018-06-28 | Move tor_gethostname to lib/net | Nick Mathewson | |
2018-06-28 | Move string_is_key_value to lib/encoding | Nick Mathewson | |
2018-06-28 | Move weakrng into lib/intmath | Nick Mathewson | |
2018-06-28 | Move lockfile code into lib/fs | Nick Mathewson | |
2018-06-28 | Move socket-errno code into lib/net | Nick Mathewson | |
2018-06-28 | Extract process-management functionality into a new lib/process | Nick Mathewson | |
Note that procmon does *not* go here, since procmon needs to integrate with the event loop. | |||
2018-06-28 | Move conffile and storagedir to lib/fs | Nick Mathewson | |
2018-06-28 | Extract memarea into its own library | Nick Mathewson | |
2018-06-28 | Extract threading code into a new library. | Nick Mathewson | |
Note that the workqueue code does *not* go here: it is logically at a higher level, since it needs to use libevent and the networking stack. | |||
2018-06-28 | Extract the alert-socket code into lib/net. | Nick Mathewson | |
This code was in compat_threads, since it was _used_ for efficiently notifying the main libevent thread from another thread. But in spite of its usage, it's fundamentally a part of the network code. | |||
2018-06-27 | Move confline.c to lib/encoding: it is about encoding key-value pairs | Nick Mathewson | |
Also, move "unescape_string()" to encoding too, since it's about encoding data as C strings. | |||
2018-06-27 | Move hex_str to binascii.c | Nick Mathewson | |
2018-06-27 | Extract time encoding functions into lib/encoding | Nick Mathewson | |
2018-06-27 | Move util_format into a new libtor-encoding library | Nick Mathewson | |
libtor-encoding is about various ways to transform data to and from character sequences. | |||
2018-06-27 | Move several address-string-testing functions to address.c | Nick Mathewson | |
2018-06-27 | Move various mem* functions to lib/string | Nick Mathewson | |
2018-06-27 | Move tor_strtok_r to libtor-string | Nick Mathewson | |