Date: Sun, 21 Mar 1999 23:25:10 +0900 (JST) From: sanpei@sanpei.org To: FreeBSD-gnats-submit@freebsd.org Subject: docs/10708: meteor.4 man page documentation problem. Message-ID: <199903211425.XAA04330@lavender.sanpei.org>
next in thread | raw e-mail | index | archive | help
>Number: 10708 >Category: docs >Synopsis: meteor.4 man page documentation problem. >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Sun Mar 21 06:30:01 PST 1999 >Closed-Date: >Last-Modified: >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: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199903211425.XAA04330>