From: "Carlos L. Torres"
Add wrapper for strtoull() function. Include unit tests.
Signed-off-by: Carlos L. Torres
---
include/qemu-common.h | 2 +
tests/test-cutils.c | 323 ++
util/cutils.c | 23
3 files ch
From: "Carlos L. Torres"
Add wrapper for strtoul() function. Include unit tests.
Signed-off-by: Carlos L. Torres
---
include/qemu-common.h | 2 +
tests/test-cutils.c | 318 ++
util/cutils.c | 32 +
3 files ch
From: "Carlos L. Torres"
Signed-off-by: Carlos L. Torres
---
qmp.c | 14 ++
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/qmp.c b/qmp.c
index 403805a..aa8c084 100644
--- a/qmp.c
+++ b/qmp.c
@@ -49,14 +49,20 @@ VersionInfo *qmp_query_version(Er
From: "Carlos L. Torres"
Add wrapper for strtoll() function. Include unit tests.
Signed-off-by: Carlos L. Torres
---
include/qemu-common.h | 2 +
tests/test-cutils.c | 320 ++
util/cutils.c | 23
3 files changed, 345
From: "Carlos L. Torres"
Add wrapper for strtol() function. Include unit tests.
Signed-off-by: Carlos L. Torres
---
include/qemu-common.h | 2 +
tests/test-cutils.c | 319 ++
util/cutils.c | 58 +
3 files ch
From: "Carlos L. Torres"
Introduce qemu_ wrappers for strtol/strtoul/strtoll/strtoull
C functions, ensure that errno is checked, and if NULL is
passed as the endptr argument, then whole string has to be
a valid number on the given base, otherwise return appropriate
error.
Different
On Sun, Jul 19, 2015 at 07:51:00PM +0200, Paolo Bonzini wrote:
>
>
> On 19/07/2015 01:52, Carlos L. Torres wrote:
> > +int err;
> >
> > info->qemu = g_new0(VersionTriple, 1);
> > -info->qemu->major = strtol(version, &tmp, 10);
> &
From: "Carlos L. Torres"
Add wrapper for strtoull() function. Include unit tests.
Signed-off-by: Carlos L. Torres
---
include/qemu-common.h | 2 +
tests/test-cutils.c | 323 ++
util/cutils.c | 23
3 files ch
From: "Carlos L. Torres"
Add wrapper for strtoll() function. Include unit tests.
Signed-off-by: Carlos L. Torres
---
include/qemu-common.h | 2 +
tests/test-cutils.c | 320 ++
util/cutils.c | 23
3 files changed, 345
From: "Carlos L. Torres"
Add wrapper for strtol() function. Include unit tests.
Signed-off-by: Carlos L. Torres
---
include/qemu-common.h | 2 +
tests/test-cutils.c | 319 ++
util/cutils.c | 58 +
3 files ch
From: "Carlos L. Torres"
Add wrapper for strtoul() function. Include unit tests.
Signed-off-by: Carlos L. Torres
---
include/qemu-common.h | 2 +
tests/test-cutils.c | 318 ++
util/cutils.c | 32 +
3 files ch
From: "Carlos L. Torres"
Introduce qemu_ wrappers for strtol/strtoul/strtoll/strtoull
C functions, ensure that errno is checked, and if NULL is
passed as the endptr argument, then whole string has to be
a valid number on the given base, otherwise return appropriate
error.
Different
From: "Carlos L. Torres"
Signed-off-by: Carlos L. Torres
---
qmp.c | 21 +
1 file changed, 17 insertions(+), 4 deletions(-)
diff --git a/qmp.c b/qmp.c
index 403805a..837cb3f 100644
--- a/qmp.c
+++ b/qmp.c
@@ -49,14 +49,27 @@ VersionInfo *qmp_query_version(Er
From: "Carlos L. Torres"
Add wrapper for strtol() function. Include unit tests.
Signed-off-by: Carlos L. Torres
---
include/qemu-common.h | 2 +
tests/test-cutils.c | 292 ++
util/cutils.c | 58 ++
3 files ch
From: "Carlos L. Torres"
Add wrapper for strtoll() function. Include unit tests.
Signed-off-by: Carlos L. Torres
---
include/qemu-common.h | 2 +
tests/test-cutils.c | 293 ++
util/cutils.c | 23
3 files changed, 318
From: "Carlos L. Torres"
Add wrapper for strtoul() function. Include unit tests.
Signed-off-by: Carlos L. Torres
---
include/qemu-common.h | 2 +
tests/test-cutils.c | 291 ++
util/cutils.c | 27 +
3 files ch
From: "Carlos L. Torres"
Add wrapper for strtoull() function. Include unit tests.
Signed-off-by: Carlos L. Torres
---
include/qemu-common.h | 2 +
tests/test-cutils.c | 296 ++
util/cutils.c | 23
3 files ch
From: "Carlos L. Torres"
Introduce qemu_ wrappers for strtol/strtoul/strtoll/strtoull
C functions, ensure that errno is checked, and if NULL is
passed as the endptr argument, then whole string has to be
a valid number on the given base, otherwise return appropriate
error.
Different
18 matches
Mail list logo