Print this page
8548 want memset_s(3C)
Reviewed by: Robert Mustacchi <rm@joyent.com>


  48 /*
  49  * Work around fix-includes and other bad actors with using multiple headers.
  50  */
  51 #if !defined(_NORETURN_KYWD)
  52 #if __STDC_VERSION__ - 0 >= 201112L
  53 #define _NORETURN_KYWD  _Noreturn
  54 #else
  55 #define _NORETURN_KYWD
  56 #endif  /* __STDC_VERSION__ - 0 >= 201112L */
  57 #endif  /* !defined(_NORETURN_KYWD) */
  58 
  59 #if !defined(_STRICT_SYMBOLS) || defined(_STDC_C11)
  60 extern void *aligned_alloc(size_t, size_t);
  61 #endif /* !_STRICT_SYMBOLS || _STDC_C11 */
  62 
  63 #if !defined(_STRICT_SYMBOLS) || defined(_STDC_C11) || __cplusplus >= 201103L
  64 extern int at_quick_exit(void (*)(void));
  65 extern _NORETURN_KYWD void quick_exit(int);
  66 #endif /* !_STRICT_SYMBOLS || _STDC_C11 || __cplusplus >= 201103L */
  67 




















  68 #if __cplusplus >= 199711L
  69 }
  70 #endif
  71 
  72 #ifdef __cplusplus
  73 }
  74 #endif
  75 
  76 #endif /* _ISO_STDLIB_C11_H */


  48 /*
  49  * Work around fix-includes and other bad actors with using multiple headers.
  50  */
  51 #if !defined(_NORETURN_KYWD)
  52 #if __STDC_VERSION__ - 0 >= 201112L
  53 #define _NORETURN_KYWD  _Noreturn
  54 #else
  55 #define _NORETURN_KYWD
  56 #endif  /* __STDC_VERSION__ - 0 >= 201112L */
  57 #endif  /* !defined(_NORETURN_KYWD) */
  58 
  59 #if !defined(_STRICT_SYMBOLS) || defined(_STDC_C11)
  60 extern void *aligned_alloc(size_t, size_t);
  61 #endif /* !_STRICT_SYMBOLS || _STDC_C11 */
  62 
  63 #if !defined(_STRICT_SYMBOLS) || defined(_STDC_C11) || __cplusplus >= 201103L
  64 extern int at_quick_exit(void (*)(void));
  65 extern _NORETURN_KYWD void quick_exit(int);
  66 #endif /* !_STRICT_SYMBOLS || _STDC_C11 || __cplusplus >= 201103L */
  67 
  68 #if __EXT1_VISIBLE
  69 
  70 #ifndef _ERRNO_T_DEFINED
  71 #define _ERRNO_T_DEFINED
  72 typedef int errno_t;
  73 #endif
  74 
  75 /* K.3.6 */
  76 typedef void (*constraint_handler_t)(const char *_RESTRICT_KYWD,
  77     void *_RESTRICT_KYWD, errno_t);
  78 /* K.3.6.1.1 */
  79 extern constraint_handler_t set_constraint_handler_s(constraint_handler_t);
  80 /* K.3.6.1.2 */
  81 extern _NORETURN_KYWD void abort_handler_s(const char *_RESTRICT_KYWD,
  82     void *_RESTRICT_KYWD, errno_t);
  83 /* K3.6.1.3 */
  84 extern void ignore_handler_s(const char *_RESTRICT_KYWD, void *_RESTRICT_KYWD,
  85     errno_t);
  86 #endif  /* __EXT1_VISIBLE */
  87 
  88 #if __cplusplus >= 199711L
  89 }
  90 #endif
  91 
  92 #ifdef __cplusplus
  93 }
  94 #endif
  95 
  96 #endif /* _ISO_STDLIB_C11_H */