Statistics
| Branch: | Revision:

root / cmd.c @ 992aeb8e

History | View | Annotate | Download (12.1 kB)

# Date Author Comment
1de7afc9 12/19/2012 09:32 am Paolo Bonzini

misc: move include files to include/qemu/

Signed-off-by: Paolo Bonzini <>

737e150e 12/19/2012 09:31 am Paolo Bonzini

block: move include files to include/block/

Signed-off-by: Paolo Bonzini <>

8655d2de 05/10/2012 11:32 am Paolo Bonzini

qemu-io: correctly print non-integer values as decimals

qemu-io's cvtstr function sometimes will incorrectly omit the
decimal part of the number, and sometimes will incorrectly include
it. This patch fixes both. The former is more serious, and can
be seen in the patches to 027.out and 033.out....

a5a5238e 04/19/2012 05:29 pm Paolo Bonzini

qemu-io: use main_loop_wait

This will let timers run during aio_read and aio_write commands,
though not during synchronous commands.

Signed-off-by: Paolo Bonzini <>
Signed-off-by: Kevin Wolf <>

81beeec4 11/07/2011 10:01 am Pavel Borzenkov

cmd: Fix coding style in cmd.c

Before the next patches, fix coding style of the affected functions.

Signed-off-by: Pavel Borzenkov <>
Signed-off-by: Stefan Hajnoczi <>

ba7806ad 11/07/2011 10:01 am Pavel Borzenkov

cmd: Fix potential NULL pointer dereference

Signed-off-by: Pavel Borzenkov <>
Signed-off-by: Stefan Hajnoczi <>

47e8dd8f 11/07/2011 10:01 am Pavel Borzenkov

cmd: Fix potential memory leak

Signed-off-by: Pavel Borzenkov <>
Signed-off-by: Stefan Hajnoczi <>

7b0a03a1 09/21/2011 01:10 pm Christoph Egger

use qemu_* ctype functions

Fix "warning: array subscript has type 'char'" on NetBSD.

Signed-off-by: Christoph Egger <>
Signed-off-by: Stefan Hajnoczi <>

bcd2491a 06/20/2011 07:08 pm Frediano Ziglio

cmd: fix operator precedence

Signed-off-by: Frediano Ziglio <>
Signed-off-by: Stefan Hajnoczi <>

7d7d975c 06/22/2010 03:38 pm MORITA Kazutaka

qemu-io: check registered fds in command_loop()

Some block drivers use an aio handler and do I/O completion routines
in it. However, the handler is not invoked if we only do
aio_read/write, because registered fds are not checked at all.

This patch registers an aio handler of STDIO to checks whether we can...

88bf7950 04/25/2010 06:27 pm Blue Swirl

Fix dead initialization, spotted by clang analyzer

Fix clang warnings:
/src/qemu/block/vvfat.c:1102:9: warning: Value stored to 'index3' during its initialization is never read
int index3=index1+1;
/src/qemu/cmd.c:290:15: warning: Value stored to 'p' during its initialization is never read...

22a2bdcb 11/21/2009 11:06 am Blue Swirl

Fix OpenBSD build of qemu-io

GCC 3.3.5 generates warnings for static forward declarations of data, so
rearrange code to use static forward declarations of functions instead.

Use <getopt.h> for optind instead of local definition.

Signed-off-by: Blue Swirl <>

50da01ed 09/19/2009 07:43 pm Stefan Weil

Fix indentation

Signed-off-by: Stefan Weil <>
Signed-off-by: Aurelien Jarno <>

c32d766a 09/09/2009 10:57 pm Stefan Weil

qemu-io: Improve portability (win32 now supported).

  • Add missing include for struct timeval.
  • Replace non-portable strsep by local qemu_strsep.
  • Use POSIX basename by including libgen.h.

Signed-off-by: Stefan Weil <>
Signed-off-by: Anthony Liguori <>

8167ee88 07/16/2009 11:47 pm Blue Swirl

Update to a hopefully more future proof FSF address

Signed-off-by: Blue Swirl <>

856ae5c3 04/07/2009 08:57 pm blueswir1

Fix a few Sparse warnings

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7016 c046a42c-6fe2-441c-8c8c-71466251a162

e3aff4f6 04/05/2009 10:14 pm aliguori

Add files not included in previous commit.

Signed-off-by: Anthony Liguori <>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6995 c046a42c-6fe2-441c-8c8c-71466251a162