Blame wcsmbs/wchar.h

Packit 6c4009
/* Copyright (C) 1995-2018 Free Software Foundation, Inc.
Packit 6c4009
   This file is part of the GNU C Library.
Packit 6c4009
Packit 6c4009
   The GNU C Library is free software; you can redistribute it and/or
Packit 6c4009
   modify it under the terms of the GNU Lesser General Public
Packit 6c4009
   License as published by the Free Software Foundation; either
Packit 6c4009
   version 2.1 of the License, or (at your option) any later version.
Packit 6c4009
Packit 6c4009
   The GNU C Library is distributed in the hope that it will be useful,
Packit 6c4009
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 6c4009
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 6c4009
   Lesser General Public License for more details.
Packit 6c4009
Packit 6c4009
   You should have received a copy of the GNU Lesser General Public
Packit 6c4009
   License along with the GNU C Library; if not, see
Packit 6c4009
   <http://www.gnu.org/licenses/>.  */
Packit 6c4009
Packit 6c4009
/*
Packit 6c4009
 *      ISO C99 Standard: 7.24
Packit 6c4009
 *	Extended multibyte and wide character utilities	<wchar.h>
Packit 6c4009
 */
Packit 6c4009
Packit 6c4009
#ifndef _WCHAR_H
Packit 6c4009
#define _WCHAR_H 1
Packit 6c4009
Packit 6c4009
#define __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION
Packit 6c4009
#include <bits/libc-header-start.h>
Packit 6c4009
Packit 6c4009
/* Gather machine dependent type support.  */
Packit 6c4009
#include <bits/floatn.h>
Packit 6c4009
Packit 6c4009
#define __need_size_t
Packit 6c4009
#define __need_wchar_t
Packit 6c4009
#define __need_NULL
Packit 6c4009
#include <stddef.h>
Packit 6c4009
Packit 6c4009
#define __need___va_list
Packit 6c4009
#include <stdarg.h>
Packit 6c4009
Packit 6c4009
#include <bits/wchar.h>
Packit 6c4009
#include <bits/types/wint_t.h>
Packit 6c4009
#include <bits/types/mbstate_t.h>
Packit 6c4009
#include <bits/types/__FILE.h>
Packit 6c4009
Packit 6c4009
#if defined __USE_UNIX98 || defined __USE_XOPEN2K
Packit 6c4009
# include <bits/types/FILE.h>
Packit 6c4009
#endif
Packit 6c4009
#ifdef __USE_XOPEN2K8
Packit 6c4009
# include <bits/types/locale_t.h>
Packit 6c4009
#endif
Packit 6c4009
Packit 6c4009
/* Tell the caller that we provide correct C++ prototypes.  */
Packit 6c4009
#if defined __cplusplus && __GNUC_PREREQ (4, 4)
Packit 6c4009
# define __CORRECT_ISO_CPP_WCHAR_H_PROTO
Packit 6c4009
#endif
Packit 6c4009
Packit 6c4009
#ifndef WCHAR_MIN
Packit 6c4009
/* These constants might also be defined in <inttypes.h>.  */
Packit 6c4009
# define WCHAR_MIN __WCHAR_MIN
Packit 6c4009
# define WCHAR_MAX __WCHAR_MAX
Packit 6c4009
#endif
Packit 6c4009
Packit 6c4009
#ifndef WEOF
Packit 6c4009
# define WEOF (0xffffffffu)
Packit 6c4009
#endif
Packit 6c4009
Packit 6c4009
/* All versions of XPG prior to the publication of ISO C99 required
Packit 6c4009
   the bulk of <wctype.h>'s declarations to appear in this header
Packit 6c4009
   (because <wctype.h> did not exist prior to C99).  In POSIX.1-2001
Packit 6c4009
   those declarations were marked as XSI extensions; in -2008 they
Packit 6c4009
   were additionally marked as obsolescent.  _GNU_SOURCE mode
Packit 6c4009
   anticipates the removal of these declarations in the next revision
Packit 6c4009
   of POSIX.  */
Packit 6c4009
#if (defined __USE_XOPEN && !defined __USE_GNU \
Packit 6c4009
     && !(defined __USE_XOPEN2K && !defined __USE_XOPEN2KXSI))
Packit 6c4009
# include <bits/wctype-wchar.h>
Packit 6c4009
#endif
Packit 6c4009
Packit 6c4009
__BEGIN_DECLS
Packit 6c4009
Packit 6c4009
/* This incomplete type is defined in <time.h> but needed here because
Packit 6c4009
   of `wcsftime'.  */
Packit 6c4009
struct tm;
Packit 6c4009
Packit 6c4009
Packit 6c4009
/* Copy SRC to DEST.  */
Packit 6c4009
extern wchar_t *wcscpy (wchar_t *__restrict __dest,
Packit 6c4009
			const wchar_t *__restrict __src)
Packit 6c4009
     __THROW __nonnull ((1, 2));
Packit 6c4009
Packit 6c4009
/* Copy no more than N wide-characters of SRC to DEST.  */
Packit 6c4009
extern wchar_t *wcsncpy (wchar_t *__restrict __dest,
Packit 6c4009
			 const wchar_t *__restrict __src, size_t __n)
Packit 6c4009
     __THROW __nonnull ((1, 2));
Packit 6c4009
Packit 6c4009
/* Append SRC onto DEST.  */
Packit 6c4009
extern wchar_t *wcscat (wchar_t *__restrict __dest,
Packit 6c4009
			const wchar_t *__restrict __src)
Packit 6c4009
     __THROW __nonnull ((1, 2));
Packit 6c4009
/* Append no more than N wide-characters of SRC onto DEST.  */
Packit 6c4009
extern wchar_t *wcsncat (wchar_t *__restrict __dest,
Packit 6c4009
			 const wchar_t *__restrict __src, size_t __n)
Packit 6c4009
     __THROW __nonnull ((1, 2));
Packit 6c4009
Packit 6c4009
/* Compare S1 and S2.  */
Packit 6c4009
extern int wcscmp (const wchar_t *__s1, const wchar_t *__s2)
Packit 6c4009
     __THROW __attribute_pure__ __nonnull ((1, 2));
Packit 6c4009
/* Compare N wide-characters of S1 and S2.  */
Packit 6c4009
extern int wcsncmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n)
Packit 6c4009
     __THROW __attribute_pure__ __nonnull ((1, 2));
Packit 6c4009
Packit 6c4009
#ifdef __USE_XOPEN2K8
Packit 6c4009
/* Compare S1 and S2, ignoring case.  */
Packit 6c4009
extern int wcscasecmp (const wchar_t *__s1, const wchar_t *__s2) __THROW;
Packit 6c4009
Packit 6c4009
/* Compare no more than N chars of S1 and S2, ignoring case.  */
Packit 6c4009
extern int wcsncasecmp (const wchar_t *__s1, const wchar_t *__s2,
Packit 6c4009
			size_t __n) __THROW;
