/usr/share/doc/HOWTO/ja-html/Printing-HOWTO-16.html is in doc-linux-ja-html 2006.05.25-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE>The Linux Printing HOWTO: lpd ¤Î²¼¤Ç¤Î¥·¥ê¥¢¥ë¥×¥ê¥ó¥¿</TITLE>
<LINK HREF="Printing-HOWTO-17.html" REL=next>
<LINK HREF="Printing-HOWTO-15.html" REL=previous>
<LINK HREF="Printing-HOWTO.html#toc16" REL=contents>
</HEAD>
<BODY>
<A HREF="Printing-HOWTO-17.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="Printing-HOWTO-15.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="Printing-HOWTO.html#toc16">Ìܼ¡¤Ø</A>
<HR>
<H2><A NAME="s16">16. lpd ¤Î²¼¤Ç¤Î¥·¥ê¥¢¥ë¥×¥ê¥ó¥¿</A></H2>
<H2><A NAME="ss16.1">16.1 printcap ¤ÎÀßÄê</A>
</H2>
<P><EM>/etc/printcap</EM> ¤Ë¤Ï 5 ¤Ä¤ÎÀßÄê¹àÌܤ¬¤¢¤ê¡¢¤³¤ì¤òÀßÄꤹ¤ë¤³¤È¤Ë
¤è¤Ã¤Æ¡¢¥×¥ê¥ó¥¿¤¬Àܳ¤µ¤ì¤Æ¤¤¤ë¥·¥ê¥¢¥ë¥Ý¡¼¥È¤ÎÀßÄê¤òÁ´¤ÆÀ©¸æ¤¹¤ë¤³¤È
¤¬¤Ç¤¤Þ¤¹¡£
<EM>printcap</EM>
¤Î¥ª¥ó¥é¥¤¥ó¥Þ¥Ë¥å¥¢¥ë¤òÆɤó¤Ç¡¢<EM>br#</EM>, <EM>fc#</EM>,
<EM>xc#</EM>, <EM>fs#</EM>, <EM>xs#</EM> ¤Î°ÕÌ£¤ò³Ð¤¨¤Æ¤ª¤¤¤Æ¤¯¤À¤µ¤¤¡£
¤³¤Î°À¤Î¤¦¤ÁºÇ¸å¤Î 4 ¤Ä¤Ï¡¢¥Ý¡¼¥È¤Î»È¤¤Êý¤ÎÀßÄê¤ò¼¨¤¹¥Õ¥é¥°ÀßÄê¤Ç¤¹¡£
<EM>br#</EM> ¤Ïñ¤Ê¤ë¥Ü¡¼¤Î¥ì¡¼¥È¤Ç¤¢¤ê¡¢Î㤨¤Ð `<CODE>br#9600</CODE>' ¤Î¤è
¤¦¤ËÀßÄꤷ¤Þ¤¹¡£
<P>
<A HREF="http://www.linux.or.jp/JM/html/GNU_sh-utils/man1/stty.1.html">stty</A>
¤ÎÀßÄê¤ò printcap ¤Î¥Õ¥é¥°ÀßÄê¤Ë½ñ¤Ä¾¤¹¤Î¤Ï¤È¤Æ¤â´Êñ¤Ç¤¹¡£½ñ¤Ä¾¤¹É¬
Íפ¬¤¢¤ë¤Ê¤é¤Ð¡¢¤È¤ê¤¢¤¨¤º stty ¤Î¥ª¥ó¥é¥¤¥ó¥Þ¥Ë¥å¥¢¥ë¤ò¸«¤ë¤È¤¤¤¤¤Ç¤·¤ç
¤¦¡£
<P>
<P>stty ¤ò»È¤Ã¤Æ¥×¥ê¥ó¥¿¥Ý¡¼¥È¤òÀßÄꤷ¡¢¥Õ¥¡¥¤¥ë¤ò cat ¥³¥Þ¥ó¥É¤Çή¤·¹þ¤á
¤ÐÀµ¤·¤¯°õºþ¤Ç¤¤ë¤è¤¦¤Ë¤·¤Þ¤·¤ç¤¦¡£É®¼Ô¤Î¥×¥ê¥ó¥¿¥Ý¡¼¥È¤ÎÀßÄê¤Ç¤Ï¡¢
`<EM>stty -a</EM>' ¤Î½ÐÎϤϰʲ¼¤Î¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹ -
<BLOCKQUOTE><CODE>
<PRE>
dina:/usr/users/andy/work/lpd/lpd# stty -a < /dev/ttyS2
speed 9600 baud; rows 0; columns 0; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;
lnext = ^V; min = 1; time = 0;
-parenb -parodd cs8 hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr
-igncr -icrnl ixon -ixoff -iuclc -ixany -imaxbel
-opost -olcuc -ocrnl -onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0
bs0 vt0 ff0
-isig -icanon -iexten -echo -echoe -echok -echonl -noflsh -xcase
-tostop -echoprt -echoctl -echoke
</PRE>
</CODE></BLOCKQUOTE>
¤³¤ÎÀßÄê¤È¥·¥¹¥Æ¥à¤Îµ¯Æ°»þ¤Ë½é´ü²½¤µ¤ì¤ëÀßÄê¤È¤Î°ã¤¤¤Ï¡¢
<CODE>-clocal</CODE>, <CODE>-crtscts</CODE>, <CODE>ixon</CODE> ¤À¤±¤Ç¤¹¡£¥·¥ê¥¢¥ë¥Ý¡¼¥È¤ÎÀßÄê
¤Ï¡¢¥×¥ê¥ó¥¿¤¬¤É¤Î¤è¤¦¤Ë¥Õ¥í¡¼À©¸æ¤ò¹Ô¤Ã¤Æ¤¤¤ë¤Î¤«¤Ë¤è¤Ã¤ÆÊѤï¤Ã¤Æ¤¯¤ë
¤³¤È¤¬¤¢¤ê¤Þ¤¹¡£
<P>
<P>¼ÂºÝ¤Î¤È¤³¤í¡¢stty ¥³¥Þ¥ó¥É¤Î»È¤¤Êý¤Ï¤Á¤ç¤Ã¤ÈÄÁ¤·¤¤¤â¤Î¤Ç¤¹¡£stty ¤Ï
stty ¤Îɸ½àÆþÎϤËÀܳ¤µ¤ì¤Æ¤¤¤ëüËö¤òÁàºî¤¹¤ë¤Î¤Ç¡¢Í¿¤¨¤é¤ì¤¿
¥·¥ê¥¢¥ë¥Ý¡¼¥È¤ÎÁàºî¤Ï¡¢Àè¤ÎÎã¤Î¤è¤¦¤Ë `<CODE><</CODE>' ʸ»ú¤ò»È¤Ã¤Æ¹Ô¤¤¤Þ
¤¹¡£
<P>
<P>stty ¤ÎÀßÄ꤬¤¦¤Þ¤¯¤Ç¤¤¿¤é(`<EM>cat file > /dev/ttyS2</EM>'
(É®¼Ô¤Î¾ì¹ç)¤Ç¥Õ¥¡¥¤¥ë¤ò¥×¥ê¥ó¥¿¤ËÁ÷¤ì¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹)¡¢¼¡¤Ï
/usr/src/linux/include/asm-i386/termbits.h ¥Õ¥¡¥¤¥ë¤ò¸«¤Æ¤¯¤À¤µ¤¤¡£
¤³¤Î¥Õ¥¡¥¤¥ë¤Ë¤Ï¤¿¤¯¤µ¤ó¤Î #define ¤È¤¤¤¯¤Ä¤«¤Î¹½Â¤ÂΤ¬½ñ¤«¤ì¤Æ¤¤¤Þ¤¹
(¤³¤Î¥Õ¥¡¥¤¥ë¤ò¥×¥ê¥ó¥¿¤Ë cat ¥³¥Þ¥ó¥É¤ÇÁ÷¤ê(¤Á¤ã¤ó¤ÈÆ°¤¤Þ¤¹¤«?)¡¢¤³
¤ì¤ò²¼½ñ¤ÍÑ»æ¤Ë¤¹¤ë¤È¤è¤¤¤Ç¤·¤ç¤¦)¡£°Ê²¼¤ÎÉôʬ¤«¤é»Ï¤Þ¤ë¥»¥¯¥·¥ç¥ó¤ò
¸«¤Ä¤±¤Æ¤¯¤À¤µ¤¤¡£
<BLOCKQUOTE><CODE>
<PRE>
/* c_cflag bit meaning */
#define CBAUD 0000017
</PRE>
</CODE></BLOCKQUOTE>
¤³¤Î¥»¥¯¥·¥ç¥ó¤Ë¤Ï <EM>fc#</EM> ¥Ó¥Ã¥È¤È <EM>fs#</EM> ¥Ó¥Ã¥È¤Î°ÕÌ£¤¬Îó
µó¤µ¤ì¤Æ¤¤¤Þ¤¹¡£ÆɼԤ㧤µ¤ó¤â¡¢¥Ü¡¼¤Î¥ì¡¼¥È¤Î¸å¤Ë¤¢¤ë¤½¤ì¤¾¤ì¤Î̾Á°¤¬
stty ¥³¥Þ¥ó¥É¤Î½ÐÎϹԤΤɤ줫¤È°ìÃפ¹¤ë¤³¤È¤Ëµ¤¤Å¤«¤ì¤ë¤³¤È¤Ç¤·¤ç¤¦¡£
¤³¤ì¤Ï´Êñ¤À¤í¤¦¤Ã¤Æ¤¤¤¤¤Þ¤»¤ó¤Ç¤·¤¿¤Ã¤±?
<P>
<P>stty ¥³¥Þ¥ó¥É¤Î½ÐÎϤǤϡ¢¤³¤ì¤é¤ÎÀßÄꤽ¤ì¤¾¤ì¤ÎÁ°¤Ë¡Ö-¡×¤¬ÉÕ¤¯ÅÀ¤ËÃí°Õ
¤·¤Æ¤¯¤À¤µ¤¤¡£¤³¤ì¤é¤Î¿ô(8 ¿ÊÃͤǤ¹)¤òÁ´¤Æ¤·¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£¤³¤ì¤Ï
¥¯¥ê¥¢¤·¤è¤¦¤È¤·¤Æ¤¤¤ë¥Ó¥Ã¥È¤òɽ¤¹¤Î¤Ç¡¢¤½¤Î·ë²Ì¤Ï <EM>fc#</EM> ¤Î
¥±¡¼¥Ð¥Ó¥ê¥Æ¥£¤È¤Ê¤ê¤Þ¤¹¡£¤â¤Á¤í¤ó¡¢¥¯¥ê¥¢¤ò¹Ô¤Ã¤¿¸å¤ËľÀܥӥåÈÃͤòÀß
Äꤹ¤ë¤³¤È¤â¤Ç¤¤ë¤Î¤Ç¡¢Ã±¤Ë `<CODE>fc#0177777</CODE>' ¤ò»È¤¦¤³¤È¤â¤Ç¤¤Þ
¤¹(É®¼Ô¤Ï¤½¤¦¤·¤Æ¤¤¤Þ¤¹)¡£
<P>
<P>º£Å٤ϡ¢stty ¥³¥Þ¥ó¥É¤Î½ÐÎϤˤª¤¤¤ÆƬ¤Ë¡Ö-¡×¤¬ÉÕ¤¤¤Æ¤¤¤Ê¤¤ÀßÄê(Ʊ¤¸
¥»¥¯¥·¥ç¥ó¤Ë¤¢¤ë¤â¤Î)¤Ë¤Ä¤¤¤Æ¤âƱ¤¸¤³¤È¤ò¹Ô¤Ã¤Æ¤¯¤À¤µ¤¤¡£ËÜʸ¤ÎÎã¤Ç½Å
Í×¤Ê¤Î¤Ï CS8 (0000060), HUPCL (0002000), CREAD (0000200) ¤Ç¤¹¡£
¥Ü¡¼¥ì¡¼¥È(É®¼Ô¤Î¾ì¹ç¤Ï 0000015)¤òɽ¤¹¥Õ¥é¥°¤â³Ð¤¨¤Æ¤ª¤¤Þ¤·¤ç¤¦¡£¤³¤ì
¤é¤òÁ´Éô¤·¹ç¤ï¤»¤Æ¤¯¤À¤µ¤¤¡£ËÜʸ¤ÎÎã¤Ç¤Ï¤³¤ÎÃÍ¤Ï 0002275 ¤Ë¤Ê¤ê¤Þ¤¹¡£
¤³¤ì¤¬ <EM>fs#</EM> ¤Îµ¡Ç½¤Ç¤¹(ËÜʸ¤ÎÎã¤Ç¤Ï
`<CODE>fs#02275</CODE>' ¤Ç¤¦¤Þ¤¯Æ°ºî¤·¤Æ¤¤¤Þ¤¹)¡£
<P>
<P>¤³¤Î¥¤¥ó¥¯¥ë¡¼¥É¥Õ¥¡¥¤¥ë¤Î¼¡¤Î¥»¥¯¥·¥ç¥ó¤Ç¤¢¤ë¡Öc_lflag ¥Ó¥Ã¥È¡×¤Ë¤Ä¤¤
¤Æ¤â¡¢ÀßÄê¤È¥¯¥ê¥¢¤òƱ¤¸¤è¤¦¤Ë¹Ô¤Ã¤Æ¤¯¤À¤µ¤¤¡£É®¼Ô¤Ï²¿¤âÀßÄꤷ¤Æ¤ª¤é¤º¡¢
`<CODE>xc#0157777</CODE>' ¤È `<CODE>xs#0</CODE>' ¤À¤±¤ò»È¤Ã¤Æ¤¤¤Þ¤¹¡£
<P>
<H2><A NAME="ss16.2">16.2 ʸ»úÍî¤Á¤¹¤ë¸Å¤¤¥·¥ê¥¢¥ë¥×¥ê¥ó¥¿</A>
</H2>
<P>Jon Luckey ¤µ¤ó¤Î»ØŦ¤Ë¤è¤ë¤È¡¢¥·¥ê¥¢¥ë¥¤¥ó¥¿¥Õ¥§¡¼¥¹¤¬°Âʪ¤Ç¥Ð¥Ã¥Õ¥¡
¤â¾®¤µ¤¤¥·¥ê¥¢¥ë¥×¥ê¥ó¥¿¤Ë¤Ï¡¢¥Õ¥í¡¼À©¸æ¤ÎºÝ¤Ë<EM>ËÜÅö¤Ë</EM>»ß¤Þ¤Ã¤Æ¤·¤Þ
¤¦¤â¤Î¤â¤¢¤ë¤½¤¦¤Ç¤¹¡£
¤³¤Îʸ»úÍî¤Á¤ÎÌäÂê¤ò²óÈò¤¹¤ë¤¿¤á¤ËÈब¸«¤Ä¤±¤¿ÊýË¡¤Ï¡¢
<CODE>
<A HREF="http://www.linux.or.jp/JM/html/setserial/man8/setserial.8.html">setserial</A></CODE>
¥³¥Þ¥ó¥É¤ò»È¤Ã¤Æ Linux ¥Þ¥·¥ó¤Î 16550 ¥·¥ê¥¢¥ë¥Ý¡¼¥È¤Î FIFO ¤ò̵¸ú¤Ë¤¹
¤ë¤³¤È¤Ç¤¹(¤³¤ì¤ò¹Ô¤¦¤Ë¤Ï¡¢Ã±¤Ë UART ¤Î¥¿¥¤¥×¤È¤·¤Æ 8250 ¤ò»ØÄꤹ¤ì¤Ð
Îɤ¤¤ß¤¿¤¤¤Ç¤¹)¡£
<P>
<P>
<HR>
<A HREF="Printing-HOWTO-17.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="Printing-HOWTO-15.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="Printing-HOWTO.html#toc16">Ìܼ¡¤Ø</A>
</BODY>
</HTML>
|