Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108615302
D20791.id59965.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D20791.id59965.diff
View Options
Index: head/lib/libutil/expand_number.3
===================================================================
--- head/lib/libutil/expand_number.3
+++ head/lib/libutil/expand_number.3
@@ -25,7 +25,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd August 15, 2010
+.Dd July 20, 2019
.Dt EXPAND_NUMBER 3
.Os
.Sh NAME
@@ -42,11 +42,10 @@
.Sh DESCRIPTION
The
.Fn expand_number
-function unformats the
+function parses the
.Fa buf
-string and stores a unsigned 64-bit quantity at address pointed out by the
-.Fa num
-argument.
+string and stores a unsigned 64-bit quantity at
+.Fa *num .
.Pp
The
.Fn expand_number
@@ -54,9 +53,9 @@
is case-insensitive and
follows the SI power of two convention.
.Pp
-The prefixes are:
-.Bl -column "Prefix" "Description" "1000000000000000000" -offset indent
-.It Sy "Prefix" Ta Sy "Description" Ta Sy "Multiplier"
+The suffixes are:
+.Bl -column "Suffix" "Description" "1000000000000000000" -offset indent
+.It Sy "Suffix" Ta Sy "Description" Ta Sy "Multiplier"
.It Li K Ta No kilo Ta 1024
.It Li M Ta No mega Ta 1048576
.It Li G Ta No giga Ta 1073741824
@@ -74,7 +73,7 @@
.It Bq Er EINVAL
The given string contains no digits.
.It Bq Er EINVAL
-An unrecognized prefix was given.
+An unrecognized suffix was given.
.It Bq Er ERANGE
Result doesn't fit into 64 bits.
.El
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 27, 9:52 PM (8 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16215425
Default Alt Text
D20791.id59965.diff (1 KB)
Attached To
Mode
D20791: expand_number(3) parses suffixes, not prefixes. While here, tidy the opening sentence a bit.
Attached
Detach File
Event Timeline
Log In to Comment