]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libuuid: add uuid_parse_range() to man page and symbol-table
authorKarel Zak <kzak@redhat.com>
Thu, 27 Feb 2020 13:52:06 +0000 (14:52 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 27 Feb 2020 13:52:06 +0000 (14:52 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
libuuid/man/uuid_parse.3
libuuid/src/libuuid.sym
libuuid/src/parse.c

index 156d15dddc2fdabbaf5d5a6dff072f16d8651ef1..ee36c27f7b24876ad570b465fe16f65e5cd0e4c9 100644 (file)
@@ -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
index 9e3e80035cc6123a37160ae20005898c073c34ba..342453368dc11a74f438d4f8501be91361f09e39 100644 (file)
@@ -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.
index e4ec44ab3c1d25d02607a6171f68e1f7a9f46f7e..536b1ed23c1764e088039782c71789487180d57e 100644 (file)
@@ -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];