From sanpei@sanpei.org Sun Mar 21 06:25:10 1999
Return-Path: <sanpei@sanpei.org>
Received: from titanium.yy.ics.keio.ac.jp (titanium.yy.ics.keio.ac.jp [131.113.47.73])
	by hub.freebsd.org (Postfix) with ESMTP id 245E814E31
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 21 Mar 1999 06:24:58 -0800 (PST)
	(envelope-from sanpei@sanpei.org)
Received: from lavender.sanpei.org (ppp094.dialup.st.keio.ac.jp [131.113.27.94])
	by titanium.yy.ics.keio.ac.jp (8.8.8+3.0Wbeta13/3.7W) with ESMTP id XAA01730;
	Sun, 21 Mar 1999 23:24:36 +0900 (JST)
Received: (from sanpei@localhost)
	by lavender.sanpei.org (8.9.2/3.7W) id XAA04330;
	Sun, 21 Mar 1999 23:25:10 +0900 (JST)
Message-Id: <199903211425.XAA04330@lavender.sanpei.org>
Date: Sun, 21 Mar 1999 23:25:10 +0900 (JST)
From: sanpei@sanpei.org
Reply-To: sanpei@sanpei.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: meteor.4 man page documentation problem.
X-Send-Pr-Version: 3.2

>Number:         10708
>Category:       docs
>Synopsis:       meteor.4 man page documentation problem.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 21 06:30:01 PST 1999
>Closed-Date:    Tue May 4 16:09:01 CDT 1999
>Last-Modified:  Tue May  4 16:09:40 CDT 1999
>Originator:     MIHIRA Yoshiro
>Release:        FreeBSD 3.1-RELEASE i386
>Organization:
Keio Univ.
>Environment:

	FreeBSD-3.1 and all release which has meteor man page

>Description:

	meteor man page has problem.

	It has sample program, but if I read via man page
	\n" character is missed.

original meteor.4 file(less /usr/share/man/man4/meteor.4.gz)
               printf("open failed: %d\n", errno);
                                      ~~~
formatted man page(man 4 meteor)
               printf("open failed: %d0, errno);
                                      ~
>How-To-Repeat:

	man 4 meteor

>Fix:
	
apply below patch to src/share/man/man4/man4.i386/meteor.4

--- meteor.4	1998/06/08 06:11:59	1.7
+++ meteor.4	1999/03/21 14:09:31
@@ -113,7 +113,7 @@
 	int i,o,c;
 
 	if ((i = open("/dev/meteor0", O_RDONLY)) < 0) {
-		printf("open failed: %d\n", errno);
+		printf("open failed: %d\\n", errno);
 		exit(1);
 	}
 				/* set up the capture type and size */
@@ -123,33 +123,33 @@
         geo.oformat = METEOR_GEO_RGB24 ;
 
         if (ioctl(i, METEORSETGEO, &geo) < 0) {
-		printf("ioctl failed: %d\n", errno);
+		printf("ioctl failed: %d\\n", errno);
 		exit(1);
 	}
 
 	c = METEOR_FMT_NTSC;
 
         if (ioctl(i, METEORSFMT, &c) < 0) {
-		printf("ioctl failed: %d\n", errno);
+		printf("ioctl failed: %d\\n", errno);
 		exit(1);
 	}
 
 	c = METEOR_INPUT_DEV0;
 
         if (ioctl(i, METEORSINPUT, &c) < 0) {
-		printf("ioctl failed: %d\n", errno);
+		printf("ioctl failed: %d\\n", errno);
 		exit(1);
 	}
 
 	if ((c=read(i, &buf[0], SIZE)) < SIZE) {
-		printf("read failed %d %d %d\n", c, i, errno);
+		printf("read failed %d %d %d\\n", c, i, errno);
 		close(i);
 		exit(1);
 	}
 	close(i);
 
 	if ((o = open("rgb24.ppm", O_WRONLY | O_CREAT, 0644)) < 0) {
-		printf("ppm open failed: %d\n", errno);
+		printf("ppm open failed: %d\\n", errno);
 		exit(1);
 	}
 
@@ -209,7 +209,7 @@
 	int i,c;
 
 	if ((i = open("/dev/meteor0", O_RDONLY)) < 0) {
-		printf("open failed\n");
+		printf("open failed\\n");
 		exit(1);
 	}
 
@@ -219,21 +219,21 @@
         geo.oformat = METEOR_GEO_RGB16 ;
 
         if (ioctl(i, METEORSETGEO, &geo) < 0) {
-		printf("ioctl failed: %d\n", errno);
+		printf("ioctl failed: %d\\n", errno);
 		exit(1);
 	}
 
 	c = METEOR_FMT_NTSC;
 
         if (ioctl(i, METEORSFMT, &c) < 0) {
-		printf("ioctl failed: %d\n", errno);
+		printf("ioctl failed: %d\\n", errno);
 		exit(1);
 	}
 
 	c = METEOR_INPUT_DEV0;
 
         if (ioctl(i, METEORSINPUT, &c) < 0) {
-		printf("ioctl failed: %d\n", errno);
+		printf("ioctl failed: %d\\n", errno);
 		exit(1);
 	}
 
@@ -361,7 +361,7 @@
 		capframe.command=METEOR_CAP_STOP_FRAMES;
 
 		if (ioctl(i, METEORCAPFRM, &capframe) < 0) {
-			printf("METEORCAPFRM failed %d\n", errno);
+			printf("METEORCAPFRM failed %d\\n", errno);
 			exit(1);
 		}
 	}
