Copyright/licence comment blocks from mingw-w64 shipped in Zig 0.13.0.
This is a conservative superset; no per-object linkage claim is made.

Files: lib/libc/mingw/cfguard/mingw_cfguard_support.c, lib/libc/mingw/crt/CRT_fp10.c, lib/libc/mingw/crt/_newmode.c, lib/libc/mingw/crt/charmax.c, lib/libc/mingw/crt/crt_handler.c, lib/libc/mingw/crt/crtdll.c, lib/libc/mingw/crt/crtexe.c, lib/libc/mingw/crt/crtexewin.c, lib/libc/mingw/crt/cxa_atexit.c, lib/libc/mingw/crt/cxa_thread_atexit.c, lib/libc/mingw/crt/dll_argv.c, lib/libc/mingw/crt/dllargv.c, lib/libc/mingw/crt/dllentry.c, lib/libc/mingw/crt/gccmain.c, lib/libc/mingw/crt/merr.c, lib/libc/mingw/crt/mingw_helpers.c, lib/libc/mingw/crt/natstart.c, lib/libc/mingw/crt/pesect.c, lib/libc/mingw/crt/pseudo-reloc-list.c, lib/libc/mingw/crt/tls_atexit.c, lib/libc/mingw/crt/ucrtbase_compat.c, lib/libc/mingw/crt/ucrtexewin.c, lib/libc/mingw/crt/udll_argv.c, lib/libc/mingw/crt/udllargc.c, lib/libc/mingw/crt/usermatherr.c, lib/libc/mingw/crt/wildcard.c, lib/libc/mingw/crt/xncommod.c, lib/libc/mingw/crt/xthdloc.c, lib/libc/mingw/crt/xtxtmode.c, lib/libc/mingw/include/internal.h, lib/libc/mingw/include/oscalls.h, lib/libc/mingw/include/sect_attribs.h, lib/libc/mingw/libsrc/bits.c, lib/libc/mingw/libsrc/ctxtcall-uuid.c, lib/libc/mingw/libsrc/dloadhelper.c, lib/libc/mingw/libsrc/msxml2.c, lib/libc/mingw/libsrc/msxml6.c, lib/libc/mingw/libsrc/netcfg-uuid.c, lib/libc/mingw/libsrc/vss-uuid.c, lib/libc/mingw/libsrc/wbemuuid.c, lib/libc/mingw/math/arm/_chgsignl.S, lib/libc/mingw/math/arm/sincos.S, lib/libc/mingw/math/arm/sincosf.S, lib/libc/mingw/math/arm-common/ldexpl.c, lib/libc/mingw/math/arm64/_chgsignl.S, lib/libc/mingw/math/arm64/rint.c, lib/libc/mingw/math/arm64/rintf.c, lib/libc/mingw/math/arm64/sincos.S, lib/libc/mingw/math/arm64/sincosf.S, lib/libc/mingw/math/cbrtl.c, lib/libc/mingw/math/coshf.c, lib/libc/mingw/math/coshl.c, lib/libc/mingw/math/erfl.c, lib/libc/mingw/math/expf.c, lib/libc/mingw/math/fabsf.c, lib/libc/mingw/math/fabsl.c, lib/libc/mingw/math/fdiml.c, lib/libc/mingw/math/fmal.c, lib/libc/mingw/math/fmaxl.c, lib/libc/mingw/math/fminl.c, lib/libc/mingw/math/fp_consts.c, lib/libc/mingw/math/fp_consts.h, lib/libc/mingw/math/fp_constsf.c, lib/libc/mingw/math/fp_constsl.c, lib/libc/mingw/math/fpclassify.c, lib/libc/mingw/math/fpclassifyf.c, lib/libc/mingw/math/frexpf.c, lib/libc/mingw/math/frexpl.c, lib/libc/mingw/math/hypotl.c, lib/libc/mingw/math/isnan.c, lib/libc/mingw/math/isnanf.c, lib/libc/mingw/math/isnanl.c, lib/libc/mingw/math/ldexpf.c, lib/libc/mingw/math/lgamma.c, lib/libc/mingw/math/lgammaf.c, lib/libc/mingw/math/lgammal.c, lib/libc/mingw/math/llrintl.c, lib/libc/mingw/math/llroundl.c, lib/libc/mingw/math/log10f.c, lib/libc/mingw/math/logf.c, lib/libc/mingw/math/lrintl.c, lib/libc/mingw/math/lroundl.c, lib/libc/mingw/math/modff.c, lib/libc/mingw/math/modfl.c, lib/libc/mingw/math/nextafterl.c, lib/libc/mingw/math/nexttoward.c, lib/libc/mingw/math/nexttowardf.c, lib/libc/mingw/math/powf.c, lib/libc/mingw/math/rintl.c, lib/libc/mingw/math/roundl.c, lib/libc/mingw/math/signbit.c, lib/libc/mingw/math/signbitf.c, lib/libc/mingw/math/sinhf.c, lib/libc/mingw/math/sinhl.c, lib/libc/mingw/math/tanhf.c, lib/libc/mingw/math/tanhl.c, lib/libc/mingw/math/tgammal.c, lib/libc/mingw/math/truncl.c, lib/libc/mingw/math/x86/acosf.c, lib/libc/mingw/math/x86/acosl.c, lib/libc/mingw/math/x86/asinf.c, lib/libc/mingw/math/x86/asinhl.c, lib/libc/mingw/math/x86/asinl.c, lib/libc/mingw/math/x86/atan2f.c, lib/libc/mingw/math/x86/atan2l.c, lib/libc/mingw/math/x86/atanf.c, lib/libc/mingw/math/x86/atanhl.c, lib/libc/mingw/math/x86/atanl.c, lib/libc/mingw/math/x86/ceilf.S, lib/libc/mingw/math/x86/ceill.S, lib/libc/mingw/math/x86/copysignl.S, lib/libc/mingw/math/x86/cosf.c, lib/libc/mingw/math/x86/cosl_internal.S, lib/libc/mingw/math/x86/cossin.c, lib/libc/mingw/math/x86/exp2l.S, lib/libc/mingw/math/x86/fastmath.h, lib/libc/mingw/math/x86/floorf.S, lib/libc/mingw/math/x86/floorl.S, lib/libc/mingw/math/x86/fmodf.c, lib/libc/mingw/math/x86/fmodl.c, lib/libc/mingw/math/x86/fucom.c, lib/libc/mingw/math/x86/ilogbl.S, lib/libc/mingw/math/x86/internal_logl.S, lib/libc/mingw/math/x86/ldexp.c, lib/libc/mingw/math/x86/ldexpl.c, lib/libc/mingw/math/x86/log10l.S, lib/libc/mingw/math/x86/log1pl.S, lib/libc/mingw/math/x86/log2f.S, lib/libc/mingw/math/x86/log2l.S, lib/libc/mingw/math/x86/logbl.c, lib/libc/mingw/math/x86/nearbyintl.S, lib/libc/mingw/math/x86/remainderl.S, lib/libc/mingw/math/x86/remquol.S, lib/libc/mingw/math/x86/scalbn.S, lib/libc/mingw/math/x86/scalbnf.S, lib/libc/mingw/math/x86/scalbnl.S, lib/libc/mingw/math/x86/sinf.c, lib/libc/mingw/math/x86/sinl_internal.S, lib/libc/mingw/math/x86/tanf.c, lib/libc/mingw/math/x86/tanl.S, lib/libc/mingw/misc/__initenv.c, lib/libc/mingw/misc/alarm.c, lib/libc/mingw/misc/btowc.c, lib/libc/mingw/misc/delay-f.c, lib/libc/mingw/misc/delay-n.c, lib/libc/mingw/misc/dirname.c, lib/libc/mingw/misc/feclearexcept.c, lib/libc/mingw/misc/fegetenv.c, lib/libc/mingw/misc/fegetexceptflag.c, lib/libc/mingw/misc/fegetround.c, lib/libc/mingw/misc/feholdexcept.c, lib/libc/mingw/misc/feraiseexcept.c, lib/libc/mingw/misc/fesetenv.c, lib/libc/mingw/misc/fesetexceptflag.c, lib/libc/mingw/misc/fesetround.c, lib/libc/mingw/misc/fetestexcept.c, lib/libc/mingw/misc/feupdateenv.c, lib/libc/mingw/misc/fwide.c, lib/libc/mingw/misc/getlogin.c, lib/libc/mingw/misc/gettimeofday.c, lib/libc/mingw/misc/initenv.c, lib/libc/mingw/misc/mb_wc_common.h, lib/libc/mingw/misc/mingw-access.c, lib/libc/mingw/misc/mingw-aligned-malloc.c, lib/libc/mingw/misc/mingw_getsp.S, lib/libc/mingw/misc/mingw_longjmp.S, lib/libc/mingw/misc/mingw_wcstold.c, lib/libc/mingw/misc/setjmp.S, lib/libc/mingw/misc/sleep.c, lib/libc/mingw/misc/tdestroy.c, lib/libc/mingw/misc/ucrt-access.c, lib/libc/mingw/misc/wcstoimax.c, lib/libc/mingw/misc/wcstold.c, lib/libc/mingw/misc/wcstoumax.c, lib/libc/mingw/misc/wctob.c, lib/libc/mingw/misc/wctrans.c, lib/libc/mingw/misc/wctype.c, lib/libc/mingw/misc/wmemchr.c, lib/libc/mingw/misc/wmemcmp.c, lib/libc/mingw/misc/wmemcpy.c, lib/libc/mingw/misc/wmemmove.c, lib/libc/mingw/misc/wmemset.c, lib/libc/mingw/stdio/_Exit.c, lib/libc/mingw/stdio/fopen64.c, lib/libc/mingw/stdio/fseeko64.c, lib/libc/mingw/stdio/ftello64.c, lib/libc/mingw/stdio/lltoa.c, lib/libc/mingw/stdio/lltow.c, lib/libc/mingw/stdio/lseek64.c, lib/libc/mingw/stdio/mingw_fprintfw.c, lib/libc/mingw/stdio/mingw_pformatw.c, lib/libc/mingw/stdio/mingw_printfw.c, lib/libc/mingw/stdio/mingw_snprintfw.c, lib/libc/mingw/stdio/mingw_sprintfw.c, lib/libc/mingw/stdio/mingw_vfprintfw.c, lib/libc/mingw/stdio/mingw_vprintfw.c, lib/libc/mingw/stdio/mingw_vsnprintfw.c, lib/libc/mingw/stdio/mingw_vsprintfw.c, lib/libc/mingw/stdio/scanf.S, lib/libc/mingw/stdio/scanf2-argcount-char.c, lib/libc/mingw/stdio/scanf2-argcount-template.c, lib/libc/mingw/stdio/scanf2-argcount-wchar.c, lib/libc/mingw/stdio/scanf2-template.S, lib/libc/mingw/stdio/snprintf.c, lib/libc/mingw/stdio/snwprintf.c, lib/libc/mingw/stdio/ucrt__snwprintf.c, lib/libc/mingw/stdio/ucrt__vscprintf.c, lib/libc/mingw/stdio/ucrt__vsnprintf.c, lib/libc/mingw/stdio/ucrt__vsnwprintf.c, lib/libc/mingw/stdio/ucrt_fprintf.c, lib/libc/mingw/stdio/ucrt_fscanf.c, lib/libc/mingw/stdio/ucrt_fwprintf.c, lib/libc/mingw/stdio/ucrt_printf.c, lib/libc/mingw/stdio/ucrt_scanf.c, lib/libc/mingw/stdio/ucrt_snprintf.c, lib/libc/mingw/stdio/ucrt_sprintf.c, lib/libc/mingw/stdio/ucrt_sscanf.c, lib/libc/mingw/stdio/ucrt_vfprintf.c, lib/libc/mingw/stdio/ucrt_vfscanf.c, lib/libc/mingw/stdio/ucrt_vprintf.c, lib/libc/mingw/stdio/ucrt_vscanf.c, lib/libc/mingw/stdio/ucrt_vsnprintf.c, lib/libc/mingw/stdio/ucrt_vsprintf.c, lib/libc/mingw/stdio/ucrt_vsscanf.c, lib/libc/mingw/stdio/ulltoa.c, lib/libc/mingw/stdio/ulltow.c, lib/libc/mingw/stdio/vfscanf.c, lib/libc/mingw/stdio/vfscanf2.S, lib/libc/mingw/stdio/vfwscanf.c, lib/libc/mingw/stdio/vfwscanf2.S, lib/libc/mingw/stdio/vscanf.c, lib/libc/mingw/stdio/vscanf2.S, lib/libc/mingw/stdio/vsnprintf.c, lib/libc/mingw/stdio/vsnwprintf.c, lib/libc/mingw/stdio/vsscanf.c, lib/libc/mingw/stdio/vsscanf2.S, lib/libc/mingw/stdio/vswscanf.c, lib/libc/mingw/stdio/vswscanf2.S, lib/libc/mingw/stdio/vwscanf.c, lib/libc/mingw/stdio/vwscanf2.S, lib/libc/mingw/stdio/wtoll.c
/**
 * This file has no copyright assigned and is placed in the Public Domain.
 * This file is part of the mingw-w64 runtime package.
 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
 */