Packit 6c4009
Packit 6c4009
/* Similar to the two functions above but take the information from
Packit 6c4009
   the provided locale and not the global locale.  */
Packit 6c4009
extern int wcscasecmp_l (const wchar_t *__s1, const wchar_t *__s2,
Packit 6c4009
			 locale_t __loc) __THROW;
Packit 6c4009
Packit 6c4009
extern int wcsncasecmp_l (const wchar_t *__s1, const wchar_t *__s2,
Packit 6c4009
			  size_t __n, locale_t __loc) __THROW;
Packit 6c4009
#endif
Packit 6c4009
Packit 6c4009
/* Compare S1 and S2, both interpreted as appropriate to the
Packit 6c4009
   LC_COLLATE category of the current locale.  */
Packit 6c4009
extern int wcscoll (const wchar_t *__s1, const wchar_t *__s2) __THROW;
Packit 6c4009
/* Transform S2 into array pointed to by S1 such that if wcscmp is
Packit 6c4009
   applied to two transformed strings the result is the as applying
Packit 6c4009
   `wcscoll' to the original strings.  */
Packit 6c4009
extern size_t wcsxfrm (wchar_t *__restrict __s1,
Packit 6c4009
		       const wchar_t *__restrict __s2, size_t __n) __THROW;
Packit 6c4009
Packit 6c4009
#ifdef __USE_XOPEN2K8
Packit 6c4009
/* Similar to the two functions above but take the information from
Packit 6c4009
   the provided locale and not the global locale.  */
Packit 6c4009
Packit 6c4009
/* Compare S1 and S2, both interpreted as appropriate to the
Packit 6c4009
   LC_COLLATE category of the given locale.  */
Packit 6c4009
extern int wcscoll_l (const wchar_t *__s1, const wchar_t *__s2,
Packit 6c4009
		      locale_t __loc) __THROW;
Packit 6c4009
Packit 6c4009
/* Transform S2 into array pointed to by S1 such that if wcscmp is
Packit 6c4009
   applied to two transformed strings the result is the as applying
Packit 6c4009
   `wcscoll' to the original strings.  */
Packit 6c4009
extern size_t wcsxfrm_l (wchar_t *__s1, const wchar_t *__s2,
Packit 6c4009
			 size_t __n, locale_t __loc) __THROW;
Packit 6c4009
Packit 6c4009
/* Duplicate S, returning an identical malloc'd string.  */
Packit 6c4009
extern wchar_t *wcsdup (const wchar_t *__s) __THROW __attribute_malloc__;
Packit 6c4009
#endif
Packit 6c4009
Packit 6c4009
/* Find the first occurrence of WC in WCS.  */
Packit 6c4009
#ifdef __CORRECT_ISO_CPP_WCHAR_H_PROTO
Packit 6c4009
extern "C++" wchar_t *wcschr (wchar_t *__wcs, wchar_t __wc)
Packit 6c4009
     __THROW __asm ("wcschr") __attribute_pure__;
Packit 6c4009
extern "C++" const wchar_t *wcschr (const wchar_t *__wcs, wchar_t __wc)
Packit 6c4009
     __THROW __asm ("wcschr") __attribute_pure__;
Packit 6c4009
#else
Packit 6c4009
extern wchar_t *wcschr (const wchar_t *__wcs, wchar_t __wc)
Packit 6c4009
     __THROW __attribute_pure__;
Packit 6c4009
#endif
Packit 6c4009
/* Find the last occurrence of WC in WCS.  */
Packit 6c4009
#ifdef __CORRECT_ISO_CPP_WCHAR_H_PROTO
Packit 6c4009
extern "C++" wchar_t *wcsrchr (wchar_t *__wcs, wchar_t __wc)
Packit 6c4009
     __THROW __asm ("wcsrchr") __attribute_pure__;
Packit 6c4009
extern "C++" const wchar_t *wcsrchr (const wchar_t *__wcs, wchar_t __wc)
Packit 6c4009
     __THROW __asm ("wcsrchr") __attribute_pure__;
Packit 6c4009
#else
Packit 6c4009
extern wchar_t *wcsrchr (const wchar_t *__wcs, wchar_t __wc)
Packit 6c4009
     __THROW __attribute_pure__;
Packit 6c4009
#endif
Packit 6c4009
Packit 6c4009
#ifdef __USE_GNU
Packit 6c4009
/* This function is similar to `wcschr'.  But it returns a pointer to
Packit 6c4009
   the closing NUL wide character in case C is not found in S.  */
Packit 6c4009
extern wchar_t *wcschrnul (const wchar_t *__s, wchar_t __wc)
Packit 6c4009
     __THROW __attribute_pure__;
Packit 6c4009
#endif
Packit 6c4009
Packit 6c4009
/* Return the length of the initial segmet of WCS which
Packit 6c4009
   consists entirely of wide characters not in REJECT.  */
Packit 6c4009
extern size_t wcscspn (const wchar_t *__wcs, const wchar_t *__reject)
Packit 6c4009
     __THROW __attribute_pure__;
Packit 6c4009
/* Return the length of the initial segmet of WCS which
Packit 6c4009
   consists entirely of wide characters in  ACCEPT.  */
Packit 6c4009
extern size_t wcsspn (const wchar_t *__wcs, const wchar_t *__accept)
Packit 6c4009
     __THROW __attribute_pure__;
Packit 6c4009
/* Find the first occurrence in WCS of any character in ACCEPT.  */
Packit 6c4009
#ifdef __CORRECT_ISO_CPP_WCHAR_H_PROTO
Packit 6c4009
extern "C++" wchar_t *wcspbrk (wchar_t *__wcs, const wchar_t *__accept)
Packit 6c4009
     __THROW __asm ("wcspbrk") __attribute_pure__;
Packit 6c4009
extern "C++" const wchar_t *wcspbrk (const wchar_t *__wcs,
Packit 6c4009
				     const wchar_t *__accept)
Packit 6c4009
     __THROW __asm ("wcspbrk") __attribute_pure__;
Packit 6c4009
#else
Packit 6c4009
extern wchar_t *wcspbrk (const wchar_t *__wcs, const wchar_t *__accept)
Packit 6c4009
     __THROW __attribute_pure__;
Packit 6c4009
#endif
Packit 6c4009
/* Find the first occurrence of NEEDLE in HAYSTACK.  */
Packit 6c4009
#ifdef __CORRECT_ISO_CPP_WCHAR_H_PROTO
Packit 6c4009
extern "C++" wchar_t *wcsstr (wchar_t *__haystack, const wchar_t *__needle)
Packit 6c4009
     __THROW __asm ("wcsstr") __attribute_pure__;
Packit 6c4009
extern "C++" const wchar_t *wcsstr (const wchar_t *__haystack,
Packit 6c4009
				    const wchar_t *__needle)
