From 6b8fa543106f55cc4bc193b9271337ab8d97aa1f Mon Sep 17 00:00:00 2001 From: Tom Rhodes Date: Mon, 27 Jun 2005 01:54:40 +0000 Subject: MFC: According to the information on: http://www.opengroup.org/onlinepubs/009695399/functions/swab.html the prototype for swab() should be in and not in . Move it, and update to match SUS. Leave the prototype in string.h for now, for backwards compat. PR: 74751 Submitted by: Craig Rodrigues Discussed with: das --- lib/libc/string/swab.3 | 6 +++--- lib/libc/string/swab.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/libc') diff --git a/lib/libc/string/swab.3 b/lib/libc/string/swab.3 index 4d27e17d5b3f..b709a7ea4427 100644 --- a/lib/libc/string/swab.3 +++ b/lib/libc/string/swab.3 @@ -32,7 +32,7 @@ .\" @(#)swab.3 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd June 4, 1993 +.Dd June 26, 2005 .Dt SWAB 3 .Os .Sh NAME @@ -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 diff --git a/lib/libc/string/swab.c b/lib/libc/string/swab.c index aa6f2682c01b..8c0c43febfde 100644 --- a/lib/libc/string/swab.c +++ b/lib/libc/string/swab.c @@ -40,10 +40,10 @@ static char sccsid[] = "@(#)swab.c 8.1 (Berkeley) 6/4/93"; #include __FBSDID("$FreeBSD$"); -#include +#include void -swab(const void * __restrict from, void * __restrict to, size_t len) +swab(const void * __restrict from, void * __restrict to, ssize_t len) { unsigned long temp; int n; -- cgit v1.3