Print this page
remove support for non-ANSI compilation
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/head/poll.h
+++ new/usr/src/head/poll.h
1 1 /*
2 2 * CDDL HEADER START
3 3 *
4 4 * The contents of this file are subject to the terms of the
5 5 * Common Development and Distribution License (the "License").
6 6 * You may not use this file except in compliance with the License.
7 7 *
8 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 * or http://www.opensolaris.org/os/licensing.
10 10 * See the License for the specific language governing permissions
11 11 * and limitations under the License.
12 12 *
↓ open down ↓ |
12 lines elided |
↑ open up ↑ |
13 13 * When distributing Covered Code, include this CDDL HEADER in each
14 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 * If applicable, add the following below this CDDL HEADER, with the
16 16 * fields enclosed by brackets "[]" replaced with your own identifying
17 17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 18 *
19 19 * CDDL HEADER END
20 20 */
21 21
22 22 /*
23 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
23 24 * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
24 25 */
25 26
26 27 /* Copyright (c) 1988 AT&T */
27 28 /* All Rights Reserved */
28 29
29 30 #ifndef _POLL_H
30 31 #define _POLL_H
31 32
32 33 /*
33 34 * Poll system call interface definitions.
34 35 */
35 36
36 37 #include <sys/feature_tests.h>
37 38 #include <sys/poll.h>
38 39 #if defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX)
↓ open down ↓ |
6 lines elided |
↑ open up ↑ |
39 40 #include <time.h>
40 41 #include <signal.h>
41 42 #endif /* defined(__EXTENSIONS__) ... */
42 43
43 44 #ifdef __cplusplus
44 45 extern "C" {
45 46 #endif
46 47
47 48 #if defined(__EXTENSIONS__) || !defined(__XOPEN_OR_POSIX)
48 49
49 -#if defined(__STDC__)
50 -
51 50 extern int ppoll(struct pollfd *_RESTRICT_KYWD, nfds_t,
52 51 const struct timespec *_RESTRICT_KYWD, const sigset_t *_RESTRICT_KYWD);
53 52
54 -#else /* __STDC__ */
55 -
56 -extern int ppoll();
57 -
58 -#endif /* __STDC__ */
59 -
60 53 #endif /* defined(__EXTENSIONS__) ... */
61 54
62 55 #ifdef __cplusplus
63 56 }
64 57 #endif
65 58
66 59 #endif /* _POLL_H */
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX