Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc Revert asctime() namespacing
details: https://anonhg.NetBSD.org/src/rev/fac4952a71cb
branches: trunk
changeset: 358561:fac4952a71cb
user: kamil <kamil%NetBSD.org@localhost>
date: Sun Jan 07 21:19:35 2018 +0000
description:
Revert asctime() namespacing
asctime() is optionally a cancellation point in the POSIX spec.
It's not true for NetBSD.
Requested by <joerg>
diffstat:
lib/libc/include/namespace.h | 3 +--
lib/libc/time/asctime.c | 5 ++---
2 files changed, 3 insertions(+), 5 deletions(-)
diffs (43 lines):
diff -r 69ad36ddb31a -r fac4952a71cb lib/libc/include/namespace.h
--- a/lib/libc/include/namespace.h Sun Jan 07 21:16:00 2018 +0000
+++ b/lib/libc/include/namespace.h Sun Jan 07 21:19:35 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: namespace.h,v 1.194 2018/01/07 15:28:33 kamil Exp $ */
+/* $NetBSD: namespace.h,v 1.195 2018/01/07 21:19:35 kamil Exp $ */
/*-
* Copyright (c) 1997-2004 The NetBSD Foundation, Inc.
@@ -211,7 +211,6 @@
#define arc4random_buf _arc4random_buf
#define arc4random_stir _arc4random_stir
#define arc4random_uniform _arc4random_uniform
-#define asctime _asctime
#define asctime_r _asctime_r
#define asprintf _asprintf
#define asprintf_l _asprintf_l
diff -r 69ad36ddb31a -r fac4952a71cb lib/libc/time/asctime.c
--- a/lib/libc/time/asctime.c Sun Jan 07 21:16:00 2018 +0000
+++ b/lib/libc/time/asctime.c Sun Jan 07 21:19:35 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: asctime.c,v 1.23 2018/01/05 20:01:31 kamil Exp $ */
+/* $NetBSD: asctime.c,v 1.24 2018/01/07 21:19:35 kamil Exp $ */
/*
** This file is in the public domain, so clarified as of
@@ -16,7 +16,7 @@
#if 0
static char elsieid[] = "@(#)asctime.c 8.5";
#else
-__RCSID("$NetBSD: asctime.c,v 1.23 2018/01/05 20:01:31 kamil Exp $");
+__RCSID("$NetBSD: asctime.c,v 1.24 2018/01/07 21:19:35 kamil Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -27,7 +27,6 @@
#include <stdio.h>
#ifdef __weak_alias
-__weak_alias(asctime,_asctime)
__weak_alias(asctime_r,_asctime_r)
#endif
Home |
Main Index |
Thread Index |
Old Index