Files: lib/libc/mingw/complex/_cabs.c, lib/libc/mingw/complex/cabs.c, lib/libc/mingw/complex/cabs.def.h, lib/libc/mingw/complex/cabsf.c, lib/libc/mingw/complex/cabsl.c, lib/libc/mingw/complex/cacos.c, lib/libc/mingw/complex/cacos.def.h, lib/libc/mingw/complex/cacosf.c, lib/libc/mingw/complex/cacosh.def.h, lib/libc/mingw/complex/cacosl.c, lib/libc/mingw/complex/carg.c, lib/libc/mingw/complex/carg.def.h, lib/libc/mingw/complex/cargf.c, lib/libc/mingw/complex/cargl.c, lib/libc/mingw/complex/casin.c, lib/libc/mingw/complex/casin.def.h, lib/libc/mingw/complex/casinf.c, lib/libc/mingw/complex/casinh.def.h, lib/libc/mingw/complex/casinl.c, lib/libc/mingw/complex/catan.c, lib/libc/mingw/complex/catan.def.h, lib/libc/mingw/complex/catanf.c, lib/libc/mingw/complex/catanh.def.h, lib/libc/mingw/complex/catanl.c, lib/libc/mingw/complex/ccos.c, lib/libc/mingw/complex/ccos.def.h, lib/libc/mingw/complex/ccosf.c, lib/libc/mingw/complex/ccosh.def.h, lib/libc/mingw/complex/ccosl.c, lib/libc/mingw/complex/cexp.c, lib/libc/mingw/complex/cexp.def.h, lib/libc/mingw/complex/cexpf.c, lib/libc/mingw/complex/cexpl.c, lib/libc/mingw/complex/cimag.c, lib/libc/mingw/complex/cimag.def.h, lib/libc/mingw/complex/cimagf.c, lib/libc/mingw/complex/cimagl.c, lib/libc/mingw/complex/clog.c, lib/libc/mingw/complex/clog.def.h, lib/libc/mingw/complex/clog10.c, lib/libc/mingw/complex/clog10.def.h, lib/libc/mingw/complex/clog10f.c, lib/libc/mingw/complex/clog10l.c, lib/libc/mingw/complex/clogf.c, lib/libc/mingw/complex/clogl.c, lib/libc/mingw/complex/complex_internal.h, lib/libc/mingw/complex/conj.c, lib/libc/mingw/complex/conj.def.h, lib/libc/mingw/complex/conjf.c, lib/libc/mingw/complex/conjl.c, lib/libc/mingw/complex/cpow.c, lib/libc/mingw/complex/cpow.def.h, lib/libc/mingw/complex/cpowf.c, lib/libc/mingw/complex/cpowl.c, lib/libc/mingw/complex/cproj.c, lib/libc/mingw/complex/cproj.def.h, lib/libc/mingw/complex/cprojf.c, lib/libc/mingw/complex/cprojl.c, lib/libc/mingw/complex/creal.c, lib/libc/mingw/complex/creal.def.h, lib/libc/mingw/complex/crealf.c, lib/libc/mingw/complex/creall.c, lib/libc/mingw/complex/csin.c, lib/libc/mingw/complex/csin.def.h, lib/libc/mingw/complex/csinf.c, lib/libc/mingw/complex/csinh.def.h, lib/libc/mingw/complex/csinl.c, lib/libc/mingw/complex/csqrt.c, lib/libc/mingw/complex/csqrt.def.h, lib/libc/mingw/complex/csqrtf.c, lib/libc/mingw/complex/csqrtl.c, lib/libc/mingw/complex/ctan.c, lib/libc/mingw/complex/ctan.def.h, lib/libc/mingw/complex/ctanf.c, lib/libc/mingw/complex/ctanh.def.h, lib/libc/mingw/complex/ctanl.c, lib/libc/mingw/math/powi.c, lib/libc/mingw/math/powi.def.h, lib/libc/mingw/math/powif.c, lib/libc/mingw/math/powil.c, lib/libc/mingw/math/sqrt.def.h, lib/libc/mingw/math/sqrtf.c, lib/libc/mingw/math/sqrtl.c, lib/libc/mingw/math/x86/acosh.def.h, lib/libc/mingw/math/x86/acoshl.c, lib/libc/mingw/math/x86/cos.def.h, lib/libc/mingw/math/x86/cosl.c, lib/libc/mingw/math/x86/exp.def.h, lib/libc/mingw/math/x86/expl.c, lib/libc/mingw/math/x86/expm1.def.h, lib/libc/mingw/math/x86/expm1l.c, lib/libc/mingw/math/x86/log.c, lib/libc/mingw/math/x86/log.def.h, lib/libc/mingw/math/x86/logl.c, lib/libc/mingw/math/x86/pow.def.h, lib/libc/mingw/math/x86/powl.c, lib/libc/mingw/math/x86/sin.def.h, lib/libc/mingw/math/x86/sinl.c
/*
 This Software is provided under the Zope Public License (ZPL) Version 2.1.

 Copyright (c) 2009, 2010 by the mingw-w64 project

 See the AUTHORS file for the list of contributors to the mingw-w64 project.

 This license has been certified as open source. It has also been designated
 as GPL compatible by the Free Software Foundation (FSF).

 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions are met:

   1. Redistributions in source code must retain the accompanying copyright
      notice, this list of conditions, and the following disclaimer.
   2. Redistributions in binary form must reproduce the accompanying
      copyright notice, this list of conditions, and the following disclaimer
      in the documentation and/or other materials provided with the
      distribution.
   3. Names of the copyright holders must not be used to endorse or promote
      products derived from this software without prior written permission
      from the copyright holders.
   4. The right to distribute this software or to use it for any purpose does
      not give you the right to use Servicemarks (sm) or Trademarks (tm) of
      the copyright holders.  Use of them is covered by separate agreement
      with the copyright holders.
   5. If any files are modified, you must cause the modified files to carry
      prominent notices stating that you changed the files and the date of
      any change.

 Disclaimer

 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED
 OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
 EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 
 OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

Files: lib/libc/mingw/crt/pseudo-reloc.c
/* pseudo-reloc.c

   Contributed by Egor Duda  <deo@logos-m.ru>
   Modified by addition of runtime_pseudo_reloc version 2
   by Kai Tietz  <kai.tietz@onevision.com>
	
   THIS SOFTWARE IS NOT COPYRIGHTED

   This source code is offered for use in the public domain. You may
   use, modify or distribute it freely.

   This code is distributed in the hope that it will be useful but
   WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
   DISCLAMED. This includes but is not limited to warranties of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/

Files: lib/libc/mingw/crt/tlsmcrt.c, lib/libc/mingw/crt/tlsmthread.c, lib/libc/mingw/crt/tlssup.c
/**
 * This file has no copyright assigned and is placed in the Public Domain.
 * This file is part of the mingw-w64 runtime package.
 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
 *
 * Written by Kai Tietz  <kai.tietz@onevision.com>
 */

Files: lib/libc/mingw/crt/tlsthrd.c
/**
 * This file has no copyright assigned and is placed in the Public Domain.
 * This file is part of the mingw-w64 runtime package.
 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
 *
 * Written by Kai Tietz  <kai.tietz@onevision.com>
 *
 * This file is used by if gcc is built with --enable-threads=win32.
 *
 * Based on version created by Mumit Khan  <khan@nanotech.wisc.edu>
 *
 */

Files: lib/libc/mingw/gdtoa/arithchk.c
/****************************************************************
Copyright (C) 1997, 1998 Lucent Technologies
All Rights Reserved

Permission to use, copy, modify, and distribute this software and
its documentation for any purpose and without fee is hereby
granted, provided that the above copyright notice appear in all
copies and that both that the copyright notice and this
permission notice and warranty disclaimer appear in supporting
documentation, and that the name of Lucent or any of its entities
not be used in advertising or publicity pertaining to
distribution of the software without specific, written prior
permission.

LUCENT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
IN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY
SPECIAL, 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.
****************************************************************/

Files: lib/libc/mingw/gdtoa/dmisc.c, lib/libc/mingw/gdtoa/g__fmt.c, lib/libc/mingw/gdtoa/g_dfmt.c, lib/libc/mingw/gdtoa/g_ffmt.c, lib/libc/mingw/gdtoa/g_xfmt.c, lib/libc/mingw/gdtoa/gdtoa.h, lib/libc/mingw/gdtoa/gethex.c, lib/libc/mingw/gdtoa/gmisc.c, lib/libc/mingw/gdtoa/sum.c
/****************************************************************

The author of this software is David M. Gay.

Copyright (C) 1998 by Lucent Technologies
All Rights Reserved

Permission to use, copy, modify, and distribute this software and
its documentation for any purpose and without fee is hereby
granted, provided that the above copyright notice appear in all
copies and that both that the copyright notice and this
permission notice and warranty disclaimer appear in supporting
documentation, and that the name of Lucent or any of its entities
not be used in advertising or publicity pertaining to
distribution of the software without specific, written prior
permission.

LUCENT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
IN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY
SPECIAL, 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.

****************************************************************/

