summaryrefslogtreecommitdiff
path: root/share/man/man9
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2018-11-12 16:15:07 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2018-11-12 16:15:07 +0000
commitd95f6596166f8f28842b0e22af1190777e32a925 (patch)
treed7c117da4222e20d5c60d2583c1c3cb285607157 /share/man/man9
parente675defa93f22108731846521ddf208dc65b18a8 (diff)
Document return values.
Diffstat (limited to 'share/man/man9')
-rw-r--r--share/man/man9/sigio_init.927
1 files changed, 26 insertions, 1 deletions
diff --git a/share/man/man9/sigio_init.9 b/share/man/man9/sigio_init.9
index 6dc4db73e45..ad222c5f39a 100644
--- a/share/man/man9/sigio_init.9
+++ b/share/man/man9/sigio_init.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sigio_init.9,v 1.1 2018/11/12 15:13:12 visa Exp $
+.\" $OpenBSD: sigio_init.9,v 1.2 2018/11/12 16:15:06 visa Exp $
.\"
.\" Copyright (c) 2018 Visa Hankala
.\"
@@ -89,6 +89,31 @@ returns the ID of the process or process group associated with the reference
and
.Fn sigio_getown
can be called during autoconf, or from process context.
+.Sh RETURN VALUES
+The
+.Fn sigio_setown
+returns 0 on success.
+Otherwise, the following error values are returned:
+.Bl -tag -width [EPERM]
+.It Bq Er EPERM
+The invoking process belongs to another session than the process
+or process group
+.Fa pgid .
+.It Bq Er ESRCH
+The process or process group
+.Fa pgid
+does not exist.
+.It Bq Er ESRCH
+The process
+.Fa pgid
+is exiting.
+.El
+.Pp
+The function
+.Fn sigio_getown
+returns the ID of the process or process group associated with reference
+.Fa sir ,
+or zero if no signal target has been registered.
.Sh SEE ALSO
.Xr pgsigio 9
.Sh HISTORY