diff options
author | guenther <> | 2024-08-03 20:13:23 +0000 |
---|---|---|
committer | guenther <> | 2024-08-03 20:13:23 +0000 |
commit | 172e3add77ca1afbcd9a209b8820a29ab2081c89 (patch) | |
tree | dd110aae5fa80e2f190ec575ab37ce40f1774a8b /src/lib/libc/string/memmem.3 | |
parent | ae839ab833fa589a30c08d882a2c96e7bedec358 (diff) | |
download | openbsd-172e3add77ca1afbcd9a209b8820a29ab2081c89.tar.gz openbsd-172e3add77ca1afbcd9a209b8820a29ab2081c89.tar.bz2 openbsd-172e3add77ca1afbcd9a209b8820a29ab2081c89.zip |
The improbable occurred: strlcpy(3) and strlcat(3) are in POSIX-2024.
memmem(3) was also added. Update #include visibility and manpages
and add restrict qualifiers.
"never thought I'd see this day" millert@
Diffstat (limited to 'src/lib/libc/string/memmem.3')
-rw-r--r-- | src/lib/libc/string/memmem.3 | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/libc/string/memmem.3 b/src/lib/libc/string/memmem.3 index 3f17859083..de62d738de 100644 --- a/src/lib/libc/string/memmem.3 +++ b/src/lib/libc/string/memmem.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: memmem.3,v 1.3 2020/04/16 12:40:41 claudio Exp $ | 1 | .\" $OpenBSD: memmem.3,v 1.4 2024/08/03 20:13:23 guenther Exp $ |
2 | .\" | 2 | .\" |
3 | .\" Copyright (c) 2005 Pascal Gloor <pascal.gloor@spale.com> | 3 | .\" Copyright (c) 2005 Pascal Gloor <pascal.gloor@spale.com> |
4 | .\" | 4 | .\" |
@@ -26,7 +26,7 @@ | |||
26 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 26 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
27 | .\" SUCH DAMAGE. | 27 | .\" SUCH DAMAGE. |
28 | .\" | 28 | .\" |
29 | .Dd $Mdocdate: April 16 2020 $ | 29 | .Dd $Mdocdate: August 3 2024 $ |
30 | .Dt MEMMEM 3 | 30 | .Dt MEMMEM 3 |
31 | .Os | 31 | .Os |
32 | .Sh NAME | 32 | .Sh NAME |
@@ -66,8 +66,10 @@ is returned. | |||
66 | .Xr strchr 3 , | 66 | .Xr strchr 3 , |
67 | .Xr strstr 3 | 67 | .Xr strstr 3 |
68 | .Sh STANDARDS | 68 | .Sh STANDARDS |
69 | The | ||
69 | .Fn memmem | 70 | .Fn memmem |
70 | is a GNU extension. | 71 | function conforms to |
72 | .St -p1003.1-2024 . | ||
71 | .Sh HISTORY | 73 | .Sh HISTORY |
72 | The | 74 | The |
73 | .Fn memmem | 75 | .Fn memmem |