Files: lib/libc/mingw/gdtoa/dtoa.c, lib/libc/mingw/gdtoa/gdtoa.c, lib/libc/mingw/gdtoa/misc.c, lib/libc/mingw/gdtoa/smisc.c, lib/libc/mingw/gdtoa/ulp.c
/****************************************************************

The author of this software is David M. Gay.

Copyright (C) 1998, 1999 by Lucent Technologies
All Rights Reserved

Permission to use, copy, modify, and distribute this software and
its documentation for any purpose and without fee is hereby
granted, provided that the above copyright notice appear in all
copies and that both that the copyright notice and this
permission notice and warranty disclaimer appear in supporting
documentation, and that the name of Lucent or any of its entities
not be used in advertising or publicity pertaining to
distribution of the software without specific, written prior
permission.

LUCENT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
IN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY
SPECIAL, 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.

****************************************************************/

Files: lib/libc/mingw/gdtoa/gdtoaimp.h
/****************************************************************

The author of this software is David M. Gay.

Copyright (C) 1998-2000 by Lucent Technologies
All Rights Reserved

Permission to use, copy, modify, and distribute this software and
its documentation for any purpose and without fee is hereby
granted, provided that the above copyright notice appear in all
copies and that both that the copyright notice and this
permission notice and warranty disclaimer appear in supporting
documentation, and that the name of Lucent or any of its entities
not be used in advertising or publicity pertaining to
distribution of the software without specific, written prior
permission.

LUCENT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
IN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY
SPECIAL, 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.

****************************************************************/

Files: lib/libc/mingw/gdtoa/hd_init.c, lib/libc/mingw/gdtoa/hexnan.c
/****************************************************************

The author of this software is David M. Gay.

Copyright (C) 2000 by Lucent Technologies
All Rights Reserved

Permission to use, copy, modify, and distribute this software and
its documentation for any purpose and without fee is hereby
granted, provided that the above copyright notice appear in all
copies and that both that the copyright notice and this
permission notice and warranty disclaimer appear in supporting
documentation, and that the name of Lucent or any of its entities
not be used in advertising or publicity pertaining to
distribution of the software without specific, written prior
permission.

LUCENT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
IN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY
SPECIAL, 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.

****************************************************************/

Files: lib/libc/mingw/gdtoa/qnan.c
/****************************************************************

The author of this software is David M. Gay.

Copyright (C) 2005 by David M. Gay
All Rights Reserved

Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
both that the copyright notice and this permission notice and warranty
disclaimer appear in supporting documentation, and that the name of
the author or any of his current or former employers not be used in
advertising or publicity pertaining to distribution of the software
without specific, written prior permission.

THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.  IN
NO EVENT SHALL THE AUTHOR OR ANY OF HIS CURRENT OR FORMER EMPLOYERS BE
LIABLE FOR ANY SPECIAL, 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.

****************************************************************/

Files: lib/libc/mingw/gdtoa/strtodg.c
/****************************************************************

The author of this software is David M. Gay.

Copyright (C) 1998-2001 by Lucent Technologies
All Rights Reserved

Permission to use, copy, modify, and distribute this software and
its documentation for any purpose and without fee is hereby
granted, provided that the above copyright notice appear in all
copies and that both that the copyright notice and this
permission notice and warranty disclaimer appear in supporting
documentation, and that the name of Lucent or any of its entities
not be used in advertising or publicity pertaining to
distribution of the software without specific, written prior
permission.

LUCENT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
IN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY
SPECIAL, 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.

****************************************************************/

Files: lib/libc/mingw/gdtoa/strtodnrp.c
/****************************************************************

The author of this software is David M. Gay.

Copyright (C) 2004 by David M. Gay.
All Rights Reserved
Based on material in the rest of /netlib/fp/gdota.tar.gz,
which is copyright (C) 1998, 2000 by Lucent Technologies.

Permission to use, copy, modify, and distribute this software and
its documentation for any purpose and without fee is hereby
granted, provided that the above copyright notice appear in all
copies and that both that the copyright notice and this
permission notice and warranty disclaimer appear in supporting
documentation, and that the name of Lucent or any of its entities
not be used in advertising or publicity pertaining to
distribution of the software without specific, written prior
permission.

LUCENT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
IN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY
SPECIAL, 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.

****************************************************************/

Files: lib/libc/mingw/gdtoa/strtof.c, lib/libc/mingw/gdtoa/strtopx.c
/****************************************************************

The author of this software is David M. Gay.

Copyright (C) 1998, 2000 by Lucent Technologies
All Rights Reserved

Permission to use, copy, modify, and distribute this software and
its documentation for any purpose and without fee is hereby
granted, provided that the above copyright notice appear in all
copies and that both that the copyright notice and this
permission notice and warranty disclaimer appear in supporting
documentation, and that the name of Lucent or any of its entities
not be used in advertising or publicity pertaining to
distribution of the software without specific, written prior
permission.

LUCENT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
IN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY
SPECIAL, 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.

****************************************************************/

Files: lib/libc/mingw/libsrc/dxva-uuid.c
/**
 * DISCLAIMER
 * This file has no copyright assigned and is placed in the Public Domain.
 * This file is part of the mingw-w64 runtime package.
 *
 * The mingw-w64 runtime package and its code is distributed in the hope that it
 * will be useful but WITHOUT ANY WARRANTY.  ALL WARRANTIES, EXPRESSED OR
 * IMPLIED ARE HEREBY DISCLAIMED.  This includes but is not limited to
 * warranties of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 */

Files: lib/libc/mingw/math/arm/s_rint.c, lib/libc/mingw/math/arm/s_rintf.c
/*
 * ====================================================
 * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
 *
 * Developed at SunPro, a Sun Microsystems, Inc. business.
 * Permission to use, copy, modify, and distribute this
 * software is freely granted, provided that this notice
 * is preserved.
 * ====================================================
 */

Files: lib/libc/mingw/math/bsd_private_base.h
/*
* ====================================================
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
*
* Developed at SunPro, a Sun Microsystems, Inc. business.
* Permission to use, copy, modify, and distribute this
* software is freely granted, provided that this notice
* is preserved.
* ====================================================
*/

Files: lib/libc/mingw/math/cephes_mconf.h, lib/libc/mingw/math/cephes_mconf.h
/*
Cephes Math Library Release 2.2:  July, 1992
Copyright 1984, 1987, 1988, 1992 by Stephen L. Moshier
Direct inquiries to 30 Frost Street, Cambridge, MA 02140
*/

Files: lib/libc/mingw/math/cephes_mconf.h
/*
Cephes Math Library Release 2.1:  December, 1988
Copyright 1984, 1987, 1988 by Stephen L. Moshier
Direct inquiries to 30 Frost Street, Cambridge, MA 02140
*/

Files: lib/libc/mingw/math/erfl.c
/*
Modified from file ndtrl.c
Cephes Math Library Release 2.3:  January, 1995
Copyright 1984, 1995 by Stephen L. Moshier
*/

