aboutsummaryrefslogtreecommitdiff
path: root/loginutils/getty.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* getty: tweak style, no code changesDenys Vlasenko2012-09-021-2/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: add commented-out extended error diagnosticDenys Vlasenko2012-08-161-0/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: fix for NOCTTY killing us with SIGHUPDenys Vlasenko2012-04-261-0/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: better comments on termios manipulations. No code changes.Denys Vlasenko2012-01-151-2/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: Hurd has no CBAUD, work around thatDenys Vlasenko2011-10-301-0/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: fix a minor problem of Ctrl-D not printing '\n'Denys Vlasenko2011-10-231-35/+24
| | | | | | | Also removed defines for control chars which are never changed, and added login/getty README. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: reset tty attrs on Ctrl-C and Ctrl-D tooDenys Vlasenko2011-10-231-0/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: add O_NONBLOCK to open which is used to drop cttyDenys Vlasenko2011-10-221-3/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: remove now not needed resetting of ALRM to to SIG_DFLDenys Vlasenko2011-10-221-1/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty,login: tighten up handling of ctty, pgrp, and tty attr restoring on ↵Denys Vlasenko2011-10-221-87/+121
| | | | | | timeout Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: shrink help textDenys Vlasenko2011-10-221-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: remove "Options:" string from help textsDenys Vlasenko2011-06-051-1/+0
| | | | | | | function old new delta packed_usage 28706 28623 -83 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix bit rot in scripts/Makefile.IMADenys Vlasenko2011-03-061-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whitespace fixesDenys Vlasenko2011-02-031-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: fix "ifdef CMSPAR"Denys Vlasenko2011-01-261-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: restore CRTSCTS commentDenys Vlasenko2011-01-261-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: do clear CLOCAL and CRTSCTS unless told otherwiseDenys Vlasenko2011-01-261-4/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: do not clear all c_cflag's (we were clearing baud bits!)Denys Vlasenko2011-01-261-12/+28
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: wait up to 5 seconds for the output buffer to drainPeter Korsgaard2011-01-261-23/+33
| | | | | Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: document bits we don't set - maybe we should set some of them?Denys Vlasenko2011-01-261-7/+59
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: add ECHOE explanationDenys Vlasenko2011-01-261-1/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: explain every bit in termios; remove redundant stuff in termios_finalDenys Vlasenko2011-01-261-36/+31
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* move utmp.h include to libbb.hDenys Vlasenko2011-01-251-3/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: flush _only_ input after switching to the next baud rateDenys Vlasenko2011-01-241-1/+1
| | | | | | | It was originally like this, but at some point TCIFLUSH was inadvertently changed to TCIOFLUSH. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: simplify macros; improve VSWTC[H] compatDenys Vlasenko2011-01-241-9/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: more simplifications; explain how we treat parity nowDenys Vlasenko2011-01-241-95/+93
| | | | | | | function old new delta getty_main 1471 1434 -37 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: simplify code by going to more straignforward G trickDenys Vlasenko2011-01-241-275/+121
| | | | | | | function old new delta getty_main 1615 1475 -140 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: add sleep before initial tcdrain; reduce another sleep from 1 to 0.1sDenys Vlasenko2011-01-241-9/+12
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: use cfsetspeed to save some bytes; cosmetic fixesDenys Vlasenko2011-01-241-30/+20
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: more correct check for O_RDWRDenys Vlasenko2011-01-221-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: comment out parity detection code; improve usage textDenys Vlasenko2011-01-221-40/+72
| | | | | | | | | | | function old new delta packed_usage 28155 28191 +36 static.erase 12 - -12 getty_main 1847 1621 -226 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 1/1 up/down: 36/-238) Total: -202 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: fix -i (was ignored)Denys Vlasenko2011-01-091-68/+67
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: whitespace fixesDenys Vlasenko2010-10-281-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: introduce and use strcpy_and_process_escape_sequencesDenys Vlasenko2010-10-231-15/+3
| | | | | | | | | | | | function old new delta strcpy_and_process_escape_sequences - 50 +50 bb_process_escape_sequence 148 138 -10 printf_main 789 776 -13 getty_main 1897 1831 -66 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/3 up/down: 50/-89) Total: -39 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: small code shrinkDenys Vlasenko2010-09-011-9/+7
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* *: make GNU licensing statement forms more regularDenys Vlasenko2010-08-161-1/+1
| | | | | | | This change retains "or later" state! No licensing _changes_ here, only form is adjusted (article, space between "GPL" and "v2" and so on). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* init,loginutils: termios portability fixesJeremie Koenig2010-07-191-13/+14
| | | | | Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* bbconfig: make it independent from printf functionsDenys Vlasenko2010-06-071-2/+1
| | | | | | | | | | | | | | function old new delta full_write2_str - 25 +25 full_write1_str - 25 +25 clear_main 21 20 -1 telnet_main 1488 1477 -11 getty_main 1932 1918 -14 full_write22_str 25 - -25 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 0/3 up/down: 50/-51) Total: -1 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: do not emit bogus error message on EOFDenys Vlasenko2010-05-221-0/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* telnetd: write LOGIN/DEAD_PROCESS utmp records. Closes bug 1363Denys Vlasenko2010-04-051-3/+5
| | | | | | | | | | | | | | | | | function old new delta write_new_utmp - 253 +253 skip_dev_pfx - 30 +30 handle_sigchld 42 72 +30 telnetd_main 1650 1673 +23 make_new_session 415 438 +23 ... login_main 1140 1148 +8 update_utmp 337 313 -24 write_wtmp 220 154 -66 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 11/6 up/down: 406/-115) Total: ~291 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: split update_utmp from login/getty in preparation to use it for telnetdDenys Vlasenko2010-04-051-59/+2
| | | | | | | | | | | | | | | | | | | function old new delta update_utent - 339 +339 login_main 1498 1128 -370 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/1 up/down: 339/-370) Total: -31 bytes function old new delta update_utmp 246 337 +91 login_main 1128 1140 +12 getty_main 1908 1918 +10 ... update_utent 339 - -339 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 5/6 up/down: 119/-368) Total: -249 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: robustify isXXXX(). +39 bytesDenys Vlasenko2009-11-181-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: a few more NOINLINEsDenys Vlasenko2009-10-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta print_linkinfo - 815 +815 do_msg - 783 +783 INET_setroute - 757 +757 varvalue - 746 +746 do_sem - 637 +637 inflate_codes - 617 +617 INET6_setroute - 491 +491 edir - 370 +370 sync_cursor - 298 +298 update_utmp - 246 +246 searchLines - 165 +165 setup_alarm - 144 +144 may_wakeup - 101 +101 getNum 566 371 -195 refresh 1166 848 -318 rtcwake_main 809 479 -330 getty_main 2396 1921 -475 chpst_main 1373 746 -627 inflate_unzip_internal 1335 567 -768 evalvar 1384 612 -772 ipaddr_list_or_flush 2160 1246 -914 route_main 1585 245 -1340 ipcs_main 2523 1049 -1474 ------------------------------------------------------------------------------ (add/remove: 13/0 grow/shrink: 0/10 up/down: 6170/-7213) Total: -1043 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* df: fix "df /"Denys Vlasenko2009-07-051-1/+1
| | | | | | | | | | | | | | | | | | | also, clean up mount checks in mkfs/fsck. function old new delta find_mount_point 243 261 +18 sha1_process_block64 497 510 +13 find_main 436 444 +8 display_speed 85 90 +5 df_main 795 793 -2 parse_command 1463 1460 -3 static.ignored_mounts 8 - -8 mkfs_minix_main 2962 2937 -25 fsck_minix_main 3065 2970 -95 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 4/4 up/down: 44/-133) Total: -89 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Patches to enable FreeBSD buildDenys Vlasenko2009-07-051-0/+4
| | | | | | | | | platform.h: fix wrong check for endianness, fix lchown aliasing to chown on uclibc. Code seems to not be affected in my testing. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* getty: fix handling of speed 0;Denis Vlasenko2009-04-121-10/+14
| | | | | | | | | | stop using non-portable way of setting speeds. function old new delta cfsetispeed - 76 +76 cfsetospeed - 57 +57 cfgetispeed - 20 +20
* patch by Stuart Hughes <seh@zee2.com> and Guenter <lists@gknw.net> to make ↵Mike Frysinger2009-04-091-1/+7
| | | | "0" a special baud rate for getty where it uses this as "leave baud rate unchanged"
* *: move get_sock_lsa and xwrite_str to libbb, use where appropriateDenis Vlasenko2009-03-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta get_sock_lsa - 72 +72 buffer_fill_and_print 179 196 +17 parse_expr 824 832 +8 read_base64 343 348 +5 nameval 202 206 +4 fbset_main 1694 1698 +4 expand 1849 1853 +4 udhcp_send_kernel_packet 249 252 +3 udhcp_get_option 223 222 -1 chat_main 1246 1245 -1 pack_gzip 1661 1659 -2 doset 299 297 -2 bb__parsespent 119 117 -2 test_main 260 257 -3 qgravechar 109 106 -3 tcpudpsvd_main 1834 1830 -4 sysctl_display_all 589 580 -9 xopen_xwrite_close 44 33 -11 prs 30 18 -12 find_main 418 406 -12 full_write2_str 25 12 -13 adduser_main 667 654 -13 evaltreenr 817 802 -15 evaltree 817 802 -15 tftpd_main 526 493 -33 ftpd_main 2050 1990 -60 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 7/18 up/down: 117/-211) Total: -94 bytes
* - isascii() is obsolescent in SUSv4 and furthermore looks redundant in this spotBernhard Reutner-Fischer2009-01-091-1/+1
|
* remove a few superfluous includesDenis Vlasenko2008-11-251-1/+0
|