shithub: riscv

Download patch

ref: 9bb519ac5023238572e31dd69d4f6dc3f45dfa26
parent: d9f201af498e787ea0394e9cd14ce4e97c404a71
author: Ori Bernstein <[email protected]>
date: Sat Oct 24 13:24:59 EDT 2020

mp(2): correct documentation of error handling (thanks LordCreepity)

The documentation for mp(2) claimed we'd return nil on error, when
we actually sysfatal. This corrects the documentation to match our
actual behavior.

--- a/sys/man/2/mp
+++ b/sys/man/2/mp
@@ -287,8 +287,8 @@
 .I mpnew
 and
 .IR mpcopy ,
-will return
-.B nil
+will call sysfatal (see
+.IR perror (2))
 if the allocation fails.
 .PP
 Input and result parameters may point to the same