Packit 6c4009
     __THROW __asm ("wcsstr") __attribute_pure__;
Packit 6c4009
#else
Packit 6c4009
extern wchar_t *wcsstr (const wchar_t *__haystack, const wchar_t *__needle)
Packit 6c4009
     __THROW __attribute_pure__;
Packit 6c4009
#endif
Packit 6c4009
Packit 6c4009
/* Divide WCS into tokens separated by characters in DELIM.  */
Packit 6c4009
extern wchar_t *wcstok (wchar_t *__restrict __s,
Packit 6c4009
			const wchar_t *__restrict __delim,
Packit 6c4009
			wchar_t **__restrict __ptr) __THROW;
Packit 6c4009
Packit 6c4009
/* Return the number of wide characters in S.  */
Packit 6c4009
extern size_t wcslen (const wchar_t *__s) __THROW __attribute_pure__;
Packit 6c4009
Packit 6c4009
#ifdef __USE_XOPEN
Packit 6c4009
/* Another name for `wcsstr' from XPG4.  */
Packit 6c4009
# ifdef __CORRECT_ISO_CPP_WCHAR_H_PROTO
Packit 6c4009
extern "C++" wchar_t *wcswcs (wchar_t *__haystack, const wchar_t *__needle)
Packit 6c4009
     __THROW __asm ("wcswcs") __attribute_pure__;
Packit 6c4009
extern "C++" const wchar_t *wcswcs (const wchar_t *__haystack,
Packit 6c4009
				    const wchar_t *__needle)
Packit 6c4009
     __THROW __asm ("wcswcs") __attribute_pure__;
Packit 6c4009
# else
Packit 6c4009
extern wchar_t *wcswcs (const wchar_t *__haystack, const wchar_t *__needle)
Packit 6c4009
     __THROW __attribute_pure__;
Packit 6c4009
# endif
Packit 6c4009
#endif
Packit 6c4009
Packit 6c4009
#ifdef __USE_XOPEN2K8
Packit 6c4009
/* Return the number of wide characters in S, but at most MAXLEN.  */
Packit 6c4009
extern size_t wcsnlen (const wchar_t *__s, size_t __maxlen)
Packit 6c4009
     __THROW __attribute_pure__;
Packit 6c4009
#endif
Packit 6c4009
Packit 6c4009
Packit 6c4009
/* Search N wide characters of S for C.  */
Packit 6c4009
#ifdef __CORRECT_ISO_CPP_WCHAR_H_PROTO
Packit 6c4009
extern "C++" wchar_t *wmemchr (wchar_t *__s, wchar_t __c, size_t __n)
Packit 6c4009
     __THROW __asm ("wmemchr") __attribute_pure__;
Packit 6c4009
extern "C++" const wchar_t *wmemchr (const wchar_t *__s, wchar_t __c,
Packit 6c4009
				     size_t __n)
Packit 6c4009
     __THROW __asm ("wmemchr") __attribute_pure__;
Packit 6c4009
#else
Packit 6c4009
extern wchar_t *wmemchr (const wchar_t *__s, wchar_t __c, size_t __n)
Packit 6c4009
     __THROW __attribute_pure__;
Packit 6c4009
#endif
Packit 6c4009
Packit 6c4009
/* Compare N wide characters of S1 and S2.  */
Packit 6c4009
extern int wmemcmp (const wchar_t *__s1, const wchar_t *__s2, size_t __n)
Packit 6c4009
     __THROW __attribute_pure__;
Packit 6c4009
Packit 6c4009
/* Copy N wide characters of SRC to DEST.  */
Packit 6c4009
extern wchar_t *wmemcpy (wchar_t *__restrict __s1,
Packit 6c4009
			 const wchar_t *__restrict __s2, size_t __n) __THROW;
Packit 6c4009
Packit 6c4009
/* Copy N wide characters of SRC to DEST, guaranteeing
Packit 6c4009
   correct behavior for overlapping strings.  */
Packit 6c4009
extern wchar_t *wmemmove (wchar_t *__s1, const wchar_t *__s2, size_t __n)
Packit 6c4009
     __THROW;
Packit 6c4009
Packit 6c4009
/* Set N wide characters of S to C.  */
Packit 6c4009
extern wchar_t *wmemset (wchar_t *__s, wchar_t __c, size_t __n) __THROW;
Packit 6c4009
Packit 6c4009
#ifdef __USE_GNU
Packit 6c4009
/* Copy N wide characters of SRC to DEST and return pointer to following
Packit 6c4009
   wide character.  */
Packit 6c4009
extern wchar_t *wmempcpy (wchar_t *__restrict __s1,
Packit 6c4009
			  const wchar_t *__restrict __s2, size_t __n)
Packit 6c4009
     __THROW;
Packit 6c4009
#endif
Packit 6c4009
Packit 6c4009
Packit 6c4009
/* Determine whether C constitutes a valid (one-byte) multibyte
Packit 6c4009
   character.  */
Packit 6c4009
extern wint_t btowc (int __c) __THROW;
Packit 6c4009
Packit 6c4009
/* Determine whether C corresponds to a member of the extended
Packit 6c4009
   character set whose multibyte representation is a single byte.  */
Packit 6c4009
extern int wctob (wint_t __c) __THROW;
Packit 6c4009
Packit 6c4009
/* Determine whether PS points to an object representing the initial
Packit 6c4009
   state.  */
Packit 6c4009
extern int mbsinit (const mbstate_t *__ps) __THROW __attribute_pure__;
Packit 6c4009
Packit 6c4009
/* Write wide character representation of multibyte character pointed
Packit 6c4009
   to by S to PWC.  */
Packit 6c4009
extern size_t mbrtowc (wchar_t *__restrict __pwc,
Packit 6c4009
		       const char *__restrict __s, size_t __n,
Packit 6c4009
		       mbstate_t *__restrict __p) __THROW;
Packit 6c4009
Packit 6c4009
/* Write multibyte representation of wide character WC to S.  */
Packit 6c4009
extern size_t wcrtomb (char *__restrict __s, wchar_t __wc,
Packit 6c4009
		       mbstate_t *__restrict __ps) __THROW;
Packit 6c4009
Packit 6c4009
/* Return number of bytes in multibyte character pointed to by S.  */
Packit 6c4009
extern size_t __mbrlen (const char *__restrict __s, size_t __n,
Packit 6c4009
			mbstate_t *__restrict __ps) __THROW;
Packit 6c4009
extern size_t mbrlen (const char *__restrict __s, size_t __n,
Packit 6c4009
		      mbstate_t *__restrict __ps) __THROW;
