Print this page
Incorporate rmustacc's review feedback.

Split Close
Expand all
Collapse all
          --- old/usr/src/test/libc-tests/cfg/compilation.cfg
          +++ new/usr/src/test/libc-tests/cfg/compilation.cfg
↓ open down ↓ 2 lines elided ↑ open up ↑
   3    3  # Common Development and Distribution License ("CDDL"), version 1.0.
   4    4  # You may only use this file in accordance with the terms of version
   5    5  # 1.0 of the CDDL.
   6    6  #
   7    7  # A full copy of the text of the CDDL should have accompanied this
   8    8  # source.  A copy of the CDDL is also available via the Internet at
   9    9  # http://www.illumos.org/license/CDDL.
  10   10  #
  11   11  
  12   12  #
  13      -# Copyright 2014 Garrett D'Amore <garrett@damore.org>
       13 +# Copyright 2015 Garrett D'Amore <garrett@damore.org>
  14   14  #
  15   15  
  16   16  #
  17   17  # Compilation environments.
  18   18  #
       19 +# Each compilation environment is declared using the keyword "env", like
       20 +# this:
       21 +#
       22 +# env | <name> | <std> | <defs>
       23 +#
       24 +# <name> is just a symbolic name for environment.
       25 +# <std>  indicates either c89 or c99, i.e. which C standard to compile
       26 +#        under.  This infuences choice of compiler and switches.
       27 +# <defs> is a list of CPP style -D or -U flags to define C preprocessor
       28 +#        symbols.
       29 +#
       30 +# Groups of compilation environments can be named, using the "env_group"
       31 +# keyword (this can also be used to create aliases):
       32 +#
       33 +# env_group | <name> | <envs>
       34 +#
       35 +# <name> is a name for the group or alias
       36 +# <envs> is a whitespace separated list of previously declared environments
       37 +#        or environment groups (or aliases).
       38 +#
  19   39  
  20   40  env | XPG3              | c89 | -D_XOPEN_SOURCE
  21   41  env | XPG4              | c89 | -D_XOPEN_SOURCE -D_XOPEN_VERSION=4
  22   42  env | SUSv1             | c89 | -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1
  23   43  env | SUSv2             | c89 | -D_XOPEN_SOURCE=500
  24   44  env | SUSv3             | c99 | -D_XOPEN_SOURCE=600
  25   45  env | SUSv4             | c99 | -D_XOPEN_SOURCE=700
  26   46  env | POSIX-1990        | c89 | -D_POSIX_SOURCE
  27   47  env | POSIX-1992        | c89 | -D_POSIX_SOURCE -D_POSIX_C_SOURCE=2
  28   48  env | POSIX-1993        | c89 | -D_POSIX_C_SOURCE=199309L
↓ open down ↓ 39 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX