NetBSD Problem Report #60136

From www@netbsd.org  Thu Mar 26 11:04:24 2026
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits)
	 client-signature RSA-PSS (2048 bits))
	(Client CN "mail.netbsd.org", Issuer "R12" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id A8ECF1A9239
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 26 Mar 2026 11:04:24 +0000 (UTC)
Message-Id: <20260326110423.B940E1A923D@mollari.NetBSD.org>
Date: Thu, 26 Mar 2026 11:04:23 +0000 (UTC)
From: imuwoto@gmail.com
Reply-To: imuwoto@gmail.com
To: gnats-bugs@NetBSD.org
Subject: makedev(3) is still saying major is 0-255
X-Send-Pr-Version: www-1.0
X-From4GNATS: "imuwoto@gmail.com via gnats" <gnats-admin@NetBSD.org>

>Number:         60136
>Category:       kern
>Synopsis:       makedev(3) is still saying major is 0-255
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 26 11:05:00 +0000 2026
>Last-Modified:  Thu Apr 09 16:15:01 +0000 2026
>Originator:     YAMAMOTO Takashi
>Release:        11.0 rc1
>Organization:
>Environment:
>Description:
makedev(3) says:

RETURN VALUES
     The major() macro returns a device major number that has a value between
     0 and 255.  The minor() macro returns a device minor number whose value
     can span the complete range of an int.

but we actually have major > 255.
>How-To-Repeat:

>Fix:
stop specifying the value range?

>Audit-Trail:
From: "Christos Zoulas" <christos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/60136 CVS commit: src/share/man/man3
Date: Thu, 9 Apr 2026 12:10:49 -0400

 Module Name:	src
 Committed By:	christos
 Date:		Thu Apr  9 16:10:49 UTC 2026

 Modified Files:
 	src/share/man/man3: makedev.3

 Log Message:
 PR/60136: Yamamoto Takashi: Document major/minor to reflect reality.


 To generate a diff of this commit:
 cvs rdiff -u -r1.2 -r1.3 src/share/man/man3/makedev.3

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

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.