Files: lib/libc/mingw/math/hypotl.c
/*
This implementation is based largely on Cephes library
function cabsl (cmplxl.c), which bears the following notice:

Cephes Math Library Release 2.1:  January, 1989
Copyright 1984, 1987, 1989 by Stephen L. Moshier
Direct inquiries to 30 Frost Street, Cambridge, MA 02140
*/

Files: lib/libc/mingw/math/nextafterl.c
/*
   nextafterl.c
   Contributed by Danny Smith <dannysmith@users.sourceforge.net>
   No copyright claimed, absolutely no warranties.

   2005-05-09
*/

Files: lib/libc/mingw/math/nexttoward.c
/*
   nexttoward.c
   Contributed by Danny Smith <dannysmith@users.sourceforge.net>
   No copyright claimed, absolutely no warranties.

   2005-05-10
*/

Files: lib/libc/mingw/math/nexttowardf.c
/*
   nexttowardf.c
   Contributed by Danny Smith <dannysmith@users.sourceforge.net>
   No copyright claimed, absolutely no warranties.

   2005-05-10
*/

Files: lib/libc/mingw/math/signgam.c
/*
 This Software is provided under the Zope Public License (ZPL) Version 2.1.

 Copyright (c) 2012 by the mingw-w64 project

 See the AUTHORS file for the list of contributors to the mingw-w64 project.

 This license has been certified as open source. It has also been designated
 as GPL compatible by the Free Software Foundation (FSF).

 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions are met:

   1. Redistributions in source code must retain the accompanying copyright
      notice, this list of conditions, and the following disclaimer.
   2. Redistributions in binary form must reproduce the accompanying
      copyright notice, this list of conditions, and the following disclaimer
      in the documentation and/or other materials provided with the
      distribution.
   3. Names of the copyright holders must not be used to endorse or promote
      products derived from this software without prior written permission
      from the copyright holders.
   4. The right to distribute this software or to use it for any purpose does
      not give you the right to use Servicemarks (sm) or Trademarks (tm) of
      the copyright holders.  Use of them is covered by separate agreement
      with the copyright holders.
   5. If any files are modified, you must cause the modified files to carry
      prominent notices stating that you changed the files and the date of
      any change.

 Disclaimer

 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED
 OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
 EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 
 OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

Files: lib/libc/mingw/math/x86/_chgsignl.S
/**
 * This file has no copyright assigned and is placed in the Public Domain.
 * This file is part of the mingw-w64 runtime package.
 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
 *
 * IEEE 854 double-extended-precision format
 * unsigned int mantissa1:32
 * unsigned int mantissa0:32
 * unsigned int exponent:15
 * unsigned int negative:1
 * unsigned int empty:16
 *
 * long double _chgsignl(long double x) {
 *   ((unsigned int *) &x)[2] ^= 0x00008000;
 *   return x;
 * }
 */

Files: lib/libc/mingw/math/x86/acosf.c, lib/libc/mingw/math/x86/asinf.c
/*
 * Written by J.T. Conklin <jtc@netbsd.org>.
 * Public domain.
 */

Files: lib/libc/mingw/math/x86/asinl.c
/*
 * Written by J.T. Conklin <jtc@netbsd.org>.
 * Public domain.
 * Adapted for long double type by Danny Smith <dannysmith@users.sourceforge.net>.
 */

Files: lib/libc/mingw/math/x86/atan2f.c, lib/libc/mingw/math/x86/atanf.c
/*
 * Written by J.T. Conklin <jtc@netbsd.org>.
 * Public domain.
 *
 */

Files: lib/libc/mingw/math/x86/copysignl.S, lib/libc/mingw/math/x86/logbl.c
/*
 * Written by J.T. Conklin <jtc@netbsd.org>.
 * Changes for long double by Ulrich Drepper <drepper@cygnus.com>
 * Public domain.
 */

Files: lib/libc/mingw/math/x86/fmodf.c
/*
 * Written by J.T. Conklin <jtc@netbsd.org>.
 * Public domain.
 *
 * Adapted for float type by Danny Smith
 *  <dannysmith@users.sourceforge.net>.
 */

Files: lib/libc/mingw/misc/delayimp.c
/**
 * This file has no copyright assigned and is placed in the Public Domain.
 * This file is part of the mingw-w64 runtime package.
 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
 *
 * This file is derived from Microsoft implementation file delayhlp.cpp, which
 * is free for users to modify and derive.
 */

Files: lib/libc/mingw/misc/dirent.c
/*
 * dirent.c
 * This file has no copyright assigned and is placed in the Public Domain.
 * This file is part of the mingw-runtime package.
 * No warranty is given; refer to the file DISCLAIMER within the package.
 *
 * Derived from DIRLIB.C by Matt J. Weinstein
 * This note appears in the DIRLIB.H
 * DIRLIB.H by M. J. Weinstein   Released to public domain 1-Jan-89
 *
 * Updated by Jeremy Bettis <jeremy@hksys.com>
 * Significantly revised and rewinddir, seekdir and telldir added by Colin
 * Peters <colin@fu.is.saga-u.ac.jp>
 *	
 */

Files: lib/libc/mingw/misc/getopt.c
/*
 * Copyright (c) 2002 Todd C. Miller <Todd.Miller@courtesan.com>
 *
 * 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.
 *
 * Sponsored in part by the Defense Advanced Research Projects
 * Agency (DARPA) and Air Force Research Laboratory, Air Force
 * Materiel Command, USAF, under agreement number F39502-99-1-0512.
 */

Files: lib/libc/mingw/misc/getopt.c
/*-
 * Copyright (c) 2000 The NetBSD Foundation, Inc.
 * All rights reserved.
 *
 * This code is derived from software contributed to The NetBSD Foundation
 * by Dieter Baron and Thomas Klausner.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */

Files: lib/libc/mingw/misc/mingw-aligned-malloc.c
/*
  __mingw_aligned_malloc and friends, implemented using Microsoft's public
  interfaces and with the help of the algorithm description provided
  by Wu Yongwei: http://sourceforge.net/mailarchive/message.php?msg_id=3847075

  I hereby place this implementation in the public domain.
               -- Steven G. Johnson (stevenj@alum.mit.edu)
*/

Files: lib/libc/mingw/misc/mingw_wcstold.c, lib/libc/mingw/misc/wcstof.c
/* This routine has been placed in the public domain.*/

Files: lib/libc/mingw/misc/tdelete.c, lib/libc/mingw/misc/tfind.c, lib/libc/mingw/misc/tsearch.c, lib/libc/mingw/misc/twalk.c
/*
 * Tree search generalized from Knuth (6.2.2) Algorithm T just like
 * the AT&T man page says.
 *
 * The node_t structure is for internal use only, lint doesn't grok it.
 *
 * Written by reading the System V Interface Definition, not the code.
 *
 * Totally public domain.
 */

Files: lib/libc/mingw/misc/wcstoimax.c, lib/libc/mingw/misc/wcstoumax.c
/*
    This source code was extracted from the Q8 package created and
    placed in the PUBLIC DOMAIN by Doug Gwyn <gwyn@arl.mil>

    last edit:	1999/11/05	gwyn@arl.mil

	Implements subclause 7.8.2 of ISO/IEC 9899:1999 (E).

	This particular implementation requires the matching <inttypes.h>.
	It also assumes that character codes for A..Z and a..z are in
	contiguous ascending order; this is true for ASCII but not EBCDIC.
*/

