diff options
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/hidden/uuid.h | 36 | ||||
-rw-r--r-- | lib/libc/uuid/uuid_create_nil.c | 3 | ||||
-rw-r--r-- | lib/libc/uuid/uuid_is_nil.c | 3 |
3 files changed, 40 insertions, 2 deletions
diff --git a/lib/libc/hidden/uuid.h b/lib/libc/hidden/uuid.h new file mode 100644 index 00000000000..59b74a406d0 --- /dev/null +++ b/lib/libc/hidden/uuid.h @@ -0,0 +1,36 @@ +/* $OpenBSD: uuid.h,v 1.1 2015/09/13 11:36:16 guenther Exp $ */ +/* + * Copyright (c) 2015 Philip Guenther <guenther@openbsd.org> + * + * 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. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ + +#ifndef _LIBC_UUID_H_ +#define _LIBC_UUID_H_ + +#include_next <uuid.h> + +PROTO_DEPRECATED(uuid_compare); +PROTO_DEPRECATED(uuid_create); +PROTO_NORMAL(uuid_create_nil); +PROTO_DEPRECATED(uuid_dec_be); +PROTO_DEPRECATED(uuid_dec_le); +PROTO_DEPRECATED(uuid_enc_be); +PROTO_DEPRECATED(uuid_enc_le); +PROTO_DEPRECATED(uuid_equal); +PROTO_DEPRECATED(uuid_from_string); +PROTO_DEPRECATED(uuid_hash); +PROTO_NORMAL(uuid_is_nil); +PROTO_DEPRECATED(uuid_to_string); + +#endif /* !_LIBC_UUID_H_ */ diff --git a/lib/libc/uuid/uuid_create_nil.c b/lib/libc/uuid/uuid_create_nil.c index 05cdda061ad..90c54e1aba3 100644 --- a/lib/libc/uuid/uuid_create_nil.c +++ b/lib/libc/uuid/uuid_create_nil.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uuid_create_nil.c,v 1.2 2015/09/10 18:13:46 guenther Exp $ */ +/* $OpenBSD: uuid_create_nil.c,v 1.3 2015/09/13 11:36:16 guenther Exp $ */ /* $NetBSD: uuid_create_nil.c,v 1.2 2005/02/09 21:35:47 kleink Exp $ */ /* @@ -46,3 +46,4 @@ uuid_create_nil(uuid_t *u, uint32_t *status) if (status) *status = uuid_s_ok; } +DEF_WEAK(uuid_create_nil); diff --git a/lib/libc/uuid/uuid_is_nil.c b/lib/libc/uuid/uuid_is_nil.c index 70620950b4c..b5b9eb64f06 100644 --- a/lib/libc/uuid/uuid_is_nil.c +++ b/lib/libc/uuid/uuid_is_nil.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uuid_is_nil.c,v 1.2 2015/09/10 18:13:46 guenther Exp $ */ +/* $OpenBSD: uuid_is_nil.c,v 1.3 2015/09/13 11:36:16 guenther Exp $ */ /* $NetBSD: uuid_is_nil.c,v 1.4 2008/04/23 07:52:32 plunky Exp $ */ /* @@ -51,3 +51,4 @@ uuid_is_nil(const uuid_t *u, uint32_t *status) return (memcmp(u, &nil, sizeof(uuid_t)) == 0 ? 1 : 0); } +DEF_WEAK(uuid_is_nil); |