Wiki
Download
Manual
Eggs
API
Tests
Bugs
show
edit
history
You can edit this page using
wiki syntax
for markup.
Article contents:
[[tags: egg]] == uuid-lib OSF DCE 1.1 UUID [[toc:]] == Documentation Wrapper for {{uuid/uuid.h}} procedures on ''macOS X'', and ''Linux''. === Operations ==== make-uuid <procedure>(make-uuid [METHOD]) -> uuid</procedure> Returns a new uuid, as {{uuid-generate}}, or a {{null-uuid}} as the default. ==== uuid-generate <procedure>(uuid-generate [METHOD]) -> uuid</procedure> Returns a new uuid made using the stated {{METHOD}}. ; {{METHOD}} : {{(or false symbol)}} ; the UUID Version ; {{'v1}}, {{'V1}}, or {{'time}} : DCE Version 1 (MAC address) algorithm. ; {{'v4}}, {{'V4}}, or {{'random}} : DCE Version 4 (random) algorithm. ; {{#f}} : DCE V4 if a high-quality random device available, otherwise DCE V1. The default. An invalid {{METHOD}} is an error condition. ==== uuid-clear! <procedure>(uuid-clear! UUID) -> uuid</procedure> Returns the {{UUID}} set to the null-uuid. ==== uuid-copy <procedure>(uuid-copy UUID) -> uuid</procedure> Returns a copy of the {{UUID}}. ==== string->uuid <procedure>(string->uuid UUID-STRING) -> uuid</procedure> Returns a new uuid from the external string representation {{UUID-STRING}}. ==== uuid->string <procedure>(uuid->string UUID) -> string</procedure> Returns the external string representation of {{UUID}}. ==== uuid-parse <procedure>(uuid-parse UUID-TEXT) -> uuid</procedure> Returns a new uuid from the external string representation {{UUID-TEXT}}. ==== uuid-unparse <procedure>(uuid-unparse UUID [CASE]) -> string</procedure> Returns the external string representation of {{UUID}}. ; {{CASE}} : {{(or false symbol)}} ; {{'upper}}, {{'lower}}, or {{#f}}. Default is {{#f}}. An invalid {{CASE}} is an error condition. === Predicates ==== uuid? <procedure>(uuid? UUID) -> boolean</procedure> Is {{UUID}} a uuid? ==== uuid-null? <procedure>(uuid-null? UUID) -> boolean</procedure> Is {{UUID}} the null uuid? ==== uuid-compare <procedure>(uuid-compare UUID1 UUID2) -> fixnum</procedure> Returns {{-1}}, {{0}}. or {{1}} for the comparison of {{UUID1}} and {{UUID2}}. ==== uuid=? ==== uuid<? ==== uuid>? ==== uuid<=? ==== uuid>=? <procedure>(uuid=? UUID1 UUID2) -> boolean</procedure> <procedure>(uuid<? UUID1 UUID2) -> boolean</procedure> <procedure>(uuid>? UUID1 UUID2) -> boolean</procedure> <procedure>(uuid<=? UUID1 UUID2) -> boolean</procedure> <procedure>(uuid>=? UUID1 UUID2) -> boolean</procedure> {{uuid-compare}} wrappers. ==== uuid-hash <procedure>(uuid-hash UUID [BOUND [RANDOMIZATION]]) -> fixnum</procedure> Returns a hash of the {{UUID}}, modulo the {{BOUND}}, & the {{RANDOMIZATION}}. A [[srfi-69]] compatible, version specific, hash function. == Version & Method ; {{uuid-version : {{(or false fixnum)}} ; {{uuid-method : {{(or false symbol)}} ==== uuid-version? <procedure>(uuid-version? OBJ) -> boolean</procedure> Is the {{OBJ}} a {{uuid-version}}? ==== uuid-version->method <procedure>(uuid-version->method VERSION) -> uuid-method</procedure> An invalid {{VERSION}} is an error condition. ==== uuid-method->version <procedure>(uuid-method->version METHOD) -> uuid-version</procedure> An invalid {{METHOD}} is an error condition. ==== uuid-method <procedure>(uuid-method UUID) -> uuid-method</procedure> ==== uuid-version-number <procedure>(uuid-version-number UUID) -> fixnum</procedure> Returns {{UUID}} version-number, {{0 .. 15}}. '''Note''' that {{uuid-version-number}} is ''not'' reliable cross-platform; 'linux' for example. ==== check-uuid <procedure>(uuid-print UUID [PORT]) -> boolean</procedure> == Checks & Errors ==== check-uuid ==== error-uuid <procedure>(check-uuid LOC OBJ [ARGNAM]) -> uuid</procedure> <procedure>(error-uuid LOC OBJ [ARGNAM])) -> void</procedure> ==== check-uuid-version ==== error-uuid-version <procedure>(check-uuid-version LOC OBJ [ARGNAM])) -> uuid-version</procedure> <procedure>(error-uuid-version LOC * [ARGNAM])) -> void</procedure> == Usage <enscript language=scheme> (import uuid-lib) </enscript> == Notes * All UUIDs are Variant 1. * The {{uuid?}}, {{uuid-null?}}, {{uuid-compare}}, {{uuid=?}}, {{uuid<?}}, {{uuid>?}}, {{uuid<=?}}, {{uuid>=?}}, {{make-uuid}}, {{uuid-copy}}, {{uuid-clear!}}, {{string->uuid}}, {{uuid->string}} share the same signature as the corresponding routines in the ''uuid-ossp'' extension. == Requirements [[record-variants]] [[test]] [[test-utils]] == Author [[/users/kon-lovett|Kon Lovett]] == Version history ; 0.0.8 : Add {{uuid-version-number}}. ; 0.0.6 : . ; 0.0.6 : {{variant}} => {{method}}. ; 0.0.5 : Fix {{uuid-parse}} uuid method. ; 0.0.4 : {{(srfi 69)}} compatible hashers. ; 0.0.3 : Add {{uuid-hash}} {{uuid-v4-hash}}, & {{uuid-print}}. Add record printer. ; 0.0.2 : . ; 0.0.1 : C5 port of C4 1.5.0 (need Linux testing). == License Copyright (C) 2010-2023 Kon Lovett. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the Software), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED ASIS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Description of your changes:
I would like to authenticate
Authentication
Username:
Password:
Spam control
What do you get when you subtract 14 from 5?