libuuid: add uuid_parse_range() to man page and symbol-table

Signed-off-by: Karel Zak <kzak@redhat.com>
pull/970/head
Karel Zak 3 years ago
parent ef59d1908d
commit 079dc9ddcd
  1. 14
      libuuid/man/uuid_parse.3
  2. 9
      libuuid/src/libuuid.sym
  3. 2
      libuuid/src/parse.c

@ -36,7 +36,9 @@ uuid_parse \- convert an input UUID string into binary representation
.nf
.B #include <uuid.h>
.sp
.BI "int uuid_parse( char *" in ", uuid_t " uu );
.BI "int uuid_parse(char *" in ", uuid_t " uu );
.sp
.BI "int uuid_parse_range(char *" in_start ", char *" in_end ", uuid_t " uu );
.fi
.SH DESCRIPTION
The
@ -47,6 +49,16 @@ into the binary representation. The input UUID is a string of the form
1b4e28ba\-2fa1\-11d2\-883f\-b9a761bde3fb (in
.BR printf (3)
format "%08x\-%04x\-%04x\-%04x\-%012x", 36 bytes plus the trailing '\e0').
.PP
The
.B uuid_parse_range
function works like
.B uuid_parse
but parses only range in string specified by
.I in_start
and
.I in_end
pointers.
.SH RETURN VALUE
Upon successfully parsing the input string, 0 is returned, and the UUID is
stored in the location pointed to by

@ -44,6 +44,15 @@ global:
uuid_get_template;
} UUID_2.20;
/*
* version(s) since util-linux.2.36
*/
UUID_2.36 {
global:
uuid_parse_range;
} UUID_2.31;
/*
* __uuid_* this is not part of the official API, this is
* uuidd (uuid daemon) specific stuff. Hell.

@ -51,7 +51,7 @@ int uuid_parse(const char *in, uuid_t uu)
int uuid_parse_range(const char *in_start, const char *in_end, uuid_t uu)
{
struct uuid uuid;
int i;
int i;
const char *cp;
char buf[3];

Loading…
Cancel
Save