aboutsummaryrefslogtreecommitdiff
path: root/loginutils/getty.c
AgeCommit message (Collapse)Author
2007-07-14xioctl and friends by Tito <farmatito@tiscali.it>Denis Vlasenko
function old new delta do_iptunnel 203 977 +774 process_dev 5328 5494 +166 ioctl_or_perror - 54 +54 ioctl_or_perror_and_die - 51 +51 ioctl_alt_func - 49 +49 bb_ioctl_or_warn - 47 +47 do_add_ioctl 102 145 +43 bb_xioctl - 39 +39 print_value_on_off - 31 +31 get_lcm 105 123 +18 arp_main 2155 2167 +12 .................. zcip_main 1576 1566 -10 setlogcons_main 92 82 -10 dumpkmap_main 263 253 -10 do_get_ioctl 85 75 -10 setkeycodes_main 165 154 -11 write_table 244 232 -12 vconfig_main 318 306 -12 do_del_ioctl 93 81 -12 set_address 75 62 -13 maybe_set_utc 30 16 -14 loadfont_main 495 479 -16 slattach_main 712 695 -17 do_loadfont 191 174 -17 do_iplink 1155 1136 -19 getty_main 2583 2562 -21 fbset_main 2058 2035 -23 do_time 588 565 -23 xioctl 25 - -25 read_rtc 186 160 -26 parse_conf 1299 1270 -29 udhcp_read_interface 269 239 -30 bb_ioctl 45 - -45 bb_ioctl_alt 70 - -70 bb_ioctl_on_off 78 - -78 .rodata 129370 129018 -352 do_show 799 - -799 ------------------------------------------------------------------------------ (add/remove: 6/5 grow/shrink: 13/49 up/down: 1316/-1864) Total: -548 bytes text data bss dec hex filename 675352 2740 13968 692060 a8f5c busybox_old 674804 2740 13968 691512 a8d38 busybox_unstripped
2007-05-26usage.c: remove reference to busybox.hDenis Vlasenko
*: s/include "busybox.h"/include "libbb.h"
2007-02-03suppress warnings about easch <applet>_main() havingDenis Vlasenko
no preceding prototype
2007-01-29preparatory patch for -Wwrite-strings #3Denis Vlasenko
2007-01-27use bb_sanitize_stdio() where appropriateDenis Vlasenko
2007-01-19openvt,getty,vfork_daemon_rexec,mount: tighten up fd cleanup codeDenis Vlasenko
(will close all fd's > 2 on daemonization now) getty: fix "getty -" support, and also do not try to chown/chmod "-" telnetd: fix "lost ctty" bug Yet another attempt on saner function names: bb_sanitize_server_stdio(0/1) -> bb_sanitize_stdio() + bb_daemonize();
2006-12-16inline strcmp(s, "-") [actually macro-ize it for now - gcc is too stupid]Denis Vlasenko
2006-11-27safe_strtoXX interface proved to be a bit unconvenient.Denis Vlasenko
Remove it, introduce saner bb_strtoXX. Saved ~350 bytes.
2006-11-07getty: remove ancient termio support (was using termois anyway)Denis Vlasenko
2006-10-23watch: fix warningDenis Vlasenko
getty: fix breakage; fix excessive stack usage
2006-10-23getty: conditionally disable handling of all-caps terminals.Denis Vlasenko
2006-10-23getty: cleanup part 2Denis Vlasenko
2006-10-23getty: cleanup part 1Denis Vlasenko
2006-10-08attempt to regularize atoi mess.Denis Vlasenko
2006-10-03bb_applet_name -> applet_nameDenis Vlasenko
2006-10-03getopt_ulflags -> getopt32.Denis Vlasenko
It is impossible to formulate sane ABI based on size of ulong because it can be 32-bit or 64-bit. Basically it means that you cannot portably use more that 32 option chars in one call anyway... Make it explicit.
2006-09-19getty: oops... removing duplicate #include <syslog.h>Denis Vlasenko
2006-09-19getty: #include <syslog.h>Denis Vlasenko
2006-09-17whitespace cleanupDenis Vlasenko
2006-09-07getty, sulogin: convert to using bb_msg for syslog outputDenis Vlasenko
2006-08-24Antti Seppala (with dots over the last two a's) wants our getty to initializeRob Landley
the terminal the way mingetty does instead of the way agetty does. It's a bit ugly for somebody else to be writing to a console sitting at a login: prompt, but it's uglier when newline doesn't work as expected if they do.
2006-08-03Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley
things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.)
2006-07-12Add one-line GPL boilerplate to numerous (but not all yet) source files."Robert P. J. Day"
2006-06-25Missed one. Based on suggestions from Erik Hovland.Rob Landley
2006-06-18Undo all of the ugliness and some of the bloat from 15412.Rob Landley
2006-06-16- do away with the fwd-decls of functions. Should not contain any code changesBernhard Reutner-Fischer
AFAICT.
2006-05-26- introduce and use bb_path_wtmp_file for portability (saves 11 Bytes).Bernhard Reutner-Fischer
- fix last.c to also look at the double-underscore UT_ defines.
2006-03-222006-03-21 Shaun Jackman <sjackman@gmail.com>: Include signal.h instead of ↵Mike Frysinger
sys/signal.h.
2006-01-22- add platform.h.Bernhard Reutner-Fischer
- use shorter boilerplate while at it.
2005-12-13remove strange bloat dup2() usage, sync this code with mainstream ↵"Vladimir N. Oleynik"
login-utils, size reduce
2005-10-15common BUFSIZ BSS buffer, small reduce code, data and bss"Vladimir N. Oleynik"
2005-09-29getty must chdir(/). Use bb_getopt_ulflags. Indent. error() perfect"Vladimir N. Oleynik"
2005-07-27The change in getty.c in Busybox 1.01 caused the /etc/issue file to notEric Andersen
be displayed unless CONFIG_FEATURE_UTMP is set. This was not the intended result.
2005-07-012005-06-30 Shaun Jackman <sjackman@gmail.com>Mike Frysinger
* loginutils/getty.c: (open_tty): Use dup2 instead of close/dup.
2005-07-012005-06-30 Shaun Jackman <sjackman@gmail.com>Mike Frysinger
* loginutils/getty.c: Include utmp.h only if CONFIG_FEATURE_U_W_TMP is defined. (getty_main): Use ISSUE only if it is defined.
2005-07-01Patch by jonlar in Bug 312 to split the U_W_TMP feature into sep UTMP and ↵Mike Frysinger
WTMP options
2005-04-16Patch from Bernhard Fischer to make a bunch of symbols staticEric Andersen
which were otherwise cluttering the global namespace.
2005-04-14Use a sane VEOL settingEric Andersen
2004-08-26Save a line or twoEric Andersen
2004-08-25Patch from Manousaridis Angelos to cleanup stale file descriptors, it was ↵Glenn L McGrath
preventing unmounting an initial filesystem.
2004-07-30Umm. Not guilty by reason of insanity.Eric Andersen
-Erik
2004-07-30Fixup getty, login, etc so the utmp and wtmp are updated, allowingEric Andersen
the 'who' and 'last' applets among other things to work as expected. -Erik
2004-06-22Patch from Bastian Blank:Eric Andersen
On Sat, Jun 19, 2004 at 10:57:37PM +0200, Bastian Blank wrote: > The following patch changes klogd to use openlog/syslog themself > instead of calling syslog_msg which always calls the triple > openlog/syslog/closelog. Updated patch: get rid of syslog_msg entirely. Request from Erik Andersen. Bastian
2004-03-15Remove trailing whitespace. Update copyright to include 2004.Eric Andersen
2004-03-06Fix/eliminate use of atolEric Andersen
2003-03-19Major coreutils update.Manuel Novoa III
2003-02-08Patch from Nick Fedchik, CONFIG_SYSLOGD should determine getty'sGlenn L McGrath
behaviour.
2003-01-21run telnet from inetd, present login prompt if login is configured,Glenn L McGrath
patch from Bastian Blank
2002-10-10last_patch61 from vodz:Eric Andersen
New complex patch for decrease size devel version. Requires previous patch. Also removed small problems from dutmp and tar applets. Also includes vodz' last_patch61_2: Last patch correcting comment for #endif and more integrated with libbb (very reduce size if used "cat" applet also). Requires last_patch61 for modutils/config.in.
2002-10-10last_patch60 from vodz:Eric Andersen
login and getty applets writes utmp/wtmp but init do clearing not. I think, in current time deny wtmp/utmp writes as undefault features.