Files: lib/libc/mingw/misc/wctrans.c
/*
   wctrans.c 
   7.25.3.2 Extensible wide-character case mapping functions

   Contributed by: Danny Smith  <dannysmith@usesr.sourcefoge.net>
   		   2005-02-24
   
  This source code is placed in the PUBLIC DOMAIN. It is modified
  from the Q8 package created by Doug Gwyn <gwyn@arl.mil>  

 */

Files: lib/libc/mingw/misc/wctype.c
/*
  wctype.c
  7.25.2.2.2 The wctype function

  Contributed by: Danny Smith  <dannysmith@usesr.sourcefoge.net>
		  2005-02-24
   
  This source code is placed in the PUBLIC DOMAIN. It is modified
  from the Q8 package created by Doug Gwyn <gwyn@arl.mil>  

  The wctype function constructs a value with type wctype_t that
  describes a class of wide characters identified by the string
  argument property.

  In particular, we map the property strings so that:

  iswctype(wc, wctype("alnum")) == iswalnum(wc) 
  iswctype(wc, wctype("alpha")) == iswalpha(wc)
  iswctype(wc, wctype("cntrl")) == iswcntrl(wc)
  iswctype(wc, wctype("digit")) == iswdigit(wc)
  iswctype(wc, wctype("graph")) == iswgraph(wc)
  iswctype(wc, wctype("lower")) == iswlower(wc)
  iswctype(wc, wctype("print")) == iswprint(wc)
  iswctype(wc, wctype("punct")) == iswpunct(wc)
  iswctype(wc, wctype("space")) == iswspace(wc)
  iswctype(wc, wctype("upper")) == iswupper(wc)
  iswctype(wc, wctype("xdigit")) == iswxdigit(wc)

*/

Files: lib/libc/mingw/misc/wmemcmp.c
/*	This source code was extracted from the Q8 package created and placed
    in the PUBLIC DOMAIN by Doug Gwyn <gwyn@arl.mil>
    last edit:	1999/11/05	gwyn@arl.mil

    Implements subclause 7.24 of ISO/IEC 9899:1999 (E).

	It supports an encoding where all char codes are mapped
	to the *same* code values within a wchar_t or wint_t,
	so long as no other wchar_t codes are used by the program.

*/

Files: lib/libc/mingw/stdio/mingw_fprintf.c
/* fprintf.c
 *
 * $Id: fprintf.c,v 1.1 2008/08/11 22:41:55 keithmarshall Exp $
 *
 * Provides an implementation of the "fprintf" function, conforming
 * generally to C99 and SUSv3/POSIX specifications, with extensions
 * to support Microsoft's non-standard format specifications.  This
 * is included in libmingwex.a, whence it may replace the Microsoft
 * function of the same name.
 *
 * Written by Keith Marshall <keithmarshall@users.sourceforge.net>
 *
 * This implementation of "fprintf" will normally be invoked by calling
 * "__mingw_fprintf()" in preference to a direct reference to "fprintf()"
 * itself; this leaves the MSVCRT implementation as the default, which
 * will be deployed when user code invokes "fprint()".  Users who then
 * wish to use this implementation may either call "__mingw_fprintf()"
 * directly, or may use conditional preprocessor defines, to redirect
 * references to "fprintf()" to "__mingw_fprintf()".
 *
 * Compiling this module with "-D INSTALL_AS_DEFAULT" will change this
 * recommended convention, such that references to "fprintf()" in user
 * code will ALWAYS be redirected to "__mingw_fprintf()"; if this option
 * is adopted, then users wishing to use the MSVCRT implementation of
 * "fprintf()" will be forced to use a "back-door" mechanism to do so.
 * Such a "back-door" mechanism is provided with MinGW, allowing the
 * MSVCRT implementation to be called as "__msvcrt_fprintf()"; however,
 * since users may not expect this behaviour, a standard libmingwex.a
 * installation does not employ this option.
 *
 *
 * This is free software.  You may redistribute and/or modify it as you
 * see fit, without restriction of copyright.
 *
 * This software is provided "as is", in the hope that it may be useful,
 * but WITHOUT WARRANTY OF ANY KIND, not even any implied warranty of
 * MERCHANTABILITY, nor of FITNESS FOR ANY PARTICULAR PURPOSE.  At no
 * time will the author accept any form of liability for any damages,
 * however caused, resulting from the use of this software.
 *
 */

Files: lib/libc/mingw/stdio/mingw_pformat.c
/* pformat.c
 *
 * $Id: pformat.c,v 1.9 2011/01/07 22:57:00 keithmarshall Exp $
 *
 * Provides a core implementation of the formatting capabilities
 * common to the entire `printf()' family of functions; it conforms
 * generally to C99 and SUSv3/POSIX specifications, with extensions
 * to support Microsoft's non-standard format specifications.
 *
 * Written by Keith Marshall <keithmarshall@users.sourceforge.net>
 *
 * This is free software.  You may redistribute and/or modify it as you
 * see fit, without restriction of copyright.
 *
 * This software is provided "as is", in the hope that it may be useful,
 * but WITHOUT WARRANTY OF ANY KIND, not even any implied warranty of
 * MERCHANTABILITY, nor of FITNESS FOR ANY PARTICULAR PURPOSE.  At no
 * time will the author accept any form of liability for any damages,
 * however caused, resulting from the use of this software.
 *
 * The elements of this implementation which deal with the formatting
 * of floating point numbers, (i.e. the `%e', `%E', `%f', `%F', `%g'
 * and `%G' format specifiers, but excluding the hexadecimal floating
 * point `%a' and `%A' specifiers), make use of the `__gdtoa' function
 * written by David M. Gay, and are modelled on his sample code, which
 * has been deployed under its accompanying terms of use:--
 *
 ******************************************************************
 * Copyright (C) 1997, 1999, 2001 Lucent Technologies
 * All Rights Reserved
 *
 * Permission to use, copy, modify, and distribute this software and
 * its documentation for any purpose and without fee is hereby
 * granted, provided that the above copyright notice appear in all
 * copies and that both that the copyright notice and this
 * permission notice and warranty disclaimer appear in supporting
 * documentation, and that the name of Lucent or any of its entities
 * not be used in advertising or publicity pertaining to
 * distribution of the software without specific, written prior
 * permission.
 *
 * LUCENT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
 * IN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY
 * SPECIAL, 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.
 ******************************************************************
 *
 */

Files: lib/libc/mingw/stdio/mingw_pformat.h
/*
 * pformat.h
 *
 * $Id: pformat.h,v 1.1 2008/07/28 23:24:20 keithmarshall Exp $
 *
 * A private header, defining the `pformat' API; it is to be included
 * in each compilation unit implementing any of the `printf' family of
 * functions, but serves no useful purpose elsewhere.
 *
 * Written by Keith Marshall <keithmarshall@users.sourceforge.net>
 *
 * This is free software.  You may redistribute and/or modify it as you
 * see fit, without restriction of copyright.
 *
 * This software is provided "as is", in the hope that it may be useful,
 * but WITHOUT WARRANTY OF ANY KIND, not even any implied warranty of
 * MERCHANTABILITY, nor of FITNESS FOR ANY PARTICULAR PURPOSE.  At no
 * time will the author accept any form of liability for any damages,
 * however caused, resulting from the use of this software.
 */

