Incorporate rmustacc's review feedback.
1 #
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
6 #
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
10 #
11
12 #
13 # Copyright 2014 Garrett D'Amore <garrett@damore.org>
14 #
15
16 #
17 # Compilation environments.
18 #
19
20 env | XPG3 | c89 | -D_XOPEN_SOURCE
21 env | XPG4 | c89 | -D_XOPEN_SOURCE -D_XOPEN_VERSION=4
22 env | SUSv1 | c89 | -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1
23 env | SUSv2 | c89 | -D_XOPEN_SOURCE=500
24 env | SUSv3 | c99 | -D_XOPEN_SOURCE=600
25 env | SUSv4 | c99 | -D_XOPEN_SOURCE=700
26 env | POSIX-1990 | c89 | -D_POSIX_SOURCE
27 env | POSIX-1992 | c89 | -D_POSIX_SOURCE -D_POSIX_C_SOURCE=2
28 env | POSIX-1993 | c89 | -D_POSIX_C_SOURCE=199309L
29 env | POSIX-1995 | c89 | -D_POSIX_C_SOURCE=199506L
30 env | POSIX-2001 | c99 | -D_POSIX_C_SOURCE=200112L
31 env | POSIX-2008 | c99 | -D_POSIX_C_SOURCE=200809L
32 env | C90 | c89 |
33 env | C99 | c99 |
34
35 #
36 # These are ordered from less inclusive (most recent) to most inclusive.
37 # This allows for us to "include" by reference.
38 #
39 env_group | POSIX-2008+ | POSIX-2008
40 env_group | POSIX-2001+ | POSIX-2008+ POSIX-2001
41 env_group | POSIX-1995+ | POSIX-2001+ POSIX-1995
42 env_group | POSIX-1993+ | POSIX-1995+ POSIX-1993
43 env_group | POSIX-1992+ | POSIX-1993+ POSIX-1992
44 env_group | POSIX-1990+ | POSIX-1992+ POSIX-1990
45 env_group | POSIX+ | POSIX-1990+
46 env_group | SUSv4+ | SUSv4 POSIX-2008+
47 env_group | SUSv3+ | SUSv3 SUSv4+ POSIX-2001+
48 env_group | SUSv2+ | SUSv2 SUSv3+
49 env_group | SUSv1+ | SUSv1 SUSv2+
50 env_group | SUS+ | SUSv1+
51 env_group | XPG4+ | XPG4 SUSv1+
52 env_group | XPG3+ | XPG3 XPG4+
53 env_group | C99+ | C99 POSIX-2001+ SUSv3+
54 env_group | C+ | C90 C99 POSIX+ SUS+
55 env_group | ALL | C+
56
57 #
58 # Aliases.
59 #
60 env_group | XPG4v2 | SUSv1
61 env_group | XPG4v2+ | SUSv1+
62 env_group | XPG5 | SUSv2
63 env_group | XPG5+ | SUSv2+
64 env_group | XPG6 | SUSv3
65 env_group | XPG6+ | SUSv3+
66 env_group | XPG7 | SUSv4
67 env_group | XPG7+ | SUSv4+
--- EOF ---