#, fuzzy msgid "" msgstr "" "Project-Id-Version: man-pages-l10n VERSION\n" "POT-Creation-Date: 2014-07-17 17:57+0900\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. type: TH #: man-pages/man4/tty_ioctl.4:8 #, no-wrap msgid "TTY_IOCTL" msgstr "" #. type: TH #: man-pages/man4/tty_ioctl.4:8 #, no-wrap msgid "2013-11-12" msgstr "" #. type: TH #: man-pages/man4/tty_ioctl.4:8 #, no-wrap msgid "Linux" msgstr "" #. type: TH #: man-pages/man4/tty_ioctl.4:8 #, no-wrap msgid "Linux Programmer's Manual" msgstr "" #. type: SH #: man-pages/man4/tty_ioctl.4:9 #, no-wrap msgid "NAME" msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:11 msgid "tty_ioctl - ioctls for terminals and serial lines" msgstr "" #. type: SH #: man-pages/man4/tty_ioctl.4:11 #, no-wrap msgid "SYNOPSIS" msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:13 msgid "B<#include Etermios.hE>" msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:15 msgid "BIB<, int >IB<, ...);>" msgstr "" #. type: SH #: man-pages/man4/tty_ioctl.4:15 #, no-wrap msgid "DESCRIPTION" msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:23 msgid "" "The B(2) call for terminals and serial ports accepts many possible " "command arguments. Most require a third argument, of varying type, here " "called I or I." msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:30 msgid "" "Use of I makes for nonportable programs. Use the POSIX interface " "described in B(3) whenever possible." msgstr "" #. type: SS #: man-pages/man4/tty_ioctl.4:30 #, no-wrap msgid "Get and set terminal attributes" msgstr "" #. type: TP #: man-pages/man4/tty_ioctl.4:31 #, no-wrap msgid "BI" msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:35 msgid "Equivalent to I." msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:37 msgid "Get the current serial port settings." msgstr "" #. type: TP #: man-pages/man4/tty_ioctl.4:37 #, no-wrap msgid "BI" msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:41 msgid "Equivalent to I." msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:43 msgid "Set the current serial port settings." msgstr "" #. type: TP #: man-pages/man4/tty_ioctl.4:43 #, no-wrap msgid "BI" msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:47 msgid "Equivalent to I." msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:50 msgid "" "Allow the output buffer to drain, and set the current serial port settings." msgstr "" #. type: TP #: man-pages/man4/tty_ioctl.4:50 #, no-wrap msgid "BI" msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:54 msgid "Equivalent to I." msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:57 msgid "" "Allow the output buffer to drain, discard pending input, and set the current " "serial port settings." msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:67 msgid "" "The following four ioctls are just like B, B, B, " "B, except that they take a I instead of a " "I." msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:69 msgid "BI" msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:71 msgid "BI" msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:73 msgid "BI" msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:75 msgid "BI" msgstr "" #. type: SS #: man-pages/man4/tty_ioctl.4:75 #, no-wrap msgid "Locking the termios structure" msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:83 msgid "" "The I structure of a terminal can be locked. The lock is itself a " "I structure, with nonzero bits or fields indicating a locked value." msgstr "" #. type: TP #: man-pages/man4/tty_ioctl.4:83 #, no-wrap msgid "BI" msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:88 msgid "Gets the locking status of the I structure of the terminal." msgstr "" #. type: TP #: man-pages/man4/tty_ioctl.4:88 #, no-wrap msgid "BI" msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:96 msgid "" "Sets the locking status of the I structure of the terminal. Only a " "process with the B capability can do this." msgstr "" #. type: SS #: man-pages/man4/tty_ioctl.4:96 #, no-wrap msgid "Get and set window size" msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:101 msgid "" "Window sizes are kept in the kernel, but not used by the kernel (except in " "the case of virtual consoles, where the kernel will update the window size " "when the size of the virtual console changes, for example, by loading a new " "font)." msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:104 msgid "" "The following constants and structure are defined in Isys/ioctl." "hE>." msgstr "" #. type: TP #: man-pages/man4/tty_ioctl.4:104 #, no-wrap msgid "BI" msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:107 msgid "Get window size." msgstr "" #. type: TP #: man-pages/man4/tty_ioctl.4:107 #, no-wrap msgid "BI" msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:110 msgid "Set window size." msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:112 msgid "The struct used by these ioctls is defined as" msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:121 #, no-wrap msgid "" "struct winsize {\n" " unsigned short ws_row;\n" " unsigned short ws_col;\n" " unsigned short ws_xpixel; /* unused */\n" " unsigned short ws_ypixel; /* unused */\n" "};\n" msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:128 msgid "" "When the window size changes, a B signal is sent to the foreground " "process group." msgstr "" #. type: SS #: man-pages/man4/tty_ioctl.4:128 #, no-wrap msgid "Sending a break" msgstr "" #. type: TP #: man-pages/man4/tty_ioctl.4:129 #, no-wrap msgid "BI" msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:133 msgid "Equivalent to I." msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:144 msgid "" "If the terminal is using asynchronous serial data transmission, and I " "is zero, then send a break (a stream of zero bits) for between 0.25 and 0.5 " "seconds. If the terminal is not using asynchronous serial data " "transmission, then either a break is sent, or the function returns without " "doing anything. When I is nonzero, nobody knows what will happen." msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:162 msgid "" "(SVr4, UnixWare, Solaris, Linux treat I with nonzero " "I like I. SunOS treats I as a multiplier, and sends " "a stream of bits I times as long as done for zero I. DG/UX and " "AIX treat I (when nonzero) as a time interval measured in milliseconds. " " HP-UX ignores I.)" msgstr "" #. type: TP #: man-pages/man4/tty_ioctl.4:162 #, no-wrap msgid "BI" msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:170 msgid "" "So-called \"POSIX version\" of B. It treats nonzero I as a " "timeinterval measured in deciseconds, and does nothing when the driver does " "not support breaks." msgstr "" #. type: TP #: man-pages/man4/tty_ioctl.4:170 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:173 msgid "Turn break on, that is, start sending zero bits." msgstr "" #. type: TP #: man-pages/man4/tty_ioctl.4:173 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:176 msgid "Turn break off, that is, stop sending zero bits." msgstr "" #. type: SS #: man-pages/man4/tty_ioctl.4:176 #, no-wrap msgid "Software flow control" msgstr "" #. type: TP #: man-pages/man4/tty_ioctl.4:177 #, no-wrap msgid "BI" msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:181 msgid "Equivalent to I." msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:189 msgid "" "See B(3) for the argument values B, B, B, " "B." msgstr "" #. type: SS #: man-pages/man4/tty_ioctl.4:189 #, no-wrap msgid "Buffer count and flushing" msgstr "" #. type: TP #: man-pages/man4/tty_ioctl.4:190 #, no-wrap msgid "BI" msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:193 msgid "Get the number of bytes in the input buffer." msgstr "" #. type: TP #: man-pages/man4/tty_ioctl.4:193 #, no-wrap msgid "BI" msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:197 msgid "Same as B." msgstr "" #. type: TP #: man-pages/man4/tty_ioctl.4:197 #, no-wrap msgid "BI" msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:200 msgid "Get the number of bytes in the output buffer." msgstr "" #. type: TP #: man-pages/man4/tty_ioctl.4:200 #, no-wrap msgid "BI" msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:204 msgid "Equivalent to I." msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:211 msgid "" "See B(3) for the argument values B, B, " "B." msgstr "" #. type: SS #: man-pages/man4/tty_ioctl.4:211 #, no-wrap msgid "Faking input" msgstr "" #. type: TP #: man-pages/man4/tty_ioctl.4:212 #, no-wrap msgid "BI" msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:215 msgid "Insert the given byte in the input queue." msgstr "" #. type: SS #: man-pages/man4/tty_ioctl.4:215 #, no-wrap msgid "Redirecting console output" msgstr "" #. type: TP #: man-pages/man4/tty_ioctl.4:216 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:238 msgid "" "Redirect output that would have gone to I or I to " "the given terminal. If that was a pseudoterminal master, send it to the " "slave. In Linux before version 2.6.10, anybody can do this as long as the " "output was not redirected yet; since version 2.6.10, only a process with the " "B capability may do this. If output was redirected already " "B is returned, but redirection can be stopped by using this ioctl " "with I pointing at I or I." msgstr "" #. type: SS #: man-pages/man4/tty_ioctl.4:238 #, no-wrap msgid "Controlling terminal" msgstr "" #. type: TP #: man-pages/man4/tty_ioctl.4:239 #, no-wrap msgid "BI" msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:247 msgid "" "Make the given terminal the controlling terminal of the calling process. " "The calling process must be a session leader and not have a controlling " "terminal already. For this case, I should be specified as zero." msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:257 msgid "" "If this terminal is already the controlling terminal of a different session " "group, then the ioctl fails with B, unless the caller has the " "B capability and I equals 1, in which case the terminal " "is stolen, and all processes that had it as controlling terminal lose it." msgstr "" #. type: TP #: man-pages/man4/tty_ioctl.4:257 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:268 msgid "" "If the given terminal was the controlling terminal of the calling process, " "give up this controlling terminal. If the process was session leader, then " "send B and B to the foreground process group and all " "processes in the current session lose their controlling terminal." msgstr "" #. type: SS #: man-pages/man4/tty_ioctl.4:268 #, no-wrap msgid "Process group and session ID" msgstr "" #. type: TP #: man-pages/man4/tty_ioctl.4:269 #, no-wrap msgid "BI" msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:273 msgid "When successful, equivalent to I<*argp = tcgetpgrp(fd)>." msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:275 msgid "" "Get the process group ID of the foreground process group on this terminal." msgstr "" #. type: TP #: man-pages/man4/tty_ioctl.4:275 #, no-wrap msgid "BI" msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:279 msgid "Equivalent to I." msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:281 msgid "Set the foreground process group ID of this terminal." msgstr "" #. type: TP #: man-pages/man4/tty_ioctl.4:281 #, no-wrap msgid "BI" msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:289 msgid "" "Get the session ID of the given terminal. This will fail with B in " "case the terminal is not a master pseudoterminal and not our controlling " "terminal. Strange." msgstr "" #. type: SS #: man-pages/man4/tty_ioctl.4:289 #, no-wrap msgid "Exclusive mode" msgstr "" #. type: TP #: man-pages/man4/tty_ioctl.4:290 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:301 msgid "" "Put the terminal into exclusive mode. No further B(2) operations on " "the terminal are permitted. (They will fail with B, except for a " "process with the B capability.)" msgstr "" #. type: TP #: man-pages/man4/tty_ioctl.4:301 #, no-wrap msgid "B" msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:304 msgid "Disable exclusive mode." msgstr "" #. type: SS #: man-pages/man4/tty_ioctl.4:304 #, no-wrap msgid "Line discipline" msgstr "" #. type: TP #: man-pages/man4/tty_ioctl.4:305 #, no-wrap msgid "BI" msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:308 msgid "Get the line discipline of the terminal." msgstr "" #. type: TP #: man-pages/man4/tty_ioctl.4:308 #, no-wrap msgid "BI" msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:311 msgid "Set the line discipline of the terminal." msgstr "" #. type: SS #: man-pages/man4/tty_ioctl.4:311 #, no-wrap msgid "Pseudoterminal ioctls" msgstr "" #. type: TP #: man-pages/man4/tty_ioctl.4:312 #, no-wrap msgid "BI" msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:329 msgid "" "Enable (when *I is nonzero) or disable packet mode. Can be applied to " "the master side of a pseudoterminal only (and will return B " "otherwise). In packet mode, each subsequent B(2) will return a " "packet that either contains a single nonzero control byte, or has a single " "byte containing zero (\\(aq\\0\\(aq) followed by data written on the slave " "side of the pseudoterminal. If the first byte is not B (0), " "it is an OR of one or more of the following bits:" msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:337 #, no-wrap msgid "" "TIOCPKT_FLUSHREAD The read queue for the terminal is flushed.\n" "TIOCPKT_FLUSHWRITE The write queue for the terminal is flushed.\n" "TIOCPKT_STOP Output to the terminal is stopped.\n" "TIOCPKT_START Output to the terminal is restarted.\n" "TIOCPKT_DOSTOP The start and stop characters are B<^S>/B<^Q>.\n" "TIOCPKT_NOSTOP The start and stop characters are not B<^S>/B<^Q>.\n" msgstr "" #. type: Plain text #: man-pages/man4/tty_ioctl.4:344 msgid "" "While this mode is in use, the presence of control status information to be " "read from the master side may be detected by a B