commit f64643a121e8176ff508bd9b5d05c4e55bfba2be
parent 860fd710ff6ed72e4af81cc8354adc6380a29636
Author: Drew DeVault <sir@cmpwn.com>
Date: Mon, 8 Feb 2021 12:49:36 -0500
Minor style and doc fixes
Diffstat:
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/os/+linux/fdstream.ha b/os/+linux/fdstream.ha
@@ -97,7 +97,7 @@ fn fd_copy(_to: *io::stream, _from: *io::stream) (size | io::error) = {
let to = _to: *fd_stream, from = _from: *fd_stream;
let sum = 0z;
for (true) {
- let n = match(rt::sendfile(to.fd, from.fd,
+ let n = match (rt::sendfile(to.fd, from.fd,
null, SENDFILE_MAX)) {
err: rt::errno => switch (err) {
rt::EINVAL => {
diff --git a/os/exec/cmd.ha b/os/exec/cmd.ha
@@ -23,7 +23,9 @@ export fn errstr(err: error) const str = {
};
// Prepares a [command] based on its name and a list of arguments. The argument
-// list should not start with the command name; it will be added for you.
+// list should not start with the command name; it will be added for you. The
+// arguments are borrowed, the caller must free them only after calling [finish]
+// or [start].
//
// If 'name' does not contain a '/', the $PATH will be consulted to find the
// correct executable. If path resolution fails, nocmd is returned.