1. 02 Nov, 2014 5 commits
  2. 26 Sep, 2014 3 commits
  3. 13 Mar, 2014 1 commit
  4. 20 Feb, 2014 1 commit
  5. 22 Apr, 2013 1 commit
  6. 19 Dec, 2012 1 commit
  7. 05 Oct, 2012 2 commits
  8. 23 Sep, 2012 1 commit
    • Hitoshi Mitake's avatar
      curses: don't initialize curses when qemu is daemonized · 995ee2bf
      Hitoshi Mitake authored
      Current qemu initializes curses even if -daemonize option is
      passed. This cause problem because shell prompt appears without
      calling endwin().
      
      This patch adds new function, is_daemonized(), to OS dependent
      code. With this function, curses_display_init() can check that qemu is
      daemonized or not. If daemonized, curses_display_init() isn't called
      and the problem is avoided.
      
      Of course, -daemonize && -curses doesn't make sense. Users shouldn't
      pass the arguments at the same time. But the problem is very painful
      because Ctrl-C cannot be delivered to the terminal.
      
      Cc: Andrzej Zaborowski  <balrog@zabor.org>
      Cc: Stefan Hajnoczi <stefanha@gmail.com>
      Cc: Anthony Liguori <aliguori@us.ibm.com>
      Cc: Michael Roth <mdroth@linux.vnet.ibm.com>
      Signed-off-by: default avatarHitoshi Mitake <h.mitake@gmail.com>
      Signed-off-by: default avatarStefan Hajnoczi <stefanha@gmail.com>
      995ee2bf
  9. 03 Aug, 2012 1 commit
  10. 26 Apr, 2012 1 commit
  11. 01 Feb, 2012 1 commit
  12. 22 Dec, 2011 1 commit
  13. 11 Nov, 2011 1 commit
  14. 20 Aug, 2011 1 commit
  15. 12 Jul, 2011 1 commit
  16. 15 Jun, 2011 1 commit
    • Andreas Färber's avatar
      Introduce format string for pid_t · 953ffe0f
      Andreas Färber authored
      BeOS and Haiku on i386 use long for 32-bit types, including pid_t.
      Using %d with pid_t therefore results in a warning.
      
      Unfortunately POSIX:2008 does not define a PRId* string for pid_t.
      
      In some places pid_t was previously casted to long and %ld hardcoded.
      The predecessor of this patch added another upcast for the simpletrace
      filename but was not applied to date.
      
      Since new uses of pid_t with %d keep creeping in, let's instead define
      an OS-dependent format string and use that consistently.
      
      Cc: Stefan Hajnoczi <stefanha@gmail.com>
      Cc: Blue Swirl <blauwirbel@gmail.com>
      Cc: Ingo Weinhold <ingo_weinhold@gmx.de>
      Cc: Gleb Natapov <gleb@redhat.com>
      Signed-off-by: default avatarAndreas Färber <andreas.faerber@web.de>
      Signed-off-by: default avatarBlue Swirl <blauwirbel@gmail.com>
      953ffe0f
  17. 29 Mar, 2011 1 commit
  18. 26 Mar, 2011 1 commit
  19. 16 Mar, 2011 1 commit
  20. 30 Oct, 2010 2 commits
  21. 20 Aug, 2010 1 commit
    • Blue Swirl's avatar
      Use ARRAY_SIZE macro · 66fe09ee
      Blue Swirl authored
      Replace array size calculations with ARRAY_SIZE macro.
      
      Implemented with this Coccinelle semantic patch, adapted from
      Linux kernel:
      @@
      type T;
      T[] E;
      @@
      
      - (sizeof(E)/sizeof(*E))
      + ARRAY_SIZE(E)
      
      @@
      type T;
      T[] E;
      @@
      
      - (sizeof(E)/sizeof(E[...]))
      + ARRAY_SIZE(E)
      
      @@
      type T;
      T[] E;
      @@
      
      - (sizeof(E)/sizeof(T))
      + ARRAY_SIZE(E)
      
      Some files (*-dis.c, tests/*) had to be filtered out.
      Signed-off-by: default avatarBlue Swirl <blauwirbel@gmail.com>
      66fe09ee
  22. 06 Jul, 2010 1 commit
  23. 11 Jun, 2010 10 commits