NetBSD Problem Report #5837
Received: (qmail 22197 invoked from network); 25 Jul 1998 01:20:54 -0000
Message-Id: <199807250120.VAAAA12820@hrothgar.gw.com>
Date: Fri, 24 Jul 1998 21:20:52 -0400 (EDT)
From: Kimmo Suominen <kim@tac.nyc.ny.us>
To: gnats-bugs@gnats.netbsd.org
Subject: return type mismatch for __syscall
X-Send-Pr-Version: 3.95
>Number: 5837
>Category: lib
>Synopsis: return type mismatch for __syscall
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: mycroft
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jul 24 18:35:00 +0000 1998
>Closed-Date: Tue Jul 28 19:04:54 +0000 1998
>Last-Modified: Tue Jul 28 19:05:33 +0000 1998
>Originator: Kimmo Suominen
>Release: NetBSD-current 1998-07-24
>Organization:
<A HREF="http://www.tac.nyc.ny.us/~kim/">Kimmo Suominen</A>
>Environment:
System: NetBSD hrothgar.gw.com 1.3F NetBSD 1.3F (TAC-GENERIC) #4: Fri Jul 24 16:14:56 EDT 1998 kim@hrothgar.gw.com:/net/hrothgar/src-1/NetBSD/cvsroot/src/sys/arch/i386/compile/TAC-GENERIC i386
>Description:
The header files /usr/src/lib/csu/common.h and /usr/src/include/unistd.h
disagree of the return type of __syscall -- does it return an int or a quad?
>How-To-Repeat:
cd /usr/src
make includes
cd lib
make
... and you'll get an error compiling lib/csu/i386/crt0.c
>Fix:
One of the declarations must be changed, but I'm not going to guess which.
This is not actually an error in either of the two cited files.
They define completely different functions which have different
calling patterns. (The __syscall() in crt0 is actually equivalent
to the syscall() in libc.) I have corrected crt0 to not pull in
unistd.h, and therefore prevent the name clash. - mycroft
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback
State-Changed-By: mycroft
State-Changed-When: Fri Jul 24 21:49:59 PDT 1998
State-Changed-Why:
I believe I've fixed this.
Responsible-Changed-From-To: lib-bug-people->mycroft
Responsible-Changed-By: mycroft
Responsible-Changed-When: Fri Jul 24 21:49:59 PDT 1998
Responsible-Changed-Why:
State-Changed-From-To: feedback->closed
State-Changed-By: mycroft
State-Changed-When: Tue Jul 28 12:04:54 PDT 1998
State-Changed-Why:
Fixed.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.