1. 6
  1.  

  2. 2

    The trick with overriding fprintf with LD_PRELOAD will definitely come in handy one day.