Add documentation for STRTOSZ_DEFSUFFIX_ macros
PATCH 1/1 Add documentation for STRTOSZ_DEFSUFFIX_ macros
From: Jes Sorensen <[email protected]>
Signed-off-by Jes Sorensen <[email protected]>
--- qemu-common.h | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)
qemu-common.h +7 -0
@@ -153,6 +153,13 @@ int qemu_fls(int i);int qemu_fdatasync (int fd);int fcntl_setfl (int fd,int flag); +/* +* strtosz() suffixes used to specify the default treatment of an +* argument passed to strtosz() without an explicit suffix. +* These should be defined using upper case characters in the range +* A-Z, as strtosz() will use qemu_toupper() on the given argument +* prior to comparison. +*/ #define STRTOSZ_DEFSUFFIX_TB 'T'#define STRTOSZ_DEFSUFFIX_GB 'G'#define STRTOSZ_DEFSUFFIX_MB 'M'
Signature · 1 line
1.7.3.4
Quoted 15 lines · [email protected] writes:
From: Jes Sorensen <[email protected]>
Signed-off-by Jes Sorensen <[email protected]>--- qemu-common.h | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)qemu-common.h +0
-0@@ -153,6 +153,13 @@ int qemu_fls(int i);int qemu_fdatasync (int fd);int fcntl_setfl (int fd,int flag);
qemu-common.h int qemu_fls(int i); · line 165
Quoted 10 lines
qemu-common.h +7
-0+/* +* strtosz() suffixes used to specify the default treatment of an +* argument passed to strtosz() without an explicit suffix. +* These should be defined using upper case characters in the range +* A-Z, as strtosz() will use qemu_toupper() on the given argument +* prior to comparison. +*/ #define STRTOSZ_DEFSUFFIX_TB 'T'#define STRTOSZ_DEFSUFFIX_GB 'G'#define STRTOSZ_DEFSUFFIX_MB 'M'
Thanks, Jes!
Kevin Wolf
AppliedAm 26.01.2011 12:53, schrieb Markus Armbruster:
Quoted 30 lines
Quoted 15 lines · [email protected] writes:
From: Jes Sorensen <[email protected]>
Signed-off-by Jes Sorensen <[email protected]>--- qemu-common.h | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)qemu-common.h +0
-0@@ -153,6 +153,13 @@ int qemu_fls(int i);int qemu_fdatasync (int fd);int fcntl_setfl (int fd,int flag);qemu-common.h int qemu_fls(int i); · line 165
Quoted 10 lines
qemu-common.h +7
-0+/* +* strtosz() suffixes used to specify the default treatment of an +* argument passed to strtosz() without an explicit suffix. +* These should be defined using upper case characters in the range +* A-Z, as strtosz() will use qemu_toupper() on the given argument +* prior to comparison. +*/ #define STRTOSZ_DEFSUFFIX_TB 'T'#define STRTOSZ_DEFSUFFIX_GB 'G'#define STRTOSZ_DEFSUFFIX_MB 'M'Thanks, Jes!
Quoted 1 line
Thanks, applied to the block branch.
Kevin