summaryrefslogtreecommitdiff
path: root/sys/man/2
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2022-07-30 16:09:27 +0000
committerOri Bernstein <ori@eigenstate.org>2022-07-30 16:09:27 +0000
commit30dcf55ee221b986aee6d428b4da431f6174c66b (patch)
treeadb2848544d8b55bbbc1c72e598cbfd276c17aac /sys/man/2
parent7a225e5331749e1c656661f7c1c5cc2767aa13d8 (diff)
bind, mount: stop returning mount id
The mount ID is a sequence number in a 32 bit integer, which means that it can't be unique. This is largely harmless, because there is no way to use the mount id, beyond checking if it's negative. However, there's no overflow check, so the mount ID can wrap negative, which will break error checks on mount calls. Because it's useless, let's just stop returning it.
Diffstat (limited to 'sys/man/2')
-rw-r--r--sys/man/2/bind3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/man/2/bind b/sys/man/2/bind
index 98feb41f7..5c0efeb94 100644
--- a/sys/man/2/bind
+++ b/sys/man/2/bind
@@ -224,8 +224,7 @@ is undone.
.IR mnt (3),
.IR srv (3)
.SH DIAGNOSTICS
-The return value is a positive integer (a unique sequence number) for
-success, -1 for failure.
+The return value is 0 for success, -1 for failure.
These routines set
.IR errstr .
.SH BUGS