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

Split Close
Expand all
Collapse all
          --- old/usr/src/head/iso/string_iso.h
          +++ new/usr/src/head/iso/string_iso.h
↓ open down ↓ 135 lines elided ↑ open up ↑
 136  136  }
 137  137  #endif  /* _STRSTR_INLINE */
 138  138  #else /* __cplusplus >= 199711L */
 139  139  extern void *memchr(const void *, int, size_t);
 140  140  extern char *strchr(const char *, int);
 141  141  extern char *strpbrk(const char *, const char *);
 142  142  extern char *strrchr(const char *, int);
 143  143  extern char *strstr(const char *, const char *);
 144  144  #endif /* __cplusplus >= 199711L */
 145  145  
      146 +#if __EXT1_VISIBLE
      147 +
      148 +#ifndef _RSIZE_T_DEFINED
      149 +#define _RSIZE_T_DEFINED
      150 +typedef size_t rsize_t;
      151 +#endif
      152 +
      153 +#ifndef _ERRNO_T_DEFINED
      154 +#define _ERRNO_T_DEFINED
      155 +typedef int errno_t;
      156 +#endif
      157 +
      158 +/* ISO/IEC 9899:2011 K.3.7.4.1.1 */
      159 +extern errno_t memset_s(void *, rsize_t, int, rsize_t);
      160 +#endif  /* __EXT1_VISIBLE */
      161 +
 146  162  #if __cplusplus >= 199711L
 147  163  }
 148  164  #endif /* end of namespace std */
 149  165  
 150  166  #ifdef  __cplusplus
 151  167  }
 152  168  #endif
 153  169  
 154  170  #endif  /* _ISO_STRING_ISO_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX