Commit Graph

  • 732d4d636d configure.ac: Abort if a required function wasn't found. Simon Ruderich 2013-06-10 16:54:42 +02:00
  • db7cd10c74 configure.ac: strdup() is no longer used, dup2() is optional. Simon Ruderich 2013-06-10 16:54:11 +02:00
  • d4f585e078 configure.ac: Minor style fix. Simon Ruderich 2013-06-10 16:22:09 +02:00
  • 357a499884 configure.ac: Add --enable-warnings. Simon Ruderich 2013-06-10 16:18:35 +02:00
  • afca2864dc tests: Fix warnings about unused parameters. Simon Ruderich 2013-06-10 15:22:17 +02:00
  • 2f1aa1cdd3 Only run vfork() tests if it's available. Simon Ruderich 2013-06-10 15:16:21 +02:00
  • b75b0ec399 Rename __noinline/__always_inline to prevent clash with headers. Simon Ruderich 2013-06-10 14:55:13 +02:00
  • 488159627f Prevent inlining for more functions. Simon Ruderich 2013-06-10 14:11:04 +02:00
  • 428e15bf68 Prevent inlining of handle_*_pre/post() functions. Simon Ruderich 2013-06-10 06:27:18 +02:00
  • f3bda26e82 Don't mark init_pre_post_string() as inline. Simon Ruderich 2013-06-10 06:25:05 +02:00
  • 86352712fd Fix save/restore of errno for isatty(). Simon Ruderich 2013-06-10 06:19:00 +02:00
  • 0a2617527c Inline fast part of tracked_fds_find(). Simon Ruderich 2013-06-10 06:08:35 +02:00
  • 048bd6f9e7 Use likely()/unlikely() macros to improve branch prediction. Simon Ruderich 2013-06-10 06:06:00 +02:00
  • 9862b8c8f1 Inline check_handle_fd() into hook macros. Simon Ruderich 2013-06-10 05:55:51 +02:00
  • c7f6f13de0 configure.ac: Compile with -Wall -Wextra -Wconversion. Simon Ruderich 2013-06-10 05:47:04 +02:00
  • 3773b830ba ldpreload.h: Split macro into function and macro. Simon Ruderich 2013-06-10 05:43:31 +02:00
  • dfd317650f Remove errno save/restore where not necessary. Simon Ruderich 2013-06-10 05:24:43 +02:00
  • fe3f7d4c63 handle_*_pre(),handle_*_post(): Remove unused action parameter. Simon Ruderich 2013-06-10 04:53:30 +02:00
  • 30876b212c constants.h: Use "\033" instead of the non-standard "\e". Simon Ruderich 2013-06-09 16:26:36 +02:00
  • bcd5f79080 Remove unused hook puts_unlocked(). Simon Ruderich 2013-06-07 02:06:57 +02:00
  • 06f483dbee Fix a few strict compiler warnings. Simon Ruderich 2013-06-07 02:01:23 +02:00
  • 7691b7aa1a trackfds.h: Remove incorrect debug output. Simon Ruderich 2013-06-07 01:59:27 +02:00
  • 31a1fdf921 Use char const * instead of const char *. Simon Ruderich 2013-06-07 01:56:02 +02:00
  • c2097785e7 Use static list of descriptors to reduce mallocs. Simon Ruderich 2013-06-07 01:27:58 +02:00
  • 5c8b5233fb tests: Run tests under valgrind if it's available. Simon Ruderich 2013-06-07 01:17:42 +02:00
  • 7337375e05 Add warning() and use it in DEBUG mode. Simon Ruderich 2013-06-07 00:58:16 +02:00
  • 51377106d1 Rename tracked_fds_* tracked_fds_list_*. Simon Ruderich 2013-06-06 20:44:10 +02:00
  • 5af5f0faa2 debug.h: Minor code style fix. Simon Ruderich 2013-06-06 20:13:04 +02:00
  • 7f9856c5da Hook error() and error_at_line() if available. Simon Ruderich 2013-06-05 23:57:05 +02:00
  • b140cc0a82 coloredstderr.c: Use #include <config.h>. Simon Ruderich 2013-06-05 18:11:33 +02:00
  • 4d10935aee check_handle_fd(): Reduce calls to isatty(). Simon Ruderich 2013-06-05 03:33:08 +02:00
  • feff94de6b trackfds.h: Remove unnecessary strdup(). Simon Ruderich 2013-06-05 03:16:59 +02:00
  • 7ea72c40db Hook execve() and the other exec*() functions. Simon Ruderich 2013-06-05 01:40:56 +02:00
  • a9db9083b6 Minor documentation updates. Simon Ruderich 2013-06-05 01:07:47 +02:00
  • 374b11a314 tests: Also run tests in subshell with LD_PRELOAD set. Simon Ruderich 2013-06-05 01:06:10 +02:00
  • 76742316e8 trackfds.h: Fix realloc() in update_environment(). Simon Ruderich 2013-06-05 00:57:26 +02:00
  • d475e5ec89 Improve debug output. Simon Ruderich 2013-06-05 00:53:55 +02:00
  • df4c9eab97 trackfds.h: Fix invalid write if tracked_fds_count is 0. Simon Ruderich 2013-06-04 03:34:19 +02:00
  • b22a078b8d configure.ac: Don't require special versions of malloc/realloc. Simon Ruderich 2013-06-03 22:35:51 +02:00
  • dbafded223 configure.ac: Reorder macros to follow convention. Simon Ruderich 2013-06-03 22:18:16 +02:00
  • 7c5d6fce3a Only hook vfork() if it's available. Simon Ruderich 2013-06-03 21:59:57 +02:00
  • 66fb589680 debug.h: Handle overflow in debug(). Simon Ruderich 2013-06-03 04:32:12 +02:00
  • 686bf50bcd trackfds.h: Handle overflow in update_environment(). Simon Ruderich 2013-06-03 04:28:43 +02:00
  • 7108005fff tests: Use <STDERR< and >STDERR> as markers. Simon Ruderich 2013-06-02 23:41:31 +02:00
  • e091b977de tests: Use bash to get consistent test results. Simon Ruderich 2013-06-02 23:39:14 +02:00
  • e362a42f56 COPYING: Add, GPL 3. Simon Ruderich 2013-06-02 18:40:39 +02:00
  • 1c5441c26a Hook vfork() and replace it with fork(). Simon Ruderich 2013-06-02 18:25:49 +02:00
  • 66140e14e4 hookmacros.h: Be more careful to restore the errno. Simon Ruderich 2013-06-01 22:47:23 +02:00
  • 73870d5ed5 hookmacros.h: Reduce duplication in HOOK_VOID1(). Simon Ruderich 2013-06-01 22:44:22 +02:00
  • ad50ad9c54 Hook perror(3). Simon Ruderich 2013-06-01 22:08:45 +02:00
  • b34a8ce50b configure.ac: Require libtool 2.4. Simon Ruderich 2013-06-01 21:55:10 +02:00
  • fb9548453f Add simple test suite. Simon Ruderich 2013-06-01 21:51:28 +02:00
  • 96710bc3fa Add ENV_NAME_FORCE_WRITE to force writes to non-tty devices. Simon Ruderich 2013-06-01 21:13:23 +02:00
  • 7d4d8e0784 Fix initialization if ENV_NAME_FDS was not set. Simon Ruderich 2013-06-01 18:27:56 +02:00
  • 5e162a33ae Fix signature of fcntl() hook. Simon Ruderich 2013-05-31 22:31:11 +02:00
  • b9b86029be Display PID in tracked_fds_debug(). Simon Ruderich 2013-05-31 18:40:49 +02:00
  • 8772530a2e trackfds.h: Add missing void to function definition. Simon Ruderich 2013-05-31 18:39:47 +02:00
  • f369605227 fcntl(): Don't call dup_fd() if real_fcntl() failed. Simon Ruderich 2013-05-31 18:37:55 +02:00
  • 6d15f6c990 Rename macros.h to hookmacros.h. Simon Ruderich 2013-05-31 18:36:21 +02:00
  • abc3d7889f Initial commit. Simon Ruderich 2013-05-31 18:19:12 +02:00