Skip to content

Add strncmp(), strtol() and strtoul() functions

Pawel Wieczorkiewicz xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4string: add freebds libc implementation of strtol()build/files.mk common/libc/strtol.c include/xtf/libc.h+138 -00 replies
2/4libc, strtol: Add isspace(), isdigit(), isxdigit(), isascii()common/lib.c common/libc/strtol.c common/libc/vsnprintf.c +1 more+32 -220 replies
3/4libc, strtol: Add FreeBSD libc implementation of strtoul()common/libc/strtol.c include/xtf/libc.h+70 -00 replies
4/4libc: add strncmp() functioncommon/libc/string.c include/xtf/libc.h+14 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [XTF 0/4] Add strncmp(), strtol() and strtoul() functions

Add FreeBSD's implementation of strtol() and strtoul() functions from:
https://github.com/freebsd/freebsd/blob/master/lib/libc/stdlib/strtoul.c

The FreeBSD code being added as a separate file (common/libc/strtol.c) is under the BSD 3-clause license. Modification to COPYING file might be needed.

Also add simple implementation of the strncmp() function.

Paul Semel (1):
string: add freebds libc implementation of strtol()

Pawel Wieczorkiewicz (3):
libc, strtol: Add isspace(), isdigit(), isxdigit(), isascii() libc, strtol: Add FreeBSD libc implementation of strtoul()
libc: add strncmp() function

 build/files.mk          |   1 +
 common/lib.c            |   8 --
 common/libc/string.c    |  11 +++
 common/libc/strtol.c    | 201 ++++++++++++++++++++++++++++++++++++++++++++++++
 common/libc/vsnprintf.c |   8 --
 include/xtf/libc.h      |  35 +++++++++
 6 files changed, 248 insertions(+), 16 deletions(-)
 create mode 100644 common/libc/strtol.c
Signature · 12 lines
2.16.6




Amazon Development Center Germany GmbH
Krausenstr. 38
10117 Berlin
Geschaeftsfuehrung: Christian Schlaeger, Jonathan Weiss
Eingetragen am Amtsgericht Charlottenburg unter HRB 149173 B
Sitz: Berlin
Ust-ID: DE 289 237 879