Files: lib/libc/mingw/stdio/mingw_printf.c
/* printf.c
 *
 * $Id: printf.c,v 1.1 2008/08/11 22:41:55 keithmarshall Exp $
 *
 * Provides an implementation of the "printf" function, conforming
 * generally to C99 and SUSv3/POSIX specifications, with extensions
 * to support Microsoft's non-standard format specifications.  This
 * is included in libmingwex.a, whence it may replace the Microsoft
 * function of the same name.
 *
 * Written by Keith Marshall <keithmarshall@users.sourceforge.net>
 *
 * This implementation of "printf" will normally be invoked by calling
 * "__mingw_printf()" in preference to a direct reference to "printf()"
 * itself; this leaves the MSVCRT implementation as the default, which
 * will be deployed when user code invokes "print()".  Users who then
 * wish to use this implementation may either call "__mingw_printf()"
 * directly, or may use conditional preprocessor defines, to redirect
 * references to "printf()" to "__mingw_printf()".
 *
 * Compiling this module with "-D INSTALL_AS_DEFAULT" will change this
 * recommended convention, such that references to "printf()" in user
 * code will ALWAYS be redirected to "__mingw_printf()"; if this option
 * is adopted, then users wishing to use the MSVCRT implementation of
 * "printf()" will be forced to use a "back-door" mechanism to do so.
 * Such a "back-door" mechanism is provided with MinGW, allowing the
 * MSVCRT implementation to be called as "__msvcrt_printf()"; however,
 * since users may not expect this behaviour, a standard libmingwex.a
 * installation does not employ this option.
 *
 *
 * This is free software.  You may redistribute and/or modify it as you
 * see fit, without restriction of copyright.
 *
 * This software is provided "as is", in the hope that it may be useful,
 * but WITHOUT WARRANTY OF ANY KIND, not even any implied warranty of
 * MERCHANTABILITY, nor of FITNESS FOR ANY PARTICULAR PURPOSE.  At no
 * time will the author accept any form of liability for any damages,
 * however caused, resulting from the use of this software.
 *
 */

Files: lib/libc/mingw/stdio/mingw_snprintf.c
/* snprintf.c
 *
 * $Id: snprintf.c,v 1.3 2008/07/28 23:24:20 keithmarshall Exp $
 *
 * Provides an implementation of the "snprintf" function, conforming
 * generally to C99 and SUSv3/POSIX specifications, with extensions
 * to support Microsoft's non-standard format specifications.  This
 * is included in libmingwex.a, replacing the redirection through
 * libmoldnames.a, to the MSVCRT standard "_snprintf" function; (the
 * standard MSVCRT function remains available, and may  be invoked
 * directly, using this fully qualified form of its name).
 *
 * Written by Keith Marshall <keithmarshall@users.sourceforge.net>
 *
 * This is free software.  You may redistribute and/or modify it as you
 * see fit, without restriction of copyright.
 *
 * This software is provided "as is", in the hope that it may be useful,
 * but WITHOUT WARRANTY OF ANY KIND, not even any implied warranty of
 * MERCHANTABILITY, nor of FITNESS FOR ANY PARTICULAR PURPOSE.  At no
 * time will the author accept any form of liability for any damages,
 * however caused, resulting from the use of this software.
 *
 */

Files: lib/libc/mingw/stdio/mingw_sprintf.c
/* sprintf.c
 *
 * $Id: sprintf.c,v 1.1 2008/08/11 22:41:55 keithmarshall Exp $
 *
 * Provides an implementation of the "sprintf" function, conforming
 * generally to C99 and SUSv3/POSIX specifications, with extensions
 * to support Microsoft's non-standard format specifications.  This
 * is included in libmingwex.a, whence it may replace the Microsoft
 * function of the same name.
 *
 * Written by Keith Marshall <keithmarshall@users.sourceforge.net>
 *
 * This implementation of "sprintf" will normally be invoked by calling
 * "__mingw_sprintf()" in preference to a direct reference to "sprintf()"
 * itself; this leaves the MSVCRT implementation as the default, which
 * will be deployed when user code invokes "sprint()".  Users who then
 * wish to use this implementation may either call "__mingw_sprintf()"
 * directly, or may use conditional preprocessor defines, to redirect
 * references to "sprintf()" to "__mingw_sprintf()".
 *
 * Compiling this module with "-D INSTALL_AS_DEFAULT" will change this
 * recommended convention, such that references to "sprintf()" in user
 * code will ALWAYS be redirected to "__mingw_sprintf()"; if this option
 * is adopted, then users wishing to use the MSVCRT implementation of
 * "sprintf()" will be forced to use a "back-door" mechanism to do so.
 * Such a "back-door" mechanism is provided with MinGW, allowing the
 * MSVCRT implementation to be called as "__msvcrt_sprintf()"; however,
 * since users may not expect this behaviour, a standard libmingwex.a
 * installation does not employ this option.
 *
 *
 * This is free software.  You may redistribute and/or modify it as you
 * see fit, without restriction of copyright.
 *
 * This software is provided "as is", in the hope that it may be useful,
 * but WITHOUT WARRANTY OF ANY KIND, not even any implied warranty of
 * MERCHANTABILITY, nor of FITNESS FOR ANY PARTICULAR PURPOSE.  At no
 * time will the author accept any form of liability for any damages,
 * however caused, resulting from the use of this software.
 *
 */

Files: lib/libc/mingw/stdio/mingw_vfprintf.c
/* vfprintf.c
 *
 * $Id: vfprintf.c,v 1.1 2008/08/11 22:41:55 keithmarshall Exp $
 *
 * Provides an implementation of the "vfprintf" function, conforming
 * generally to C99 and SUSv3/POSIX specifications, with extensions
 * to support Microsoft's non-standard format specifications.  This
 * is included in libmingwex.a, whence it may replace the Microsoft
 * function of the same name.
 *
 * Written by Keith Marshall <keithmarshall@users.sourceforge.net>
 *
 * This implementation of "vfprintf" will normally be invoked by calling
 * "__mingw_vfprintf()" in preference to a direct reference to "vfprintf()"
 * itself; this leaves the MSVCRT implementation as the default, which
 * will be deployed when user code invokes "vfprint()".  Users who then
 * wish to use this implementation may either call "__mingw_vfprintf()"
 * directly, or may use conditional preprocessor defines, to redirect
 * references to "vfprintf()" to "__mingw_vfprintf()".
 *
 * Compiling this module with "-D INSTALL_AS_DEFAULT" will change this
 * recommended convention, such that references to "vfprintf()" in user
 * code will ALWAYS be redirected to "__mingw_vfprintf()"; if this option
 * is adopted, then users wishing to use the MSVCRT implementation of
 * "vfprintf()" will be forced to use a "back-door" mechanism to do so.
 * Such a "back-door" mechanism is provided with MinGW, allowing the
 * MSVCRT implementation to be called as "__msvcrt_vfprintf()"; however,
 * since users may not expect this behaviour, a standard libmingwex.a
 * installation does not employ this option.
 *
 *
 * This is free software.  You may redistribute and/or modify it as you
 * see fit, without restriction of copyright.
 *
 * This software is provided "as is", in the hope that it may be useful,
 * but WITHOUT WARRANTY OF ANY KIND, not even any implied warranty of
 * MERCHANTABILITY, nor of FITNESS FOR ANY PARTICULAR PURPOSE.  At no
 * time will the author accept any form of liability for any damages,
 * however caused, resulting from the use of this software.
 *
 */

