Module Name: src Committed By: uwe Date: Sun Feb 4 18:44:54 UTC 2024
Modified Files: src/lib/libutil: getrawpartition.3 Log Message: getrawpartition(3): reword to clarify return value, use .Pq "'a' == 0" is, stricly speaking false, and since 'a' is an int, it's not immediately clear if it's 'a' or 0 that is returned. Try to clarify this. To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/lib/libutil/getrawpartition.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libutil/getrawpartition.3 diff -u src/lib/libutil/getrawpartition.3:1.11 src/lib/libutil/getrawpartition.3:1.12 --- src/lib/libutil/getrawpartition.3:1.11 Tue May 4 06:41:27 2010 +++ src/lib/libutil/getrawpartition.3 Sun Feb 4 18:44:54 2024 @@ -1,4 +1,4 @@ -.\" $NetBSD: getrawpartition.3,v 1.11 2010/05/04 06:41:27 jruoho Exp $ +.\" $NetBSD: getrawpartition.3,v 1.12 2024/02/04 18:44:54 uwe Exp $ .\" .\" Copyright (c) 1996 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -43,11 +43,15 @@ partition .Fn getrawpartition void .Sh DESCRIPTION .Fn getrawpartition -returns the partition number ( -.Sq a -== 0, -.Sq b -== 1, ...) of the +returns the partition number +.Po +0 for +.Ql a , +1 for +.Ql b , +etc +.Pc +of the .Dq raw partition of the system's disks, or \-1 in case of an error, setting the global