NetBSD Problem Report #30503
From njoly@pasteur.fr Sat Jun 11 22:31:52 2005
Return-Path: <njoly@pasteur.fr>
Received: from electre.pasteur.fr (electre.pasteur.fr [157.99.64.120])
by narn.netbsd.org (Postfix) with ESMTP id EB2BF63B11F
for <gnats-bugs@gnats.NetBSD.org>; Sat, 11 Jun 2005 22:31:51 +0000 (UTC)
Message-Id: <20050611223424.926CC42012@cixy.dial.pasteur.fr>
Date: Sun, 12 Jun 2005 00:34:24 +0200 (CEST)
From: njoly@pasteur.fr
Reply-To: njoly@pasteur.fr
To: gnats-bugs@netbsd.org
Subject: swapctl(2) prototype does not match corresponding syscall
X-Send-Pr-Version: 3.95
>Number: 30503
>Category: lib
>Synopsis: swapctl(2) prototype does not match corresponding syscall
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: lib-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jun 11 22:32:00 +0000 2005
>Closed-Date: Sat Jun 11 22:55:15 +0000 2005
>Last-Modified: Sat Jun 11 22:55:15 +0000 2005
>Originator: Nicolas Joly
>Release: NetBSD 3.99.5
>Organization:
Institut Pasteur, Paris.
>Environment:
System: NetBSD cixy.dial.pasteur.fr 3.99.5 NetBSD 3.99.5 (CIXY) #10: Wed Jun 8 09:09:00 CEST 2005 njoly@cixy.dial.pasteur.fr:/local/src/NetBSD/obj/i386/sys/arch/i386/compile/CIXY i386
Architecture: i386
Machine: i386
>Description:
swapctl(2) prototype does not match corresponding syscall entry. The second
argument is both defined as `const void *' and `void *':
njoly@cixy [NetBSD/src]> grep swapctl include/unistd.h
int swapctl(int, const void *, int);
int swapon(const char *); /* obsoleted by swapctl() */
njoly@cixy [NetBSD/src]> grep swapctl sys/kern/syscalls.master
271 STD { int sys_swapctl(int cmd, void *arg, int misc); }
The swapctl(2) man page define the second argument as `void *', like in
syscall.master file.
>How-To-Repeat:
Run lint(1) on the following piece of code:
njoly@cixy [tmp/lint]> cat check.c
#include <unistd.h>
#include <sys/swap.h>
int main() { return 0; }
njoly@cixy [tmp/lint]> lint -chapbxzF check.c
check.c:
Lint pass2:
swapctl, arg 2 declared inconsistently llib-lc.ln :: check.c?(1)
>Fix:
n/a
>Release-Note:
>Audit-Trail:
From: Christos Zoulas <christos@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/30503 CVS commit: src/include
Date: Sat, 11 Jun 2005 22:54:43 +0000 (UTC)
Module Name: src
Committed By: christos
Date: Sat Jun 11 22:54:43 UTC 2005
Modified Files:
src/include: unistd.h
Log Message:
PR/30503: Nicolas Joly: swapctl(2) prototype does not match corresponding
syscall
To generate a diff of this commit:
cvs rdiff -r1.103 -r1.104 src/include/unistd.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: christos@netbsd.org
State-Changed-When: Sat, 11 Jun 2005 18:55:15 -0400
State-Changed-Why:
fixed, thanks
>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.