summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/tcgetpgrp.3
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/tcgetpgrp.3')
-rw-r--r--lib/libc/gen/tcgetpgrp.312
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc/gen/tcgetpgrp.3 b/lib/libc/gen/tcgetpgrp.3
index e97c256..045c569 100644
--- a/lib/libc/gen/tcgetpgrp.3
+++ b/lib/libc/gen/tcgetpgrp.3
@@ -31,7 +31,7 @@
.\"
.\" @(#)tcgetpgrp.3 8.1 (Berkeley) 6/4/93
.\"
-.Dd "June 4, 1993"
+.Dd June 4, 1993
.Dt TCGETPGRP 3
.Os
.Sh NAME
@@ -44,15 +44,15 @@
.Fn tcgetpgrp "int fd"
.Sh DESCRIPTION
The
-.Nm tcgetpgrp
+.Fn tcgetpgrp
function returns the value of the process group ID of the foreground
process group associated with the terminal device.
If there is no foreground process group,
-.Nm tcgetpgrp
+.Fn tcgetpgrp
returns an invalid process ID.
.Sh ERRORS
If an error occurs,
-.Nm tcgetpgrp
+.Fn tcgetpgrp
returns -1 and the global variable
.Va errno
is set to indicate the error, as follows:
@@ -68,12 +68,12 @@ underlying terminal device represented by
is not the controlling terminal.
.El
.Sh SEE ALSO
-.Xr setpgid 3 ,
+.Xr setpgid 2 ,
.Xr setsid 2 ,
.Xr tcsetpgrp 3
.Sh STANDARDS
The
-.Nm tcgetpgrp
+.Fn tcgetpgrp
function is expected to be compliant with the
.St -p1003.1-88
specification.
OpenPOWER on IntegriCloud