NetBSD Problem Report #20
From gnats Mon Oct 11 11:52:43 1993
Received: from localhost (jtc@localhost) by sun-lamp.cs.berkeley.edu (8.3/8.3) id LAA13940; Mon, 11 Oct 1993 11:52:43 -0700
Message-Id: <199310111852.LAA13940@sun-lamp.cs.berkeley.edu>
Date: Mon, 11 Oct 1993 11:52:43 -0700
From: "J.T. Conklin" <jtc>
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: div_t and ldiv_t types should be moved to <machine/ansi.h>
>Number: 20
>Category: lib
>Synopsis: div_t and ldiv_t types should be moved to <machine/ansi.h>
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: gnats-admin
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Mon Oct 11 12:05:05 +0000 1993
>Closed-Date: Fri Apr 22 18:08:33 +0000 1994
>Last-Modified:
>Originator: J.T. Conklin
>Release: NetBSD-0.9
>Organization:
Winning Strategies, Inc.
>Environment:
System: NetBSD sun-lamp.cs.berkeley.edu 0.9a SUN_LAMP#6 i386
>Description:
If the div_t and ldiv_t types are moved to <machine/ansi.h>, the
order of the quot and rem field could be changed to match the
best order for use with assembly language versions of the
div() and ldiv() functions.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: jtc
State-Changed-When: Fri Apr 22 18:08:33 1994
State-Changed-Why:
This bug report has been open for a long time. Even though the "fix"
is simple, I haven't been able to convince myself to go ahead and do
it. Possibly because no matter how much div & ldiv are optimized, it
isn't going to make a difference for "real" programs.
>Unformatted:
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: <stdlib.h>: div_t and ldiv_t types should be moved to <machine/ansi.h>
From: jtc@sun-lamp.cs.berkeley.edu
Reply-To: jtc@sun-lamp.cs.berkeley.edu
X-send-pr-version: 3.01
(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.