summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/fwprintf.c
diff options
context:
space:
mode:
authorstsp <stsp@openbsd.org>2011-04-24 08:54:02 +0000
committerstsp <stsp@openbsd.org>2011-04-24 08:54:02 +0000
commit760d4ce496b5f3bec34dc4fd9c5ffddb5ebb50c8 (patch)
tree8f8ab3d0bcb3180b6b6bd709af0d00282cf63cbb /lib/libc/stdio/fwprintf.c
parentBack out wprintf diff and crank. Need to check more architectures first. (diff)
downloadwireguard-openbsd-760d4ce496b5f3bec34dc4fd9c5ffddb5ebb50c8.tar.xz
wireguard-openbsd-760d4ce496b5f3bec34dc4fd9c5ffddb5ebb50c8.zip
Back out wprintf until we've determined what to do for gcc2 and gcc3 arches.
Diffstat (limited to 'lib/libc/stdio/fwprintf.c')
-rw-r--r--lib/libc/stdio/fwprintf.c48
1 files changed, 0 insertions, 48 deletions
diff --git a/lib/libc/stdio/fwprintf.c b/lib/libc/stdio/fwprintf.c
deleted file mode 100644
index f5fa97266c8..00000000000
--- a/lib/libc/stdio/fwprintf.c
+++ /dev/null
@@ -1,48 +0,0 @@
-/* $OpenBSD: fwprintf.c,v 1.1 2011/04/24 07:46:58 stsp Exp $ */
-/*-
- * Copyright (c) 1990, 1993
- * The Regents of the University of California. All rights reserved.
- *
- * This code is derived from software contributed to Berkeley by
- * Chris Torek.
- *
- * 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.
- * 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 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 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.
- */
-
-#include <stdio.h>
-#include <stdarg.h>
-#include <wchar.h>
-
-int
-fwprintf(FILE * __restrict fp, const wchar_t * __restrict fmt, ...)
-{
- int ret;
- va_list ap;
-
- va_start(ap, fmt);
- ret = vfwprintf(fp, fmt, ap);
- va_end(ap);
- return (ret);
-}