cvs commit: src/lib/libc/uuid uuid_compare.c

Marcel Moolenaar marcel at
Fri Aug 8 12:03:39 PDT 2003

marcel      2003/08/08 12:03:37 PDT

  FreeBSD src repository

  Modified files:
    lib/libc/uuid        uuid_compare.c 
  Fix two (2) bugs in one (1) statement:
  o  fix the len argument of memcmp(3) to be the size of the node field
     of the uuid structure, not the size of the uuid structure itself.
     We're comparing the node fields...
  o  uuid_compare(3) is specified to return -1, 0 or 1, depending on
     the outcome of the comparison. memcmp(3) returns the difference
     between the first differing bytes. Hence, we cannot ever return
     the return value of memcmp(3) as-is.
  PR: standards/55370
  Submitted by: Konstantin Oznobihin <bork at>
  Revision  Changes    Path
  1.2       +4 -1      src/lib/libc/uuid/uuid_compare.c

More information about the cvs-src mailing list