.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)