Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/AnonR/smanonr..../usr/include/uuid
File: uuid.h
/*
[0] Fix | Delete
* Public include file for the UUID library
[1] Fix | Delete
*
[2] Fix | Delete
* Copyright (C) 1996, 1997, 1998 Theodore Ts'o.
[3] Fix | Delete
*
[4] Fix | Delete
* %Begin-Header%
[5] Fix | Delete
* Redistribution and use in source and binary forms, with or without
[6] Fix | Delete
* modification, are permitted provided that the following conditions
[7] Fix | Delete
* are met:
[8] Fix | Delete
* 1. Redistributions of source code must retain the above copyright
[9] Fix | Delete
* notice, and the entire permission notice in its entirety,
[10] Fix | Delete
* including the disclaimer of warranties.
[11] Fix | Delete
* 2. Redistributions in binary form must reproduce the above copyright
[12] Fix | Delete
* notice, this list of conditions and the following disclaimer in the
[13] Fix | Delete
* documentation and/or other materials provided with the distribution.
[14] Fix | Delete
* 3. The name of the author may not be used to endorse or promote
[15] Fix | Delete
* products derived from this software without specific prior
[16] Fix | Delete
* written permission.
[17] Fix | Delete
*
[18] Fix | Delete
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
[19] Fix | Delete
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
[20] Fix | Delete
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ALL OF
[21] Fix | Delete
* WHICH ARE HEREBY DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE
[22] Fix | Delete
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
[23] Fix | Delete
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
[24] Fix | Delete
* OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
[25] Fix | Delete
* BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
[26] Fix | Delete
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
[27] Fix | Delete
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
[28] Fix | Delete
* USE OF THIS SOFTWARE, EVEN IF NOT ADVISED OF THE POSSIBILITY OF SUCH
[29] Fix | Delete
* DAMAGE.
[30] Fix | Delete
* %End-Header%
[31] Fix | Delete
*/
[32] Fix | Delete
[33] Fix | Delete
#ifndef _UUID_UUID_H
[34] Fix | Delete
#define _UUID_UUID_H
[35] Fix | Delete
[36] Fix | Delete
#include <sys/types.h>
[37] Fix | Delete
#ifndef _WIN32
[38] Fix | Delete
#include <sys/time.h>
[39] Fix | Delete
#endif
[40] Fix | Delete
#include <time.h>
[41] Fix | Delete
[42] Fix | Delete
typedef unsigned char uuid_t[16];
[43] Fix | Delete
[44] Fix | Delete
/* UUID Variant definitions */
[45] Fix | Delete
#define UUID_VARIANT_NCS 0
[46] Fix | Delete
#define UUID_VARIANT_DCE 1
[47] Fix | Delete
#define UUID_VARIANT_MICROSOFT 2
[48] Fix | Delete
#define UUID_VARIANT_OTHER 3
[49] Fix | Delete
[50] Fix | Delete
#define UUID_VARIANT_SHIFT 5
[51] Fix | Delete
#define UUID_VARIANT_MASK 0x7
[52] Fix | Delete
[53] Fix | Delete
/* UUID Type definitions */
[54] Fix | Delete
#define UUID_TYPE_DCE_TIME 1
[55] Fix | Delete
#define UUID_TYPE_DCE_SECURITY 2
[56] Fix | Delete
#define UUID_TYPE_DCE_MD5 3
[57] Fix | Delete
#define UUID_TYPE_DCE_RANDOM 4
[58] Fix | Delete
#define UUID_TYPE_DCE_SHA1 5
[59] Fix | Delete
[60] Fix | Delete
#define UUID_TYPE_SHIFT 4
[61] Fix | Delete
#define UUID_TYPE_MASK 0xf
[62] Fix | Delete
[63] Fix | Delete
#define UUID_STR_LEN 37
[64] Fix | Delete
[65] Fix | Delete
/* Allow UUID constants to be defined */
[66] Fix | Delete
#ifdef __GNUC__
[67] Fix | Delete
#define UUID_DEFINE(name,u0,u1,u2,u3,u4,u5,u6,u7,u8,u9,u10,u11,u12,u13,u14,u15) \
[68] Fix | Delete
static const uuid_t name __attribute__ ((unused)) = {u0,u1,u2,u3,u4,u5,u6,u7,u8,u9,u10,u11,u12,u13,u14,u15}
[69] Fix | Delete
#else
[70] Fix | Delete
#define UUID_DEFINE(name,u0,u1,u2,u3,u4,u5,u6,u7,u8,u9,u10,u11,u12,u13,u14,u15) \
[71] Fix | Delete
static const uuid_t name = {u0,u1,u2,u3,u4,u5,u6,u7,u8,u9,u10,u11,u12,u13,u14,u15}
[72] Fix | Delete
#endif
[73] Fix | Delete
[74] Fix | Delete
#ifdef __cplusplus
[75] Fix | Delete
extern "C" {
[76] Fix | Delete
#endif
[77] Fix | Delete
[78] Fix | Delete
/* clear.c */
[79] Fix | Delete
extern void uuid_clear(uuid_t uu);
[80] Fix | Delete
[81] Fix | Delete
/* compare.c */
[82] Fix | Delete
extern int uuid_compare(const uuid_t uu1, const uuid_t uu2);
[83] Fix | Delete
[84] Fix | Delete
/* copy.c */
[85] Fix | Delete
extern void uuid_copy(uuid_t dst, const uuid_t src);
[86] Fix | Delete
[87] Fix | Delete
/* gen_uuid.c */
[88] Fix | Delete
extern void uuid_generate(uuid_t out);
[89] Fix | Delete
extern void uuid_generate_random(uuid_t out);
[90] Fix | Delete
extern void uuid_generate_time(uuid_t out);
[91] Fix | Delete
extern int uuid_generate_time_safe(uuid_t out);
[92] Fix | Delete
[93] Fix | Delete
extern void uuid_generate_md5(uuid_t out, const uuid_t ns, const char *name, size_t len);
[94] Fix | Delete
extern void uuid_generate_sha1(uuid_t out, const uuid_t ns, const char *name, size_t len);
[95] Fix | Delete
[96] Fix | Delete
/* isnull.c */
[97] Fix | Delete
extern int uuid_is_null(const uuid_t uu);
[98] Fix | Delete
[99] Fix | Delete
/* parse.c */
[100] Fix | Delete
extern int uuid_parse(const char *in, uuid_t uu);
[101] Fix | Delete
[102] Fix | Delete
/* unparse.c */
[103] Fix | Delete
extern void uuid_unparse(const uuid_t uu, char *out);
[104] Fix | Delete
extern void uuid_unparse_lower(const uuid_t uu, char *out);
[105] Fix | Delete
extern void uuid_unparse_upper(const uuid_t uu, char *out);
[106] Fix | Delete
[107] Fix | Delete
/* uuid_time.c */
[108] Fix | Delete
extern time_t uuid_time(const uuid_t uu, struct timeval *ret_tv);
[109] Fix | Delete
extern int uuid_type(const uuid_t uu);
[110] Fix | Delete
extern int uuid_variant(const uuid_t uu);
[111] Fix | Delete
[112] Fix | Delete
/* predefined.c */
[113] Fix | Delete
extern const uuid_t *uuid_get_template(const char *alias);
[114] Fix | Delete
[115] Fix | Delete
#ifdef __cplusplus
[116] Fix | Delete
}
[117] Fix | Delete
#endif
[118] Fix | Delete
[119] Fix | Delete
#endif /* _UUID_UUID_H */
[120] Fix | Delete
[121] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function