aboutsummaryrefslogtreecommitdiffstats
path: root/getpgrp.1
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--getpgrp.189
1 files changed, 89 insertions, 0 deletions
diff --git a/getpgrp.1 b/getpgrp.1
new file mode 100644
index 0000000..17b0c00
--- /dev/null
+++ b/getpgrp.1
@@ -0,0 +1,89 @@
+.TH GETPGRP 1 getpgrp
+
+.SH NAME
+getpgrp - get the current process group
+
+.SH SYNOPSIS
+.B getpgrp
+
+.SH DESCRIPTION
+The
+.B getpgrp
+utility prints the identifier of the
+current process group to the standard output.
+
+.SH OPTIONS
+The
+.B getpgrp
+utility conforms to the Base Definitions volume of POSIX.1-2017,
+.IR "Section 12.2" ,
+.IR "Utility Syntax Guidelines" .
+.PP
+No options are supported.
+
+.SH OPERANDS
+No operands are supported.
+
+.SH STDIN
+Not used.
+
+.SH INPUT FILES
+None.
+
+.SH ENVIRONMENT VARIABLES
+No environment variables affects the execution of
+.BR getpgrp .
+
+.SH ASYNCHRONOUS EVENTS
+Default.
+
+.SH STDOUT
+The
+.B getpgrp
+utility prints the identifier of it's process group
+to the standard output.
+
+.SH STDERR
+The standard error is used for diagnostic messages.
+
+.SH OUTPUT FILES
+None.
+
+.SH EXTENDED DESCRIPTION
+None.
+
+.SH EXIT STATUS
+If the
+.B getpgrp
+exits with one of the following statuses:
+.TP
+0
+Successful.
+.TP
+1
+A error occurred.
+
+.SH CONSEQUENCES OF ERRORS
+Default.
+
+.SH APPLICATION USAGE
+None.
+
+.SH EXAMPLES
+None.
+
+.SH RATIONALE
+None.
+
+.SH NOTES
+None.
+
+.SH BUGS
+None.
+
+.SH FUTURE DIRECTIONS
+None.
+
+.SH SEE ALSO
+.BR getpgrp (2),
+.BR setpgrp (1)