summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/tcsetpgrp.3
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2000-11-20 14:11:46 +0000
committerru <ru@FreeBSD.org>2000-11-20 14:11:46 +0000
commitf7a10404bccd5370cf494e1453a276bbf09b1143 (patch)
treee5249448ab52cfea6561a527dbe5fa3c83eddaaa /lib/libc/gen/tcsetpgrp.3
parent55a23507010ea3eabe58edf611fdf921fabc3374 (diff)
downloadFreeBSD-src-f7a10404bccd5370cf494e1453a276bbf09b1143.zip
FreeBSD-src-f7a10404bccd5370cf494e1453a276bbf09b1143.tar.gz
mdoc(7) police: Nm -> Fn where appropriate.
Diffstat (limited to 'lib/libc/gen/tcsetpgrp.3')
-rw-r--r--lib/libc/gen/tcsetpgrp.318
1 files changed, 7 insertions, 11 deletions
diff --git a/lib/libc/gen/tcsetpgrp.3 b/lib/libc/gen/tcsetpgrp.3
index 4f4b48b..a7d3409 100644
--- a/lib/libc/gen/tcsetpgrp.3
+++ b/lib/libc/gen/tcsetpgrp.3
@@ -47,7 +47,7 @@
.Fn tcsetpgrp "int fd" "pid_t pgrp_id"
.Sh DESCRIPTION
If the process has a controlling terminal, the
-.Nm tcsetpgrp
+.Fn tcsetpgrp
function sets the foreground process group ID associated with the
terminal device to
.Fa pgrp_id .
@@ -60,16 +60,12 @@ The value of
.Fa pgrp_id
must be the same as the process group ID of a process in the same
session as the calling process.
-.Pp
-Upon successful completion,
-.Nm tcsetpgrp
-returns a value of zero.
+.Sh RETURN VALUES
+.Rv -std tcsetpgrp
.Sh ERRORS
-If an error occurs,
-.Nm tcsetpgrp
-returns -1 and the global variable
-.Va errno
-is set to indicate the error, as follows:
+The
+.Fn tcsetpgrp
+function will fail if:
.Bl -tag -width Er
.It Bq Er EBADF
The
@@ -97,7 +93,7 @@ session as the calling process.
.Xr tcgetpgrp 3
.Sh STANDARDS
The
-.Nm tcsetpgprp
+.Fn tcsetpgrp
function is expected to be compliant with the
.St -p1003.1-88
specification.
OpenPOWER on IntegriCloud