Print this page
4118 libuuid should provide uuid_unparse_{upper,lower} functions
Reviewed by: Serghei Samsi <sscdvp@gmail.com>
Reviewed by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Garrett D'Amore <garrett@damore.org>

Split Close
Expand all
Collapse all
          --- old/usr/src/head/uuid/uuid.h
          +++ new/usr/src/head/uuid/uuid.h
↓ open down ↓ 16 lines elided ↑ open up ↑
  17   17   * fields enclosed by brackets "[]" replaced with your own identifying
  18   18   * information: Portions Copyright [yyyy] [name of copyright owner]
  19   19   *
  20   20   * CDDL HEADER END
  21   21   */
  22   22  /*
  23   23   * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
  26   26  
       27 +/*
       28 + * Copyright 2014 Andrew Stormont.
       29 + */
       30 +
  27   31  #ifndef _UUID_H
  28   32  #define _UUID_H
  29   33  
  30      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  31      -
  32   34  #ifdef  __cplusplus
  33   35  extern "C" {
  34   36  #endif
  35   37  
  36   38  /*
  37   39   * The copyright in this file is taken from the original Leach & Salz
  38   40   * UUID specification, from which this implementation is derived.
  39   41   */
  40   42  
  41   43  /*
↓ open down ↓ 16 lines elided ↑ open up ↑
  58   60  
  59   61  #include <sys/types.h>
  60   62  #include <sys/uuid.h>
  61   63  
  62   64  extern void uuid_generate(uuid_t);
  63   65  extern void uuid_generate_random(uuid_t);
  64   66  extern void uuid_generate_time(uuid_t);
  65   67  extern void uuid_copy(uuid_t, uuid_t);
  66   68  extern void uuid_clear(uuid_t);
  67   69  extern void uuid_unparse(uuid_t, char *);
       70 +extern void uuid_unparse_lower(uuid_t, char *);
       71 +extern void uuid_unparse_upper(uuid_t, char *);
  68   72  extern int uuid_compare(uuid_t, uuid_t);
  69   73  extern int uuid_is_null(uuid_t);
  70   74  extern int uuid_parse(char *, uuid_t);
  71   75  extern time_t uuid_time(uuid_t, struct timeval *);
  72   76  
  73   77  #ifdef __cplusplus
  74   78  }
  75   79  #endif
  76   80  
  77   81  #endif /* _UUID_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX