aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/mdoc/Rv
diff options
context:
space:
mode:
Diffstat (limited to 'regress/mdoc/Rv')
-rw-r--r--regress/mdoc/Rv/Makefile11
-rw-r--r--regress/mdoc/Rv/args.in15
-rw-r--r--regress/mdoc/Rv/args.out_ascii22
-rw-r--r--regress/mdoc/Rv/noname.in15
-rw-r--r--regress/mdoc/Rv/noname.out_ascii22
-rw-r--r--regress/mdoc/Rv/noname.out_lint1
-rw-r--r--regress/mdoc/Rv/nostd.in15
-rw-r--r--regress/mdoc/Rv/nostd.out_ascii22
-rw-r--r--regress/mdoc/Rv/nostd.out_lint3
9 files changed, 126 insertions, 0 deletions
diff --git a/regress/mdoc/Rv/Makefile b/regress/mdoc/Rv/Makefile
new file mode 100644
index 00000000..238982a3
--- /dev/null
+++ b/regress/mdoc/Rv/Makefile
@@ -0,0 +1,11 @@
+# $OpenBSD: Makefile,v 1.1 2014/08/14 02:00:53 schwarze Exp $
+
+REGRESS_TARGETS = args noname nostd
+LINT_TARGETS = noname nostd
+
+# groff-1.22.2 defect:
+# - .Rv without -std produces no output
+
+SKIP_GROFF = nostd
+
+.include <bsd.regress.mk>
diff --git a/regress/mdoc/Rv/args.in b/regress/mdoc/Rv/args.in
new file mode 100644
index 00000000..24f37eab
--- /dev/null
+++ b/regress/mdoc/Rv/args.in
@@ -0,0 +1,15 @@
+.Dd July 29, 2014
+.Dt RV-ARGS 3
+.Os OpenBSD
+.Sh NAME
+.Nm Rv-args
+.Nd arguments to the return value macro
+.Sh RETURN VALUES
+no arguments:
+.Rv -std
+.Pp
+one argument:
+.Rv -std one
+.Pp
+two arguments:
+.Rv -std one two
diff --git a/regress/mdoc/Rv/args.out_ascii b/regress/mdoc/Rv/args.out_ascii
new file mode 100644
index 00000000..d2b92536
--- /dev/null
+++ b/regress/mdoc/Rv/args.out_ascii
@@ -0,0 +1,22 @@
+RV-ARGS(3) Library Functions Manual RV-ARGS(3)
+
+NNAAMMEE
+ RRvv--aarrggss - arguments to the return value macro
+
+RREETTUURRNN VVAALLUUEESS
+ no arguments:
+ Upon successful completion, the value 0 is returned; otherwise the
+ value -1 is returned and the global variable _e_r_r_n_o is set to indicate the
+ error.
+
+ one argument:
+ The oonnee() function returns the value 0 if successful; otherwise the
+ value -1 is returned and the global variable _e_r_r_n_o is set to indicate the
+ error.
+
+ two arguments:
+ The oonnee() and ttwwoo() functions return the value 0 if successful; otherwise
+ the value -1 is returned and the global variable _e_r_r_n_o is set to indicate
+ the error.
+
+OpenBSD July 29, 2014 OpenBSD
diff --git a/regress/mdoc/Rv/noname.in b/regress/mdoc/Rv/noname.in
new file mode 100644
index 00000000..4bb21cce
--- /dev/null
+++ b/regress/mdoc/Rv/noname.in
@@ -0,0 +1,15 @@
+.Dd July 29, 2014
+.Dt RV-NONAME 3
+.Os OpenBSD
+.Sh NAME
+.Nm
+.Nd return value macro without an available name
+.Sh RETURN VALUES
+no arguments:
+.Rv -std
+.Pp
+one argument:
+.Rv -std one
+.Pp
+two arguments:
+.Rv -std one two
diff --git a/regress/mdoc/Rv/noname.out_ascii b/regress/mdoc/Rv/noname.out_ascii
new file mode 100644
index 00000000..8cdd6a2f
--- /dev/null
+++ b/regress/mdoc/Rv/noname.out_ascii
@@ -0,0 +1,22 @@
+RV-NONAME(3) Library Functions Manual RV-NONAME(3)
+
+NNAAMMEE
+ - return value macro without an available name
+
+RREETTUURRNN VVAALLUUEESS
+ no arguments:
+ Upon successful completion, the value 0 is returned; otherwise the
+ value -1 is returned and the global variable _e_r_r_n_o is set to indicate the
+ error.
+
+ one argument:
+ The oonnee() function returns the value 0 if successful; otherwise the
+ value -1 is returned and the global variable _e_r_r_n_o is set to indicate the
+ error.
+
+ two arguments:
+ The oonnee() and ttwwoo() functions return the value 0 if successful; otherwise
+ the value -1 is returned and the global variable _e_r_r_n_o is set to indicate
+ the error.
+
+OpenBSD July 29, 2014 OpenBSD
diff --git a/regress/mdoc/Rv/noname.out_lint b/regress/mdoc/Rv/noname.out_lint
new file mode 100644
index 00000000..a0eec12a
--- /dev/null
+++ b/regress/mdoc/Rv/noname.out_lint
@@ -0,0 +1 @@
+mandoc: noname.in:5:2: ERROR: missing manual name, using "": Nm
diff --git a/regress/mdoc/Rv/nostd.in b/regress/mdoc/Rv/nostd.in
new file mode 100644
index 00000000..0dc9ea12
--- /dev/null
+++ b/regress/mdoc/Rv/nostd.in
@@ -0,0 +1,15 @@
+.Dd July 29, 2014
+.Dt RV-NOSTD 3
+.Os OpenBSD
+.Sh NAME
+.Nm Rv-nostd
+.Nd return value macros without -std arguments
+.Sh RETURN VALUES
+no arguments:
+.Rv
+.Pp
+one argument:
+.Rv one
+.Pp
+two arguments:
+.Rv one two
diff --git a/regress/mdoc/Rv/nostd.out_ascii b/regress/mdoc/Rv/nostd.out_ascii
new file mode 100644
index 00000000..320b8b11
--- /dev/null
+++ b/regress/mdoc/Rv/nostd.out_ascii
@@ -0,0 +1,22 @@
+RV-NOSTD(3) Library Functions Manual RV-NOSTD(3)
+
+NNAAMMEE
+ RRvv--nnoossttdd - return value macros without -std arguments
+
+RREETTUURRNN VVAALLUUEESS
+ no arguments:
+ Upon successful completion, the value 0 is returned; otherwise the
+ value -1 is returned and the global variable _e_r_r_n_o is set to indicate the
+ error.
+
+ one argument:
+ The oonnee() function returns the value 0 if successful; otherwise the
+ value -1 is returned and the global variable _e_r_r_n_o is set to indicate the
+ error.
+
+ two arguments:
+ The oonnee() and ttwwoo() functions return the value 0 if successful; otherwise
+ the value -1 is returned and the global variable _e_r_r_n_o is set to indicate
+ the error.
+
+OpenBSD July 29, 2014 OpenBSD
diff --git a/regress/mdoc/Rv/nostd.out_lint b/regress/mdoc/Rv/nostd.out_lint
new file mode 100644
index 00000000..c58122e0
--- /dev/null
+++ b/regress/mdoc/Rv/nostd.out_lint
@@ -0,0 +1,3 @@
+mandoc: nostd.in:9:2: WARNING: missing -std argument, adding it: Rv
+mandoc: nostd.in:12:2: WARNING: missing -std argument, adding it: Rv
+mandoc: nostd.in:15:2: WARNING: missing -std argument, adding it: Rv