From 876363712cf7551b153aaa6e79bbf9b0a751f351 Mon Sep 17 00:00:00 2001 From: taocana Date: Thu, 27 Jun 2024 14:36:03 -0400 Subject: [PATCH 1/3] manpage fixes --- docs/dj.1 | 4 ++-- docs/mm.1 | 4 ++-- docs/rpn.1 | 6 +++--- docs/scrut.1 | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/dj.1 b/docs/dj.1 index 7031ccf..5f7f28a 100644 --- a/docs/dj.1 +++ b/docs/dj.1 @@ -95,8 +95,8 @@ The standard input shall be used as an input if no inputs are specified or if one or more of the input files is \(lq-\(rq. .\" .SH STANDARD OUTPUT -The standard output shall be used as an output if no inputs are specified or if -one or more of the input files is \(lq-\(rq. +The standard output shall be used as an output if no outputs are specified or +if one or more of the output files is \(lq-\(rq. .\" .SH DIAGNOSTICS diff --git a/docs/mm.1 b/docs/mm.1 index 2ff9f44..a8c0610 100644 --- a/docs/mm.1 +++ b/docs/mm.1 @@ -27,10 +27,10 @@ Opens subsequent outputs for appending rather than updating. .IP \fB-e\fP Use the standard error as an output. .IP \fB-i\fP -Opens a path as an input. If one or more of the input files is \(lq-\(rq or if +Opens a file as an input. If one or more of the input files is \(lq-\(rq or if no inputs are specified, the standard input shall be used. .IP \fB-o\fP -Opens a path as an output. If one or more of the output files is \(lq-\(rq or if +Opens a file as an output. If one or more of the output files is \(lq-\(rq or if no outputs are specified, the standard output shall be used. .IP \fB-u\fP Ensures neither input or output will be buffered. diff --git a/docs/rpn.1 b/docs/rpn.1 index 8c8cd84..1fd1c4d 100644 --- a/docs/rpn.1 +++ b/docs/rpn.1 @@ -22,9 +22,9 @@ The program evaluates reverse polish notation expressions read either from the standard input or parsed from provided arguments. See the STANDARD INPUT section. -Upon evaluation, the resulting number on the stack will be printed to the -standard output. Any further numbers specified will be placed at the end of the -stack. +Upon evaluation, the resulting number on the top of the stack will be printed +to the standard output. Any further numbers specified will be placed at the +bottom of the stack. For information on for reverse polish notation syntax, see .BR rpn (7). diff --git a/docs/scrut.1 b/docs/scrut.1 index 56383b8..39b80c1 100644 --- a/docs/scrut.1 +++ b/docs/scrut.1 @@ -36,15 +36,15 @@ Requires the given files to exist, and is redundant to any other option. .IP \fB-f\fP Requires the given files to exist and be regular files. .IP \fB-g\fP -Requires the given files to exist and have their set group ID flags set. +Requires the given files to exist and have their set-group-ID flags set. .IP \fB-k\fP -Requires the given files to exist and have their sticky bit set. +Requires the given files to exist and have their sticky flags set. .IP \fB-p\fP Requires the given files to exist and be named pipes. .IP \fB-r\fP Requires the given files to exist and be readable. .IP \fB-u\fP -Requires the given files to exist and have their set user ID flags set. +Requires the given files to exist and have their set-user-ID flags set. .IP \fB-w\fP Requires the given files to exist and be writable. .IP \fB-x\fP -- 2.46.1 From de14d7595837c55c989b6eed7e301dda40f76bfb Mon Sep 17 00:00:00 2001 From: taocana Date: Thu, 27 Jun 2024 22:41:15 -0400 Subject: [PATCH 2/3] docs: fix fixes and add copyright notices --- docs/dj.1 | 1 + docs/mm.1 | 1 + docs/rpn.1 | 3 ++- docs/scrut.1 | 7 ++++--- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/dj.1 b/docs/dj.1 index 5f7f28a..4264638 100644 --- a/docs/dj.1 +++ b/docs/dj.1 @@ -1,5 +1,6 @@ .\" Copyright (c) 2024 DTB .\" Copyright (c) 2024 Emma Tebibyte +.\" Copyright (c) 2024 Taocana .\" .\" This work is licensed under CC BY-SA 4.0. To see a copy of this license, .\" visit . diff --git a/docs/mm.1 b/docs/mm.1 index a8c0610..ab87d05 100644 --- a/docs/mm.1 +++ b/docs/mm.1 @@ -1,4 +1,5 @@ .\" Copyright (c) 2024 DTB +.\" Copyright (c) 2024 Taocana .\" .\" This work is licensed under CC BY-SA 4.0. To see a copy of this license, .\" visit . diff --git a/docs/rpn.1 b/docs/rpn.1 index 1fd1c4d..346869e 100644 --- a/docs/rpn.1 +++ b/docs/rpn.1 @@ -1,5 +1,6 @@ .\" Copyright (c) 2024 Emma Tebibyte .\" Copyright (c) 2024 DTB +.\" Copyright (c) 2024 Taocana .\" .\" This work is licensed under CC BY-SA 4.0. To see a copy of this license, .\" visit . @@ -22,7 +23,7 @@ The program evaluates reverse polish notation expressions read either from the standard input or parsed from provided arguments. See the STANDARD INPUT section. -Upon evaluation, the resulting number on the top of the stack will be printed +Upon evaluation, the resulting number at the top of the stack will be printed to the standard output. Any further numbers specified will be placed at the bottom of the stack. diff --git a/docs/scrut.1 b/docs/scrut.1 index 39b80c1..f45af1b 100644 --- a/docs/scrut.1 +++ b/docs/scrut.1 @@ -1,5 +1,6 @@ .\" Copyright (c) 2024 DTB .\" Copyright (c) 2024 Emma Tebibyte +.\" Copyright (c) 2024 Taocana .\" .\" This work is licensed under CC BY-SA 4.0. To see a copy of this license, .\" visit . @@ -36,15 +37,15 @@ Requires the given files to exist, and is redundant to any other option. .IP \fB-f\fP Requires the given files to exist and be regular files. .IP \fB-g\fP -Requires the given files to exist and have their set-group-ID flags set. +Requires the given files to exist and have their setgid bits set. .IP \fB-k\fP -Requires the given files to exist and have their sticky flags set. +Requires the given files to exist and have their sticky bits set. .IP \fB-p\fP Requires the given files to exist and be named pipes. .IP \fB-r\fP Requires the given files to exist and be readable. .IP \fB-u\fP -Requires the given files to exist and have their set-user-ID flags set. +Requires the given files to exist and have their setuid bits set. .IP \fB-w\fP Requires the given files to exist and be writable. .IP \fB-x\fP -- 2.46.1 From 2bc696425c657f235f9b95b9d60f9145f88392df Mon Sep 17 00:00:00 2001 From: taocana Date: Fri, 28 Jun 2024 02:13:59 -0400 Subject: [PATCH 3/3] intcmp(1): fix usage --- src/intcmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intcmp.c b/src/intcmp.c index 408474b..e9cc144 100644 --- a/src/intcmp.c +++ b/src/intcmp.c @@ -52,7 +52,7 @@ int main(int argc, char *argv[]){ if(optind + 2 /* ref cmp */ > argc){ usage: fprintf(stderr, - "Usage: %s (-eghl) [integer] [integer...]\n", + "Usage: %s (-egl) [integer] [integer...]\n", argv[0] == NULL ? program_name : argv[0]); return EX_USAGE; } -- 2.46.1