NetBSD Problem Report #7932

Received: (qmail 5061 invoked from network); 6 Jul 1999 16:49:04 -0000
Message-Id: <19990706164901.ACD97143@jekyll.piermont.com>
Date: Tue,  6 Jul 1999 12:49:01 -0400 (EDT)
From: perry@piermont.com
Reply-To: perry@piermont.com
To: gnats-bugs@gnats.netbsd.org
Subject: sbrk() man page and prototype violate XPG
X-Send-Pr-Version: 3.95

>Number:         7932
>Category:       standards
>Synopsis:       sbrk() man page and prototype violate XPG
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    standards-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 06 09:50:01 +0000 1999
>Closed-Date:    Tue Jul 13 10:27:32 +0000 1999
>Last-Modified:  Tue Jul 13 10:28:20 +0000 1999
>Originator:     Perry E. Metzger
>Release:        NetBSD-current
>Organization:
Perry Metzger		perry@piermont.com
--
"Ask not what your country can force other people to do for you."
>Environment:

System: NetBSD jekyll.piermont.com 1.4 NetBSD 1.4 (JEKYLL) #0: Mon May 3 09:58:15 EDT 1999 perry@jekyll.piermont.com:/usr/src/sys/arch/i386/compile/JEKYLL i386


>Description:

XPG says:

	void *sbrk(intptr_t incr);

We say:

	char *sbrk(int incr);

This isn't right. We should probably fix it.
>How-To-Repeat:

man sbrk
fgrep sbrk /usr/include/unistd.h

>Fix:

I'd just change it if we can safely do that. Unfortunately, it appears 
that the function signatures may need to alter for machines where a
pointer is different shape from an int.

HOWEVER, since it appears that we may need to clean up sbrk anyway
(since right now its set up weirdly -- I'm sending another PR on
that), we might be able to fix some of it at least.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: kleink 
State-Changed-When: Tue Jul 13 03:27:32 PDT 1999 
State-Changed-Why:  
Changed accordingly. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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.