@@ -375,10 +375,10 @@
 	struct meteor_capframe capframe;
 
 	if ((i = open("/dev/meteor0", O_RDONLY)) < 0) {
-		printf("open failed\n");
+		printf("open failed\\n");
 		exit(1);
 	}
-	printf("test %d %d\n", errno, i);
+	printf("test %d %d\\n", errno, i);
 
         height = geo.rows = 120;
         width= geo.columns = 320;
@@ -389,21 +389,21 @@
         geo.oformat = METEOR_GEO_RGB16;
 
         if (ioctl(i, METEORSETGEO, &geo) < 0) {
-		printf("METEORSETGEO failed %d\n", errno);
+		printf("METEORSETGEO failed %d\\n", errno);
 		exit(1);
 	}
 
 	c = METEOR_FMT_NTSC;
 
         if (ioctl(i, METEORSFMT, &c) < 0) {
-		printf("ioctl failed: %d\n", errno);
+		printf("ioctl failed: %d\\n", errno);
 		exit(1);
 	}
 
 	c = METEOR_INPUT_DEV0;
 
         if (ioctl(i, METEORSINPUT, &c) < 0) {
-		printf("ioctl failed: %d\n", errno);
+		printf("ioctl failed: %d\\n", errno);
 		exit(1);
 	}
 
@@ -426,7 +426,7 @@
 
 					/* start the sync capture */
         if (ioctl(i, METEORCAPFRM, &capframe) < 0) {
-		printf("METEORCAPFRM failed %d\n", errno);
+		printf("METEORCAPFRM failed %d\\n", errno);
 		exit(1);
 	}
 
@@ -437,7 +437,7 @@
 	capframe.command=METEOR_CAP_STOP_FRAMES;
 
         if (ioctl(i, METEORCAPFRM, &capframe) < 0) {
-		printf("METEORCAPFRM failed %d\n", errno);
+		printf("METEORCAPFRM failed %d\\n", errno);
 		exit(1);
 	}
 }

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->analyzed 
State-Changed-By: sheldonh 
State-Changed-When: Sun Mar 28 09:12:25 PST 1999 
State-Changed-Why:  
Diff applies cleanly to CURRENT. 
State-Changed-From-To: analyzed->closed 
State-Changed-By: ghelmer 
State-Changed-When: Tue May 4 16:09:01 CDT 1999 
State-Changed-Why:  
Committed fixes (meteor.4 revs 1.8, 1.7.2.1). 
>Unformatted:
