Print this page
9545 Global visibility of C11 functions in C++11 and C++17


  63 using std::free;
  64 using std::getenv;
  65 using std::labs;
  66 using std::ldiv;
  67 using std::malloc;
  68 using std::mblen;
  69 using std::mbstowcs;
  70 using std::mbtowc;
  71 using std::qsort;
  72 using std::rand;
  73 using std::realloc;
  74 using std::srand;
  75 using std::strtod;
  76 using std::strtol;
  77 using std::strtoul;
  78 using std::system;
  79 using std::wcstombs;
  80 using std::wctomb;
  81 #endif
  82 












  83 #ifdef  __cplusplus
  84 extern "C" {
  85 #endif
  86 
  87 #ifndef _UID_T
  88 #define _UID_T
  89 typedef unsigned int    uid_t;          /* UID type             */
  90 #endif  /* !_UID_T */
  91 
  92 /* large file compilation environment setup */
  93 #if !defined(_LP64) && _FILE_OFFSET_BITS == 64
  94 
  95 #ifdef  __PRAGMA_REDEFINE_EXTNAME
  96 #pragma redefine_extname        mkstemp         mkstemp64
  97 #pragma redefine_extname        mkstemps        mkstemps64
  98 #pragma redefine_extname        mkostemp        mkostemp64
  99 #pragma redefine_extname        mkostemps       mkostemps64
 100 #else   /* __PRAGMA_REDEFINE_EXTNAME */
 101 #define mkstemp                 mkstemp64
 102 #define mkstemps                mkstemps64




  63 using std::free;
  64 using std::getenv;
  65 using std::labs;
  66 using std::ldiv;
  67 using std::malloc;
  68 using std::mblen;
  69 using std::mbstowcs;
  70 using std::mbtowc;
  71 using std::qsort;
  72 using std::rand;
  73 using std::realloc;
  74 using std::srand;
  75 using std::strtod;
  76 using std::strtol;
  77 using std::strtoul;
  78 using std::system;
  79 using std::wcstombs;
  80 using std::wctomb;
  81 #endif
  82 
  83 /*
  84  * Allow global visibility for symbols defined in
  85  * C++ "std" namespace in <iso/stdlib_c11.h>.
  86  */
  87 #if __cplusplus >= 201103L
  88 using std::at_quick_exit;
  89 using std::quick_exit;
  90 #endif
  91 #if __cplusplus >= 201703L
  92 using std::aligned_alloc;
  93 #endif
  94 
  95 #ifdef  __cplusplus
  96 extern "C" {
  97 #endif
  98 
  99 #ifndef _UID_T
 100 #define _UID_T
 101 typedef unsigned int    uid_t;          /* UID type             */
 102 #endif  /* !_UID_T */
 103 
 104 /* large file compilation environment setup */
 105 #if !defined(_LP64) && _FILE_OFFSET_BITS == 64
 106 
 107 #ifdef  __PRAGMA_REDEFINE_EXTNAME
 108 #pragma redefine_extname        mkstemp         mkstemp64
 109 #pragma redefine_extname        mkstemps        mkstemps64
 110 #pragma redefine_extname        mkostemp        mkostemp64
 111 #pragma redefine_extname        mkostemps       mkostemps64
 112 #else   /* __PRAGMA_REDEFINE_EXTNAME */
 113 #define mkstemp                 mkstemp64
 114 #define mkstemps                mkstemps64