Files: lib/libc/mingw/stdio/mingw_vfscanf.c, lib/libc/mingw/stdio/mingw_wvfscanf.c
/*
 This Software is provided under the Zope Public License (ZPL) Version 2.1.

 Copyright (c) 2011 by the mingw-w64 project

 See the AUTHORS file for the list of contributors to the mingw-w64 project.

 This license has been certified as open source. It has also been designated
 as GPL compatible by the Free Software Foundation (FSF).

 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions are met:

   1. Redistributions in source code must retain the accompanying copyright
      notice, this list of conditions, and the following disclaimer.
   2. Redistributions in binary form must reproduce the accompanying
      copyright notice, this list of conditions, and the following disclaimer
      in the documentation and/or other materials provided with the
      distribution.
   3. Names of the copyright holders must not be used to endorse or promote
      products derived from this software without prior written permission
      from the copyright holders.
   4. The right to distribute this software or to use it for any purpose does
      not give you the right to use Servicemarks (sm) or Trademarks (tm) of
      the copyright holders.  Use of them is covered by separate agreement
      with the copyright holders.
   5. If any files are modified, you must cause the modified files to carry
      prominent notices stating that you changed the files and the date of
      any change.

 Disclaimer

 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED
 OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
 EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 
 OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

Files: lib/libc/mingw/stdio/mingw_vprintf.c
/* vprintf.c
 *
 * $Id: vprintf.c,v 1.1 2008/08/11 22:41:55 keithmarshall Exp $
 *
 * Provides an implementation of the "vprintf" function, conforming
 * generally to C99 and SUSv3/POSIX specifications, with extensions
 * to support Microsoft's non-standard format specifications.  This
 * is included in libmingwex.a, whence it may replace the Microsoft
 * function of the same name.
 *
 * Written by Keith Marshall <keithmarshall@users.sourceforge.net>
 *
 * This implementation of "vprintf" will normally be invoked by calling
 * "__mingw_vprintf()" in preference to a direct reference to "vprintf()"
 * itself; this leaves the MSVCRT implementation as the default, which
 * will be deployed when user code invokes "vprint()".  Users who then
 * wish to use this implementation may either call "__mingw_vprintf()"
 * directly, or may use conditional preprocessor defines, to redirect
 * references to "vprintf()" to "__mingw_vprintf()".
 *
 * Compiling this module with "-D INSTALL_AS_DEFAULT" will change this
 * recommended convention, such that references to "vprintf()" in user
 * code will ALWAYS be redirected to "__mingw_vprintf()"; if this option
 * is adopted, then users wishing to use the MSVCRT implementation of
 * "vprintf()" will be forced to use a "back-door" mechanism to do so.
 * Such a "back-door" mechanism is provided with MinGW, allowing the
 * MSVCRT implementation to be called as "__msvcrt_vprintf()"; however,
 * since users may not expect this behaviour, a standard libmingwex.a
 * installation does not employ this option.
 *
 *
 * This is free software.  You may redistribute and/or modify it as you
 * see fit, without restriction of copyright.
 *
 * This software is provided "as is", in the hope that it may be useful,
 * but WITHOUT WARRANTY OF ANY KIND, not even any implied warranty of
 * MERCHANTABILITY, nor of FITNESS FOR ANY PARTICULAR PURPOSE.  At no
 * time will the author accept any form of liability for any damages,
 * however caused, resulting from the use of this software.
 *
 */

Files: lib/libc/mingw/stdio/mingw_vsnprintf.c
/* vsnprintf.c
 *
 * $Id: vsnprintf.c,v 1.3 2008/07/28 23:24:20 keithmarshall Exp $
 *
 * Provides an implementation of the "vsnprintf" function, conforming
 * generally to C99 and SUSv3/POSIX specifications, with extensions
 * to support Microsoft's non-standard format specifications.  This
 * is included in libmingwex.a, replacing the redirection through
 * libmoldnames.a, to the MSVCRT standard "_vsnprintf" function; (the
 * standard MSVCRT function remains available, and may  be invoked
 * directly, using this fully qualified form of its name).
 *
 * Written by Keith Marshall <keithmarshall@users.sourceforge.net>
 *
 * This is free software.  You may redistribute and/or modify it as you
 * see fit, without restriction of copyright.
 *
 * This software is provided "as is", in the hope that it may be useful,
 * but WITHOUT WARRANTY OF ANY KIND, not even any implied warranty of
 * MERCHANTABILITY, nor of FITNESS FOR ANY PARTICULAR PURPOSE.  At no
 * time will the author accept any form of liability for any damages,
 * however caused, resulting from the use of this software.
 *
 */

Files: lib/libc/mingw/stdio/mingw_vsprintf.c
/* vsprintf.c
 *
 * $Id: vsprintf.c,v 1.1 2008/08/11 22:41:55 keithmarshall Exp $
 *
 * Provides an implementation of the "vsprintf" function, conforming
 * generally to C99 and SUSv3/POSIX specifications, with extensions
 * to support Microsoft's non-standard format specifications.  This
 * is included in libmingwex.a, whence it may replace the Microsoft
 * function of the same name.
 *
 * Written by Keith Marshall <keithmarshall@users.sourceforge.net>
 *
 * This implementation of "vsprintf" will normally be invoked by calling
 * "__mingw_vsprintf()" in preference to a direct reference to "vsprintf()"
 * itself; this leaves the MSVCRT implementation as the default, which
 * will be deployed when user code invokes "vsprint()".  Users who then
 * wish to use this implementation may either call "__mingw_vsprintf()"
 * directly, or may use conditional preprocessor defines, to redirect
 * references to "vsprintf()" to "__mingw_vsprintf()".
 *
 * Compiling this module with "-D INSTALL_AS_DEFAULT" will change this
 * recommended convention, such that references to "vsprintf()" in user
 * code will ALWAYS be redirected to "__mingw_vsprintf()"; if this option
 * is adopted, then users wishing to use the MSVCRT implementation of
 * "vsprintf()" will be forced to use a "back-door" mechanism to do so.
 * Such a "back-door" mechanism is provided with MinGW, allowing the
 * MSVCRT implementation to be called as "__msvcrt_vsprintf()"; however,
 * since users may not expect this behaviour, a standard libmingwex.a
 * installation does not employ this option.
 *
 *
 * This is free software.  You may redistribute and/or modify it as you
 * see fit, without restriction of copyright.
 *
 * This software is provided "as is", in the hope that it may be useful,
 * but WITHOUT WARRANTY OF ANY KIND, not even any implied warranty of
 * MERCHANTABILITY, nor of FITNESS FOR ANY PARTICULAR PURPOSE.  At no
 * time will the author accept any form of liability for any damages,
 * however caused, resulting from the use of this software.
 *
 */

Files: lib/libc/mingw/stdio/strtok_r.c
/*-
 * Copyright (c) 1998 Softweyr LLC.  All rights reserved.
 *
 * strtok_r, from Berkeley strtok
 * Oct 13, 1998 by Wes Peters <wes@softweyr.com>
 *
 * Copyright (c) 1988, 1993
 *	The Regents of the University of California.  All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notices, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notices, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 * 3. Neither the name of the University nor the names of its contributors
 *    may be used to endorse or promote products derived from this software
 *    without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY SOFTWEYR LLC, THE REGENTS AND CONTRIBUTORS
 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
 * PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL SOFTWEYR LLC, THE
 * REGENTS, OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
 * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */