OSSP CVS Repository

ossp - Check-in [4329]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 4329
Date: 2004-Jan-15 13:32:26 (local)
2004-Jan-15 12:32:26 (UTC)
User:rse
Branch:
Comment: Fixed portability by replacing accidentally introduced uint{8,16,32}_t with the portable uuid_uint{8,16,32}_t. Prefix all variable symbols in uuid.h with underscores to avoid namespace conflicts.

Submitted by: Guerry Semones <guerry@tsunamiresearch.com>

Tickets:
Inspections:
Files:
ossp-pkg/uuid/ChangeLog      added-> 1.11
ossp-pkg/uuid/uuid.c      1.23 -> 1.24     3 inserted, 3 deleted
ossp-pkg/uuid/uuid.h      added-> 1.11

ossp-pkg/uuid/ChangeLog -> 1.11

*** /dev/null    Fri Nov 22 15:10:08 2024
--- -    Fri Nov 22 15:10:15 2024
***************
*** 0 ****
--- 1,61 ----
+    _        ___  ____ ____  ____                _     _
+   |_|_ _   / _ \/ ___/ ___||  _ \   _   _ _   _(_) __| |
+   _|_||_| | | | \___ \___ \| |_) | | | | | | | | |/ _` |
+  |_||_|_| | |_| |___) |__) |  __/  | |_| | |_| | | (_| |
+   |_|_|_|  \___/|____/____/|_|      \__,_|\__,_|_|\__,_|
+ 
+   OSSP uuid - Universally Unique Identifier
+ 
+   CHANGELOG
+ 
+   This is a list of all changes to OSSP uuid.
+   For a more brief summary please have a look at the NEWS file.
+ 
+   Changes between 0.9.1 and 0.9.2 (13-Jan-2004 to xx-Jan-2004)
+ 
+    o Fixed portability by replacing accidentally introduced
+      uint{8,16,32}_t with the portable uuid_uint{8,16,32}_t.
+      [Guerry Semones <guerry@tsunamiresearch.com>]
+ 
+    o Prefix all variable symbols in uuid.h with underscores
+      to avoid namespace conflicts.
+      [Ralf S. Engelschall]
+ 
+    o Add decoding examples to uuid(1) manual page.
+      [Ralf S. Engelschall]
+ 
+   Changes between 0.9.0 and 0.9.1 (11-Jan-2004 to 13-Jan-2004)
+ 
+    o Make "md5_init" and "mac_address" symbols namespace clean
+      by adding correct embedding support via "uuid_" prefix.
+      [Ralf S. Engelschall]
+ 
+    o Implement uuid_dump() and corresponding uuid CLI "-d"
+      option for dumping a given UUID into clear text. For convinience
+      reasons add uuid_bm.h (bit mask API) and uuid_str (string
+      formatting API) sub-modules.
+      [Ralf S. Engelschall]
+ 
+    o Add "-m" option to CLI for allowing to generate v1 UUIDs
+      with random multi-cast addresses (API UUID_MCASTRND option).
+      [Ralf S. Engelschall]
+ 
+    o Disable the C++ and F77 checks in GNU libtool.
+      [Ralf S. Engelschall]
+ 
+    o Print involved option character (instead of '?') on invalid
+      option for uuid(1) CLI.
+      [Matthias Andree <matthias.andree@gmx.de>] 
+ 
+    o Fixed "make install" and "make uninstall": the uuid(1) CLI
+      has to be [un]installed through GNU libtool, too.
+      [Matthias Andree <matthias.andree@gmx.de>] 
+ 
+    o Document in uuid(1) [uuid_cli.pod] that for version 3
+      UUIDs additional arguments are required and what pre-defined
+      namespace ids are known.
+      [Ralf S. Engelschall, M.Daniel <mdaniel@scdi.com>]
+ 
+    o cleaned up source tree documentation files.
+      [Ralf S. Engelschall]
+ 


ossp-pkg/uuid/uuid.c 1.23 -> 1.24

--- uuid.c       2004/01/13 19:43:14     1.23
+++ uuid.c       2004/01/15 12:32:26     1.24
@@ -760,9 +760,9 @@
 {
     const char *version;
     const char *variant;
-    uint8_t tmp8;
-    uint16_t tmp16;
-    uint32_t tmp32;
+    uuid_uint8_t tmp8;
+    uuid_uint16_t tmp16;
+    uuid_uint32_t tmp32;
     char string[UUID_LEN_STR+1];
     char *s;
     int i;


ossp-pkg/uuid/uuid.h -> 1.11

*** /dev/null    Fri Nov 22 15:10:08 2024
--- -    Fri Nov 22 15:10:15 2024
***************
*** 0 ****
--- 1,83 ----
+ /*
+ **  OSSP uuid - Universally Unique Identifier
+ **  Copyright (c) 2004 Ralf S. Engelschall <rse@engelschall.com>
+ **  Copyright (c) 2004 The OSSP Project <http://www.ossp.org/>
+ **
+ **  This file is part of OSSP uuid, a library for the generation
+ **  of UUIDs which can found at http://www.ossp.org/pkg/lib/uuid/
+ **
+ **  Permission to use, copy, modify, and distribute this software for
+ **  any purpose with or without fee is hereby granted, provided that
+ **  the above copyright notice and this permission notice appear in all
+ **  copies.
+ **
+ **  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ **  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ **  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ **  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+ **  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ **  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ **  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ **  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ **  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ **  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ **  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ **  SUCH DAMAGE.
+ **
+ **  uuid.h: library API definition
+ */
+ 
+ #ifndef __UUID_H__
+ #define __UUID_H__
+ 
+ /* encoding octet stream lengths */
+ #define UUID_LEN_BIN (128 / 8 /*bytes*/)
+ #define UUID_LEN_STR (128 / 4 /*nibbles*/ + 4 /*hyphens*/)
+ 
+ /* return codes */
+ typedef enum {
+     UUID_RC_OK  = 0,
+     UUID_RC_ARG = 1,
+     UUID_RC_MEM = 2,
+     UUID_RC_SYS = 3,
+     UUID_RC_INT = 4
+ } uuid_rc_t;
+ 
+ /* generation mode flags */
+ enum {
+     UUID_VERSION1      = (1 << 0),
+     UUID_VERSION3      = (1 << 1),
+     UUID_VERSION4      = (1 << 2),
+     UUID_MCASTRND      = (1 << 3)
+ };
+ 
+ /* abstract data type */
+ struct uuid_st;
+ typedef struct uuid_st uuid_t;
+ 
+ /* object handling */
+ extern uuid_rc_t  uuid_create   (uuid_t **_uuid);
+ extern uuid_rc_t  uuid_destroy  (uuid_t  *_uuid);
+ extern uuid_rc_t  uuid_nil      (uuid_t  *_uuid);
+ 
+ /* UUID comparison */
+ extern uuid_rc_t  uuid_isnil    (uuid_t  *_uuid,                 int *_result);
+ extern uuid_rc_t  uuid_compare  (uuid_t  *_uuid, uuid_t *_uuid2, int *_result);
+ 
+ /* UUID binary representation handling */
+ extern uuid_rc_t  uuid_unpack   (uuid_t  *_uuid, const void  *_buf);
+ extern uuid_rc_t  uuid_pack     (uuid_t  *_uuid,       void **_buf);
+ 
+ /* UUID string representation handling */
+ extern uuid_rc_t  uuid_parse    (uuid_t  *_uuid, const char  *_str);
+ extern uuid_rc_t  uuid_format   (uuid_t  *_uuid,       char **_str);
+ 
+ /* UUID generation and dumping */
+ extern uuid_rc_t  uuid_generate (uuid_t  *_uuid, unsigned int _mode, ...);
+ extern uuid_rc_t  uuid_dump     (uuid_t  *_uuid, char **_str);
+ 
+ /* error handling */
+ extern char      *uuid_error    (uuid_rc_t _rc);
+ 
+ #endif /* __UUID_H__ */
+ 

CVSTrac 2.0.1