Packit 6c4009
Packit 6c4009
#ifdef __USE_EXTERN_INLINES
Packit 6c4009
/* Define inline function as optimization.  */
Packit 6c4009
Packit 6c4009
/* We can use the BTOWC and WCTOB optimizations since we know that all
Packit 6c4009
   locales must use ASCII encoding for the values in the ASCII range
Packit 6c4009
   and because the wchar_t encoding is always ISO 10646.  */
Packit 6c4009
extern wint_t __btowc_alias (int __c) __asm ("btowc");
Packit 6c4009
__extern_inline wint_t
Packit 6c4009
__NTH (btowc (int __c))
Packit 6c4009
{ return (__builtin_constant_p (__c) && __c >= '\0' && __c <= '\x7f'
Packit 6c4009
	  ? (wint_t) __c : __btowc_alias (__c)); }
Packit 6c4009
Packit 6c4009
extern int __wctob_alias (wint_t __c) __asm ("wctob");
Packit 6c4009
__extern_inline int
Packit 6c4009
__NTH (wctob (wint_t __wc))
Packit 6c4009
{ return (__builtin_constant_p (__wc) && __wc >= L'\0' && __wc <= L'\x7f'
Packit 6c4009
	  ? (int) __wc : __wctob_alias (__wc)); }
Packit 6c4009
Packit 6c4009
__extern_inline size_t
Packit 6c4009
__NTH (mbrlen (const char *__restrict __s, size_t __n,
Packit 6c4009
	       mbstate_t *__restrict __ps))
Packit 6c4009
{ return (__ps != NULL
Packit 6c4009
	  ? mbrtowc (NULL, __s, __n, __ps) : __mbrlen (__s, __n, NULL)); }
Packit 6c4009
#endif
Packit 6c4009
Packit 6c4009
/* Write wide character representation of multibyte character string
Packit 6c4009
   SRC to DST.  */
Packit 6c4009
extern size_t mbsrtowcs (wchar_t *__restrict __dst,
Packit 6c4009
			 const char **__restrict __src, size_t __len,
Packit 6c4009
			 mbstate_t *__restrict __ps) __THROW;
Packit 6c4009
Packit 6c4009
/* Write multibyte character representation of wide character string
Packit 6c4009
   SRC to DST.  */
Packit 6c4009
extern size_t wcsrtombs (char *__restrict __dst,
Packit 6c4009
			 const wchar_t **__restrict __src, size_t __len,
Packit 6c4009
			 mbstate_t *__restrict __ps) __THROW;
Packit 6c4009
Packit 6c4009
Packit 6c4009
#ifdef	__USE_XOPEN2K8
Packit 6c4009
/* Write wide character representation of at most NMC bytes of the
Packit 6c4009
   multibyte character string SRC to DST.  */
Packit 6c4009
extern size_t mbsnrtowcs (wchar_t *__restrict __dst,
Packit 6c4009
			  const char **__restrict __src, size_t __nmc,
Packit 6c4009
			  size_t __len, mbstate_t *__restrict __ps) __THROW;
Packit 6c4009
Packit 6c4009
/* Write multibyte character representation of at most NWC characters
Packit 6c4009
   from the wide character string SRC to DST.  */
Packit 6c4009
extern size_t wcsnrtombs (char *__restrict __dst,
Packit 6c4009
			  const wchar_t **__restrict __src,
Packit 6c4009
			  size_t __nwc, size_t __len,
Packit 6c4009
			  mbstate_t *__restrict __ps) __THROW;
Packit 6c4009
#endif	/* use POSIX 2008 */
Packit 6c4009
Packit 6c4009
Packit 6c4009
/* The following functions are extensions found in X/Open CAE.  */
Packit 6c4009
#ifdef __USE_XOPEN
Packit 6c4009
/* Determine number of column positions required for C.  */
Packit 6c4009
extern int wcwidth (wchar_t __c) __THROW;
Packit 6c4009
Packit 6c4009
/* Determine number of column positions required for first N wide
Packit 6c4009
   characters (or fewer if S ends before this) in S.  */
Packit 6c4009
extern int wcswidth (const wchar_t *__s, size_t __n) __THROW;
Packit 6c4009
#endif	/* Use X/Open.  */
Packit 6c4009
Packit 6c4009
Packit 6c4009
/* Convert initial portion of the wide string NPTR to `double'
Packit 6c4009
   representation.  */
Packit 6c4009
extern double wcstod (const wchar_t *__restrict __nptr,
Packit 6c4009
		      wchar_t **__restrict __endptr) __THROW;
Packit 6c4009
Packit 6c4009
#ifdef __USE_ISOC99
Packit 6c4009
/* Likewise for `float' and `long double' sizes of floating-point numbers.  */
Packit 6c4009
extern float wcstof (const wchar_t *__restrict __nptr,
Packit 6c4009
		     wchar_t **__restrict __endptr) __THROW;
Packit 6c4009
extern long double wcstold (const wchar_t *__restrict __nptr,
Packit 6c4009
			    wchar_t **__restrict __endptr) __THROW;
Packit 6c4009
#endif /* C99 */
Packit 6c4009
Packit 6c4009
/* Likewise for `_FloatN' and `_FloatNx' when support is enabled.  */
Packit 6c4009
Packit 6c4009
#if __HAVE_FLOAT16 && defined __USE_GNU
Packit 6c4009
extern _Float16 wcstof16 (const wchar_t *__restrict __nptr,
Packit 6c4009
			  wchar_t **__restrict __endptr) __THROW;
Packit 6c4009
#endif
Packit 6c4009
Packit 6c4009
#if __HAVE_FLOAT32 && defined __USE_GNU
Packit 6c4009
extern _Float32 wcstof32 (const wchar_t *__restrict __nptr,
Packit 6c4009
			  wchar_t **__restrict __endptr) __THROW;
Packit 6c4009
#endif
Packit 6c4009
Packit 6c4009
#if __HAVE_FLOAT64 && defined __USE_GNU
Packit 6c4009
extern _Float64 wcstof64 (const wchar_t *__restrict __nptr,
Packit 6c4009
			  wchar_t **__restrict __endptr) __THROW;
Packit 6c4009
#endif
Packit 6c4009
Packit 6c4009
#if __HAVE_FLOAT128 && defined __USE_GNU
Packit 6c4009
extern _Float128 wcstof128 (const wchar_t *__restrict __nptr,
Packit 6c4009
			    wchar_t **__restrict __endptr) __THROW;
Packit 6c4009
#endif
Packit 6c4009
Packit 6c4009
#if __HAVE_FLOAT32X && defined __USE_GNU
Packit 6c4009
extern _Float32x wcstof32x (const wchar_t *__restrict __nptr,
Packit 6c4009
			    wchar_t **__restrict __endptr) __THROW;
Packit 6c4009
#endif
Packit 6c4009
Packit 6c4009
#if __HAVE_FLOAT64X && defined __USE_GNU
Packit 6c4009
extern _Float64x wcstof64x (const wchar_t *__restrict __nptr,
Packit 6c4009
			    wchar_t **__restrict __endptr) __THROW;
