Print this page
10229 Some man pages have incorrect cross-references
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/man/man3c/memset_s.3c.man.txt
+++ new/usr/src/man/man3c/memset_s.3c.man.txt
1 1 MEMSET_S(3C) Standard C Library Functions MEMSET_S(3C)
2 2
3 3 NAME
4 4 memset_s - copy a value to all bytes of a memory buffer
5 5
6 6 LIBRARY
7 7 Standard C Library (libc, -lc)
8 8
9 9 SYNOPSIS
10 10 #define __STDC_WANT_LIB_EXT1__ 1
11 11
12 12 #include <string.h>
13 13
14 14 errno_t
15 15 memset_s(void *s, rsize_t smax, int c, rsize_t n);
16 16
17 17 DESCRIPTION
18 18 The memset_s() function copies the value of c (converted to an unsigned
19 19 char) into each of the first n bytes of the memory buffer pointed to by
20 20 s.
21 21
22 22 Unlike the memset(3C), memset_s() is guaranteed to never be optimized
23 23 away by the compiler.
24 24
25 25 The memset_s() function detects the following runtime-constraint
26 26 violations:
27 27
28 28 1. s is a NULL pointer.
29 29
30 30 2. smax or n is greater than RSIZE_MAX.
31 31
32 32 3. n is greater than smax (buffer overflow).
33 33
34 34 If runtime-constraint violation is detected, and if s and smax are valid,
35 35 the memset_s() function copies the value of c (converted to an unsigned
36 36 char) into each of the first smax bytes of the memory buffer pointed to
37 37 by s before calling the runtime-constraint handler.
38 38
39 39 RETURN VALUES
↓ open down ↓ |
39 lines elided |
↑ open up ↑ |
40 40 The memset_s() function returns 0 if there was no runtime-constraint
41 41 violation. Otherwise, a non-zero value is returned.
42 42
43 43 INTERFACE STABILITY
44 44 Standard
45 45
46 46 MT-LEVEL
47 47 Safe
48 48
49 49 SEE ALSO
50 - memset(3C), set_constraint_handler(3C)
50 + memset(3C), set_constraint_handler_s(3C)
51 51
52 52 STANDARDS
53 53 The memset_s() function conforms to ISO/IEC 9899:2011 (``ISO C11'').
54 54
55 55 illumos August 12, 2017 illumos
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX