NetBSD Problem Report #43172
From jruohone@gmail.com Sat Apr 17 09:37:46 2010
Return-Path: <jruohone@gmail.com>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id E383363B8BC
for <gnats-bugs@gnats.netbsd.org>; Sat, 17 Apr 2010 09:37:45 +0000 (UTC)
Message-Id: <20100417093158.C341F2A59@marx.bitnet>
Date: Sat, 17 Apr 2010 12:31:58 +0300 (EEST)
From: Jukka Ruohonen <jruohonen@iki.fi>
Sender: a b <jruohone@gmail.com>
Reply-To: jruohonen@iki.fi
To: gnats-bugs@gnats.NetBSD.org
Subject: swab(3) lacks restrict-keyword
X-Send-Pr-Version: 3.95
>Number: 43172
>Category: lib
>Synopsis: swab(3) lacks restrict-keyword
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: lib-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Apr 17 09:40:01 +0000 2010
>Closed-Date: Sat Apr 17 17:49:15 +0000 2010
>Last-Modified: Sat Apr 17 17:50:02 +0000 2010
>Originator: Jukka Ruohonen
>Release: 5.99.27
>Organization:
-
>Environment:
-
>Description:
According to POSIX, the restrict-keyword should appear in swab(3).
See: http://www.opengroup.org/onlinepubs/009695399/
As a footnote: for example FreeBSD has already added the keyword.
>How-To-Repeat:
Code inspection, swab(3).
>Fix:
Add the keyword.
>Release-Note:
>Audit-Trail:
From: Jukka Ruohonen <jruohonen@iki.fi>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: lib/43172: swab(3) lacks restrict-keyword
Date: Sat, 17 Apr 2010 12:42:33 +0300
I am not sure if this is relevant, but our implementation also differs from
others (namely, FreeBSD and Linux) in that the third parameter is of type
size_t instead of ssize_t.
From: Martin Husemann <martin@duskware.de>
To: gnats-bugs@NetBSD.org
Cc: lib-bug-people@netbsd.org, gnats-admin@netbsd.org,
netbsd-bugs@netbsd.org, jruohonen@iki.fi
Subject: Re: lib/43172: swab(3) lacks restrict-keyword
Date: Sat, 17 Apr 2010 12:30:57 +0200
On Sat, Apr 17, 2010 at 09:45:01AM +0000, Jukka Ruohonen wrote:
> I am not sure if this is relevant, but our implementation also differs from
> others (namely, FreeBSD and Linux) in that the third parameter is of type
> size_t instead of ssize_t.
ssize_t makes no sense here.
Martin
State-Changed-From-To: open->closed
State-Changed-By: christos@NetBSD.org
State-Changed-When: Sat, 17 Apr 2010 13:49:15 -0400
State-Changed-Why:
fixed, thanks
From: Christos Zoulas <christos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/43172 CVS commit: src/include
Date: Sat, 17 Apr 2010 13:48:34 -0400
Module Name: src
Committed By: christos
Date: Sat Apr 17 17:48:34 UTC 2010
Modified Files:
src/include: unistd.h
Log Message:
PR/43172: Jukka Ruohonen: swab(3) lacks restrict-keyword
To generate a diff of this commit:
cvs rdiff -u -r1.121 -r1.122 src/include/unistd.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.