Print this page
Finished obsoleting interfaces for XPG7.

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/feature_tests.h
          +++ new/usr/src/uts/common/sys/feature_tests.h
↓ open down ↓ 323 lines elided ↑ open up ↑
 324  324  #define _XPG4_2
 325  325  #define _XPG4
 326  326  #define _XPG3
 327  327  #undef  _POSIX_C_SOURCE
 328  328  #define _POSIX_C_SOURCE                 200809L
 329  329  #undef  _XOPEN_SOURCE
 330  330  #define _XOPEN_SOURCE                   700
 331  331  #endif
 332  332  
 333  333  /*
      334 + * As another simplification attempt for the rest of our headers, we
      335 + * define the following macros to indicate that a specific XPG standard
      336 + * is in force, AND symbols should be restricted.  This lets us prune
      337 + * symbols that should not be visible under a given standard.  These should
      338 + * not be used by applications directly.
      339 + */
      340 +#if defined(_STRICT_SYMBOLS) && defined(_XPG3)
      341 +#define _STRICT_XPG3
      342 +#endif
      343 +#if defined(_STRICT_SYMBOLS) && defined(_XPG4)
      344 +#define _STRICT_XPG4
      345 +#endif
      346 +#if defined(_STRICT_SYMBOLS) && defined(_XPG4_2)
      347 +#define _STRICT_XPG4_2
      348 +#endif
      349 +#if defined(_STRICT_SYMBOLS) && defined(_XPG5)
      350 +#define _STRICT_XPG5
      351 +#endif
      352 +#if defined(_STRICT_SYMBOLS) && defined(_XPG6)
      353 +#define _STRICT_XPG6
      354 +#endif
      355 +#if defined(_STRICT_SYMBOLS) && defined(_XPG7)
      356 +#define _STRICT_XPG7
      357 +#endif
      358 +
      359 +/*
 334  360   * _XOPEN_VERSION is defined by the X/Open specifications and is not
 335  361   * normally defined by the application, except in the case of an XPG4
 336  362   * application.  On the implementation side, _XOPEN_VERSION defined with
 337  363   * the value of 3 indicates an XPG3 application. _XOPEN_VERSION defined
 338  364   * with the value of 4 indicates an XPG4 or XPG4v2 (UNIX 95) application.
 339  365   * _XOPEN_VERSION  defined with a value of 500 indicates an XPG5 (UNIX 98)
 340  366   * application and with a value of 600 indicates an XPG6 (UNIX 03)
 341  367   * application and with a value of 700 indicates an XPG7 (UNIX 08).
 342  368   * The appropriate version is determined by the use of the
 343  369   * feature test macros described earlier.  The value of _XOPEN_VERSION
↓ open down ↓ 88 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX