From owner-freebsd-doc Thu Jan 23 10:30: 7 2003 Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 63CA637B401 for ; Thu, 23 Jan 2003 10:30:02 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 59F2443F43 for ; Thu, 23 Jan 2003 10:30:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h0NIU1NS007064 for ; Thu, 23 Jan 2003 10:30:01 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h0NIU1u4007063; Thu, 23 Jan 2003 10:30:01 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E0B7037B401 for ; Thu, 23 Jan 2003 10:29:58 -0800 (PST) Received: from schlepper.zs64.net (schlepper.zs64.net [212.12.50.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id C4FFF43F43 for ; Thu, 23 Jan 2003 10:29:57 -0800 (PST) (envelope-from stb@schlepper.zs64.net) Received: (from stb@localhost) by schlepper.zs64.net (8.12.6/8.11.1) id h0NITuAS095261; Thu, 23 Jan 2003 19:29:56 +0100 (CET) (envelope-from stb) Message-Id: <200301231829.h0NITuAS095261@schlepper.zs64.net> Date: Thu, 23 Jan 2003 19:29:56 +0100 (CET) From: Stefan Bethke Reply-To: Stefan Bethke To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: docs/47411: Printing chapter of handbook explains functionality removed 6 years ago Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 47411 >Category: docs >Synopsis: Printing chapter of handbook explains functionality removed 6 years ago >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: Thu Jan 23 10:30:00 PST 2003 >Closed-Date: >Last-Modified: >Originator: Stefan Bethke >Release: n/a >Organization: >Environment: >Description: Section 11.3.1.4.5. Configuring Spooler Communication Parameters documents the fc#, fs#, xc#, and xs# printcap(5) capabilities, which were removed over six years ago: http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.sbin/lpr/lpr/printcap.5#rev1.2 http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.sbin/lpr/common_source/common.c#rev1.3 >How-To-Repeat: n/a >Fix: Index: chapter.sgml =================================================================== RCS file: /home/ncvs/doc/en_US.ISO8859-1/books/handbook/printing/chapter.sgml,v retrieving revision 1.65 diff -u -r1.65 chapter.sgml --- chapter.sgml 12 Jan 2003 18:31:45 -0000 1.65 +++ chapter.sgml 23 Jan 2003 17:33:07 -0000 @@ -1256,78 +1256,41 @@ bps-rate, where bps-rate can be 50, 75, 110, 134, 150, 200, 300, 600, 1200, 1800, 2400, 4800, 9600, - 19200, or 38400 bits-per-second. + 19200, 38400, 57600, or 115200 bits-per-second. - fc#clear-bits + ms#stty-mode - Clears the flag bits - clear-bits in the - sgttyb structure after - opening the device. + Sets the options for the terminal device after + opening the device. &man.stty.1; explains the available + options. - - fs#set-bits - - - Sets the flag bits - set-bits in the - sgttyb structure. - - - - - xc#clear-bits - - - Clears local mode bits - clear-bits after opening the - device. - - - - - xs#set-bits - - - Sets local mode bits - set-bits. - - - - - For more information on the bits for the - fc, fs, - xc, and xs capabilities, - see the file - /usr/include/sys/ioctl_compat.h. - - When LPD opens the device - specified by the - lp capability, it reads the flag bits in - the sgttyb structure; it clears any bits in - the fc capability, then sets bits in the - fs capability, then applies the resultant - setting. It does the same for the local mode bits as - well. - - Let us add to our example printer on the sixth serial - port. We will set the bps rate to 38400. For the flag bits, - we will set the TANDEM, - ANYP, LITOUT, - FLUSHO, and PASS8 flags. - For the local mode bits, we will set the - LITOUT and PASS8 - flags: + When LPD opens the device specified by + the lp capability, it sets the characteristics of + the device to those specified with the ms# + capability. Of particular interest will be the + parenb, parodd, + cs5, cs6, + cs7, cs8, + cstopb, crtscts, and + ixon modes, which are explained in the &man.stty.1; + manual page. + + Let us add to our example printer on the sixth serial port. We + will set the bps rate to 38400. For the mode, we will set no parity + with -parenb, 8-bit characters with + cs8, no modem control with + clocal and hardware flow control with + crtscts: bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\ :sh:sd=/var/spool/lpd/bamboo:\ - :lp=/dev/ttyd5:fs#0x82000c1:xs#0x820: + :lp=/dev/ttyd5:ms#-parenb cs8 clocal crtscts: @@ -1396,7 +1359,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\ :sh:sd=/var/spool/lpd/bamboo:\ - :lp=/dev/ttyd5:fs#0x82000e1:xs#0x820:\ + :lp=/dev/ttyd5:ms#-parenb cs8 clocal crtscts:\ :if=/usr/local/libexec/if-simple: @@ -2167,7 +2130,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\ :sh:sd=/var/spool/lpd/bamboo:\ - :lp=/dev/ttyd5:fs#0x82000e1:xs#0x820:rw:\ + :lp=/dev/ttyd5:ms#-parenb cs8 clocal crtscts:rw:\ :if=/usr/local/libexec/psif:\ :df=/usr/local/libexec/psdf: @@ -3292,7 +3255,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\ :sh:sd=/var/spool/lpd/bamboo:sc:\ - :lp=/dev/ttyd5:fs#0x82000e1:xs#0x820:rw:\ + :lp=/dev/ttyd5:ms#-parenb cs8 clocal crtscts:rw:\ :if=/usr/local/libexec/psif:\ :df=/usr/local/libexec/psdf: @@ -3368,7 +3331,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\ :sh:sd=/var/spool/lpd/bamboo:sc:rg=artists:\ - :lp=/dev/ttyd5:fs#0x82000e1:xs#0x820:rw:\ + :lp=/dev/ttyd5:ms#-parenb cs8 clocal crtscts:rw:\ :if=/usr/local/libexec/psif:\ :df=/usr/local/libexec/psdf: @@ -3443,7 +3406,7 @@ # bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\ :sh:sd=/var/spool/lpd/bamboo:sc:rg=artists:mx#5000:\ - :lp=/dev/ttyd5:fs#0x82000e1:xs#0x820:rw:\ + :lp=/dev/ttyd5:ms#-parenb cs8 clocal crtscts:rw:\ :if=/usr/local/libexec/psif:\ :df=/usr/local/libexec/psdf: @@ -3530,7 +3493,7 @@ bamboo|ps|PS|S|panasonic|Panasonic KX-P4455 PostScript v51.4:\ :sh:sd=/var/spool/lpd/bamboo:sc:rg=artists:mx#5000:\ - :lp=/dev/ttyd5:fs#0x82000e1:xs#0x820:rw:mx#5000:\ + :lp=/dev/ttyd5:ms#-parenb cs8 clocal crtscts:rw:mx#5000:\ :if=/usr/local/libexec/psif:\ :df=/usr/local/libexec/psdf: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message