1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2013-03-22 01:07+0900\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <LL@li.org>\n"
16 "Content-Type: text/plain; charset=CHARSET\n"
17 "Content-Transfer-Encoding: 8bit\n"
20 #: build/C/man3/getpass.3:24
26 #: build/C/man3/getpass.3:24 build/C/man3/termios.3:40
32 #: build/C/man3/getpass.3:24 build/C/man3/isatty.3:26 build/C/man4/pts.4:8 build/C/man7/pty.7:25 build/C/man5/securetty.5:26 build/C/man5/termcap.5:31 build/C/man7/termio.7:27 build/C/man3/termios.3:40 build/C/man4/tty.4:28 build/C/man4/tty_ioctl.4:8 build/C/man3/ttyname.3:27 build/C/man5/ttytype.5:29
38 #: build/C/man3/getpass.3:24 build/C/man3/getpt.3:7 build/C/man3/getttyent.3:7 build/C/man3/grantpt.3:5 build/C/man3/isatty.3:26 build/C/man3/openpty.3:34 build/C/man3/posix_openpt.3:25 build/C/man4/pts.4:8 build/C/man3/ptsname.3:7 build/C/man7/pty.7:25 build/C/man5/securetty.5:26 build/C/man3/tcgetsid.3:25 build/C/man5/termcap.5:31 build/C/man7/termio.7:27 build/C/man3/termios.3:40 build/C/man4/tty.4:28 build/C/man4/tty_ioctl.4:8 build/C/man3/ttyname.3:27 build/C/man3/ttyslot.3:28 build/C/man5/ttytype.5:29 build/C/man3/unlockpt.3:5
40 msgid "Linux Programmer's Manual"
44 #: build/C/man3/getpass.3:25 build/C/man3/getpt.3:8 build/C/man3/getttyent.3:8 build/C/man3/grantpt.3:6 build/C/man3/isatty.3:27 build/C/man3/openpty.3:35 build/C/man3/posix_openpt.3:26 build/C/man4/pts.4:9 build/C/man3/ptsname.3:8 build/C/man7/pty.7:26 build/C/man5/securetty.5:27 build/C/man3/tcgetsid.3:26 build/C/man5/termcap.5:32 build/C/man7/termio.7:28 build/C/man3/termios.3:41 build/C/man4/tty.4:29 build/C/man4/tty_ioctl.4:9 build/C/man3/ttyname.3:28 build/C/man3/ttyslot.3:29 build/C/man5/ttytype.5:30 build/C/man3/unlockpt.3:6
50 #: build/C/man3/getpass.3:27
51 msgid "getpass - get a password"
55 #: build/C/man3/getpass.3:27 build/C/man3/getpt.3:10 build/C/man3/getttyent.3:10 build/C/man3/grantpt.3:8 build/C/man3/isatty.3:29 build/C/man3/openpty.3:37 build/C/man3/posix_openpt.3:28 build/C/man3/ptsname.3:10 build/C/man3/tcgetsid.3:28 build/C/man3/termios.3:45 build/C/man4/tty_ioctl.4:11 build/C/man3/ttyname.3:30 build/C/man3/ttyslot.3:31 build/C/man3/unlockpt.3:8
61 #: build/C/man3/getpass.3:29
62 msgid "B<#include E<lt>unistd.hE<gt>>"
66 #: build/C/man3/getpass.3:31
67 msgid "B<char *getpass( const char *>I<prompt>B<);>"
71 #: build/C/man3/getpass.3:35 build/C/man3/posix_openpt.3:39 build/C/man3/termios.3:80 build/C/man3/ttyslot.3:41
72 msgid "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
76 #: build/C/man3/getpass.3:38
81 #: build/C/man3/getpass.3:41
83 msgid "Since glibc 2.2.2:"
87 #: build/C/man3/getpass.3:48
91 " (_XOPEN_SOURCE\\ E<gt>=\\ 500 ||\n"
92 " _XOPEN_SOURCE\\ &&\\ _XOPEN_SOURCE_EXTENDED) &&\n"
93 " !(_POSIX_C_SOURCE\\ E<gt>=\\ 200112L || _XOPEN_SOURCE\\ E<gt>=\\ 600)\n"
97 #: build/C/man3/getpass.3:51
98 msgid "Before glibc 2.2.2: none"
102 #: build/C/man3/getpass.3:54 build/C/man3/getpt.3:17 build/C/man3/getttyent.3:20 build/C/man3/grantpt.3:16 build/C/man3/isatty.3:35 build/C/man3/openpty.3:55 build/C/man3/posix_openpt.3:45 build/C/man4/pts.4:11 build/C/man3/ptsname.3:24 build/C/man7/pty.7:28 build/C/man5/securetty.5:29 build/C/man3/tcgetsid.3:34 build/C/man5/termcap.5:34 build/C/man7/termio.7:30 build/C/man3/termios.3:85 build/C/man4/tty.4:31 build/C/man4/tty_ioctl.4:15 build/C/man3/ttyname.3:38 build/C/man3/ttyslot.3:51 build/C/man5/ttytype.5:32 build/C/man3/unlockpt.3:16
108 #: build/C/man3/getpass.3:62
110 "This function is obsolete. Do not use it. If you want to read input "
111 "without terminal echoing enabled, see the description of the I<ECHO> flag in "
116 #: build/C/man3/getpass.3:73
118 "The B<getpass>() function opens I</dev/tty> (the controlling terminal of "
119 "the process), outputs the string I<prompt>, turns off echoing, reads one "
120 "line (the \"password\"), restores the terminal state and closes I</dev/tty> "
125 #: build/C/man3/getpass.3:73 build/C/man3/getpt.3:28 build/C/man3/grantpt.3:31 build/C/man3/isatty.3:41 build/C/man3/openpty.3:113 build/C/man3/posix_openpt.3:62 build/C/man3/ptsname.3:42 build/C/man3/tcgetsid.3:42 build/C/man3/termios.3:906 build/C/man4/tty_ioctl.4:434 build/C/man3/ttyname.3:52 build/C/man3/ttyslot.3:117 build/C/man3/unlockpt.3:25
131 #: build/C/man3/getpass.3:84
133 "The function B<getpass>() returns a pointer to a static buffer containing "
134 "(the first B<PASS_MAX> bytes of) the password without the trailing newline, "
135 "terminated by a null byte (\\(aq\\e0\\(aq). This buffer may be overwritten "
136 "by a following call. On error, the terminal state is restored, I<errno> is "
137 "set appropriately, and NULL is returned."
141 #: build/C/man3/getpass.3:84 build/C/man3/getpt.3:35 build/C/man3/grantpt.3:38 build/C/man3/isatty.3:49 build/C/man3/openpty.3:130 build/C/man3/posix_openpt.3:70 build/C/man3/ptsname.3:59 build/C/man3/tcgetsid.3:52 build/C/man4/tty_ioctl.4:441 build/C/man3/ttyname.3:62 build/C/man3/unlockpt.3:32
147 #: build/C/man3/getpass.3:86
148 msgid "The function may fail if"
152 #: build/C/man3/getpass.3:86
158 #: build/C/man3/getpass.3:89
159 msgid "The process does not have a controlling terminal."
163 #: build/C/man3/getpass.3:89 build/C/man4/pts.4:54 build/C/man7/pty.7:124 build/C/man5/securetty.5:41 build/C/man4/tty.4:64 build/C/man5/ttytype.5:53
171 #. function appeared in Version 7 AT&T UNIX.
173 #: build/C/man3/getpass.3:95
178 #: build/C/man3/getpass.3:95 build/C/man3/getpt.3:42 build/C/man3/getttyent.3:72 build/C/man3/grantpt.3:55 build/C/man3/isatty.3:62 build/C/man3/openpty.3:150 build/C/man3/posix_openpt.3:77 build/C/man3/ptsname.3:79 build/C/man3/tcgetsid.3:65 build/C/man3/termios.3:932 build/C/man3/ttyname.3:74 build/C/man3/ttyslot.3:123 build/C/man3/unlockpt.3:46
180 msgid "CONFORMING TO"
184 #: build/C/man3/getpass.3:98
185 msgid "Present in SUSv2, but marked LEGACY. Removed in POSIX.1-2001."
189 #: build/C/man3/getpass.3:98 build/C/man3/getttyent.3:75 build/C/man3/grantpt.3:57 build/C/man3/openpty.3:153 build/C/man3/posix_openpt.3:82 build/C/man4/pts.4:57 build/C/man7/pty.7:136 build/C/man3/tcgetsid.3:67 build/C/man3/termios.3:950 build/C/man3/ttyslot.3:126
195 #: build/C/man3/getpass.3:119
197 "For libc4 and libc5, the prompt is not written to I</dev/tty> but to "
198 "I<stderr>. Moreover, if I</dev/tty> cannot be opened, the password is read "
199 "from I<stdin>. The static buffer has length 128 so that only the first 127 "
200 "bytes of the password are returned. While reading the password, signal "
201 "generation (B<SIGINT>, B<SIGQUIT>, B<SIGSTOP>, B<SIGTSTP>) is disabled and "
202 "the corresponding characters (usually control-C, control-\\e, control-Z and "
203 "control-Y) are transmitted as part of the password. Since libc 5.4.19 also "
204 "line editing is disabled, so that also backspace and the like will be seen "
205 "as part of the password."
209 #: build/C/man3/getpass.3:128
211 "For glibc2, if I</dev/tty> cannot be opened, the prompt is written to "
212 "I<stderr> and the password is read from I<stdin>. There is no limit on the "
213 "length of the password. Line editing is not disabled."
217 #: build/C/man3/getpass.3:150
219 "According to the SUSv2, the value of B<PASS_MAX> must be defined in "
220 "I<E<lt>limits.hE<gt>> in case it is smaller than 8, and can in any case be "
221 "obtained using I<sysconf(_SC_PASS_MAX)>. However, POSIX.2 withdraws the "
222 "constants B<PASS_MAX> and B<_SC_PASS_MAX>, and the function B<getpass>(). "
223 "Libc4 and libc5 have never supported B<PASS_MAX> or B<_SC_PASS_MAX>. Glibc2 "
224 "accepts B<_SC_PASS_MAX> and returns B<BUFSIZ> (e.g., 8192)."
228 #: build/C/man3/getpass.3:150 build/C/man3/openpty.3:168
234 #: build/C/man3/getpass.3:153
236 "The calling process should zero the password as soon as possible to avoid "
237 "leaving the cleartext password visible in the process's address space."
241 #: build/C/man3/getpass.3:153 build/C/man3/getpt.3:48 build/C/man3/getttyent.3:79 build/C/man3/grantpt.3:63 build/C/man3/isatty.3:64 build/C/man3/openpty.3:178 build/C/man3/posix_openpt.3:106 build/C/man4/pts.4:69 build/C/man3/ptsname.3:92 build/C/man7/pty.7:152 build/C/man5/securetty.5:43 build/C/man3/tcgetsid.3:73 build/C/man5/termcap.5:470 build/C/man7/termio.7:59 build/C/man3/termios.3:977 build/C/man4/tty.4:66 build/C/man4/tty_ioctl.4:477 build/C/man3/ttyname.3:76 build/C/man3/ttyslot.3:146 build/C/man5/ttytype.5:67 build/C/man3/unlockpt.3:48
247 #: build/C/man3/getpass.3:155
252 #: build/C/man3/getpass.3:155 build/C/man3/getpt.3:55 build/C/man3/getttyent.3:82 build/C/man3/grantpt.3:70 build/C/man3/isatty.3:67 build/C/man3/openpty.3:182 build/C/man3/posix_openpt.3:114 build/C/man4/pts.4:75 build/C/man3/ptsname.3:99 build/C/man7/pty.7:161 build/C/man5/securetty.5:46 build/C/man3/tcgetsid.3:75 build/C/man5/termcap.5:474 build/C/man7/termio.7:66 build/C/man3/termios.3:982 build/C/man4/tty.4:76 build/C/man4/tty_ioctl.4:496 build/C/man3/ttyname.3:80 build/C/man3/ttyslot.3:150 build/C/man5/ttytype.5:72 build/C/man3/unlockpt.3:54
258 #: build/C/man3/getpass.3:162 build/C/man3/getpt.3:62 build/C/man3/getttyent.3:89 build/C/man3/grantpt.3:77 build/C/man3/isatty.3:74 build/C/man3/openpty.3:189 build/C/man3/posix_openpt.3:121 build/C/man4/pts.4:82 build/C/man3/ptsname.3:106 build/C/man7/pty.7:168 build/C/man5/securetty.5:53 build/C/man3/tcgetsid.3:82 build/C/man5/termcap.5:481 build/C/man7/termio.7:73 build/C/man3/termios.3:989 build/C/man4/tty.4:83 build/C/man4/tty_ioctl.4:503 build/C/man3/ttyname.3:87 build/C/man3/ttyslot.3:157 build/C/man5/ttytype.5:79 build/C/man3/unlockpt.3:61
260 "This page is part of release 3.50 of the Linux I<man-pages> project. A "
261 "description of the project, and information about reporting bugs, can be "
262 "found at http://www.kernel.org/doc/man-pages/."
266 #: build/C/man3/getpt.3:7
272 #: build/C/man3/getpt.3:7 build/C/man3/tcgetsid.3:25
278 #: build/C/man3/getpt.3:7 build/C/man3/getttyent.3:7 build/C/man3/grantpt.3:5 build/C/man3/openpty.3:34 build/C/man3/tcgetsid.3:25 build/C/man3/ttyslot.3:28
284 #: build/C/man3/getpt.3:10
285 msgid "getpt - open the pseudoterminal master (PTM)"
289 #: build/C/man3/getpt.3:14
292 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
293 "B<#include E<lt>stdlib.hE<gt>>\n"
297 #: build/C/man3/getpt.3:16
299 msgid "B<int getpt(void);>\n"
303 #: build/C/man3/getpt.3:21
305 "B<getpt>() opens a pseudoterminal master and returns its file descriptor. "
306 "It is equivalent to"
310 #: build/C/man3/getpt.3:24
312 msgid " open(/dev/ptmx, O_RDWR | O_NOCTTY);\n"
316 #: build/C/man3/getpt.3:28
318 "on Linux systems, though the pseudoterminal master is located elsewhere on "
319 "some systems that use GNU Libc."
323 #: build/C/man3/getpt.3:35
325 "B<getpt>() returns an open file descriptor upon successful completion. "
326 "Otherwise, it returns -1 and sets I<errno> to indicate the error."
330 #: build/C/man3/getpt.3:39
331 msgid "B<getpt>() can fail with various errors described in B<open>(2)."
335 #: build/C/man3/getpt.3:39 build/C/man3/grantpt.3:52 build/C/man3/posix_openpt.3:73 build/C/man3/ptsname.3:76 build/C/man3/tcgetsid.3:62 build/C/man3/unlockpt.3:43
341 #: build/C/man3/getpt.3:42
342 msgid "B<getpt>() is provided in glibc since version 2.1."
346 #: build/C/man3/getpt.3:48
347 msgid "B<getpt>() is glibc-specific; use B<posix_openpt>(3) instead."
351 #: build/C/man3/getpt.3:55
353 "B<grantpt>(3), B<posix_openpt>(3), B<ptsname>(3), B<unlockpt>(3), "
354 "B<ptmx>(4), B<pty>(7)"
358 #: build/C/man3/getttyent.3:7
364 #: build/C/man3/getttyent.3:7
370 #: build/C/man3/getttyent.3:10
371 msgid "getttyent, getttynam, setttyent, endttyent - get ttys file entry"
375 #: build/C/man3/getttyent.3:12
376 msgid "B<#include E<lt>ttyent.hE<gt>>"
380 #: build/C/man3/getttyent.3:14
381 msgid "B<struct ttyent *getttyent(void);>"
385 #: build/C/man3/getttyent.3:16
386 msgid "B<struct ttyent *getttynam(const char *>I<name>B<);>"
390 #: build/C/man3/getttyent.3:18
391 msgid "B<int setttyent(void);>"
395 #: build/C/man3/getttyent.3:20
396 msgid "B<int endttyent(void);>"
400 #: build/C/man3/getttyent.3:25
402 "These functions provide an interface to the file B<_PATH_TTYS> (e.g., "
407 #: build/C/man3/getttyent.3:29
408 msgid "The function B<setttyent>() opens the file or rewinds it if already open."
412 #: build/C/man3/getttyent.3:33
413 msgid "The function B<endttyent>() closes the file."
417 #: build/C/man3/getttyent.3:40
419 "The function B<getttynam>() searches for a given terminal name in the "
420 "file. It returns a pointer to a I<ttyent> structure (description below)."
424 #: build/C/man3/getttyent.3:50
426 "The function B<getttyent>() opens the file B<_PATH_TTYS> (if necessary) and "
427 "returns the first entry. If the file is already open, the next entry. The "
428 "I<ttyent> structure has the form:"
432 #: build/C/man3/getttyent.3:61
436 " char *ty_name; /* terminal device name */\n"
437 " char *ty_getty; /* command to execute, usually getty */\n"
438 " char *ty_type; /* terminal type for termcap */\n"
439 " int ty_status; /* status flags */\n"
440 " char *ty_window; /* command to start up window manager */\n"
441 " char *ty_comment; /* comment field */\n"
446 #: build/C/man3/getttyent.3:66
447 msgid "I<ty_status> can be:"
451 #: build/C/man3/getttyent.3:71
454 "#define TTY_ON 0x01 /* enable logins (start ty_getty program) */\n"
455 "#define TTY_SECURE 0x02 /* allow UID 0 to login */\n"
459 #: build/C/man3/getttyent.3:75
460 msgid "Not in POSIX.1-2001. Present on the BSDs, and perhaps other systems."
464 #: build/C/man3/getttyent.3:79
466 "Under Linux the file I</etc/ttys>, and the functions described above, are "
471 #: build/C/man3/getttyent.3:82
472 msgid "B<ttyname>(3), B<ttyslot>(3)"
476 #: build/C/man3/grantpt.3:5
482 #: build/C/man3/grantpt.3:5 build/C/man3/unlockpt.3:5
488 #: build/C/man3/grantpt.3:8
489 msgid "grantpt - grant access to the slave pseudoterminal"
493 #: build/C/man3/grantpt.3:11 build/C/man3/ptsname.3:13 build/C/man3/unlockpt.3:11
495 msgid "B<#define _XOPEN_SOURCE> /* See feature_test_macros(7) */\n"
499 #: build/C/man3/grantpt.3:13 build/C/man3/ptsname.3:15 build/C/man3/ptsname.3:21 build/C/man3/unlockpt.3:13
501 msgid "B<#include E<lt>stdlib.hE<gt>>\n"
505 #: build/C/man3/grantpt.3:15
507 msgid "B<int grantpt(int >I<fd>B<);>\n"
511 #: build/C/man3/grantpt.3:25
513 "The B<grantpt>() function changes the mode and owner of the slave "
514 "pseudoterminal device corresponding to the master pseudoterminal referred to "
515 "by I<fd>. The user ID of the slave is set to the real UID of the calling "
516 "process. The group ID is set to an unspecified value (e.g., I<tty>). The "
517 "mode of the slave is set to 0620 (crw--w----)."
521 #: build/C/man3/grantpt.3:31
523 "The behavior of B<grantpt>() is unspecified if a signal handler is "
524 "installed to catch B<SIGCHLD> signals."
528 #: build/C/man3/grantpt.3:38
530 "When successful, B<grantpt>() returns 0. Otherwise, it returns -1 and sets "
531 "I<errno> appropriately."
535 #: build/C/man3/grantpt.3:39
541 #: build/C/man3/grantpt.3:42
542 msgid "The corresponding slave pseudoterminal could not be accessed."
546 #: build/C/man3/grantpt.3:42 build/C/man3/isatty.3:50 build/C/man3/tcgetsid.3:53 build/C/man3/ttyname.3:63 build/C/man3/unlockpt.3:33
552 #: build/C/man3/grantpt.3:47
553 msgid "The I<fd> argument is not a valid open file descriptor."
557 #: build/C/man3/grantpt.3:47 build/C/man3/isatty.3:54 build/C/man3/ptsname.3:60 build/C/man4/tty_ioctl.4:442 build/C/man3/unlockpt.3:38
563 #: build/C/man3/grantpt.3:52
564 msgid "The I<fd> argument is valid but not associated with a master pseudoterminal."
568 #: build/C/man3/grantpt.3:55
569 msgid "B<grantpt>() is provided in glibc since version 2.1."
573 #: build/C/man3/grantpt.3:57 build/C/man3/tcgetsid.3:67 build/C/man3/unlockpt.3:48
574 msgid "POSIX.1-2001."
578 #: build/C/man3/grantpt.3:63
580 "This is part of the UNIX 98 pseudoterminal support, see B<pts>(4). Many "
581 "systems implement this function via a set-user-ID helper binary called "
582 "\"pt_chown\". With Linux devpts no such helper binary is required."
586 #: build/C/man3/grantpt.3:70
588 "B<open>(2), B<posix_openpt>(3), B<ptsname>(3), B<unlockpt>(3), B<pts>(4), "
593 #: build/C/man3/isatty.3:26
599 #: build/C/man3/isatty.3:26
605 #: build/C/man3/isatty.3:29
606 msgid "isatty - test whether a file descriptor refers to a terminal"
610 #: build/C/man3/isatty.3:32 build/C/man3/termios.3:50 build/C/man3/ttyname.3:33
612 msgid "B<#include E<lt>unistd.hE<gt>>\n"
616 #: build/C/man3/isatty.3:34
618 msgid "B<int isatty(int >I<fd>B<);>\n"
622 #: build/C/man3/isatty.3:41
624 "The B<isatty>() function tests whether I<fd> is an open file descriptor "
625 "referring to a terminal."
629 #: build/C/man3/isatty.3:49
631 "B<isatty>() returns 1 if I<fd> is an open file descriptor referring to a "
632 "terminal; otherwise 0 is returned, and I<errno> is set to indicate the "
637 #: build/C/man3/isatty.3:54 build/C/man3/tcgetsid.3:57
638 msgid "I<fd> is not a valid file descriptor."
641 #. FIXME File a bug for this?
643 #: build/C/man3/isatty.3:62
645 "I<fd> refers to a file other than a terminal. POSIX.1-2001 specifies the "
646 "error B<ENOTTY> for this case."
650 #: build/C/man3/isatty.3:64
651 msgid "SVr4, 4.3BSD, POSIX.1-2001."
655 #: build/C/man3/isatty.3:67
656 msgid "B<fstat>(2), B<ttyname>(3)"
660 #: build/C/man3/openpty.3:34
666 #: build/C/man3/openpty.3:34
672 #: build/C/man3/openpty.3:37
673 msgid "openpty, login_tty, forkpty - terminal utility functions"
677 #: build/C/man3/openpty.3:40
679 msgid "B<#include E<lt>pty.hE<gt>>\n"
683 #: build/C/man3/openpty.3:44
686 "B<int openpty(int *>I<amaster>B<, int *>I<aslave>B<, char *>I<name>B<,>\n"
687 "B< const struct termios *>I<termp>B<,>\n"
688 "B< const struct winsize *>I<winp>B<);>\n"
692 #: build/C/man3/openpty.3:48
695 "B<pid_t forkpty(int *>I<amaster>B<, char *>I<name>B<,>\n"
696 "B< const struct termios *>I<termp>B<,>\n"
697 "B< const struct winsize *>I<winp>B<);>\n"
701 #: build/C/man3/openpty.3:50
703 msgid "B<#include E<lt>utmp.hE<gt>>\n"
707 #: build/C/man3/openpty.3:52
709 msgid "B<int login_tty(int >I<fd>B<);>\n"
713 #: build/C/man3/openpty.3:54
715 msgid "Link with I<-lutil>.\n"
719 #: build/C/man3/openpty.3:76
721 "The B<openpty>() function finds an available pseudoterminal and returns "
722 "file descriptors for the master and slave in I<amaster> and I<aslave>. If "
723 "I<name> is not NULL, the filename of the slave is returned in I<name>. If "
724 "I<termp> is not NULL, the terminal parameters of the slave will be set to "
725 "the values in I<termp>. If I<winp> is not NULL, the window size of the "
726 "slave will be set to the values in I<winp>."
730 #: build/C/man3/openpty.3:91
732 "The B<login_tty>() function prepares for a login on the terminal I<fd> "
733 "(which may be a real terminal device, or the slave of a pseudoterminal as "
734 "returned by B<openpty>()) by creating a new session, making I<fd> the "
735 "controlling terminal for the calling process, setting I<fd> to be the "
736 "standard input, output, and error streams of the current process, and "
741 #: build/C/man3/openpty.3:113
743 "The B<forkpty>() function combines B<openpty>(), B<fork>(2), and "
744 "B<login_tty>() to create a new process operating in a pseudoterminal. The "
745 "file descriptor of the master side of the pseudoterminal is returned in "
746 "I<amaster>, and the filename of the slave in I<name> if it is not NULL. The "
747 "I<termp> and I<winp> arguments, if not NULL, will determine the terminal "
748 "attributes and window size of the slave side of the pseudoterminal."
752 #: build/C/man3/openpty.3:130
754 "If a call to B<openpty>(), B<login_tty>(), or B<forkpty>() is not "
755 "successful, -1 is returned and I<errno> is set to indicate the error. "
756 "Otherwise, B<openpty>(), B<login_tty>(), and the child process of "
757 "B<forkpty>() return 0, and the parent process of B<forkpty>() returns the "
758 "process ID of the child process."
762 #: build/C/man3/openpty.3:133
763 msgid "B<openpty>() will fail if:"
767 #: build/C/man3/openpty.3:133
773 #: build/C/man3/openpty.3:136
774 msgid "There are no available terminals."
778 #: build/C/man3/openpty.3:143
780 "B<login_tty>() will fail if B<ioctl>(2) fails to set I<fd> to the "
781 "controlling terminal of the calling process."
785 #: build/C/man3/openpty.3:150
786 msgid "B<forkpty>() will fail if either B<openpty>() or B<fork>(2) fails."
790 #: build/C/man3/openpty.3:153
792 "These are BSD functions, present in libc5 and glibc2. They are not "
793 "standardized in POSIX."
797 #: build/C/man3/openpty.3:161
799 "The B<const> modifiers were added to the structure pointer arguments of "
800 "B<openpty>() and B<forkpty>() in glibc 2.8."
804 #: build/C/man3/openpty.3:168
806 "In versions of glibc before 2.0.92, B<openpty>() returns file descriptors "
807 "for a BSD pseudoterminal pair; since glibc 2.0.92, it first attempts to open "
808 "a UNIX 98 pseudoterminal pair, and falls back to opening a BSD "
809 "pseudoterminal pair if that fails."
813 #: build/C/man3/openpty.3:178
815 "Nobody knows how much space should be reserved for I<name>. So, calling "
816 "B<openpty>() or B<forkpty>() with non-NULL I<name> may not be secure."
820 #: build/C/man3/openpty.3:182
821 msgid "B<fork>(2), B<ttyname>(3), B<pty>(7)"
825 #: build/C/man3/posix_openpt.3:25
831 #: build/C/man3/posix_openpt.3:25
837 #: build/C/man3/posix_openpt.3:28
838 msgid "posix_openpt - open a pseudoterminal device"
842 #: build/C/man3/posix_openpt.3:32
845 "B<#include E<lt>stdlib.hE<gt>>\n"
846 "B<#include E<lt>fcntl.hE<gt>>\n"
850 #: build/C/man3/posix_openpt.3:34
852 msgid "B<int posix_openpt(int >I<flags>B<);>\n"
856 #: build/C/man3/posix_openpt.3:44
857 msgid "B<posix_openpt>(): _XOPEN_SOURCE\\ E<gt>=\\ 600"
861 #: build/C/man3/posix_openpt.3:50
863 "The B<posix_openpt>() function opens an unused pseudoterminal master "
864 "device, returning a file descriptor that can be used to refer to that "
869 #: build/C/man3/posix_openpt.3:55
871 "The I<flags> argument is a bit mask that ORs together zero or more of the "
876 #: build/C/man3/posix_openpt.3:55
882 #: build/C/man3/posix_openpt.3:59
884 "Open the device for both reading and writing. It is usual to specify this "
889 #: build/C/man3/posix_openpt.3:59
895 #: build/C/man3/posix_openpt.3:62
896 msgid "Do not make this device the controlling terminal for the process."
900 #: build/C/man3/posix_openpt.3:70
902 "On success, B<posix_openpt>() returns a nonnegative file descriptor which "
903 "is the lowest numbered unused descriptor. On failure, -1 is returned, and "
904 "I<errno> is set to indicate the error."
908 #: build/C/man3/posix_openpt.3:73
909 msgid "See B<open>(2)."
913 #: build/C/man3/posix_openpt.3:77
914 msgid "Glibc support for B<posix_openpt>() has been provided since version 2.2.1."
918 #: build/C/man3/posix_openpt.3:82
920 "B<posix_openpt>() is part of the UNIX 98 pseudoterminal support (see "
921 "B<pts>(4)). This function is specified in POSIX.1-2001."
925 #: build/C/man3/posix_openpt.3:89
927 "The B<posix_openpt>() function is a recent invention in POSIX. Some UNIX "
928 "implementations that support System V (aka UNIX 98) pseudoterminals don't "
929 "have this function, but it is easy to implement:"
933 #: build/C/man3/posix_openpt.3:97
937 "posix_openpt(int flags)\n"
939 " return open(\"/dev/ptmx\", flags);\n"
944 #: build/C/man3/posix_openpt.3:106
946 "Calling B<posix_openpt>() creates a pathname for the corresponding "
947 "pseudoterminal slave device. The pathname of the slave device can be "
948 "obtained using B<ptsname>(3). The slave device pathname exists only as long "
949 "as the master device is open."
953 #: build/C/man3/posix_openpt.3:114
955 "B<open>(2), B<getpt>(3), B<grantpt>(3), B<ptsname>(3), B<unlockpt>(3), "
956 "B<pts>(4), B<pty>(7)"
960 #: build/C/man4/pts.4:8
966 #: build/C/man4/pts.4:8
972 #: build/C/man4/pts.4:11
973 msgid "ptmx, pts - pseudoterminal master and slave"
977 #: build/C/man4/pts.4:15
979 "The file I</dev/ptmx> is a character file with major number 5 and minor "
980 "number 2, usually of mode 0666 and owner.group of root.root. It is used to "
981 "create a pseudoterminal master and slave pair."
985 #: build/C/man4/pts.4:25
987 "When a process opens I</dev/ptmx>, it gets a file descriptor for a "
988 "pseudoterminal master (PTM), and a pseudoterminal slave (PTS) device is "
989 "created in the I</dev/pts> directory. Each file descriptor obtained by "
990 "opening I</dev/ptmx> is an independent PTM with its own associated PTS, "
991 "whose path can be found by passing the descriptor to B<ptsname>(3)."
995 #: build/C/man4/pts.4:31
997 "Before opening the pseudoterminal slave, you must pass the master's file "
998 "descriptor to B<grantpt>(3) and B<unlockpt>(3)."
1002 #: build/C/man4/pts.4:34
1004 "Once both the pseudoterminal master and slave are open, the slave provides "
1005 "processes with an interface that is identical to that of a real terminal."
1009 #: build/C/man4/pts.4:37
1011 "Data written to the slave is presented on the master descriptor as input. "
1012 "Data written to the master is presented to the slave as input."
1016 #: build/C/man4/pts.4:48
1018 "In practice, pseudoterminals are used for implementing terminal emulators "
1019 "such as B<xterm>(1), in which data read from the pseudoterminal master is "
1020 "interpreted by the application in the same way a real terminal would "
1021 "interpret the data, and for implementing remote-login programs such as "
1022 "B<sshd>(8), in which data read from the pseudoterminal master is sent across "
1023 "the network to a client program that is connected to a terminal or terminal "
1028 #: build/C/man4/pts.4:54
1030 "Pseudoterminals can also be used to send input to programs that normally "
1031 "refuse to read input from pipes (such as B<su>(1), and B<passwd>(1))."
1035 #: build/C/man4/pts.4:57
1036 msgid "I</dev/ptmx>, I</dev/pts/*>"
1040 #: build/C/man4/pts.4:63
1042 "The Linux support for the above (known as UNIX 98 pseudoterminal naming) is "
1043 "done using the I<devpts> file system, that should be mounted on I</dev/pts>."
1047 #: build/C/man4/pts.4:69
1049 "Before this UNIX 98 scheme, master pseudoterminals were called "
1050 "I</dev/ptyp0>, ... and slave pseudoterminals I</dev/ttyp0>, ... and one "
1051 "needed lots of preallocated device nodes."
1055 #: build/C/man4/pts.4:75
1056 msgid "B<getpt>(3), B<grantpt>(3), B<ptsname>(3), B<unlockpt>(3), B<pty>(7)"
1060 #: build/C/man3/ptsname.3:7
1066 #: build/C/man3/ptsname.3:7
1072 #: build/C/man3/ptsname.3:10
1073 msgid "ptsname, ptsname_r - get the name of the slave pseudoterminal"
1077 #: build/C/man3/ptsname.3:17
1079 msgid "B<char *ptsname(int >I<fd>B<);>\n"
1083 #: build/C/man3/ptsname.3:19
1085 msgid "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
1089 #: build/C/man3/ptsname.3:23
1091 msgid "B<int ptsname_r(int >I<fd>B<, char *>I<buf>B<, size_t >I<buflen>B<);>\n"
1095 #: build/C/man3/ptsname.3:30
1097 "The B<ptsname>() function returns the name of the slave pseudoterminal "
1098 "device corresponding to the master referred to by I<fd>."
1102 #: build/C/man3/ptsname.3:42
1104 "The B<ptsname_r>() function is the reentrant equivalent of B<ptsname>(). "
1105 "It returns the name of the slave pseudoterminal device as a null-terminated "
1106 "string in the buffer pointed to by I<buf>. The I<buflen> argument specifies "
1107 "the number of bytes available in I<buf>."
1111 #: build/C/man3/ptsname.3:49
1113 "On success, B<ptsname>() returns a pointer to a string in static storage "
1114 "which will be overwritten by subsequent calls. This pointer must not be "
1115 "freed. On failure, a NULL pointer is returned."
1118 #. In fact the errno value is also returned as the function
1119 #. result -- MTK, Dec 04
1121 #: build/C/man3/ptsname.3:59
1123 "On success, B<ptsname_r>() returns 0. On failure, a nonzero value is "
1124 "returned and I<errno> is set to indicate the error."
1128 #: build/C/man3/ptsname.3:66
1129 msgid "(B<ptsname_r>() only) I<buf> is NULL."
1133 #: build/C/man3/ptsname.3:66 build/C/man3/tcgetsid.3:57 build/C/man4/tty_ioctl.4:448 build/C/man3/ttyname.3:66
1139 #: build/C/man3/ptsname.3:70
1140 msgid "I<fd> does not refer to a pseudoterminal master device."
1144 #: build/C/man3/ptsname.3:70 build/C/man3/ttyname.3:69
1150 #: build/C/man3/ptsname.3:76
1151 msgid "(B<ptsname_r>() only) I<buf> is too small."
1155 #: build/C/man3/ptsname.3:79
1156 msgid "B<ptsname>() is provided in glibc since version 2.1."
1160 #: build/C/man3/ptsname.3:84
1162 "B<ptsname>() is part of the UNIX 98 pseudoterminal support (see "
1163 "B<pts>(4)). This function is specified in POSIX.1-2001."
1167 #: build/C/man3/ptsname.3:92
1169 "B<ptsname_r>() is a Linux extension. A version of this function is "
1170 "documented on Tru64 and HP-UX, but on those implementations, -1 is returned "
1171 "on error, with I<errno> set to indicate the error. Avoid using this "
1172 "function in portable programs."
1176 #: build/C/man3/ptsname.3:99
1178 "B<grantpt>(3), B<posix_openpt>(3), B<ttyname>(3), B<unlockpt>(3), B<pts>(4), "
1183 #: build/C/man7/pty.7:25
1189 #: build/C/man7/pty.7:25
1195 #: build/C/man7/pty.7:28
1196 msgid "pty - pseudoterminal interfaces"
1200 #: build/C/man7/pty.7:58
1202 "A pseudoterminal (sometimes abbreviated \"pty\") is a pair of virtual "
1203 "character devices that provide a bidirectional communication channel. One "
1204 "end of the channel is called the I<master>; the other end is called the "
1205 "I<slave>. The slave end of the pseudoterminal provides an interface that "
1206 "behaves exactly like a classical terminal. A process that expects to be "
1207 "connected to a terminal, can open the slave end of a pseudoterminal and then "
1208 "be driven by a program that has opened the master end. Anything that is "
1209 "written on the master end is provided to the process on the slave end as "
1210 "though it was input typed on a terminal. For example, writing the interrupt "
1211 "character (usually control-C) to the master device would cause an interrupt "
1212 "signal (B<SIGINT>) to be generated for the foreground process group that is "
1213 "connected to the slave. Conversely, anything that is written to the slave "
1214 "end of the pseudoterminal can be read by the process that is connected to "
1215 "the master end. Pseudoterminals are used by applications such as network "
1216 "login services (B<ssh>(1), B<rlogin>(1), B<telnet>(1)), terminal emulators, "
1217 "B<script>(1), B<screen>(1), and B<expect>(1)."
1221 #: build/C/man7/pty.7:63
1223 "Historically, two pseudoterminal APIs have evolved: BSD and System V. SUSv1 "
1224 "standardized a pseudoterminal API based on the System V API, and this API "
1225 "should be employed in all new programs that use pseudoterminals."
1229 #: build/C/man7/pty.7:71
1231 "Linux provides both BSD-style and (standardized) System V-style "
1232 "pseudoterminals. System V-style terminals are commonly called UNIX 98 "
1233 "pseudoterminals on Linux systems. Since kernel 2.6.4, BSD-style "
1234 "pseudoterminals are considered deprecated (they can be disabled when "
1235 "configuring the kernel); UNIX 98 pseudoterminals should be used in new "
1240 #: build/C/man7/pty.7:71
1242 msgid "UNIX 98 pseudoterminals"
1246 #: build/C/man7/pty.7:88
1248 "An unused UNIX 98 pseudoterminal master is opened by calling "
1249 "B<posix_openpt>(3). (This function opens the master clone device, "
1250 "I</dev/ptmx>; see B<pts>(4).) After performing any program-specific "
1251 "initializations, changing the ownership and permissions of the slave device "
1252 "using B<grantpt>(3), and unlocking the slave using B<unlockpt>(3)), the "
1253 "corresponding slave device can be opened by passing the name returned by "
1254 "B<ptsname>(3) in a call to B<open>(2)."
1258 #: build/C/man7/pty.7:103
1260 "The Linux kernel imposes a limit on the number of available UNIX 98 "
1261 "pseudoterminals. In kernels up to and including 2.6.3, this limit is "
1262 "configured at kernel compilation time (B<CONFIG_UNIX98_PTYS>), and the "
1263 "permitted number of pseudoterminals can be up to 2048, with a default "
1264 "setting of 256. Since kernel 2.6.4, the limit is dynamically adjustable via "
1265 "I</proc/sys/kernel/pty/max>, and a corresponding file, "
1266 "I</proc/sys/kernel/pty/nr>, indicates how many pseudoterminals are currently "
1267 "in use. For further details on these two files, see B<proc>(5)."
1271 #: build/C/man7/pty.7:103
1273 msgid "BSD pseudoterminals"
1277 #: build/C/man7/pty.7:124
1279 "BSD-style pseudoterminals are provided as precreated pairs, with names of "
1280 "the form I</dev/ptyXY> (master) and I</dev/ttyXY> (slave), where X is a "
1281 "letter from the 16-character set [p-za-e], and Y is a letter from the "
1282 "16-character set [0-9a-f]. (The precise range of letters in these two sets "
1283 "varies across UNIX implementations.) For example, I</dev/ptyp1> and "
1284 "I</dev/ttyp1> constitute a BSD pseudoterminal pair. A process finds an "
1285 "unused pseudoterminal pair by trying to B<open>(2) each pseudoterminal "
1286 "master until an open succeeds. The corresponding pseudoterminal slave "
1287 "(substitute \"tty\" for \"pty\" in the name of the master) can then be "
1292 #: build/C/man7/pty.7:127
1293 msgid "I</dev/ptmx> (UNIX 98 master clone device)"
1297 #: build/C/man7/pty.7:130
1298 msgid "I</dev/pts/*> (UNIX 98 slave devices)"
1302 #: build/C/man7/pty.7:133
1303 msgid "I</dev/pty[p-za-e][0-9a-f]> (BSD master devices)"
1307 #: build/C/man7/pty.7:136
1308 msgid "I</dev/tty[p-za-e][0-9a-f]> (BSD slave devices)"
1312 #: build/C/man7/pty.7:142
1314 "A description of the B<TIOCPKT> B<ioctl>(2), which controls packet mode "
1315 "operation, can be found in B<tty_ioctl>(4)."
1319 #: build/C/man7/pty.7:152
1321 "The BSD B<ioctl>(2) operations B<TIOCSTOP>, B<TIOCSTART>, B<TIOCUCNTL>, and "
1322 "B<TIOCREMOTE> have not been implemented under Linux."
1326 #: build/C/man7/pty.7:161
1328 "B<select>(2), B<setsid>(2), B<forkpty>(3), B<openpty>(3), B<termios>(3), "
1329 "B<pts>(4), B<tty>(4), B<tty_ioctl>(4)"
1333 #: build/C/man5/securetty.5:26
1339 #: build/C/man5/securetty.5:26
1345 #: build/C/man5/securetty.5:29
1346 msgid "securetty - file which lists terminals from which root can log in"
1350 #: build/C/man5/securetty.5:41
1352 "The file I</etc/securetty> is used by (some versions of) B<login>(1). The "
1353 "file contains the device names of terminal lines (one per line, without "
1354 "leading I</dev/>) on which root is allowed to login. See B<login.defs>(5) "
1355 "if you use the shadow suite."
1359 #: build/C/man5/securetty.5:43
1360 msgid "I</etc/securetty>"
1364 #: build/C/man5/securetty.5:46
1365 msgid "B<login>(1), B<login.defs>(5)"
1369 #: build/C/man3/tcgetsid.3:25
1375 #: build/C/man3/tcgetsid.3:28
1376 msgid "tcgetsid - get session ID"
1380 #: build/C/man3/tcgetsid.3:30
1381 msgid "B<#define _XOPEN_SOURCE 500> /* See feature_test_macros(7) */"
1385 #: build/C/man3/tcgetsid.3:32 build/C/man4/tty_ioctl.4:13
1386 msgid "B<#include E<lt>termios.hE<gt>>"
1390 #: build/C/man3/tcgetsid.3:34
1391 msgid "B<pid_t tcgetsid(int >I<fd>B<);>"
1395 #: build/C/man3/tcgetsid.3:42
1397 "The function B<tcgetsid>() returns the session ID of the current session "
1398 "that has the terminal associated to I<fd> as controlling terminal. This "
1399 "terminal must be the controlling terminal of the calling process."
1403 #: build/C/man3/tcgetsid.3:52
1405 "When I<fd> refers to the controlling terminal of our session, the function "
1406 "B<tcgetsid>() will return the session ID of this session. Otherwise, -1 is "
1407 "returned, and I<errno> is set appropriately."
1411 #: build/C/man3/tcgetsid.3:62
1413 "The calling process does not have a controlling terminal, or it has one but "
1414 "it is not described by I<fd>."
1418 #: build/C/man3/tcgetsid.3:65
1419 msgid "B<tcgetsid>() is provided in glibc since version 2.1."
1423 #: build/C/man3/tcgetsid.3:73
1425 "This function is implemented via the B<TIOCGSID> B<ioctl>(2), present since "
1430 #: build/C/man3/tcgetsid.3:75
1431 msgid "B<getsid>(2)"
1435 #: build/C/man5/termcap.5:31
1441 #: build/C/man5/termcap.5:31
1447 #: build/C/man5/termcap.5:34
1448 msgid "termcap - terminal capability database"
1452 #: build/C/man5/termcap.5:41
1454 "The termcap database is an obsolete facility for describing the capabilities "
1455 "of character-cell terminals and printers. It is retained only for "
1456 "capability with old programs; new ones should use the B<terminfo>(5) "
1457 "database and associated libraries."
1461 #: build/C/man5/termcap.5:54
1463 "I</etc/termcap> is an ASCII file (the database master) that lists the "
1464 "capabilities of many different types of terminals. Programs can read "
1465 "termcap to find the particular escape codes needed to control the visual "
1466 "attributes of the terminal actually in use. (Other aspects of the terminal "
1467 "are handled by B<stty>(1).) The termcap database is indexed on the B<TERM> "
1468 "environment variable."
1472 #: build/C/man5/termcap.5:60
1474 "Termcap entries must be defined on a single logical line, with \\(aq\\e\\(aq "
1475 "used to suppress the newline. Fields are separated by \\(aq:\\(aq. The "
1476 "first field of each entry starts at the left-hand margin, and contains a "
1477 "list of names for the terminal, separated by \\(aq|\\(aq."
1481 #: build/C/man5/termcap.5:65
1483 "The first subfield may (in BSD termcap entries from versions 4.3 and prior) "
1484 "contain a short name consisting of two characters. This short name may "
1485 "consist of capital or small letters. In 4.4BSD termcap entries this field "
1490 #: build/C/man5/termcap.5:78
1492 "The second subfield (first, in the newer 4.4BSD format) contains the name "
1493 "used by the environment variable B<TERM>. It should be spelled in lowercase "
1494 "letters. Selectable hardware capabilities should be marked by appending a "
1495 "hyphen and a suffix to this name. See below for an example. Usual suffixes "
1496 "are w (more than 80 characters wide), am (automatic margins), nam (no "
1497 "automatic margins), and rv (reverse video display). The third subfield "
1498 "contains a long and descriptive name for this termcap entry."
1502 #: build/C/man5/termcap.5:81
1504 "Subsequent fields contain the terminal capabilities; any continued "
1505 "capability lines must be indented one tab from the left margin."
1509 #: build/C/man5/termcap.5:86
1511 "Although there is no defined order, it is suggested to write first boolean, "
1512 "then numeric, and then string capabilities, each sorted alphabetically "
1513 "without looking at lower or upper spelling. Capabilities of similar "
1514 "functions can be written in one line."
1518 #: build/C/man5/termcap.5:89
1520 msgid "Example for:\n"
1524 #: build/C/man5/termcap.5:95
1527 "Head line: vt|vt101|DEC VT 101 terminal in 80 character mode:\\e\n"
1528 "Head line: Vt|vt101-w|DEC VT 101 terminal in (wide) 132 character mode:\\e\n"
1529 "Boolean: :bs:\\e\n"
1530 "Numeric: :co#80:\\e\n"
1531 "String: :sr=\\eE[H:\\e\n"
1535 #: build/C/man5/termcap.5:96
1537 msgid "Boolean capabilities"
1541 #: build/C/man5/termcap.5:125
1544 "5i\tPrinter will not echo on screen\n"
1545 "am\tAutomatic margins which means automatic line wrap\n"
1546 "bs\tControl-H (8 dec.) performs a backspace\n"
1547 "bw\tBackspace on left margin wraps to previous line and right margin\n"
1548 "da\tDisplay retained above screen\n"
1549 "db\tDisplay retained below screen\n"
1550 "eo\tA space erases all characters at cursor position\n"
1551 "es\tEscape sequences and special characters work in status line\n"
1552 "gn\tGeneric device\n"
1553 "hc\tThis is a hardcopy terminal\n"
1554 "HC\tThe cursor is hard to see when not on bottom line\n"
1555 "hs\tHas a status line\n"
1556 "hz\tHazeltine bug, the terminal can not print tilde characters\n"
1557 "in\tTerminal inserts null bytes, not spaces, to fill whitespace\n"
1558 "km\tTerminal has a meta key\n"
1559 "mi\tCursor movement works in insert mode\n"
1560 "ms\tCursor movement works in standout/underline mode\n"
1561 "NP\tNo pad character\n"
1562 "NR\tti does not reverse te\n"
1563 "nx\tNo padding, must use XON/XOFF\n"
1564 "os\tTerminal can overstrike\n"
1565 "ul\tTerminal underlines although it can not overstrike\n"
1566 "xb\tBeehive glitch, f1 sends ESCAPE, f2 sends B<^C>\n"
1567 "xn\tNewline/wraparound glitch\n"
1568 "xo\tTerminal uses xon/xoff protocol\n"
1569 "xs\tText typed over standout text will be displayed in standout\n"
1570 "xt\tTeleray glitch, destructive tabs and odd standout mode\n"
1574 #: build/C/man5/termcap.5:126
1576 msgid "Numeric capabilities"
1580 #: build/C/man5/termcap.5:147
1583 "co\tNumber of columns\n"
1584 "dB\tDelay in milliseconds for backspace on hardcopy terminals\n"
1585 "dC\tDelay in milliseconds for carriage return on hardcopy terminals\n"
1586 "dF\tDelay in milliseconds for form feed on hardcopy terminals\n"
1587 "dN\tDelay in milliseconds for new line on hardcopy terminals\n"
1588 "dT\tDelay in milliseconds for tabulator stop on hardcopy terminals\n"
1589 "dV\tDelay in milliseconds for vertical tabulator stop on\n"
1590 "\thardcopy terminals\n"
1591 "it\tDifference between tab positions\n"
1592 "lh\tHeight of soft labels\n"
1593 "lm\tLines of memory\n"
1594 "lw\tWidth of soft labels\n"
1595 "li\tNumber of lines\n"
1596 "Nl\tNumber of soft labels\n"
1597 "pb\tLowest baud rate which needs padding\n"
1598 "sg\tStandout glitch\n"
1599 "ug\tUnderline glitch\n"
1600 "vt\tvirtual terminal number\n"
1601 "ws\tWidth of status line if different from screen width\n"
1605 #: build/C/man5/termcap.5:148
1607 msgid "String capabilities"
1611 #: build/C/man5/termcap.5:379
1614 "!1\tshifted save key\n"
1615 "!2\tshifted suspend key\n"
1616 "!3\tshifted undo key\n"
1617 "#1\tshifted help key\n"
1618 "#2\tshifted home key\n"
1619 "#3\tshifted input key\n"
1620 "#4\tshifted cursor left key\n"
1626 "%5\tnext-object key\n"
1629 "%8\tprevious-object key\n"
1631 "%a\tshifted message key\n"
1632 "%b\tshifted move key\n"
1633 "%c\tshifted next key\n"
1634 "%d\tshifted options key\n"
1635 "%e\tshifted previous key\n"
1636 "%f\tshifted print key\n"
1637 "%g\tshifted redo key\n"
1638 "%h\tshifted replace key\n"
1639 "%i\tshifted cursor right key\n"
1640 "%j\tshifted resume key\n"
1641 "&0\tshifted cancel key\n"
1642 "&1\treference key\n"
1650 "&9\tshifted begin key\n"
1651 "*0\tshifted find key\n"
1652 "*1\tshifted command key\n"
1653 "*2\tshifted copy key\n"
1654 "*3\tshifted create key\n"
1655 "*4\tshifted delete character\n"
1656 "*5\tshifted delete line\n"
1658 "*7\tshifted end key\n"
1659 "*8\tshifted clear line key\n"
1660 "*9\tshifted exit key\n"
1669 "@8\tenter/send key\n"
1671 "al\tInsert one line\n"
1672 "AL\tInsert %1 lines\n"
1673 "ac\tPairs of block graphic characters to map alternate character set\n"
1674 "ae\tEnd alternative character set\n"
1675 "as\tStart alternative character set for block graphic characters\n"
1676 "bc\tBackspace, if not B<^H>\n"
1678 "bt\tMove to previous tab stop\n"
1679 "cb\tClear from beginning of line to cursor\n"
1680 "cc\tDummy command character\n"
1681 "cd\tClear to end of screen\n"
1682 "ce\tClear to end of line\n"
1683 "ch\tMove cursor horizontally only to column %1\n"
1684 "cl\tClear screen and cursor home\n"
1685 "cm\tCursor move to row %1 and column %2 (on screen)\n"
1686 "CM\tMove cursor to row %1 and column %2 (in memory)\n"
1687 "cr\tCarriage return\n"
1688 "cs\tScroll region from line %1 to %2\n"
1690 "cv\tMove cursor vertically only to line %1\n"
1691 "dc\tDelete one character\n"
1692 "DC\tDelete %1 characters\n"
1693 "dl\tDelete one line\n"
1694 "DL\tDelete %1 lines\n"
1695 "dm\tBegin delete mode\n"
1696 "do\tCursor down one line\n"
1697 "DO\tCursor down #1 lines\n"
1698 "ds\tDisable status line\n"
1699 "eA\tEnable alternate character set\n"
1700 "ec\tErase %1 characters starting at cursor\n"
1701 "ed\tEnd delete mode\n"
1702 "ei\tEnd insert mode\n"
1703 "ff\tFormfeed character on hardcopy terminals\n"
1704 "fs\tReturn character to its position before going to status line\n"
1705 "F1\tThe string sent by function key f11\n"
1706 "F2\tThe string sent by function key f12\n"
1707 "F3\tThe string sent by function key f13\n"
1709 "F9\tThe string sent by function key f19\n"
1710 "FA\tThe string sent by function key f20\n"
1711 "FB\tThe string sent by function key f21\n"
1713 "FZ\tThe string sent by function key f45\n"
1714 "Fa\tThe string sent by function key f46\n"
1715 "Fb\tThe string sent by function key f47\n"
1717 "Fr\tThe string sent by function key f63\n"
1718 "hd\tMove cursor a half line down\n"
1720 "hu\tMove cursor a half line up\n"
1721 "i1\tInitialization string 1 at login\n"
1722 "i3\tInitialization string 3 at login\n"
1723 "is\tInitialization string 2 at login\n"
1724 "ic\tInsert one character\n"
1725 "IC\tInsert %1 characters\n"
1726 "if\tInitialization file\n"
1727 "im\tBegin insert mode\n"
1728 "ip\tInsert pad time and needed special characters after insert\n"
1729 "iP\tInitialization program\n"
1730 "K1\tupper left key on keypad\n"
1731 "K2\tcenter key on keypad\n"
1732 "K3\tupper right key on keypad\n"
1733 "K4\tbottom left key on keypad\n"
1734 "K5\tbottom right key on keypad\n"
1735 "k0\tFunction key 0\n"
1736 "k1\tFunction key 1\n"
1737 "k2\tFunction key 2\n"
1738 "k3\tFunction key 3\n"
1739 "k4\tFunction key 4\n"
1740 "k5\tFunction key 5\n"
1741 "k6\tFunction key 6\n"
1742 "k7\tFunction key 7\n"
1743 "k8\tFunction key 8\n"
1744 "k9\tFunction key 9\n"
1745 "k;\tFunction key 10\n"
1746 "ka\tClear all tabs key\n"
1747 "kA\tInsert line key\n"
1748 "kb\tBackspace key\n"
1749 "kB\tBack tab stop\n"
1750 "kC\tClear screen key\n"
1751 "kd\tCursor down key\n"
1752 "kD\tKey for delete character under cursor\n"
1753 "ke\tturn keypad off\n"
1754 "kE\tKey for clear to end of line\n"
1755 "kF\tKey for scrolling forward/down\n"
1756 "kh\tCursor home key\n"
1757 "kH\tCursor hown down key\n"
1758 "kI\tInsert character/Insert mode key\n"
1759 "kl\tCursor left key\n"
1760 "kL\tKey for delete line\n"
1761 "kM\tKey for exit insert mode\n"
1762 "kN\tKey for next page\n"
1763 "kP\tKey for previous page\n"
1764 "kr\tCursor right key\n"
1765 "kR\tKey for scrolling backward/up\n"
1766 "ks\tTurn keypad on\n"
1767 "kS\tClear to end of screen key\n"
1768 "kt\tClear this tab key\n"
1769 "kT\tSet tab here key\n"
1770 "ku\tCursor up key\n"
1771 "l0\tLabel of zeroth function key, if not f0\n"
1772 "l1\tLabel of first function key, if not f1\n"
1773 "l2\tLabel of first function key, if not f2\n"
1775 "la\tLabel of tenth function key, if not f10\n"
1776 "le\tCursor left one character\n"
1777 "ll\tMove cursor to lower left corner\n"
1778 "LE\tCursor left %1 characters\n"
1779 "LF\tTurn soft labels off\n"
1780 "LO\tTurn soft labels on\n"
1781 "mb\tStart blinking\n"
1782 "MC\tClear soft margins\n"
1783 "md\tStart bold mode\n"
1784 "me\tEnd all mode like so, us, mb, md and mr\n"
1785 "mh\tStart half bright mode\n"
1786 "mk\tDark mode (Characters invisible)\n"
1787 "ML\tSet left soft margin\n"
1788 "mm\tPut terminal in meta mode\n"
1789 "mo\tPut terminal out of meta mode\n"
1790 "mp\tTurn on protected attribute\n"
1791 "mr\tStart reverse mode\n"
1792 "MR\tSet right soft margin\n"
1793 "nd\tCursor right one character\n"
1794 "nw\tCarriage return command\n"
1795 "pc\tPadding character\n"
1796 "pf\tTurn printer off\n"
1797 "pk\tProgram key %1 to send string %2 as if typed by user\n"
1798 "pl\tProgram key %1 to execute string %2 in local mode\n"
1799 "pn\tProgram soft label %1 to show string %2\n"
1800 "po\tTurn the printer on\n"
1801 "pO\tTurn the printer on for %1 (E<lt>256) bytes\n"
1802 "ps\tPrint screen contents on printer\n"
1803 "px\tProgram key %1 to send string %2 to computer\n"
1804 "r1\tReset string 1 to set terminal to sane modes\n"
1805 "r2\tReset string 2 to set terminal to sane modes\n"
1806 "r3\tReset string 3 to set terminal to sane modes\n"
1807 "RA\tdisable automatic margins\n"
1808 "rc\tRestore saved cursor position\n"
1809 "rf\tReset string filename\n"
1810 "RF\tRequest for input from terminal\n"
1811 "RI\tCursor right %1 characters\n"
1812 "rp\tRepeat character %1 for %2 times\n"
1813 "rP\tPadding after character sent in replace mode\n"
1814 "rs\tReset string\n"
1815 "RX\tTurn off XON/XOFF flow control\n"
1816 "sa\tSet %1 %2 %3 %4 %5 %6 %7 %8 %9 attributes\n"
1817 "SA\tenable automatic margins\n"
1818 "sc\tSave cursor position\n"
1819 "se\tEnd standout mode\n"
1820 "sf\tNormal scroll one line\n"
1821 "SF\tNormal scroll %1 lines\n"
1822 "so\tStart standout mode\n"
1823 "sr\tReverse scroll\n"
1824 "SR\tscroll back %1 lines\n"
1825 "st\tSet tabulator stop in all rows at current column\n"
1826 "SX\tTurn on XON/XOFF flow control\n"
1827 "ta\tmove to next hardware tab\n"
1828 "tc\tRead in terminal description from another entry\n"
1829 "te\tEnd program that uses cursor motion\n"
1830 "ti\tBegin program that uses cursor motion\n"
1831 "ts\tMove cursor to column %1 of status line\n"
1832 "uc\tUnderline character under cursor and move cursor right\n"
1833 "ue\tEnd underlining\n"
1834 "up\tCursor up one line\n"
1835 "UP\tCursor up %1 lines\n"
1836 "us\tStart underlining\n"
1837 "vb\tVisible bell\n"
1838 "ve\tNormal cursor visible\n"
1839 "vi\tCursor invisible\n"
1840 "vs\tStandout cursor\n"
1841 "wi\tSet window from line %1 to %2 and column %3 to %4\n"
1842 "XF\tXOFF character if not B<^S>\n"
1846 #: build/C/man5/termcap.5:382
1848 "There are several ways of defining the control codes for string "
1853 #: build/C/man5/termcap.5:385
1855 "Every normal character represents itself, except \\(aq^\\(aq, \\(aq\\e\\(aq, "
1860 #: build/C/man5/termcap.5:388
1861 msgid "A B<^x> means Control-x. Control-A equals 1 decimal."
1865 #: build/C/man5/termcap.5:391
1866 msgid "\\ex means a special code. x can be one of the following characters:"
1870 #: build/C/man5/termcap.5:393
1871 msgid "E Escape (27)"
1875 #: build/C/man5/termcap.5:395
1876 msgid "n Linefeed (10)"
1880 #: build/C/man5/termcap.5:397
1881 msgid "r Carriage return (13)"
1885 #: build/C/man5/termcap.5:399
1886 msgid "t Tabulation (9)"
1890 #: build/C/man5/termcap.5:401
1891 msgid "b Backspace (8)"
1895 #: build/C/man5/termcap.5:403
1896 msgid "f Form feed (12)"
1900 #: build/C/man5/termcap.5:406
1901 msgid "0 Null character. A \\exxx specifies the octal character xxx."
1905 #: build/C/man5/termcap.5:407
1911 #: build/C/man5/termcap.5:409
1912 msgid "Increments parameters by one."
1916 #: build/C/man5/termcap.5:409
1922 #: build/C/man5/termcap.5:411
1923 msgid "Single parameter capability"
1927 #: build/C/man5/termcap.5:411
1933 #: build/C/man5/termcap.5:413
1934 msgid "Add value of next character to this parameter and do binary output"
1938 #: build/C/man5/termcap.5:413
1944 #: build/C/man5/termcap.5:415
1945 msgid "Do ASCII output of this parameter with a field with of 2"
1949 #: build/C/man5/termcap.5:415
1955 #: build/C/man5/termcap.5:417
1956 msgid "Do ASCII output of this parameter with a field with of 3"
1960 #: build/C/man5/termcap.5:417
1966 #: build/C/man5/termcap.5:419
1967 msgid "Print a \\(aq%\\(aq"
1971 #: build/C/man5/termcap.5:424
1973 "If you use binary output, then you should avoid the null character "
1974 "(\\(aq\\e0\\(aq) because it terminates the string. You should reset "
1975 "tabulator expansion if a tabulator can be the binary output of a parameter."
1979 #: build/C/man5/termcap.5:424
1985 #: build/C/man5/termcap.5:427
1987 "The above metacharacters for parameters may be wrong, they document Minix "
1988 "termcap which may not be compatible with Linux termcap."
1992 #: build/C/man5/termcap.5:429
1993 msgid "The block graphic characters can be specified by three string capabilities:"
1997 #: build/C/man5/termcap.5:429
2003 #: build/C/man5/termcap.5:431
2004 msgid "start the alternative charset"
2008 #: build/C/man5/termcap.5:431
2014 #: build/C/man5/termcap.5:433
2019 #: build/C/man5/termcap.5:433
2025 #: build/C/man5/termcap.5:437
2027 "pairs of characters. The first character is the name of the block graphic "
2028 "symbol and the second characters is its definition."
2032 #: build/C/man5/termcap.5:439
2033 msgid "The following names are available:"
2037 #: build/C/man5/termcap.5:466
2040 "+\tright arrow (E<gt>)\n"
2041 ",\tleft arrow (E<lt>)\n"
2042 "\\&.\tdown arrow (v)\n"
2043 "0\tfull square (#)\n"
2045 "-\tupper arrow (^)\n"
2046 "\\&'\trhombus (+)\n"
2047 "a\tchess board (:)\n"
2049 "g\tplus-minus (#)\n"
2051 "j\tright bottom corner (+)\n"
2052 "k\tright upper corner (+)\n"
2053 "l\tleft upper corner (+)\n"
2054 "m\tleft bottom corner (+)\n"
2056 "o\tupper horizontal line (-)\n"
2057 "q\tmiddle horizontal line (-)\n"
2058 "s\tbottom horizontal line (_)\n"
2060 "u\tright tee (+)\n"
2061 "v\tbottom tee (+)\n"
2062 "w\tnormal tee (+)\n"
2063 "x\tvertical line (|)\n"
2064 "~\tparagraph (???)\n"
2068 #: build/C/man5/termcap.5:470
2070 "The values in parentheses are suggested defaults which are used by curses, "
2071 "if the capabilities are missing."
2075 #: build/C/man5/termcap.5:474
2076 msgid "B<ncurses>(3), B<termcap>(3), B<terminfo>(5)"
2080 #: build/C/man7/termio.7:27
2086 #: build/C/man7/termio.7:27
2092 #: build/C/man7/termio.7:30
2093 msgid "termio - System V terminal driver interface"
2097 #: build/C/man7/termio.7:38
2099 "B<termio> is the name of the old System V terminal driver interface. This "
2100 "interface defined a I<termio> structure used to store terminal settings, and "
2101 "a range of B<ioctl>(2) operations to get and set terminal attributes."
2105 #: build/C/man7/termio.7:53
2107 "The B<termio> interface is now obsolete: POSIX.1-1990 standardized a "
2108 "modified version of this interface, under the name B<termios>. The POSIX.1 "
2109 "data structure differs slightly from the System V version, and POSIX.1 "
2110 "defined a suite of functions to replace the various B<ioctl>(2) operations "
2111 "that existed in System V. (This was done because B<ioctl>(2) was "
2112 "unstandardized, and its variadic third argument does not allow argument type "
2117 #: build/C/man7/termio.7:59
2119 "If you're looking for page called \"termio\", then you can probably find "
2120 "most of the information that you seek in either B<termios>(3) or "
2125 #: build/C/man7/termio.7:66
2127 "B<reset>(1), B<setterm>(1), B<stty>(1), B<termios>(3), B<tty>(4), "
2132 #: build/C/man3/termios.3:40
2138 #: build/C/man3/termios.3:45
2140 "termios, tcgetattr, tcsetattr, tcsendbreak, tcdrain, tcflush, tcflow, "
2141 "cfmakeraw, cfgetospeed, cfgetispeed, cfsetispeed, cfsetospeed, cfsetspeed - "
2142 "get and set terminal attributes, line control, get and set baud rate"
2146 #: build/C/man3/termios.3:48
2148 msgid "B<#include E<lt>termios.hE<gt>>\n"
2152 #: build/C/man3/termios.3:52
2154 msgid "B<int tcgetattr(int >I<fd>B<, struct termios *>I<termios_p>B<);>\n"
2158 #: build/C/man3/termios.3:55
2161 "B<int tcsetattr(int >I<fd>B<, int >I<optional_actions>B<,>\n"
2162 "B< const struct termios *>I<termios_p>B<);>\n"
2166 #: build/C/man3/termios.3:57
2168 msgid "B<int tcsendbreak(int >I<fd>B<, int >I<duration>B<);>\n"
2172 #: build/C/man3/termios.3:59
2174 msgid "B<int tcdrain(int >I<fd>B<);>\n"
2178 #: build/C/man3/termios.3:61
2180 msgid "B<int tcflush(int >I<fd>B<, int >I<queue_selector>B<);>\n"
2184 #: build/C/man3/termios.3:63
2186 msgid "B<int tcflow(int >I<fd>B<, int >I<action>B<);>\n"
2190 #: build/C/man3/termios.3:65
2192 msgid "B<void cfmakeraw(struct termios *>I<termios_p>B<);>\n"
2196 #: build/C/man3/termios.3:67
2198 msgid "B<speed_t cfgetispeed(const struct termios *>I<termios_p>B<);>\n"
2202 #: build/C/man3/termios.3:69
2204 msgid "B<speed_t cfgetospeed(const struct termios *>I<termios_p>B<);>\n"
2208 #: build/C/man3/termios.3:71
2210 msgid "B<int cfsetispeed(struct termios *>I<termios_p>B<, speed_t >I<speed>B<);>\n"
2214 #: build/C/man3/termios.3:73
2216 msgid "B<int cfsetospeed(struct termios *>I<termios_p>B<, speed_t >I<speed>B<);>\n"
2220 #: build/C/man3/termios.3:75
2222 msgid "B<int cfsetspeed(struct termios *>I<termios_p>B<, speed_t >I<speed>B<);>\n"
2226 #: build/C/man3/termios.3:85
2227 msgid "B<cfsetspeed>(), B<cfmakeraw>(): _BSD_SOURCE"
2231 #: build/C/man3/termios.3:88
2233 "The termios functions describe a general terminal interface that is provided "
2234 "to control asynchronous communications ports."
2238 #: build/C/man3/termios.3:88
2240 msgid "The termios structure"
2244 #: build/C/man3/termios.3:93
2246 "Many of the functions described here have a I<termios_p> argument that is a "
2247 "pointer to a I<termios> structure. This structure contains at least the "
2248 "following members:"
2252 #: build/C/man3/termios.3:101
2255 "tcflag_t c_iflag; /* input modes */\n"
2256 "tcflag_t c_oflag; /* output modes */\n"
2257 "tcflag_t c_cflag; /* control modes */\n"
2258 "tcflag_t c_lflag; /* local modes */\n"
2259 "cc_t c_cc[NCCS]; /* special characters */\n"
2263 #: build/C/man3/termios.3:110
2265 "The values that may be assigned to these fields are described below. In the "
2266 "case of the first four bit-mask fields, the definitions of some of the "
2267 "associated flags that may be set are only exposed if a specific feature test "
2268 "macro (see B<feature_test_macros>(7)) is defined, as noted in brackets "
2273 #: build/C/man3/termios.3:115
2275 "In the descriptions below, \"not in POSIX\" means that the value is not "
2276 "specified in POSIX.1-2001, and \"XSI\" means that the value is specified in "
2277 "POSIX.1-2001 as part of the XSI extension."
2281 #: build/C/man3/termios.3:117
2282 msgid "I<c_iflag> flag constants:"
2286 #: build/C/man3/termios.3:117
2292 #: build/C/man3/termios.3:120
2293 msgid "Ignore BREAK condition on input."
2297 #: build/C/man3/termios.3:120
2303 #: build/C/man3/termios.3:131
2305 "If B<IGNBRK> is set, a BREAK is ignored. If it is not set but B<BRKINT> is "
2306 "set, then a BREAK causes the input and output queues to be flushed, and if "
2307 "the terminal is the controlling terminal of a foreground process group, it "
2308 "will cause a B<SIGINT> to be sent to this foreground process group. When "
2309 "neither B<IGNBRK> nor B<BRKINT> are set, a BREAK reads as a null byte "
2310 "(\\(aq\\e0\\(aq), except when B<PARMRK> is set, in which case it reads as "
2311 "the sequence \\e377 \\e0 \\e0."
2315 #: build/C/man3/termios.3:131
2321 #: build/C/man3/termios.3:134
2322 msgid "Ignore framing errors and parity errors."
2326 #: build/C/man3/termios.3:134
2332 #: build/C/man3/termios.3:141
2334 "If B<IGNPAR> is not set, prefix a character with a parity error or framing "
2335 "error with \\e377 \\e0. If neither B<IGNPAR> nor B<PARMRK> is set, read a "
2336 "character with a parity error or framing error as \\e0."
2340 #: build/C/man3/termios.3:141
2346 #: build/C/man3/termios.3:144
2347 msgid "Enable input parity checking."
2351 #: build/C/man3/termios.3:144
2357 #: build/C/man3/termios.3:147
2358 msgid "Strip off eighth bit."
2362 #: build/C/man3/termios.3:147
2368 #: build/C/man3/termios.3:150
2369 msgid "Translate NL to CR on input."
2373 #: build/C/man3/termios.3:150
2379 #: build/C/man3/termios.3:153
2380 msgid "Ignore carriage return on input."
2384 #: build/C/man3/termios.3:153
2390 #: build/C/man3/termios.3:156
2391 msgid "Translate carriage return to newline on input (unless B<IGNCR> is set)."
2395 #: build/C/man3/termios.3:156
2401 #: build/C/man3/termios.3:159
2402 msgid "(not in POSIX) Map uppercase characters to lowercase on input."
2406 #: build/C/man3/termios.3:159
2412 #: build/C/man3/termios.3:162
2413 msgid "Enable XON/XOFF flow control on output."
2417 #: build/C/man3/termios.3:162
2423 #: build/C/man3/termios.3:166
2425 "(XSI) Typing any character will restart stopped output. (The default is to "
2426 "allow just the START character to restart output.)"
2430 #: build/C/man3/termios.3:166
2436 #: build/C/man3/termios.3:169
2437 msgid "Enable XON/XOFF flow control on input."
2441 #: build/C/man3/termios.3:169
2447 #: build/C/man3/termios.3:173
2449 "(not in POSIX) Ring bell when input queue is full. Linux does not implement "
2450 "this bit, and acts as if it is always set."
2454 #: build/C/man3/termios.3:173
2456 msgid "B<IUTF8> (since Linux 2.6.4)"
2460 #: build/C/man3/termios.3:177
2462 "(not in POSIX) Input is UTF8; this allows character-erase to be correctly "
2463 "performed in cooked mode."
2467 #: build/C/man3/termios.3:179
2468 msgid "I<c_oflag> flag constants defined in POSIX.1:"
2472 #: build/C/man3/termios.3:179
2478 #: build/C/man3/termios.3:182
2479 msgid "Enable implementation-defined output processing."
2483 #: build/C/man3/termios.3:185
2485 "The remaining I<c_oflag> flag constants are defined in POSIX.1-2001, unless "
2490 #: build/C/man3/termios.3:185
2496 #: build/C/man3/termios.3:188
2497 msgid "(not in POSIX) Map lowercase characters to uppercase on output."
2501 #: build/C/man3/termios.3:188
2507 #: build/C/man3/termios.3:191
2508 msgid "(XSI) Map NL to CR-NL on output."
2512 #: build/C/man3/termios.3:191
2518 #: build/C/man3/termios.3:194
2519 msgid "Map CR to NL on output."
2523 #: build/C/man3/termios.3:194
2529 #: build/C/man3/termios.3:197
2530 msgid "Don't output CR at column 0."
2534 #: build/C/man3/termios.3:197
2540 #: build/C/man3/termios.3:200
2541 msgid "Don't output CR."
2545 #: build/C/man3/termios.3:200
2551 #: build/C/man3/termios.3:203
2552 msgid "Send fill characters for a delay, rather than using a timed delay."
2556 #: build/C/man3/termios.3:203
2562 #: build/C/man3/termios.3:208
2564 "(not in POSIX) Fill character is ASCII DEL (0177). If unset, fill character "
2565 "is ASCII NUL (\\(aq\\e0\\(aq). (Not implemented on Linux.)"
2569 #: build/C/man3/termios.3:208
2575 #: build/C/man3/termios.3:218
2577 "Newline delay mask. Values are B<NL0> and B<NL1>. [requires B<_BSD_SOURCE> "
2578 "or B<_SVID_SOURCE> or B<_XOPEN_SOURCE>]"
2582 #: build/C/man3/termios.3:218
2588 #: build/C/man3/termios.3:228
2590 "Carriage return delay mask. Values are B<CR0>, B<CR1>, B<CR2>, or B<CR3>. "
2591 "[requires B<_BSD_SOURCE> or B<_SVID_SOURCE> or B<_XOPEN_SOURCE>]"
2595 #: build/C/man3/termios.3:228
2601 #: build/C/man3/termios.3:240
2603 "Horizontal tab delay mask. Values are B<TAB0>, B<TAB1>, B<TAB2>, B<TAB3> "
2604 "(or B<XTABS>). A value of TAB3, that is, XTABS, expands tabs to spaces "
2605 "(with tab stops every eight columns). [requires B<_BSD_SOURCE> or "
2606 "B<_SVID_SOURCE> or B<_XOPEN_SOURCE>]"
2610 #: build/C/man3/termios.3:240
2616 #: build/C/man3/termios.3:251
2618 "Backspace delay mask. Values are B<BS0> or B<BS1>. (Has never been "
2619 "implemented.) [requires B<_BSD_SOURCE> or B<_SVID_SOURCE> or "
2624 #: build/C/man3/termios.3:251
2630 #: build/C/man3/termios.3:255
2631 msgid "Vertical tab delay mask. Values are B<VT0> or B<VT1>."
2635 #: build/C/man3/termios.3:255
2641 #: build/C/man3/termios.3:265
2643 "Form feed delay mask. Values are B<FF0> or B<FF1>. [requires "
2644 "B<_BSD_SOURCE> or B<_SVID_SOURCE> or B<_XOPEN_SOURCE>]"
2648 #: build/C/man3/termios.3:267
2649 msgid "I<c_cflag> flag constants:"
2653 #: build/C/man3/termios.3:267
2659 #: build/C/man3/termios.3:274
2661 "(not in POSIX) Baud speed mask (4+1 bits). [requires B<_BSD_SOURCE> or "
2666 #: build/C/man3/termios.3:274
2672 #: build/C/man3/termios.3:282
2674 "(not in POSIX) Extra baud speed mask (1 bit), included in B<CBAUD>. "
2675 "[requires B<_BSD_SOURCE> or B<_SVID_SOURCE>]"
2679 #: build/C/man3/termios.3:298
2681 "(POSIX says that the baud speed is stored in the I<termios> structure "
2682 "without specifying where precisely, and provides B<cfgetispeed>() and "
2683 "B<cfsetispeed>() for getting at it. Some systems use bits selected by "
2684 "B<CBAUD> in I<c_cflag>, other systems use separate fields, for example, "
2685 "I<sg_ispeed> and I<sg_ospeed>.)"
2689 #: build/C/man3/termios.3:298
2695 #: build/C/man3/termios.3:302
2696 msgid "Character size mask. Values are B<CS5>, B<CS6>, B<CS7>, or B<CS8>."
2700 #: build/C/man3/termios.3:302
2706 #: build/C/man3/termios.3:305
2707 msgid "Set two stop bits, rather than one."
2711 #: build/C/man3/termios.3:305
2717 #: build/C/man3/termios.3:308
2718 msgid "Enable receiver."
2722 #: build/C/man3/termios.3:308
2728 #: build/C/man3/termios.3:311
2729 msgid "Enable parity generation on output and parity checking for input."
2733 #: build/C/man3/termios.3:311
2739 #: build/C/man3/termios.3:315
2741 "If set, then parity for input and output is odd; otherwise even parity is "
2746 #: build/C/man3/termios.3:315
2752 #: build/C/man3/termios.3:318
2753 msgid "Lower modem control lines after last process closes the device (hang up)."
2757 #: build/C/man3/termios.3:318
2763 #: build/C/man3/termios.3:321
2764 msgid "Ignore modem control lines."
2768 #: build/C/man3/termios.3:321
2774 #: build/C/man3/termios.3:325
2776 "(not in POSIX) Block output from a noncurrent shell layer. For use by "
2777 "B<shl> (shell layers). (Not implemented on Linux.)"
2781 #: build/C/man3/termios.3:325
2787 #: build/C/man3/termios.3:341
2789 "(not in POSIX) Mask for input speeds. The values for the B<CIBAUD> bits are "
2790 "the same as the values for the B<CBAUD> bits, shifted left B<IBSHIFT> bits. "
2791 "[requires B<_BSD_SOURCE> or B<_SVID_SOURCE>] (Not implemented on Linux.)"
2795 #: build/C/man3/termios.3:341
2801 #: build/C/man3/termios.3:354
2803 "(not in POSIX) Use \"stick\" (mark/space) parity (supported on certain "
2804 "serial devices): if B<PARODD> is set, the parity bit is always 1; if "
2805 "B<PARODD> is not set, then the parity bit is always 0). [requires "
2806 "B<_BSD_SOURCE> or B<_SVID_SOURCE>]"
2810 #: build/C/man3/termios.3:354
2816 #: build/C/man3/termios.3:361
2818 "(not in POSIX) Enable RTS/CTS (hardware) flow control. [requires "
2819 "B<_BSD_SOURCE> or B<_SVID_SOURCE>]"
2823 #: build/C/man3/termios.3:363
2824 msgid "I<c_lflag> flag constants:"
2828 #: build/C/man3/termios.3:363
2834 #: build/C/man3/termios.3:367
2836 "When any of the characters INTR, QUIT, SUSP, or DSUSP are received, generate "
2837 "the corresponding signal."
2841 #: build/C/man3/termios.3:367
2847 #: build/C/man3/termios.3:370
2848 msgid "Enable canonical mode (described below)."
2852 #: build/C/man3/termios.3:370
2857 #. glibc is probably now wrong to allow
2863 #: build/C/man3/termios.3:383
2865 "(not in POSIX; not supported under Linux) If B<ICANON> is also set, "
2866 "terminal is uppercase only. Input is converted to lowercase, except for "
2867 "characters preceded by \\e. On output, uppercase characters are preceded by "
2868 "\\e and lowercase characters are converted to uppercase. [requires "
2869 "_BSD_SOURCE or _SVID_SOURCE or _XOPEN_SOURCE]"
2873 #: build/C/man3/termios.3:383
2879 #: build/C/man3/termios.3:386
2880 msgid "Echo input characters."
2884 #: build/C/man3/termios.3:386
2890 #: build/C/man3/termios.3:390
2892 "If B<ICANON> is also set, the ERASE character erases the preceding input "
2893 "character, and WERASE erases the preceding word."
2897 #: build/C/man3/termios.3:390
2903 #: build/C/man3/termios.3:393
2904 msgid "If B<ICANON> is also set, the KILL character erases the current line."
2908 #: build/C/man3/termios.3:393
2914 #: build/C/man3/termios.3:396
2915 msgid "If B<ICANON> is also set, echo the NL character even if ECHO is not set."
2919 #: build/C/man3/termios.3:396
2925 #: build/C/man3/termios.3:409
2927 "(not in POSIX) If B<ECHO> is also set, terminal special characters other "
2928 "than TAB, NL, START, and STOP are echoed as B<^X>, where X is the character "
2929 "with ASCII code 0x40 greater than the special character. For example, "
2930 "character 0x08 (BS) is echoed as B<^H>. [requires B<_BSD_SOURCE> or "
2935 #: build/C/man3/termios.3:409
2941 #: build/C/man3/termios.3:417
2943 "(not in POSIX) If B<ICANON> and B<ECHO> are also set, characters are printed "
2944 "as they are being erased. [requires B<_BSD_SOURCE> or B<_SVID_SOURCE>]"
2948 #: build/C/man3/termios.3:417
2954 #: build/C/man3/termios.3:425
2956 "(not in POSIX) If B<ICANON> is also set, KILL is echoed by erasing each "
2957 "character on the line, as specified by B<ECHOE> and B<ECHOPRT>. [requires "
2958 "B<_BSD_SOURCE> or B<_SVID_SOURCE>]"
2962 #: build/C/man3/termios.3:425
2968 #: build/C/man3/termios.3:429
2970 "(not in POSIX) Echo only when a process is reading. (Not implemented on "
2975 #: build/C/man3/termios.3:429
2981 #: build/C/man3/termios.3:439
2983 "(not in POSIX; not supported under Linux) Output is being flushed. This "
2984 "flag is toggled by typing the DISCARD character. [requires B<_BSD_SOURCE> "
2985 "or B<_SVID_SOURCE>]"
2989 #: build/C/man3/termios.3:439
2994 #. Stevens lets SUSP only flush the input queue
2996 #: build/C/man3/termios.3:444
2998 "Disable flushing the input and output queues when generating signals for the "
2999 "INT, QUIT, and SUSP characters."
3003 #: build/C/man3/termios.3:444
3009 #: build/C/man3/termios.3:450
3011 "Send the B<SIGTTOU> signal to the process group of a background process "
3012 "which tries to write to its controlling terminal."
3016 #: build/C/man3/termios.3:450
3022 #: build/C/man3/termios.3:461
3024 "(not in POSIX; not supported under Linux) All characters in the input queue "
3025 "are reprinted when the next character is read. (B<bash>(1) handles "
3026 "typeahead this way.) [requires B<_BSD_SOURCE> or B<_SVID_SOURCE>]"
3030 #: build/C/man3/termios.3:461
3036 #: build/C/man3/termios.3:467
3038 "Enable implementation-defined input processing. This flag, as well as "
3039 "B<ICANON> must be enabled for the special characters EOL2, LNEXT, REPRINT, "
3040 "WERASE to be interpreted, and for the B<IUCLC> flag to be effective."
3044 #: build/C/man3/termios.3:470
3046 "The I<c_cc> array defines the terminal special characters. The symbolic "
3047 "indices (initial values) and meaning are:"
3051 #: build/C/man3/termios.3:470
3057 #: build/C/man3/termios.3:477
3059 "(not in POSIX; not supported under Linux; 017, SI, Ctrl-O) Toggle: "
3060 "start/stop discarding pending output. Recognized when B<IEXTEN> is set, and "
3061 "then not passed as input."
3065 #: build/C/man3/termios.3:477
3071 #: build/C/man3/termios.3:490
3073 "(not in POSIX; not supported under Linux; 031, EM, Ctrl-Y) Delayed suspend "
3074 "character (DSUSP): send B<SIGTSTP> signal when the character is read by the "
3075 "user program. Recognized when B<IEXTEN> and B<ISIG> are set, and the system "
3076 "supports job control, and then not passed as input."
3080 #: build/C/man3/termios.3:490
3086 #: build/C/man3/termios.3:502
3088 "(004, EOT, Ctrl-D) End-of-file character (EOF). More precisely: this "
3089 "character causes the pending tty buffer to be sent to the waiting user "
3090 "program without waiting for end-of-line. If it is the first character of "
3091 "the line, the B<read>(2) in the user program returns 0, which signifies "
3092 "end-of-file. Recognized when B<ICANON> is set, and then not passed as "
3097 #: build/C/man3/termios.3:502
3103 #: build/C/man3/termios.3:509
3105 "(0, NUL) Additional end-of-line character (EOL). Recognized when B<ICANON> "
3110 #: build/C/man3/termios.3:509
3116 #: build/C/man3/termios.3:516
3118 "(not in POSIX; 0, NUL) Yet another end-of-line character (EOL2). "
3119 "Recognized when B<ICANON> is set."
3123 #: build/C/man3/termios.3:516
3129 #: build/C/man3/termios.3:525
3131 "(0177, DEL, rubout, or 010, BS, Ctrl-H, or also #) Erase character "
3132 "(ERASE). This erases the previous not-yet-erased character, but does not "
3133 "erase past EOF or beginning-of-line. Recognized when B<ICANON> is set, and "
3134 "then not passed as input."
3138 #: build/C/man3/termios.3:525
3144 #: build/C/man3/termios.3:535
3146 "(003, ETX, Ctrl-C, or also 0177, DEL, rubout) Interrupt character (INTR). "
3147 "Send a B<SIGINT> signal. Recognized when B<ISIG> is set, and then not "
3152 #: build/C/man3/termios.3:535
3158 #: build/C/man3/termios.3:543
3160 "(025, NAK, Ctrl-U, or Ctrl-X, or also @) Kill character (KILL). This "
3161 "erases the input since the last EOF or beginning-of-line. Recognized when "
3162 "B<ICANON> is set, and then not passed as input."
3166 #: build/C/man3/termios.3:543
3172 #: build/C/man3/termios.3:552
3174 "(not in POSIX; 026, SYN, Ctrl-V) Literal next (LNEXT). Quotes the next "
3175 "input character, depriving it of a possible special meaning. Recognized "
3176 "when B<IEXTEN> is set, and then not passed as input."
3180 #: build/C/man3/termios.3:552
3186 #: build/C/man3/termios.3:555
3187 msgid "Minimum number of characters for noncanonical read (MIN)."
3191 #: build/C/man3/termios.3:555
3197 #: build/C/man3/termios.3:565
3199 "(034, FS, Ctrl-\\e) Quit character (QUIT). Send B<SIGQUIT> signal. "
3200 "Recognized when B<ISIG> is set, and then not passed as input."
3204 #: build/C/man3/termios.3:565
3210 #: build/C/man3/termios.3:574
3212 "(not in POSIX; 022, DC2, Ctrl-R) Reprint unread characters (REPRINT). "
3213 "Recognized when B<ICANON> and B<IEXTEN> are set, and then not passed as "
3218 #: build/C/man3/termios.3:574
3224 #: build/C/man3/termios.3:582
3226 "(021, DC1, Ctrl-Q) Start character (START). Restarts output stopped by the "
3227 "Stop character. Recognized when B<IXON> is set, and then not passed as "
3232 #: build/C/man3/termios.3:582
3238 #: build/C/man3/termios.3:592
3240 "(not in POSIX; not supported under Linux; status request: 024, DC4, "
3241 "Ctrl-T). Status character (STATUS). Display status information at "
3242 "terminal, including state of foreground process and amount of CPU time it "
3243 "has consumed. Also sends a B<SIGINFO> signal (not supported on Linux) to "
3244 "the foreground process group."
3248 #: build/C/man3/termios.3:592
3254 #: build/C/man3/termios.3:600
3256 "(023, DC3, Ctrl-S) Stop character (STOP). Stop output until Start "
3257 "character typed. Recognized when B<IXON> is set, and then not passed as "
3262 #: build/C/man3/termios.3:600
3268 #: build/C/man3/termios.3:610
3270 "(032, SUB, Ctrl-Z) Suspend character (SUSP). Send B<SIGTSTP> signal. "
3271 "Recognized when B<ISIG> is set, and then not passed as input."
3275 #: build/C/man3/termios.3:610
3281 #: build/C/man3/termios.3:617
3283 "(not in POSIX; not supported under Linux; 0, NUL) Switch character "
3284 "(SWTCH). Used in System V to switch shells in I<shell layers>, a "
3285 "predecessor to shell job control."
3289 #: build/C/man3/termios.3:617
3295 #: build/C/man3/termios.3:620
3296 msgid "Timeout in deciseconds for noncanonical read (TIME)."
3300 #: build/C/man3/termios.3:620
3306 #: build/C/man3/termios.3:629
3308 "(not in POSIX; 027, ETB, Ctrl-W) Word erase (WERASE). Recognized when "
3309 "B<ICANON> and B<IEXTEN> are set, and then not passed as input."
3313 #: build/C/man3/termios.3:635
3315 "An individual terminal special character can be disabled by setting the "
3316 "value of the corresponding I<c_cc> element to B<_POSIX_VDISABLE>."
3320 #: build/C/man3/termios.3:651
3322 "The above symbolic subscript values are all different, except that B<VTIME>, "
3323 "B<VMIN> may have the same value as B<VEOL>, B<VEOF>, respectively. In "
3324 "noncanonical mode the special character meaning is replaced by the timeout "
3325 "meaning. For an explanation of B<VMIN> and B<VTIME>, see the description of "
3326 "noncanonical mode below."
3330 #: build/C/man3/termios.3:651
3332 msgid "Retrieving and changing terminal settings"
3336 #: build/C/man3/termios.3:660
3338 "B<tcgetattr>() gets the parameters associated with the object referred by "
3339 "I<fd> and stores them in the I<termios> structure referenced by "
3340 "I<termios_p>. This function may be invoked from a background process; "
3341 "however, the terminal attributes may be subsequently changed by a foreground "
3346 #: build/C/man3/termios.3:666
3348 "B<tcsetattr>() sets the parameters associated with the terminal (unless "
3349 "support is required from the underlying hardware that is not available) from "
3350 "the I<termios> structure referred to by I<termios_p>. I<optional_actions> "
3351 "specifies when the changes take effect:"
3355 #: build/C/man3/termios.3:666
3361 #: build/C/man3/termios.3:668
3362 msgid "the change occurs immediately."
3366 #: build/C/man3/termios.3:668
3368 msgid "B<TCSADRAIN>"
3372 #: build/C/man3/termios.3:674
3374 "the change occurs after all output written to I<fd> has been transmitted. "
3375 "This function should be used when changing parameters that affect output."
3379 #: build/C/man3/termios.3:674
3381 msgid "B<TCSAFLUSH>"
3385 #: build/C/man3/termios.3:679
3387 "the change occurs after all output written to the object referred by I<fd> "
3388 "has been transmitted, and all input that has been received but not read will "
3389 "be discarded before the change is made."
3393 #: build/C/man3/termios.3:679
3395 msgid "Canonical and noncanonical mode"
3399 #: build/C/man3/termios.3:693
3401 "The setting of the B<ICANON> canon flag in I<c_lflag> determines whether the "
3402 "terminal is operating in canonical mode (B<ICANON> set) or noncanonical mode "
3403 "(B<ICANON> unset). By default, B<ICANON> set."
3407 #: build/C/man3/termios.3:695
3408 msgid "In canonical mode:"
3412 #: build/C/man3/termios.3:695 build/C/man3/termios.3:702 build/C/man3/termios.3:727 build/C/man3/termios.3:736 build/C/man3/termios.3:741 build/C/man3/termios.3:753
3418 #: build/C/man3/termios.3:702
3420 "Input is made available line by line. An input line is available when one "
3421 "of the line delimiters is typed (NL, EOL, EOL2; or EOF at the start of "
3422 "line). Except in the case of EOF, the line delimiter is included in the "
3423 "buffer returned by B<read>(2)."
3427 #: build/C/man3/termios.3:715
3429 "Line editing is enabled (ERASE, KILL; and if the B<IEXTEN> flag is set: "
3430 "WERASE, REPRINT, LNEXT). A B<read>(2) returns at most one line of input; "
3431 "if the B<read>(2) requested fewer bytes than are available in the current "
3432 "line of input, then only as many bytes as requested are read, and the "
3433 "remaining characters will be available for a future B<read>(2)."
3437 #: build/C/man3/termios.3:727
3439 "In noncanonical mode input is available immediately (without the user having "
3440 "to type a line-delimiter character), no input processing is performed, and "
3441 "line editing is disabled. The settings of MIN (I<c_cc[VMIN]>) and TIME "
3442 "(I<c_cc[VTIME]>) determine the circumstances in which a B<read>(2) "
3443 "completes; there are four distinct cases:"
3447 #: build/C/man3/termios.3:736
3449 "MIN == 0; TIME == 0: If data is available, B<read>(2) returns immediately, "
3450 "with the lesser of the number of bytes available, or the number of bytes "
3451 "requested. If no data is available, B<read>(2) returns 0."
3455 #: build/C/man3/termios.3:741
3457 "MIN E<gt> 0; TIME == 0: B<read>(2) blocks until the lesser of MIN bytes or "
3458 "the number of bytes requested are available, and returns the lesser of these "
3463 #: build/C/man3/termios.3:753
3465 "MIN == 0; TIME E<gt> 0: TIME specifies the limit for a timer in tenths of a "
3466 "second. The timer is started when B<read>(2) is called. B<read>(2) "
3467 "returns either when at least one byte of data is available, or when the "
3468 "timer expires. If the timer expires without any input becoming available, "
3469 "B<read>(2) returns 0."
3473 #: build/C/man3/termios.3:764
3475 "MIN E<gt> 0; TIME E<gt> 0: TIME specifies the limit for a timer in tenths of "
3476 "a second. Once an initial byte of input becomes available, the timer is "
3477 "restarted after each further byte is received. B<read>(2) returns either "
3478 "when the lesser of the number of bytes requested or MIN byte have been read, "
3479 "or when the inter-byte timeout expires. Because the timer is only started "
3480 "after the initial byte becomes available, at least one byte will be read."
3484 #: build/C/man3/termios.3:764
3490 #: build/C/man3/termios.3:773
3492 "B<cfmakeraw>() sets the terminal to something like the \"raw\" mode of the "
3493 "old Version 7 terminal driver: input is available character by character, "
3494 "echoing is disabled, and all special processing of terminal input and output "
3495 "characters is disabled. The terminal attributes are set as follows:"
3499 #: build/C/man3/termios.3:781
3502 " termios_p-E<gt>c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP\n"
3503 " | INLCR | IGNCR | ICRNL | IXON);\n"
3504 " termios_p-E<gt>c_oflag &= ~OPOST;\n"
3505 " termios_p-E<gt>c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN);\n"
3506 " termios_p-E<gt>c_cflag &= ~(CSIZE | PARENB);\n"
3507 " termios_p-E<gt>c_cflag |= CS8;\n"
3511 #: build/C/man3/termios.3:782
3513 msgid "Line control"
3517 #: build/C/man3/termios.3:792
3519 "B<tcsendbreak>() transmits a continuous stream of zero-valued bits for a "
3520 "specific duration, if the terminal is using asynchronous serial data "
3521 "transmission. If I<duration> is zero, it transmits zero-valued bits for at "
3522 "least 0.25 seconds, and not more that 0.5 seconds. If I<duration> is not "
3523 "zero, it sends zero-valued bits for some implementation-defined length of "
3528 #: build/C/man3/termios.3:796
3530 "If the terminal is not using asynchronous serial data transmission, "
3531 "B<tcsendbreak>() returns without taking any action."
3535 #: build/C/man3/termios.3:801
3537 "B<tcdrain>() waits until all output written to the object referred to by "
3538 "I<fd> has been transmitted."
3542 #: build/C/man3/termios.3:808
3544 "B<tcflush>() discards data written to the object referred to by I<fd> but "
3545 "not transmitted, or data received but not read, depending on the value of "
3546 "I<queue_selector>:"
3550 #: build/C/man3/termios.3:808
3556 #: build/C/man3/termios.3:810
3557 msgid "flushes data received but not read."
3561 #: build/C/man3/termios.3:810
3567 #: build/C/man3/termios.3:812
3568 msgid "flushes data written but not transmitted."
3572 #: build/C/man3/termios.3:812
3574 msgid "B<TCIOFLUSH>"
3578 #: build/C/man3/termios.3:815
3580 "flushes both data received but not read, and data written but not "
3585 #: build/C/man3/termios.3:821
3587 "B<tcflow>() suspends transmission or reception of data on the object "
3588 "referred to by I<fd>, depending on the value of I<action>:"
3592 #: build/C/man3/termios.3:821
3598 #: build/C/man3/termios.3:823
3599 msgid "suspends output."
3603 #: build/C/man3/termios.3:823
3609 #: build/C/man3/termios.3:825
3610 msgid "restarts suspended output."
3614 #: build/C/man3/termios.3:825
3620 #: build/C/man3/termios.3:828
3622 "transmits a STOP character, which stops the terminal device from "
3623 "transmitting data to the system."
3627 #: build/C/man3/termios.3:828
3633 #: build/C/man3/termios.3:831
3635 "transmits a START character, which starts the terminal device transmitting "
3636 "data to the system."
3640 #: build/C/man3/termios.3:834
3642 "The default on open of a terminal file is that neither its input nor its "
3643 "output is suspended."
3647 #: build/C/man3/termios.3:834
3653 #: build/C/man3/termios.3:841
3655 "The baud rate functions are provided for getting and setting the values of "
3656 "the input and output baud rates in the I<termios> structure. The new values "
3657 "do not take effect until B<tcsetattr>() is successfully called."
3661 #: build/C/man3/termios.3:845
3663 "Setting the speed to B<B0> instructs the modem to \"hang up\". The actual "
3664 "bit rate corresponding to B<B38400> may be altered with B<setserial>(8)."
3668 #: build/C/man3/termios.3:848
3669 msgid "The input and output baud rates are stored in the I<termios> structure."
3673 #: build/C/man3/termios.3:853
3675 "B<cfgetospeed>() returns the output baud rate stored in the I<termios> "
3676 "structure pointed to by I<termios_p>."
3680 #: build/C/man3/termios.3:857
3682 "B<cfsetospeed>() sets the output baud rate stored in the I<termios> "
3683 "structure pointed to by I<termios_p> to I<speed>, which must be one of these "
3688 #: build/C/man3/termios.3:879
3713 #: build/C/man3/termios.3:889
3715 "The zero baud rate, B<B0>, is used to terminate the connection. If B0 is "
3716 "specified, the modem control lines shall no longer be asserted. Normally, "
3717 "this will disconnect the line. B<CBAUDEX> is a mask for the speeds beyond "
3718 "those defined in POSIX.1 (57600 and above). Thus, B<B57600> & B<CBAUDEX> is "
3723 #: build/C/man3/termios.3:892 build/C/man3/termios.3:912
3725 "B<cfgetispeed>() returns the input baud rate stored in the I<termios> "
3730 #: build/C/man3/termios.3:900
3732 "B<cfsetispeed>() sets the input baud rate stored in the I<termios> "
3733 "structure to I<speed>, which must be specified as one of the B<Bnnn> "
3734 "constants listed above for B<cfsetospeed>(). If the input baud rate is set "
3735 "to zero, the input baud rate will be equal to the output baud rate."
3739 #: build/C/man3/termios.3:906
3741 "B<cfsetspeed>() is a 4.4BSD extension. It takes the same arguments as "
3742 "B<cfsetispeed>(), and sets both input and output speed."
3746 #: build/C/man3/termios.3:915
3748 "B<cfgetospeed>() returns the output baud rate stored in the I<termios> "
3753 #: build/C/man3/termios.3:917
3754 msgid "All other functions return:"
3758 #: build/C/man3/termios.3:917
3764 #: build/C/man3/termios.3:919
3769 #: build/C/man3/termios.3:919
3775 #: build/C/man3/termios.3:923
3776 msgid "on failure and set I<errno> to indicate the error."
3780 #: build/C/man3/termios.3:932
3782 "Note that B<tcsetattr>() returns success if I<any> of the requested changes "
3783 "could be successfully carried out. Therefore, when making multiple changes "
3784 "it may be necessary to follow this call with a further call to "
3785 "B<tcgetattr>() to check that all changes have been performed successfully."
3789 #: build/C/man3/termios.3:945
3791 "B<tcgetattr>(), B<tcsetattr>(), B<tcsendbreak>(), B<tcdrain>(), "
3792 "B<tcflush>(), B<tcflow>(), B<cfgetispeed>(), B<cfgetospeed>(), "
3793 "B<cfsetispeed>(), and B<cfsetospeed>() are specified in POSIX.1-2001."
3797 #: build/C/man3/termios.3:950
3799 "B<cfmakeraw>() and B<cfsetspeed>() are nonstandard, but available on the "
3804 #: build/C/man3/termios.3:955
3806 "UNIX V7 and several later systems have a list of baud rates where after the "
3807 "fourteen values B0, ..., B9600 one finds the two constants EXTA, EXTB "
3808 "(\"External A\" and \"External B\"). Many systems extend the list with much "
3809 "higher baud rates."
3812 #. libc4 until 4.7.5, glibc for sysv: EINVAL for duration > 0.
3813 #. libc4.7.6, libc5, glibc for unix: duration in ms.
3814 #. glibc for bsd: duration in us
3815 #. glibc for sunos4: ignore duration
3817 #: build/C/man3/termios.3:977
3819 "The effect of a nonzero I<duration> with B<tcsendbreak>() varies. SunOS "
3820 "specifies a break of I<duration\\ *\\ N> seconds, where I<N> is at least "
3821 "0.25, and not more than 0.5. Linux, AIX, DU, Tru64 send a break of "
3822 "I<duration> milliseconds. FreeBSD and NetBSD and HP-UX and MacOS ignore the "
3823 "value of I<duration>. Under Solaris and UnixWare, B<tcsendbreak>() with "
3824 "nonzero I<duration> behaves like B<tcdrain>()."
3828 #: build/C/man3/termios.3:982
3829 msgid "B<stty>(1), B<console_ioctl>(4), B<tty_ioctl>(4), B<setserial>(8)"
3833 #: build/C/man4/tty.4:28
3839 #: build/C/man4/tty.4:28
3845 #: build/C/man4/tty.4:31
3846 msgid "tty - controlling terminal"
3850 #: build/C/man4/tty.4:35
3852 "The file I</dev/tty> is a character file with major number 5 and minor "
3853 "number 0, usually of mode 0666 and owner.group root.tty. It is a synonym "
3854 "for the controlling terminal of a process, if any."
3858 #: build/C/man4/tty.4:42
3860 "In addition to the B<ioctl>(2) requests supported by the device that B<tty> "
3861 "refers to, the B<ioctl>(2) request B<TIOCNOTTY> is supported."
3865 #: build/C/man4/tty.4:42
3871 #: build/C/man4/tty.4:44
3872 msgid "Detach the calling process from its controlling terminal."
3876 #: build/C/man4/tty.4:52
3878 "If the process is the session leader, then B<SIGHUP> and B<SIGCONT> signals "
3879 "are sent to the foreground process group and all processes in the current "
3880 "session lose their controlling tty."
3884 #: build/C/man4/tty.4:64
3886 "This B<ioctl>(2) call only works on file descriptors connected to "
3887 "I</dev/tty>. It is used by daemon processes when they are invoked by a user "
3888 "at a terminal. The process attempts to open I</dev/tty>. If the open "
3889 "succeeds, it detaches itself from the terminal by using B<TIOCNOTTY>, while "
3890 "if the open fails, it is obviously not attached to a terminal and does not "
3891 "need to detach itself."
3895 #: build/C/man4/tty.4:66
3900 #: build/C/man4/tty.4:76
3902 "B<chown>(1), B<mknod>(1), B<ioctl>(2), B<termios>(3), B<console>(4), "
3903 "B<tty_ioctl>(4), B<ttyS>(4), B<agetty>(8), B<mingetty>(8)"
3907 #: build/C/man4/tty_ioctl.4:8
3913 #: build/C/man4/tty_ioctl.4:8
3919 #: build/C/man4/tty_ioctl.4:11
3920 msgid "tty_ioctl - ioctls for terminals and serial lines"
3924 #: build/C/man4/tty_ioctl.4:15
3925 msgid "B<int ioctl(int >I<fd>B<, int >I<cmd>B<, ...);>"
3929 #: build/C/man4/tty_ioctl.4:21
3931 "The B<ioctl>(2) call for terminals and serial ports accepts many possible "
3932 "command arguments. Most require a third argument, of varying type, here "
3933 "called I<argp> or I<arg>."
3937 #: build/C/man4/tty_ioctl.4:28
3939 "Use of I<ioctl> makes for nonportable programs. Use the POSIX interface "
3940 "described in B<termios>(3) whenever possible."
3944 #: build/C/man4/tty_ioctl.4:28
3946 msgid "Get and set terminal attributes"
3950 #: build/C/man4/tty_ioctl.4:29
3952 msgid "B<TCGETS\tstruct termios *>I<argp>"
3956 #: build/C/man4/tty_ioctl.4:33
3957 msgid "Equivalent to I<tcgetattr(fd, argp)>."
3961 #: build/C/man4/tty_ioctl.4:35
3962 msgid "Get the current serial port settings."
3966 #: build/C/man4/tty_ioctl.4:35
3968 msgid "B<TCSETS\tconst struct termios *>I<argp>"
3972 #: build/C/man4/tty_ioctl.4:39
3973 msgid "Equivalent to I<tcsetattr(fd, TCSANOW, argp)>."
3977 #: build/C/man4/tty_ioctl.4:41
3978 msgid "Set the current serial port settings."
3982 #: build/C/man4/tty_ioctl.4:41
3984 msgid "B<TCSETSW\tconst struct termios *>I<argp>"
3988 #: build/C/man4/tty_ioctl.4:45
3989 msgid "Equivalent to I<tcsetattr(fd, TCSADRAIN, argp)>."
3993 #: build/C/man4/tty_ioctl.4:48
3994 msgid "Allow the output buffer to drain, and set the current serial port settings."
3998 #: build/C/man4/tty_ioctl.4:48
4000 msgid "B<TCSETSF\tconst struct termios *>I<argp>"
4004 #: build/C/man4/tty_ioctl.4:52
4005 msgid "Equivalent to I<tcsetattr(fd, TCSAFLUSH, argp)>."
4009 #: build/C/man4/tty_ioctl.4:55
4011 "Allow the output buffer to drain, discard pending input, and set the current "
4012 "serial port settings."
4016 #: build/C/man4/tty_ioctl.4:65
4018 "The following four ioctls are just like B<TCGETS>, B<TCSETS>, B<TCSETSW>, "
4019 "B<TCSETSF>, except that they take a I<struct termio *> instead of a I<struct "
4024 #: build/C/man4/tty_ioctl.4:65
4026 msgid "B<TCGETA\tstruct termio *>I<argp>"
4030 #: build/C/man4/tty_ioctl.4:67
4032 msgid "B<TCSETA\tconst struct termio *>I<argp>"
4036 #: build/C/man4/tty_ioctl.4:69
4038 msgid "B<TCSETAW\tconst struct termio *>I<argp>"
4042 #: build/C/man4/tty_ioctl.4:71
4044 msgid "B<TCSETAF\tconst struct termio *>I<argp>"
4048 #: build/C/man4/tty_ioctl.4:73
4050 msgid "Locking the termios structure"
4054 #: build/C/man4/tty_ioctl.4:81
4056 "The I<termios> structure of a terminal can be locked. The lock is itself a "
4057 "I<termios> structure, with nonzero bits or fields indicating a locked value."
4061 #: build/C/man4/tty_ioctl.4:81
4063 msgid "B<TIOCGLCKTRMIOS\tstruct termios *>I<argp>"
4067 #: build/C/man4/tty_ioctl.4:86
4068 msgid "Gets the locking status of the I<termios> structure of the terminal."
4072 #: build/C/man4/tty_ioctl.4:86
4074 msgid "B<TIOCSLCKTRMIOS\tconst struct termios *>I<argp>"
4078 #: build/C/man4/tty_ioctl.4:94
4080 "Sets the locking status of the I<termios> structure of the terminal. Only "
4081 "root (more precisely: a process with the B<CAP_SYS_ADMIN> capability) can do "
4086 #: build/C/man4/tty_ioctl.4:94
4088 msgid "Get and set window size"
4092 #: build/C/man4/tty_ioctl.4:99
4094 "Window sizes are kept in the kernel, but not used by the kernel (except in "
4095 "the case of virtual consoles, where the kernel will update the window size "
4096 "when the size of the virtual console changes, for example, by loading a new "
4101 #: build/C/man4/tty_ioctl.4:102
4103 "The following constants and structure are defined in "
4104 "I<E<lt>sys/ioctl.hE<gt>>."
4108 #: build/C/man4/tty_ioctl.4:102
4110 msgid "B<TIOCGWINSZ\tstruct winsize *>I<argp>"
4114 #: build/C/man4/tty_ioctl.4:105
4115 msgid "Get window size."
4119 #: build/C/man4/tty_ioctl.4:105
4121 msgid "B<TIOCSWINSZ\tconst struct winsize *>I<argp>"
4125 #: build/C/man4/tty_ioctl.4:108
4126 msgid "Set window size."
4130 #: build/C/man4/tty_ioctl.4:110
4131 msgid "The struct used by these ioctls is defined as"
4135 #: build/C/man4/tty_ioctl.4:119
4138 "struct winsize {\n"
4139 " unsigned short ws_row;\n"
4140 " unsigned short ws_col;\n"
4141 " unsigned short ws_xpixel; /* unused */\n"
4142 " unsigned short ws_ypixel; /* unused */\n"
4147 #: build/C/man4/tty_ioctl.4:126
4149 "When the window size changes, a B<SIGWINCH> signal is sent to the foreground "
4154 #: build/C/man4/tty_ioctl.4:126
4156 msgid "Sending a break"
4160 #: build/C/man4/tty_ioctl.4:127
4162 msgid "B<TCSBRK\tint >I<arg>"
4166 #: build/C/man4/tty_ioctl.4:131
4167 msgid "Equivalent to I<tcsendbreak(fd, arg)>."
4171 #: build/C/man4/tty_ioctl.4:142
4173 "If the terminal is using asynchronous serial data transmission, and I<arg> "
4174 "is zero, then send a break (a stream of zero bits) for between 0.25 and 0.5 "
4175 "seconds. If the terminal is not using asynchronous serial data "
4176 "transmission, then either a break is sent, or the function returns without "
4177 "doing anything. When I<arg> is nonzero, nobody knows what will happen."
4181 #: build/C/man4/tty_ioctl.4:160
4183 "(SVr4, UnixWare, Solaris, Linux treat I<tcsendbreak(fd,arg)> with nonzero "
4184 "I<arg> like I<tcdrain(fd)>. SunOS treats I<arg> as a multiplier, and sends "
4185 "a stream of bits I<arg> times as long as done for zero I<arg>. DG/UX and "
4186 "AIX treat I<arg> (when nonzero) as a time interval measured in "
4187 "milliseconds. HP-UX ignores I<arg>.)"
4191 #: build/C/man4/tty_ioctl.4:160
4193 msgid "B<TCSBRKP\tint >I<arg>"
4197 #: build/C/man4/tty_ioctl.4:168
4199 "So-called \"POSIX version\" of B<TCSBRK>. It treats nonzero I<arg> as a "
4200 "timeinterval measured in deciseconds, and does nothing when the driver does "
4201 "not support breaks."
4205 #: build/C/man4/tty_ioctl.4:168
4207 msgid "B<TIOCSBRK\tvoid>"
4211 #: build/C/man4/tty_ioctl.4:171
4212 msgid "Turn break on, that is, start sending zero bits."
4216 #: build/C/man4/tty_ioctl.4:171
4218 msgid "B<TIOCCBRK\tvoid>"
4222 #: build/C/man4/tty_ioctl.4:174
4223 msgid "Turn break off, that is, stop sending zero bits."
4227 #: build/C/man4/tty_ioctl.4:174
4229 msgid "Software flow control"
4233 #: build/C/man4/tty_ioctl.4:175
4235 msgid "B<TCXONC\tint >I<arg>"
4239 #: build/C/man4/tty_ioctl.4:179
4240 msgid "Equivalent to I<tcflow(fd, arg)>."
4244 #: build/C/man4/tty_ioctl.4:187
4246 "See B<tcflow>(3) for the argument values B<TCOOFF>, B<TCOON>, B<TCIOFF>, "
4251 #: build/C/man4/tty_ioctl.4:187
4253 msgid "Buffer count and flushing"
4257 #: build/C/man4/tty_ioctl.4:188
4259 msgid "B<FIONREAD\tint *>I<argp>"
4263 #: build/C/man4/tty_ioctl.4:191
4264 msgid "Get the number of bytes in the input buffer."
4268 #: build/C/man4/tty_ioctl.4:191
4270 msgid "B<TIOCINQ\tint *>I<argp>"
4274 #: build/C/man4/tty_ioctl.4:195
4275 msgid "Same as B<FIONREAD>."
4279 #: build/C/man4/tty_ioctl.4:195
4281 msgid "B<TIOCOUTQ\tint *>I<argp>"
4285 #: build/C/man4/tty_ioctl.4:198
4286 msgid "Get the number of bytes in the output buffer."
4290 #: build/C/man4/tty_ioctl.4:198
4292 msgid "B<TCFLSH\tint >I<arg>"
4296 #: build/C/man4/tty_ioctl.4:202
4297 msgid "Equivalent to I<tcflush(fd, arg)>."
4301 #: build/C/man4/tty_ioctl.4:209
4303 "See B<tcflush>(3) for the argument values B<TCIFLUSH>, B<TCOFLUSH>, "
4308 #: build/C/man4/tty_ioctl.4:209
4310 msgid "Faking input"
4314 #: build/C/man4/tty_ioctl.4:210
4316 msgid "B<TIOCSTI\tconst char *>I<argp>"
4320 #: build/C/man4/tty_ioctl.4:213
4321 msgid "Insert the given byte in the input queue."
4325 #: build/C/man4/tty_ioctl.4:213
4327 msgid "Redirecting console output"
4331 #: build/C/man4/tty_ioctl.4:214
4333 msgid "B<TIOCCONS\tvoid>"
4337 #: build/C/man4/tty_ioctl.4:236
4339 "Redirect output that would have gone to I</dev/console> or I</dev/tty0> to "
4340 "the given terminal. If that was a pseudoterminal master, send it to the "
4341 "slave. In Linux before version 2.6.10, anybody can do this as long as the "
4342 "output was not redirected yet; since version 2.6.10, only root (a process "
4343 "with the B<CAP_SYS_ADMIN> capability) may do this. If output was redirected "
4344 "already B<EBUSY> is returned, but redirection can be stopped by using this "
4345 "ioctl with I<fd> pointing at I</dev/console> or I</dev/tty0>."
4349 #: build/C/man4/tty_ioctl.4:236
4351 msgid "Controlling terminal"
4355 #: build/C/man4/tty_ioctl.4:237
4357 msgid "B<TIOCSCTTY\tint >I<arg>"
4361 #: build/C/man4/tty_ioctl.4:251
4363 "Make the given terminal the controlling terminal of the calling process. "
4364 "The calling process must be a session leader and not have a controlling "
4365 "terminal already. If this terminal is already the controlling terminal of a "
4366 "different session group then the ioctl fails with B<EPERM>, unless the "
4367 "caller is root (more precisely: has the B<CAP_SYS_ADMIN> capability) and "
4368 "I<arg> equals 1, in which case the terminal is stolen, and all processes "
4369 "that had it as controlling terminal lose it."
4373 #: build/C/man4/tty_ioctl.4:251
4375 msgid "B<TIOCNOTTY\tvoid>"
4379 #: build/C/man4/tty_ioctl.4:262
4381 "If the given terminal was the controlling terminal of the calling process, "
4382 "give up this controlling terminal. If the process was session leader, then "
4383 "send B<SIGHUP> and B<SIGCONT> to the foreground process group and all "
4384 "processes in the current session lose their controlling terminal."
4388 #: build/C/man4/tty_ioctl.4:262
4390 msgid "Process group and session ID"
4394 #: build/C/man4/tty_ioctl.4:263
4396 msgid "B<TIOCGPGRP\tpid_t *>I<argp>"
4400 #: build/C/man4/tty_ioctl.4:267
4401 msgid "When successful, equivalent to I<*argp = tcgetpgrp(fd)>."
4405 #: build/C/man4/tty_ioctl.4:269
4406 msgid "Get the process group ID of the foreground process group on this terminal."
4410 #: build/C/man4/tty_ioctl.4:269
4412 msgid "B<TIOCSPGRP\tconst pid_t *>I<argp>"
4416 #: build/C/man4/tty_ioctl.4:273
4417 msgid "Equivalent to I<tcsetpgrp(fd, *argp)>."
4421 #: build/C/man4/tty_ioctl.4:275
4422 msgid "Set the foreground process group ID of this terminal."
4426 #: build/C/man4/tty_ioctl.4:275
4428 msgid "B<TIOCGSID\tpid_t *>I<argp>"
4432 #: build/C/man4/tty_ioctl.4:283
4434 "Get the session ID of the given terminal. This will fail with B<ENOTTY> in "
4435 "case the terminal is not a master pseudoterminal and not our controlling "
4436 "terminal. Strange."
4440 #: build/C/man4/tty_ioctl.4:283
4442 msgid "Exclusive mode"
4446 #: build/C/man4/tty_ioctl.4:284
4448 msgid "B<TIOCEXCL\tvoid>"
4452 #: build/C/man4/tty_ioctl.4:295
4454 "Put the terminal into exclusive mode. No further B<open>(2) operations on "
4455 "the terminal are permitted. (They will fail with B<EBUSY>, except for root, "
4456 "that is, a process with the B<CAP_SYS_ADMIN> capability.)"
4460 #: build/C/man4/tty_ioctl.4:295
4462 msgid "B<TIOCNXCL\tvoid>"
4466 #: build/C/man4/tty_ioctl.4:298
4467 msgid "Disable exclusive mode."
4471 #: build/C/man4/tty_ioctl.4:298
4473 msgid "Line discipline"
4477 #: build/C/man4/tty_ioctl.4:299
4479 msgid "B<TIOCGETD\tint *>I<argp>"
4483 #: build/C/man4/tty_ioctl.4:302
4484 msgid "Get the line discipline of the terminal."
4488 #: build/C/man4/tty_ioctl.4:302
4490 msgid "B<TIOCSETD\tconst int *>I<argp>"
4494 #: build/C/man4/tty_ioctl.4:305
4495 msgid "Set the line discipline of the terminal."
4499 #: build/C/man4/tty_ioctl.4:305
4501 msgid "Pseudoterminal ioctls"
4505 #: build/C/man4/tty_ioctl.4:306
4507 msgid "B<TIOCPKT\tconst int *>I<argp>"
4511 #: build/C/man4/tty_ioctl.4:323
4513 "Enable (when *I<argp> is nonzero) or disable packet mode. Can be applied to "
4514 "the master side of a pseudoterminal only (and will return B<ENOTTY> "
4515 "otherwise). In packet mode, each subsequent B<read>(2) will return a "
4516 "packet that either contains a single nonzero control byte, or has a single "
4517 "byte containing zero (\\(aq\\0\\(aq) followed by data written on the slave "
4518 "side of the pseudoterminal. If the first byte is not B<TIOCPKT_DATA> (0), "
4519 "it is an OR of one or more of the following bits:"
4523 #: build/C/man4/tty_ioctl.4:331
4526 "TIOCPKT_FLUSHREAD The read queue for the terminal is flushed.\n"
4527 "TIOCPKT_FLUSHWRITE The write queue for the terminal is flushed.\n"
4528 "TIOCPKT_STOP Output to the terminal is stopped.\n"
4529 "TIOCPKT_START Output to the terminal is restarted.\n"
4530 "TIOCPKT_DOSTOP The start and stop characters are B<^S>/B<^Q>.\n"
4531 "TIOCPKT_NOSTOP The start and stop characters are not B<^S>/B<^Q>.\n"
4535 #: build/C/man4/tty_ioctl.4:338
4537 "While this mode is in use, the presence of control status information to be "
4538 "read from the master side may be detected by a B<select>(2) for exceptional "
4543 #: build/C/man4/tty_ioctl.4:345
4545 "This mode is used by B<rlogin>(1) and B<rlogind>(8) to implement a "
4546 "remote-echoed, locally B<^S>/B<^Q> flow-controlled remote login."
4550 #: build/C/man4/tty_ioctl.4:352
4552 "The BSD ioctls B<TIOCSTOP>, B<TIOCSTART>, B<TIOCUCNTL>, B<TIOCREMOTE> have "
4553 "not been implemented under Linux."
4557 #: build/C/man4/tty_ioctl.4:352
4559 msgid "Modem control"
4563 #: build/C/man4/tty_ioctl.4:353
4565 msgid "B<TIOCMGET\tint *>I<argp>"
4569 #: build/C/man4/tty_ioctl.4:356
4570 msgid "get the status of modem bits."
4574 #: build/C/man4/tty_ioctl.4:356
4576 msgid "B<TIOCMSET\tconst int *>I<argp>"
4580 #: build/C/man4/tty_ioctl.4:359
4581 msgid "set the status of modem bits."
4585 #: build/C/man4/tty_ioctl.4:359
4587 msgid "B<TIOCMBIC\tconst int *>I<argp>"
4591 #: build/C/man4/tty_ioctl.4:362
4592 msgid "clear the indicated modem bits."
4596 #: build/C/man4/tty_ioctl.4:362
4598 msgid "B<TIOCMBIS\tconst int *>I<argp>"
4602 #: build/C/man4/tty_ioctl.4:365
4603 msgid "set the indicated modem bits."
4607 #: build/C/man4/tty_ioctl.4:367
4608 msgid "Bits used by these four ioctls:"
4612 #: build/C/man4/tty_ioctl.4:380
4615 "TIOCM_LE DSR (data set ready/line enable)\n"
4616 "TIOCM_DTR DTR (data terminal ready)\n"
4617 "TIOCM_RTS RTS (request to send)\n"
4618 "TIOCM_ST Secondary TXD (transmit)\n"
4619 "TIOCM_SR Secondary RXD (receive)\n"
4620 "TIOCM_CTS CTS (clear to send)\n"
4621 "TIOCM_CAR DCD (data carrier detect)\n"
4622 "TIOCM_CD see TIOCM_CAR\n"
4623 "TIOCM_RNG RNG (ring)\n"
4624 "TIOCM_RI see TIOCM_RNG\n"
4625 "TIOCM_DSR DSR (data set ready)\n"
4629 #: build/C/man4/tty_ioctl.4:381
4631 msgid "Marking a line as local"
4635 #: build/C/man4/tty_ioctl.4:382
4637 msgid "B<TIOCGSOFTCAR\tint *>I<argp>"
4641 #: build/C/man4/tty_ioctl.4:388
4643 "(\"Get software carrier flag\") Get the status of the CLOCAL flag in the "
4644 "c_cflag field of the I<termios> structure."
4648 #: build/C/man4/tty_ioctl.4:388
4650 msgid "B<TIOCSSOFTCAR\tconst int *>I<argp>"
4654 #: build/C/man4/tty_ioctl.4:396
4656 "(\"Set software carrier flag\") Set the CLOCAL flag in the I<termios> "
4657 "structure when *I<argp> is nonzero, and clear it otherwise."
4661 #: build/C/man4/tty_ioctl.4:411
4663 "If the B<CLOCAL> flag for a line is off, the hardware carrier detect (DCD) "
4664 "signal is significant, and an B<open>(2) of the corresponding terminal will "
4665 "block until DCD is asserted, unless the B<O_NONBLOCK> flag is given. If "
4666 "B<CLOCAL> is set, the line behaves as if DCD is always asserted. The "
4667 "software carrier flag is usually turned on for local devices, and is off for "
4668 "lines with modems."
4672 #: build/C/man4/tty_ioctl.4:411
4674 msgid "Linux-specific"
4678 #: build/C/man4/tty_ioctl.4:416
4679 msgid "For the B<TIOCLINUX> ioctl, see B<console_ioctl>(4)."
4683 #: build/C/man4/tty_ioctl.4:416
4685 msgid "Kernel debugging"
4689 #: build/C/man4/tty_ioctl.4:418
4690 msgid "B<#include E<lt>linux/tty.hE<gt>>"
4694 #: build/C/man4/tty_ioctl.4:418
4696 msgid "B<TIOCTTYGSTRUCT\tstruct tty_struct *>I<argp>"
4700 #. .SS "Serial info"
4701 #. .BR "#include <linux/serial.h>"
4704 #. .BI "TIOCGSERIAL struct serial_struct *" argp
4707 #. .BI "TIOCSSERIAL const struct serial_struct *" argp
4710 #: build/C/man4/tty_ioctl.4:434
4711 msgid "Get the I<tty_struct> corresponding to I<fd>."
4715 #: build/C/man4/tty_ioctl.4:441
4717 "The B<ioctl>(2) system call returns 0 on success. On error it returns -1 "
4718 "and sets I<errno> appropriately."
4722 #: build/C/man4/tty_ioctl.4:445
4723 msgid "Invalid command parameter."
4727 #: build/C/man4/tty_ioctl.4:445
4729 msgid "B<ENOIOCTLCMD>"
4733 #: build/C/man4/tty_ioctl.4:448
4734 msgid "Unknown command."
4738 #: build/C/man4/tty_ioctl.4:452
4739 msgid "Inappropriate I<fd>."
4743 #: build/C/man4/tty_ioctl.4:452
4749 #: build/C/man4/tty_ioctl.4:455
4750 msgid "Insufficient permission."
4754 #: build/C/man4/tty_ioctl.4:455 build/C/man5/ttytype.5:57
4760 #: build/C/man4/tty_ioctl.4:457
4761 msgid "Check the condition of DTR on the serial port."
4765 #: build/C/man4/tty_ioctl.4:462
4768 "#include E<lt>termios.hE<gt>\n"
4769 "#include E<lt>fcntl.hE<gt>\n"
4770 "#include E<lt>sys/ioctl.hE<gt>\n"
4774 #: build/C/man4/tty_ioctl.4:467
4780 " int fd, serial;\n"
4784 #: build/C/man4/tty_ioctl.4:476
4787 " fd = open(\"/dev/ttyS0\", O_RDONLY);\n"
4788 " ioctl(fd, TIOCMGET, &serial);\n"
4789 " if (serial & TIOCM_DTR)\n"
4790 " puts(\"TIOCM_DTR is not set\");\n"
4792 " puts(\"TIOCM_DTR is set\");\n"
4798 #. FIONBIO const int *
4801 #. FIOASYNC const int *
4803 #. TIOCSERCONFIG void
4804 #. TIOCSERGWILD int *
4805 #. TIOCSERSWILD const int *
4806 #. TIOCSERGSTRUCT struct async_struct *
4807 #. TIOCSERGETLSR int *
4808 #. TIOCSERGETMULTI struct serial_multiport_struct *
4809 #. TIOCSERSETMULTI const struct serial_multiport_struct *
4810 #. TIOCGSERIAL, TIOCSSERIAL (see above)
4812 #: build/C/man4/tty_ioctl.4:496
4813 msgid "B<ioctl>(2), B<termios>(3), B<console_ioctl>(4), B<pty>(7)"
4817 #: build/C/man3/ttyname.3:27
4823 #: build/C/man3/ttyname.3:27
4829 #: build/C/man3/ttyname.3:30
4830 msgid "ttyname, ttyname_r - return name of a terminal"
4834 #: build/C/man3/ttyname.3:35
4836 msgid "B<char *ttyname(int >I<fd>B<);>\n"
4840 #: build/C/man3/ttyname.3:37
4842 msgid "B<int ttyname_r(int >I<fd>B<, char *>I<buf>B<, size_t >I<buflen>B<);>\n"
4846 #: build/C/man3/ttyname.3:52
4848 "The function B<ttyname>() returns a pointer to the null-terminated pathname "
4849 "of the terminal device that is open on the file descriptor I<fd>, or NULL on "
4850 "error (for example, if I<fd> is not connected to a terminal). The return "
4851 "value may point to static data, possibly overwritten by the next call. The "
4852 "function B<ttyname_r>() stores this pathname in the buffer I<buf> of length "
4857 #: build/C/man3/ttyname.3:62
4859 "The function B<ttyname>() returns a pointer to a pathname on success. On "
4860 "error, NULL is returned, and I<errno> is set appropriately. The function "
4861 "B<ttyname_r>() returns 0 on success, and an error number upon error."
4865 #: build/C/man3/ttyname.3:66
4866 msgid "Bad file descriptor."
4870 #: build/C/man3/ttyname.3:69
4871 msgid "File descriptor does not refer to a terminal device."
4875 #: build/C/man3/ttyname.3:74
4876 msgid "(B<ttyname_r>()) I<buflen> was too small to allow storing the pathname."
4880 #: build/C/man3/ttyname.3:76
4881 msgid "4.2BSD, POSIX.1-2001."
4885 #: build/C/man3/ttyname.3:80
4886 msgid "B<fstat>(2), B<ctermid>(3), B<isatty>(3)"
4890 #: build/C/man3/ttyslot.3:28
4896 #: build/C/man3/ttyslot.3:28
4902 #: build/C/man3/ttyslot.3:31
4903 msgid "ttyslot - find the slot of the current user's terminal in some file"
4907 #: build/C/man3/ttyslot.3:33
4908 msgid "B<#include E<lt>unistd.hE<gt>> /* on BSD-like systems, and Linux */"
4912 #: build/C/man3/ttyslot.3:35
4913 msgid "B<#include E<lt>stdlib.hE<gt>> /* on System V-like systems */"
4917 #: build/C/man3/ttyslot.3:37
4918 msgid "B<int ttyslot(void);>"
4922 #: build/C/man3/ttyslot.3:45
4923 msgid "B<ttyslot>():"
4927 #: build/C/man3/ttyslot.3:47
4928 msgid "_BSD_SOURCE ||"
4932 #: build/C/man3/ttyslot.3:49
4934 "_XOPEN_SOURCE\\ &&\\ _XOPEN_SOURCE_\\ E<lt>\\ 500\\ &&\\ "
4935 "_XOPEN_SOURCE_EXTENDED"
4939 #: build/C/man3/ttyslot.3:55
4941 "The legacy function B<ttyslot>() returns the index of the current user's "
4942 "entry in some file."
4946 #: build/C/man3/ttyslot.3:58
4947 msgid "Now \"What file?\" you ask. Well, let's first look at some history."
4951 #: build/C/man3/ttyslot.3:58
4953 msgid "Ancient history"
4957 #: build/C/man3/ttyslot.3:75
4959 "There used to be a file I</etc/ttys> in UNIX V6, that was read by the "
4960 "B<init>(8) program to find out what to do with each terminal line. Each "
4961 "line consisted of three characters. The first character was either "
4962 "\\(aq0\\(aq or \\(aq1\\(aq, where \\(aq0\\(aq meant \"ignore\". The second "
4963 "character denoted the terminal: \\(aq8\\(aq stood for \"/dev/tty8\". The "
4964 "third character was an argument to B<getty>(8) indicating the sequence of "
4965 "line speeds to try (\\(aq-\\(aq was: start trying 110 baud). Thus a typical "
4966 "line was \"18-\". A hang on some line was solved by changing the "
4967 "\\(aq1\\(aq to a \\(aq0\\(aq, signaling init, changing back again, and "
4968 "signaling init again."
4972 #: build/C/man3/ttyslot.3:83
4974 "In UNIX V7 the format was changed: here the second character was the "
4975 "argument to B<getty>(8) indicating the sequence of line speeds to try "
4976 "(\\(aq0\\(aq was: cycle through 300-1200-150-110 baud; \\(aq4\\(aq was for "
4977 "the on-line console DECwriter) while the rest of the line contained the "
4978 "name of the tty. Thus a typical line was \"14console\"."
4982 #: build/C/man3/ttyslot.3:88
4984 "Later systems have more elaborate syntax. System V-like systems have "
4985 "I</etc/inittab> instead."
4989 #: build/C/man3/ttyslot.3:88
4991 msgid "Ancient history (2)"
4995 #: build/C/man3/ttyslot.3:102
4997 "On the other hand, there is the file I</etc/utmp> listing the people "
4998 "currently logged in. It is maintained by B<login>(1). It has a fixed size, "
4999 "and the appropriate index in the file was determined by B<login>(1) using "
5000 "the B<ttyslot>() call to find the number of the line in I</etc/ttys> "
5001 "(counting from 1)."
5005 #: build/C/man3/ttyslot.3:102
5007 msgid "The semantics of ttyslot"
5011 #: build/C/man3/ttyslot.3:117
5013 "Thus, the function B<ttyslot>() returns the index of the controlling "
5014 "terminal of the calling process in the file I</etc/ttys>, and that is "
5015 "(usually) the same as the index of the entry for the current user in the "
5016 "file I</etc/utmp>. BSD still has the I</etc/ttys> file, but System V-like "
5017 "systems do not, and hence cannot refer to it. Thus, on such systems the "
5018 "documentation says that B<ttyslot>() returns the current user's index in "
5019 "the user accounting data base."
5023 #: build/C/man3/ttyslot.3:123
5025 "If successful, this function returns the slot number. On error (e.g., if "
5026 "none of the file descriptors 0, 1 or 2 is associated with a terminal that "
5027 "occurs in this data base) it returns 0 on UNIX V6 and V7 and BSD-like "
5028 "systems, but -1 on System V-like systems."
5032 #: build/C/man3/ttyslot.3:126
5034 "SUSv1; marked as LEGACY in SUSv2; removed in POSIX.1-2001. SUSv2 requires "
5039 #: build/C/man3/ttyslot.3:131
5041 "The utmp file is found various places on various systems, such as "
5042 "I</etc/utmp>, I</var/adm/utmp>, I</var/run/utmp>."
5046 #: build/C/man3/ttyslot.3:140
5048 "The glibc2 implementation of this function reads the file B<_PATH_TTYS>, "
5049 "defined in I<E<lt>ttyent.hE<gt>> as \"/etc/ttys\". It returns 0 on error. "
5050 "Since Linux systems do not usually have \"/etc/ttys\", it will always return "
5056 #. appeared in UNIX V7.
5058 #: build/C/man3/ttyslot.3:146
5059 msgid "Minix also has I<fttyslot>(I<fd>)."
5063 #: build/C/man3/ttyslot.3:150
5064 msgid "B<getttyent>(3), B<ttyname>(3), B<utmp>(5)"
5068 #: build/C/man5/ttytype.5:29
5074 #: build/C/man5/ttytype.5:29
5080 #: build/C/man5/ttytype.5:32
5081 msgid "ttytype - terminal device to default terminal type mapping"
5085 #: build/C/man5/ttytype.5:42
5087 "The I</etc/ttytype> file associates B<termcap>(5)/B<terminfo>(5) terminal "
5088 "type names with tty lines. Each line consists of a terminal type, followed "
5089 "by whitespace, followed by a tty name (a device name without the I</dev/>) "
5094 #: build/C/man5/ttytype.5:49
5096 "This association is used by the program B<tset>(1) to set the environment "
5097 "variable B<TERM> to the default terminal name for the user's current tty."
5101 #: build/C/man5/ttytype.5:53
5103 "This facility was designed for a traditional time-sharing environment "
5104 "featuring character-cell terminals hardwired to a UNIX minicomputer. It is "
5105 "little used on modern workstation and personal UNIX systems."
5109 #: build/C/man5/ttytype.5:54
5111 msgid "I</etc/ttytype>"
5115 #: build/C/man5/ttytype.5:57
5116 msgid "the tty definitions file."
5120 #: build/C/man5/ttytype.5:61
5121 msgid "A typical I</etc/ttytype> is:"
5125 #: build/C/man5/ttytype.5:64
5126 msgid "con80x25 tty1"
5130 #: build/C/man5/ttytype.5:66
5135 #: build/C/man5/ttytype.5:72
5136 msgid "B<termcap>(5), B<terminfo>(5), B<agetty>(8), B<mingetty>(8)"
5140 #: build/C/man3/unlockpt.3:5
5146 #: build/C/man3/unlockpt.3:8
5147 msgid "unlockpt - unlock a pseudoterminal master/slave pair"
5151 #: build/C/man3/unlockpt.3:15
5153 msgid "B<int unlockpt(int >I<fd>B<);>\n"
5157 #: build/C/man3/unlockpt.3:22
5159 "The B<unlockpt>() function unlocks the slave pseudoterminal device "
5160 "corresponding to the master pseudoterminal referred to by I<fd>."
5164 #: build/C/man3/unlockpt.3:25
5166 "B<unlockpt>() should be called before opening the slave side of a "
5171 #: build/C/man3/unlockpt.3:32
5173 "When successful, B<unlockpt>() returns 0. Otherwise, it returns -1 and "
5174 "sets I<errno> appropriately."
5178 #: build/C/man3/unlockpt.3:38
5179 msgid "The I<fd> argument is not a file descriptor open for writing."
5183 #: build/C/man3/unlockpt.3:43
5184 msgid "The I<fd> argument is not associated with a master pseudoterminal."
5188 #: build/C/man3/unlockpt.3:46
5189 msgid "B<unlockpt>() is provided in glibc since version 2.1."
5193 #: build/C/man3/unlockpt.3:54
5194 msgid "B<grantpt>(3), B<posix_openpt>(3), B<ptsname>(3), B<pts>(4), B<pty>(7)"