Packit 6c4009
#endif
Packit 6c4009
Packit 6c4009
#if __HAVE_FLOAT128X && defined __USE_GNU
Packit 6c4009
extern _Float128x wcstof128x (const wchar_t *__restrict __nptr,
Packit 6c4009
			      wchar_t **__restrict __endptr) __THROW;
Packit 6c4009
#endif
Packit 6c4009
Packit 6c4009
Packit 6c4009
/* Convert initial portion of wide string NPTR to `long int'
Packit 6c4009
   representation.  */
Packit 6c4009
extern long int wcstol (const wchar_t *__restrict __nptr,
Packit 6c4009
			wchar_t **__restrict __endptr, int __base) __THROW;
Packit 6c4009
Packit 6c4009
/* Convert initial portion of wide string NPTR to `unsigned long int'
Packit 6c4009
   representation.  */
Packit 6c4009
extern unsigned long int wcstoul (const wchar_t *__restrict __nptr,
Packit 6c4009
				  wchar_t **__restrict __endptr, int __base)
Packit 6c4009
     __THROW;
Packit 6c4009
Packit 6c4009
#ifdef __USE_ISOC99
Packit 6c4009
/* Convert initial portion of wide string NPTR to `long long int'
Packit 6c4009
   representation.  */
Packit 6c4009
__extension__
Packit 6c4009
extern long long int wcstoll (const wchar_t *__restrict __nptr,
Packit 6c4009
			      wchar_t **__restrict __endptr, int __base)
Packit 6c4009
     __THROW;
Packit 6c4009
Packit 6c4009
/* Convert initial portion of wide string NPTR to `unsigned long long int'
Packit 6c4009
   representation.  */
Packit 6c4009
__extension__
Packit 6c4009
extern unsigned long long int wcstoull (const wchar_t *__restrict __nptr,
Packit 6c4009
					wchar_t **__restrict __endptr,
Packit 6c4009
					int __base) __THROW;
Packit 6c4009
#endif /* ISO C99.  */
Packit 6c4009
Packit 6c4009
#ifdef __USE_GNU
Packit 6c4009
/* Convert initial portion of wide string NPTR to `long long int'
Packit 6c4009
   representation.  */
Packit 6c4009
__extension__
Packit 6c4009
extern long long int wcstoq (const wchar_t *__restrict __nptr,
Packit 6c4009
			     wchar_t **__restrict __endptr, int __base)
Packit 6c4009
     __THROW;
Packit 6c4009
Packit 6c4009
/* Convert initial portion of wide string NPTR to `unsigned long long int'
Packit 6c4009
   representation.  */
Packit 6c4009
__extension__
Packit 6c4009
extern unsigned long long int wcstouq (const wchar_t *__restrict __nptr,
Packit 6c4009
				       wchar_t **__restrict __endptr,
Packit 6c4009
				       int __base) __THROW;
Packit 6c4009
#endif /* Use GNU.  */
Packit 6c4009
Packit 6c4009
#ifdef __USE_GNU
Packit 6c4009
/* Parallel versions of the functions above which take the locale to
Packit 6c4009
   use as an additional parameter.  These are GNU extensions inspired
Packit 6c4009
   by the POSIX.1-2008 extended locale API.  */
Packit 6c4009
extern long int wcstol_l (const wchar_t *__restrict __nptr,
Packit 6c4009
			  wchar_t **__restrict __endptr, int __base,
Packit 6c4009
			  locale_t __loc) __THROW;
Packit 6c4009
Packit 6c4009
extern unsigned long int wcstoul_l (const wchar_t *__restrict __nptr,
Packit 6c4009
				    wchar_t **__restrict __endptr,
Packit 6c4009
				    int __base, locale_t __loc) __THROW;
Packit 6c4009
Packit 6c4009
__extension__
Packit 6c4009
extern long long int wcstoll_l (const wchar_t *__restrict __nptr,
Packit 6c4009
				wchar_t **__restrict __endptr,
Packit 6c4009
				int __base, locale_t __loc) __THROW;
Packit 6c4009
Packit 6c4009
__extension__
Packit 6c4009
extern unsigned long long int wcstoull_l (const wchar_t *__restrict __nptr,
Packit 6c4009
					  wchar_t **__restrict __endptr,
Packit 6c4009
					  int __base, locale_t __loc)
Packit 6c4009
     __THROW;
Packit 6c4009
Packit 6c4009
extern double wcstod_l (const wchar_t *__restrict __nptr,
Packit 6c4009
			wchar_t **__restrict __endptr, locale_t __loc)
Packit 6c4009
     __THROW;
Packit 6c4009
Packit 6c4009
extern float wcstof_l (const wchar_t *__restrict __nptr,
Packit 6c4009
		       wchar_t **__restrict __endptr, locale_t __loc)
Packit 6c4009
     __THROW;
Packit 6c4009
Packit 6c4009
extern long double wcstold_l (const wchar_t *__restrict __nptr,
Packit 6c4009
			      wchar_t **__restrict __endptr,
Packit 6c4009
			      locale_t __loc) __THROW;
Packit 6c4009
Packit 6c4009
# if __HAVE_FLOAT16
Packit 6c4009
extern _Float16 wcstof16_l (const wchar_t *__restrict __nptr,
Packit 6c4009
			    wchar_t **__restrict __endptr,
Packit 6c4009
			    locale_t __loc) __THROW;
Packit 6c4009
# endif
Packit 6c4009
Packit 6c4009
# if __HAVE_FLOAT32
Packit 6c4009
extern _Float32 wcstof32_l (const wchar_t *__restrict __nptr,
Packit 6c4009
			    wchar_t **__restrict __endptr,
Packit 6c4009
			    locale_t __loc) __THROW;
Packit 6c4009
# endif
Packit 6c4009
Packit 6c4009
# if __HAVE_FLOAT64
Packit 6c4009
extern _Float64 wcstof64_l (const wchar_t *__restrict __nptr,
Packit 6c4009
			    wchar_t **__restrict __endptr,
Packit 6c4009
			    locale_t __loc) __THROW;
Packit 6c4009
# endif
Packit 6c4009
Packit 6c4009
# if __HAVE_FLOAT128
Packit 6c4009
extern _Float128 wcstof128_l (const wchar_t *__restrict __nptr,
Packit 6c4009
			      wchar_t **__restrict __endptr,
Packit 6c4009
			      locale_t __loc) __THROW;
Packit 6c4009
# endif
Packit 6c4009
Packit 6c4009
# if __HAVE_FLOAT32X
Packit 6c4009
extern _Float32x wcstof32x_l (const wchar_t *__restrict __nptr,
Packit 6c4009
			      wchar_t **__restrict __endptr,
Packit 6c4009
			      locale_t __loc) __THROW;
