commit 7554649a89a3968a24af8d54078a338c8a6549ce
parent e8eb92b08159d244a65f023259d3792813808419
Author: Drew DeVault <sir@cmpwn.com>
Date: Wed, 3 Feb 2021 15:34:54 -0500
os::fdopen: remove comment about the stream name
We're not going to generate names here, the link to fmt would be
uncalled for.
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/os/+linux/fdstream.ha b/os/+linux/fdstream.ha
@@ -28,8 +28,7 @@ fn static_fdopen(
return &stream.stream;
};
-// Opens a Unix file descriptor as an io::stream. If 'name' is an empty string,
-// a name will be generated based on the file descriptor number.
+// Opens a Unix file descriptor as an io::stream.
export fn fdopen(fd: int, name: str, mode: io::mode) *io::stream = {
let stream = alloc(*fd_stream, fd_stream { ... });
static_fdopen(fd, strings::dup(name), mode, stream);