aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.c
Commit message (Expand)AuthorAge
...
* | | Fix compile warnings on windowsSebastian Hahn2011-11-15
|/ /
* | Fix a compile warning on OS X 10.6 and upSebastian Hahn2011-10-11
* | Add a missing comma in tor_check_port_forwarding•••My fault; fix for bug 4213. Nick Mathewson2011-10-10
* | Merge remote-tracking branch 'asn2/bug3656'•••Conflicts: src/common/util.c src/common/util.h src/or/config.h src/or/main.c src/test/test_util.c Nick Mathewson2011-10-07
|\ \
| * | Make it compile on Windows™.George Kadianakis2011-10-07
| * | Put some sense into our logging.•••Transform our logging severities to something more sensible. Remove sneaky printf()s. George Kadianakis2011-09-12
| * | Make check-spaces happy.George Kadianakis2011-09-11
| * | Enforce transport names being C identifiers.•••Introduce string_is_C_identifier() and use it to enforce transport names according to the 180 spec. George Kadianakis2011-09-11
| * | Introduce tor_terminate_process() function.George Kadianakis2011-09-11
| * | Improve the code a tad.•••* Use strcmpstart() instead of strcmp(x,y,strlen(y)). * Warn the user if the managed proxy failed to launch. * Improve function documentation. * Use smartlist_len() instead of n_unconfigured_proxies. * Split managed_proxy_destroy() to managed_proxy_destroy() and managed_proxy_destroy_with_transports(). * Constification. George Kadianakis2011-08-15
| * | Reuse get_string_from_pipe() in log_from_pipe().George Kadianakis2011-07-18
| * | Replaced ST_* enum prefix for stream status with IO_STREAM_*.George Kadianakis2011-07-18
| * | Make some utility functions.•••* Create a function that will get input from a stream, so that we can communicate with the managed proxy. * Hackish change to tor_spawn_background() so that we can specify an environ for our spawn. George Kadianakis2011-07-13
* | | Merge remote-tracking branch 'origin/maint-0.2.2'•••Conflicts: configure.in src/or/circuitbuild.c Nick Mathewson2011-09-09
|\ \ \ | | |/ | |/|
| * | Check for lround with autoconf; fall back to rint.Nick Mathewson2011-08-30
* | | Fix double-closing a stdio stream•••After a stream reached eof, we fclose it, but then test_util_spawn_background_partial_read() reads from it again, which causes an error and thus another fclose(). Some platforms are fine with this, others (e.g. debian-sid-i386) trigger a double-free() error. The actual code used by Tor (log_from_pipe() and tor_check_port_forwarding()) handle this case correctly. Steven Murdoch2011-09-01
* | | Tweaks on last process-launch patchesNick Mathewson2011-08-31
* | | Make a version of tor_read_all_handle() for non-Windows platforms•••Mainly used for testing reading from subprocesses. To be more generic we now pass in a pointer to a process_handle_t rather than a Windows- specific HANDLE. Steven Murdoch2011-09-01
* | | Add a missing include to util.c to get waitpid() on LinuxNick Mathewson2011-08-31
* | | Rename tor_join_cmdline to tor_join_win_cmdline; tweak doxygenNick Mathewson2011-08-30
* | | Merge remote-tracking branch 'sjmurdoch/bug2046'Nick Mathewson2011-08-30
|\ \ \
| * | | Document limitation of log_from_handle with partial readsSteven Murdoch2011-08-30
| * | | Factor out and re-write code for splitting lines from a handle•••Now handles non-printable characters and will not output a spurious new-line if given a partial line. Steven Murdoch2011-08-30
| * | | Refactor out command line formatting•••Now correctly handles whitespace, quotes and backslashes. Passes all unit tests. Steven Murdoch2011-08-29
| * | | Add a sanity checkSteven Murdoch2011-08-29
| * | | Replace two magic tristates with #define'd names•••- process_handle_t.status - return value of tor_get_exit_code() Steven Murdoch2011-08-29
| * | | Make signature of tor_spawn_background more conventional•••Conventionally in Tor, structs are returned as pointers, so change tor_spawn_background() to return the process handle in a pointer rather than as return value. Steven Murdoch2011-08-28
| * | | Appease "make check-spaces"Steven Murdoch2011-08-24
| * | | Improve comments and fix one bugSteven Murdoch2011-08-24
| * | | We don't need to find our own path, just tell Windows to searchSteven Murdoch2011-08-24
| * | | Fix compilation errors under *nixSteven Murdoch2011-08-23
| * | | Tidy up subprocess code•••- Better error handling - Write description of functions - Don't assume non-negative process return values Steven Murdoch2011-08-22
| * | | Fix some compiler warningsSteven Murdoch2011-08-22
| * | | Merge remote branch 'origin/master' into bug2046Steven Murdoch2011-08-18
| |\ \ \
| * | | | Complete logging of output from port forwarding helperSteven Murdoch2011-08-18
| * | | | Test case for reading the partial output of a background processSteven Murdoch2011-07-25
| * | | | Fix compilation on non-Windows platformsSteven Murdoch2011-07-23
| * | | | If hProcess is NULL, read_all_handle returns if it would blockSteven Murdoch2011-07-23
| * | | | Use PeekNamedPipe to avoid blocking ReadFile when there is nothing to readSteven Murdoch2011-07-22
| * | | | Add code to read all from a handle, but this block forever•••See http://stackoverflow.com/questions/3722409/windows-child-process-with-redirected-input-and-output for a potential solution Steven Murdoch2011-07-22
| * | | | Add Windows version of tor_spawn_background and ancillary functionsSteven Murdoch2011-07-21
| * | | | Generalize process spawning so its test compiles (but fails) in Windows•••- pid, stdout/stderr_pipe now encapsulated in process_handle - read_all replaced by tor_read_all_from_process_stdin/stderr - waitpid replaced by tor_get_exit_code Untested on *nix Steven Murdoch2011-07-21
* | | | | Merge remote-tracking branch 'origin/maint-0.2.2'Nick Mathewson2011-08-24
|\ \ \ \ \ | |_|/ / / |/| | / / | | |/ / | |/| |
| * | | lround() missing in MSVC•••lround() is missing in MS Visual-C's <math.h>. Not available anywhere. Here is an easy patch. Gisle Vanem2011-08-24
* | | | Merge branch 'bug1692-squashed'Nick Mathewson2011-08-10
|\ \ \ \
| * | | | Add smartlist_[v]asprintf_add•••I should have added this before implementing #2411. Robert Ransom2011-08-10
* | | | | Get rid of an unused parameter warning on winSebastian Hahn2011-08-09
|/ / / /
* | | | Initial patch to build Tor with msvc and nmake•••We'll still need to tweak it so that it looks for includes and libraries somewhere more sensible than "where we happened to find them on Erinn's system"; so that tests and tools get built too; so that it's a bit documented; and so that we actually try running the output. Work done with Erinn Clark. Nick Mathewson2011-08-01
* | | | Turn streq_opt into a generic strcmp_opt.Nick Mathewson2011-07-19
* | | | Implement stream isolation•••This is the meat of proposal 171: we change circuit_is_acceptable() to require that the connection is compatible with every connection that has been linked to the circuit; we update circuit_is_better to prefer attaching streams to circuits in the way that decreases the circuits' usefulness the least; and we update link_apconn_to_circ() to do the appropriate bookkeeping. Nick Mathewson2011-07-19
| |/ / |/| |