Tue Jan 10 17:00:58 2017 UTC ()
Need <sys/stat.h>


(christos)
diff -r1.16 -r1.17 src/lib/libc/stdio/fdopen.c

cvs diff -r1.16 -r1.17 src/lib/libc/stdio/fdopen.c (expand / switch to unified diff)

--- src/lib/libc/stdio/fdopen.c 2012/03/15 18:22:30 1.16
+++ src/lib/libc/stdio/fdopen.c 2017/01/10 17:00:58 1.17
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: fdopen.c,v 1.16 2012/03/15 18:22:30 christos Exp $ */ 1/* $NetBSD: fdopen.c,v 1.17 2017/01/10 17:00:58 christos Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 1990, 1993 4 * Copyright (c) 1990, 1993
5 * The Regents of the University of California. All rights reserved. 5 * The Regents of the University of California. All rights reserved.
6 * 6 *
7 * This code is derived from software contributed to Berkeley by 7 * This code is derived from software contributed to Berkeley by
8 * Chris Torek. 8 * Chris Torek.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -27,32 +27,34 @@ @@ -27,32 +27,34 @@
27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 * SUCH DAMAGE. 32 * SUCH DAMAGE.
33 */ 33 */
34 34
35#include <sys/cdefs.h> 35#include <sys/cdefs.h>
36#if defined(LIBC_SCCS) && !defined(lint) 36#if defined(LIBC_SCCS) && !defined(lint)
37#if 0 37#if 0
38static char sccsid[] = "@(#)fdopen.c 8.1 (Berkeley) 6/4/93"; 38static char sccsid[] = "@(#)fdopen.c 8.1 (Berkeley) 6/4/93";
39#else 39#else
40__RCSID("$NetBSD: fdopen.c,v 1.16 2012/03/15 18:22:30 christos Exp $"); 40__RCSID("$NetBSD: fdopen.c,v 1.17 2017/01/10 17:00:58 christos Exp $");
41#endif 41#endif
42#endif /* LIBC_SCCS and not lint */ 42#endif /* LIBC_SCCS and not lint */
43 43
44#include "namespace.h" 44#include "namespace.h"
 45
45#include <sys/types.h> 46#include <sys/types.h>
 47#include <sys/stat.h>
46 48
47#include <assert.h> 49#include <assert.h>
48#include <errno.h> 50#include <errno.h>
49#include <fcntl.h> 51#include <fcntl.h>
50#include <unistd.h> 52#include <unistd.h>
51#include <stdio.h> 53#include <stdio.h>
52#include <limits.h> 54#include <limits.h>
53 55
54#include "reentrant.h" 56#include "reentrant.h"
55#include "local.h" 57#include "local.h"
56 58
57#ifdef __weak_alias 59#ifdef __weak_alias
58__weak_alias(fdopen,_fdopen) 60__weak_alias(fdopen,_fdopen)