summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/swab.3
diff options
context:
space:
mode:
authortrhodes <trhodes@FreeBSD.org>2004-12-10 15:24:40 +0000
committertrhodes <trhodes@FreeBSD.org>2004-12-10 15:24:40 +0000
commita659824fbd6d00f76ce4d0f880227ba26abfa7b8 (patch)
treeecddfa78aa35a2badcb1a43b4e07713a73436f7a /lib/libc/string/swab.3
parentd78a3892e06435d8bab8c6519f9c7d54ea83654d (diff)
downloadFreeBSD-src-a659824fbd6d00f76ce4d0f880227ba26abfa7b8.zip
FreeBSD-src-a659824fbd6d00f76ce4d0f880227ba26abfa7b8.tar.gz
According to the information on:
http://www.opengroup.org/onlinepubs/009695399/functions/swab.html the prototype for swab() should be in <unistd.h> and not in <string.h>. Move it, and update to match SUS. Leave the prototype in string.h for now, for backwards compat. PR: 74751 Submitted by: Craig Rodrigues <rodrigc@crodrigues.org> Discussed with: das
Diffstat (limited to 'lib/libc/string/swab.3')
-rw-r--r--lib/libc/string/swab.34
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/string/swab.3 b/lib/libc/string/swab.3
index 4d27e17..93d879d 100644
--- a/lib/libc/string/swab.3
+++ b/lib/libc/string/swab.3
@@ -41,9 +41,9 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.In string.h
+.In unistd.h
.Ft void
-.Fn swab "const void * restrict src" "void * restrict dst" "size_t len"
+.Fn swab "const void * restrict src" "void * restrict dst" "ssize_t len"
.Sh DESCRIPTION
The function
.Fn swab
OpenPOWER on IntegriCloud