Packit 6c4009
# endif
Packit 6c4009
Packit 6c4009
# if __HAVE_FLOAT64X
Packit 6c4009
extern _Float64x wcstof64x_l (const wchar_t *__restrict __nptr,
Packit 6c4009
			      wchar_t **__restrict __endptr,
Packit 6c4009
			      locale_t __loc) __THROW;
Packit 6c4009
# endif
Packit 6c4009
Packit 6c4009
# if __HAVE_FLOAT128X
Packit 6c4009
extern _Float128x wcstof128x_l (const wchar_t *__restrict __nptr,
Packit 6c4009
				wchar_t **__restrict __endptr,
Packit 6c4009
				locale_t __loc) __THROW;
Packit 6c4009
# endif
Packit 6c4009
#endif	/* use GNU */
Packit 6c4009
Packit 6c4009
Packit 6c4009
#ifdef __USE_XOPEN2K8
Packit 6c4009
/* Copy SRC to DEST, returning the address of the terminating L'\0' in
Packit 6c4009
   DEST.  */
Packit 6c4009
extern wchar_t *wcpcpy (wchar_t *__restrict __dest,
Packit 6c4009
			const wchar_t *__restrict __src) __THROW;
Packit 6c4009
Packit 6c4009
/* Copy no more than N characters of SRC to DEST, returning the address of
Packit 6c4009
   the last character written into DEST.  */
Packit 6c4009
extern wchar_t *wcpncpy (wchar_t *__restrict __dest,
Packit 6c4009
			 const wchar_t *__restrict __src, size_t __n)
Packit 6c4009
     __THROW;
Packit 6c4009
#endif
Packit 6c4009
Packit 6c4009
Packit 6c4009
/* Wide character I/O functions.  */
Packit 6c4009
Packit 6c4009
#if defined __USE_XOPEN2K8 || __GLIBC_USE (LIB_EXT2)
Packit 6c4009
/* Like OPEN_MEMSTREAM, but the stream is wide oriented and produces
Packit 6c4009
   a wide character string.  */
Packit 6c4009
extern __FILE *open_wmemstream (wchar_t **__bufloc, size_t *__sizeloc) __THROW;
Packit 6c4009
#endif
Packit 6c4009
Packit 6c4009
#if defined __USE_ISOC95 || defined __USE_UNIX98
Packit 6c4009
Packit 6c4009
/* Select orientation for stream.  */
Packit 6c4009
extern int fwide (__FILE *__fp, int __mode) __THROW;
Packit 6c4009
Packit 6c4009
Packit 6c4009
/* Write formatted output to STREAM.
Packit 6c4009
Packit 6c4009
   This function is a possible cancellation point and therefore not
Packit 6c4009
   marked with __THROW.  */
Packit 6c4009
extern int fwprintf (__FILE *__restrict __stream,
Packit 6c4009
		     const wchar_t *__restrict __format, ...)
Packit 6c4009
     /* __attribute__ ((__format__ (__wprintf__, 2, 3))) */;
Packit 6c4009
/* Write formatted output to stdout.
Packit 6c4009
Packit 6c4009
   This function is a possible cancellation point and therefore not
Packit 6c4009
   marked with __THROW.  */
Packit 6c4009
extern int wprintf (const wchar_t *__restrict __format, ...)
Packit 6c4009
     /* __attribute__ ((__format__ (__wprintf__, 1, 2))) */;
Packit 6c4009
/* Write formatted output of at most N characters to S.  */
Packit 6c4009
extern int swprintf (wchar_t *__restrict __s, size_t __n,
Packit 6c4009
		     const wchar_t *__restrict __format, ...)
Packit 6c4009
     __THROW /* __attribute__ ((__format__ (__wprintf__, 3, 4))) */;
Packit 6c4009
Packit 6c4009
/* Write formatted output to S from argument list ARG.
Packit 6c4009
Packit 6c4009
   This function is a possible cancellation point and therefore not
Packit 6c4009
   marked with __THROW.  */
Packit 6c4009
extern int vfwprintf (__FILE *__restrict __s,
Packit 6c4009
		      const wchar_t *__restrict __format,
Packit 6c4009
		      __gnuc_va_list __arg)
Packit 6c4009
     /* __attribute__ ((__format__ (__wprintf__, 2, 0))) */;
Packit 6c4009
/* Write formatted output to stdout from argument list ARG.
Packit 6c4009
Packit 6c4009
   This function is a possible cancellation point and therefore not
Packit 6c4009
   marked with __THROW.  */
Packit 6c4009
extern int vwprintf (const wchar_t *__restrict __format,
Packit 6c4009
		     __gnuc_va_list __arg)
Packit 6c4009
     /* __attribute__ ((__format__ (__wprintf__, 1, 0))) */;
Packit 6c4009
/* Write formatted output of at most N character to S from argument
Packit 6c4009
   list ARG.  */
Packit 6c4009
extern int vswprintf (wchar_t *__restrict __s, size_t __n,
Packit 6c4009
		      const wchar_t *__restrict __format,
Packit 6c4009
		      __gnuc_va_list __arg)
Packit 6c4009
     __THROW /* __attribute__ ((__format__ (__wprintf__, 3, 0))) */;
Packit 6c4009
Packit 6c4009
Packit 6c4009
/* Read formatted input from STREAM.
Packit 6c4009
Packit 6c4009
   This function is a possible cancellation point and therefore not
Packit 6c4009
   marked with __THROW.  */
Packit 6c4009
extern int fwscanf (__FILE *__restrict __stream,
Packit 6c4009
		    const wchar_t *__restrict __format, ...)
Packit 6c4009
     /* __attribute__ ((__format__ (__wscanf__, 2, 3))) */;
Packit 6c4009
/* Read formatted input from stdin.
Packit 6c4009
Packit 6c4009
   This function is a possible cancellation point and therefore not
Packit 6c4009
   marked with __THROW.  */
Packit 6c4009
extern int wscanf (const wchar_t *__restrict __format, ...)
Packit 6c4009
     /* __attribute__ ((__format__ (__wscanf__, 1, 2))) */;
Packit 6c4009
/* Read formatted input from S.  */
Packit 6c4009
extern int swscanf (const wchar_t *__restrict __s,
Packit 6c4009
		    const wchar_t *__restrict __format, ...)
Packit 6c4009
     __THROW /* __attribute__ ((__format__ (__wscanf__, 2, 3))) */;
Packit 6c4009
Packit 6c4009
# if defined __USE_ISOC99 && !defined __USE_GNU \
Packit 6c4009
     && (!defined __LDBL_COMPAT || !defined __REDIRECT) \
Packit 6c4009
     && (defined __STRICT_ANSI__ || defined __USE_XOPEN2K)
Packit 6c4009
#  ifdef __REDIRECT
Packit 6c4009
/* For strict ISO C99 or POSIX compliance disallow %as, %aS and %a[
Packit 6c4009
   GNU extension which conflicts with valid %a followed by letter
Packit 6c4009
   s, S or [.  */
Packit 6c4009
extern int __REDIRECT (fwscanf, (__FILE *__restrict __stream,
Packit 6c4009
				 const wchar_t *__restrict __format, ...),
Packit 6c4009
		       __isoc99_fwscanf)
Packit 6c4009
     /* __attribute__ ((__format__ (__wscanf__, 2, 3))) */;
Packit 6c4009
extern int __REDIRECT (wscanf, (const wchar_t *__restrict __format, ...),
Packit 6c4009
		       __isoc99_wscanf)
Packit 6c4009
     /* __attribute__ ((__format__ (__wscanf__, 1, 2))) */;
Packit 6c4009
extern int __REDIRECT_NTH (swscanf, (const wchar_t *__restrict __s,
Packit 6c4009
				     const wchar_t *__restrict __format,
Packit 6c4009
				     ...), __isoc99_swscanf)
Packit 6c4009
     /* __attribute__ ((__format__ (__wscanf__, 2, 3))) */;
Packit 6c4009
#  else
Packit 6c4009
extern int __isoc99_fwscanf (__FILE *__restrict __stream,
Packit 6c4009
			     const wchar_t *__restrict __format, ...);
Packit 6c4009
extern int __isoc99_wscanf (const wchar_t *__restrict __format, ...);
Packit 6c4009
extern int __isoc99_swscanf (const wchar_t *__restrict __s,
Packit 6c4009
			     const wchar_t *__restrict __format, ...)
Packit 6c4009
     __THROW;
Packit 6c4009
#   define fwscanf __isoc99_fwscanf
Packit 6c4009
#   define wscanf __isoc99_wscanf
Packit 6c4009
#   define swscanf __isoc99_swscanf
Packit 6c4009
#  endif
Packit 6c4009
# endif
Packit 6c4009
Packit 6c4009
#endif /* Use ISO C95, C99 and Unix98. */
Packit 6c4009
Packit 6c4009
#ifdef __USE_ISOC99
Packit 6c4009
/* Read formatted input from S into argument list ARG.
Packit 6c4009
Packit 6c4009
   This function is a possible cancellation point and therefore not
Packit 6c4009
   marked with __THROW.  */
Packit 6c4009
extern int vfwscanf (__FILE *__restrict __s,
Packit 6c4009
		     const wchar_t *__restrict __format,
Packit 6c4009
		     __gnuc_va_list __arg)
Packit 6c4009
     /* __attribute__ ((__format__ (__wscanf__, 2, 0))) */;
Packit 6c4009
/* Read formatted input from stdin into argument list ARG.
Packit 6c4009
Packit 6c4009
   This function is a possible cancellation point and therefore not
Packit 6c4009
   marked with __THROW.  */
Packit 6c4009
extern int vwscanf (const wchar_t *__restrict __format,
Packit 6c4009
		    __gnuc_va_list __arg)
Packit 6c4009
     /* __attribute__ ((__format__ (__wscanf__, 1, 0))) */;
Packit 6c4009
/* Read formatted input from S into argument list ARG.  */
Packit 6c4009
extern int vswscanf (const wchar_t *__restrict __s,
Packit 6c4009
		     const wchar_t *__restrict __format,
Packit 6c4009
		     __gnuc_va_list __arg)
Packit 6c4009
     __THROW /* __attribute__ ((__format__ (__wscanf__, 2, 0))) */;
Packit 6c4009
Packit 6c4009
# if !defined __USE_GNU \
Packit 6c4009
     && (!defined __LDBL_COMPAT || !defined __REDIRECT) \
Packit 6c4009
     && (defined __STRICT_ANSI__ || defined __USE_XOPEN2K)
Packit 6c4009
#  ifdef __REDIRECT
Packit 6c4009
extern int __REDIRECT (vfwscanf, (__FILE *__restrict __s,
Packit 6c4009
				  const wchar_t *__restrict __format,
Packit 6c4009
				  __gnuc_va_list __arg), __isoc99_vfwscanf)
Packit 6c4009
     /* __attribute__ ((__format__ (__wscanf__, 2, 0))) */;
Packit 6c4009
extern int __REDIRECT (vwscanf, (const wchar_t *__restrict __format,
Packit 6c4009
				 __gnuc_va_list __arg), __isoc99_vwscanf)
Packit 6c4009
     /* __attribute__ ((__format__ (__wscanf__, 1, 0))) */;
Packit 6c4009
extern int __REDIRECT_NTH (vswscanf, (const wchar_t *__restrict __s,
Packit 6c4009
				      const wchar_t *__restrict __format,
Packit 6c4009
				      __gnuc_va_list __arg), __isoc99_vswscanf)
Packit 6c4009
     /* __attribute__ ((__format__ (__wscanf__, 2, 0))) */;
Packit 6c4009
#  else
Packit 6c4009
extern int __isoc99_vfwscanf (__FILE *__restrict __s,
Packit 6c4009
			      const wchar_t *__restrict __format,
Packit 6c4009
			      __gnuc_va_list __arg);
Packit 6c4009
extern int __isoc99_vwscanf (const wchar_t *__restrict __format,
Packit 6c4009
			     __gnuc_va_list __arg);
Packit 6c4009
extern int __isoc99_vswscanf (const wchar_t *__restrict __s,
Packit 6c4009
			      const wchar_t *__restrict __format,
Packit 6c4009
			      __gnuc_va_list __arg) __THROW;
Packit 6c4009
#   define vfwscanf __isoc99_vfwscanf
Packit 6c4009
#   define vwscanf __isoc99_vwscanf
Packit 6c4009
#   define vswscanf __isoc99_vswscanf
Packit 6c4009
#  endif
Packit 6c4009
# endif
Packit 6c4009
Packit 6c4009
#endif /* Use ISO C99. */
Packit 6c4009
Packit 6c4009
Packit 6c4009
/* Read a character from STREAM.
Packit 6c4009
Packit 6c4009
   These functions are possible cancellation points and therefore not
Packit 6c4009
   marked with __THROW.  */
Packit 6c4009
extern wint_t fgetwc (__FILE *__stream);
Packit 6c4009
extern wint_t getwc (__FILE *__stream);
Packit 6c4009
Packit 6c4009
/* Read a character from stdin.
Packit 6c4009
Packit 6c4009
   This function is a possible cancellation point and therefore not
Packit 6c4009
   marked with __THROW.  */
Packit 6c4009
extern wint_t getwchar (void);
Packit 6c4009
Packit 6c4009
Packit 6c4009
/* Write a character to STREAM.
Packit 6c4009
Packit 6c4009
   These functions are possible cancellation points and therefore not
Packit 6c4009
   marked with __THROW.  */
Packit 6c4009
extern wint_t fputwc (wchar_t __wc, __FILE *__stream);
Packit 6c4009
extern wint_t putwc (wchar_t __wc, __FILE *__stream);
Packit 6c4009
Packit 6c4009
/* Write a character to stdout.
Packit 6c4009
Packit 6c4009
   This function is a possible cancellation point and therefore not
Packit 6c4009
   marked with __THROW.  */
Packit 6c4009
extern wint_t putwchar (wchar_t __wc);
Packit 6c4009
Packit 6c4009
Packit 6c4009
/* Get a newline-terminated wide character string of finite length
Packit 6c4009
   from STREAM.
Packit 6c4009
Packit 6c4009
   This function is a possible cancellation point and therefore not
Packit 6c4009
   marked with __THROW.  */
Packit 6c4009
extern wchar_t *fgetws (wchar_t *__restrict __ws, int __n,
Packit 6c4009
			__FILE *__restrict __stream);
Packit 6c4009
Packit 6c4009
/* Write a string to STREAM.
Packit 6c4009
Packit 6c4009
   This function is a possible cancellation point and therefore not
Packit 6c4009
   marked with __THROW.  */
Packit 6c4009
extern int fputws (const wchar_t *__restrict __ws,
Packit 6c4009
		   __FILE *__restrict __stream);
Packit 6c4009
Packit 6c4009
Packit 6c4009
/* Push a character back onto the input buffer of STREAM.
Packit 6c4009
Packit 6c4009
   This function is a possible cancellation point and therefore not
Packit 6c4009
   marked with __THROW.  */
Packit 6c4009
extern wint_t ungetwc (wint_t __wc, __FILE *__stream);
Packit 6c4009
Packit 6c4009
Packit 6c4009
#ifdef __USE_GNU
Packit 6c4009
/* These are defined to be equivalent to the `char' functions defined
Packit 6c4009
   in POSIX.1:1996.
Packit 6c4009
Packit 6c4009
   These functions are not part of POSIX and therefore no official
Packit 6c4009
   cancellation point.  But due to similarity with an POSIX interface
Packit 6c4009
   or due to the implementation they are cancellation points and
Packit 6c4009
   therefore not marked with __THROW.  */
Packit 6c4009
extern wint_t getwc_unlocked (__FILE *__stream);
Packit 6c4009
extern wint_t getwchar_unlocked (void);
Packit 6c4009
Packit 6c4009
/* This is the wide character version of a GNU extension.
Packit 6c4009
Packit 6c4009
   This function is not part of POSIX and therefore no official
Packit 6c4009
   cancellation point.  But due to similarity with an POSIX interface
Packit 6c4009
   or due to the implementation it is a cancellation point and
Packit 6c4009
   therefore not marked with __THROW.  */
Packit 6c4009
extern wint_t fgetwc_unlocked (__FILE *__stream);
Packit 6c4009
Packit 6c4009
/* Faster version when locking is not necessary.
Packit 6c4009
Packit 6c4009
   This function is not part of POSIX and therefore no official
Packit 6c4009
   cancellation point.  But due to similarity with an POSIX interface
Packit 6c4009
   or due to the implementation it is a cancellation point and
Packit 6c4009
   therefore not marked with __THROW.  */
Packit 6c4009
extern wint_t fputwc_unlocked (wchar_t __wc, __FILE *__stream);
Packit 6c4009
Packit 6c4009
/* These are defined to be equivalent to the `char' functions defined
Packit 6c4009
   in POSIX.1:1996.
Packit 6c4009
Packit 6c4009
   These functions are not part of POSIX and therefore no official
Packit 6c4009
   cancellation point.  But due to similarity with an POSIX interface
Packit 6c4009
   or due to the implementation they are cancellation points and
Packit 6c4009
   therefore not marked with __THROW.  */
Packit 6c4009
extern wint_t putwc_unlocked (wchar_t __wc, __FILE *__stream);
Packit 6c4009
extern wint_t putwchar_unlocked (wchar_t __wc);
Packit 6c4009
Packit 6c4009
Packit 6c4009
/* This function does the same as `fgetws' but does not lock the stream.
Packit 6c4009
Packit 6c4009
   This function is not part of POSIX and therefore no official
Packit 6c4009
   cancellation point.  But due to similarity with an POSIX interface
Packit 6c4009
   or due to the implementation it is a cancellation point and
Packit 6c4009
   therefore not marked with __THROW.  */
Packit 6c4009
extern wchar_t *fgetws_unlocked (wchar_t *__restrict __ws, int __n,
Packit 6c4009
				 __FILE *__restrict __stream);
Packit 6c4009
Packit 6c4009
/* This function does the same as `fputws' but does not lock the stream.
Packit 6c4009
Packit 6c4009
   This function is not part of POSIX and therefore no official
Packit 6c4009
   cancellation point.  But due to similarity with an POSIX interface
Packit 6c4009
   or due to the implementation it is a cancellation point and
Packit 6c4009
   therefore not marked with __THROW.  */
Packit 6c4009
extern int fputws_unlocked (const wchar_t *__restrict __ws,
Packit 6c4009
			    __FILE *__restrict __stream);
Packit 6c4009
#endif
Packit 6c4009
Packit 6c4009
Packit 6c4009
/* Format TP into S according to FORMAT.
Packit 6c4009
   Write no more than MAXSIZE wide characters and return the number
Packit 6c4009
   of wide characters written, or 0 if it would exceed MAXSIZE.  */
Packit 6c4009
extern size_t wcsftime (wchar_t *__restrict __s, size_t __maxsize,
Packit 6c4009
			const wchar_t *__restrict __format,
Packit 6c4009
			const struct tm *__restrict __tp) __THROW;
Packit 6c4009
Packit 6c4009
# ifdef __USE_GNU
Packit 6c4009
/* Similar to `wcsftime' but takes the information from
Packit 6c4009
   the provided locale and not the global locale.  */
Packit 6c4009
extern size_t wcsftime_l (wchar_t *__restrict __s, size_t __maxsize,
Packit 6c4009
			  const wchar_t *__restrict __format,
Packit 6c4009
			  const struct tm *__restrict __tp,
Packit 6c4009
			  locale_t __loc) __THROW;
Packit 6c4009
# endif
Packit 6c4009
Packit 6c4009
/* Define some macros helping to catch buffer overflows.  */
Packit 6c4009
#if __USE_FORTIFY_LEVEL > 0 && defined __fortify_function
Packit 6c4009
# include <bits/wchar2.h>
Packit 6c4009
#endif
Packit 6c4009
Packit 6c4009
#ifdef __LDBL_COMPAT
Packit 6c4009
# include <bits/wchar-ldbl.h>
Packit 6c4009
#endif
Packit 6c4009
Packit 6c4009
__END_DECLS
Packit 6c4009
Packit 6c4009
#endif /* wchar.h  */