Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/include Limit wcslcat, wcslcpy visibility to _NETBSD_SOURCE
details: https://anonhg.NetBSD.org/src/rev/b89d32de8e88
branches: trunk
changeset: 995572:b89d32de8e88
user: maya <maya%NetBSD.org@localhost>
date: Fri Dec 28 13:11:46 2018 +0000
description:
Limit wcslcat, wcslcpy visibility to _NETBSD_SOURCE
wcswidth, wcwidth to POSIX.1-2001 or _NETBSD_SOURCE
Updated patch from kretschm in PR standards/39422
diffstat:
include/wchar.h | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r a87e51b894ca -r b89d32de8e88 include/wchar.h
--- a/include/wchar.h Fri Dec 28 12:44:15 2018 +0000
+++ b/include/wchar.h Fri Dec 28 13:11:46 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wchar.h,v 1.42 2016/10/15 14:22:00 kamil Exp $ */
+/* $NetBSD: wchar.h,v 1.43 2018/12/28 13:11:46 maya Exp $ */
/*-
* Copyright (c)1999 Citrus Project,
@@ -133,12 +133,18 @@
wchar_t *wmemmove(wchar_t *, const wchar_t *, size_t);
wchar_t *wmemset(wchar_t *, wchar_t, size_t);
+#if defined(_NETBSD_SOURCE)
size_t wcslcat(wchar_t *, const wchar_t *, size_t);
size_t wcslcpy(wchar_t *, const wchar_t *, size_t);
+#endif
+
+#if defined(_NETBSD_SOURCE) || \
+ (_POSIX_C_SOURCE - 0 >= 200112L) || (_XOPEN_SOURCE - 0) >= 600
int wcswidth(const wchar_t *, size_t);
+int wcwidth(wchar_t);
+#endif
+
int wctob(wint_t);
-int wcwidth(wchar_t);
-
unsigned long int wcstoul(const wchar_t * __restrict,
wchar_t ** __restrict, int);
long int wcstol(const wchar_t * __restrict,
Home |
Main Index |
Thread Index |
Old Index