aboutsummaryrefslogtreecommitdiffstats
path: root/getpgrp.1
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-02-23 15:23:30 +0100
committerMattias Andrée <maandree@kth.se>2021-02-23 15:23:30 +0100
commit6ef03dcaee546215c8e5fc15fdeac43689b63f7b (patch)
treefa1dfdf2d1122446745f60f72c9b04da7acb487a /getpgrp.1
parentremove dist (diff)
downloadsetpgrp-6ef03dcaee546215c8e5fc15fdeac43689b63f7b.tar.gz
setpgrp-6ef03dcaee546215c8e5fc15fdeac43689b63f7b.tar.bz2
setpgrp-6ef03dcaee546215c8e5fc15fdeac43689b63f7b.tar.xz
Change license, add man pages, misc2
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'getpgrp.1')
-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)