From 2b8b7b979c4d6c8b4afbba10821cb02cc57211c3 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 22 Feb 2026 13:00:21 +0100 Subject: m fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- config.mk | 6 +++--- getpgrp.1 | 8 ++++---- setpgrp.1 | 19 ++++++++++--------- 3 files changed, 17 insertions(+), 16 deletions(-) diff --git a/config.mk b/config.mk index c7a15be..bc78e3e 100644 --- a/config.mk +++ b/config.mk @@ -1,8 +1,8 @@ PREFIX = /usr MANPREFIX = $(PREFIX)/share/man -CC = cc +CC = c99 CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -CFLAGS = -std=c99 -Wall -LDFLAGS = +CFLAGS = +LDFLAGS = -s diff --git a/getpgrp.1 b/getpgrp.1 index 17b0c00..eff7c2a 100644 --- a/getpgrp.1 +++ b/getpgrp.1 @@ -31,7 +31,7 @@ Not used. None. .SH ENVIRONMENT VARIABLES -No environment variables affects the execution of +No environment variable affect the execution of .BR getpgrp . .SH ASYNCHRONOUS EVENTS @@ -40,7 +40,7 @@ Default. .SH STDOUT The .B getpgrp -utility prints the identifier of it's process group +utility prints the identifier of its process group to the standard output. .SH STDERR @@ -55,13 +55,13 @@ None. .SH EXIT STATUS If the .B getpgrp -exits with one of the following statuses: +utility exits with one of the following values: .TP 0 Successful. .TP 1 -A error occurred. +An error occurred. .SH CONSEQUENCES OF ERRORS Default. diff --git a/setpgrp.1 b/setpgrp.1 index 2deb440..85e8d84 100644 --- a/setpgrp.1 +++ b/setpgrp.1 @@ -46,7 +46,7 @@ to the standard error as a normal diagnostic message. The following operands are supported: .TP .I command -The command that shall be run with as the root user. +The command to run within a new process group. This will be both the process image and the process's zeroth command line argument. .TP @@ -58,17 +58,19 @@ The .B setpgrp utility does not use the standard input, however the .I command -it starts may. +it starts may use it. .SH INPUT FILES None. .SH ENVIRONMENT VARIABLES -The following environment variables affects the execution of +The following environment variables affect the execution of .BR setpgrp : .TP -.SH PATH -Default. See to the Base Definitions volume of POSIX.1-2017, Section 8.3, Other Environment Variables. +.B PATH +Default. See the Base Definitions volume of POSIX.1-2017, +.IR "Section 8.3 ", +.IR "Other Environment Variables" . .SH ASYNCHRONOUS EVENTS Default. @@ -83,8 +85,7 @@ option is specified, however the it starts may. .SH STDERR -The standard error is used for diagnostic messages and the -password prompt. The +The standard error is used for diagnostic messages only. The .I command the .B setpgrp @@ -99,10 +100,10 @@ None. .SH EXIT STATUS If the .B setpgrp -utility fails it will exit withone of the following statuses: +utility fails it will exit withone of the following values: .TP 125 -A error occurred. +An error occurred. .TP 126 The process failed to change process image. -- cgit v1.2.3-70-g09d2