aboutsummaryrefslogtreecommitdiff
path: root/networking/hostname.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* *: 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>
* move remaining help text from include/usage.src.hPere Orga2011-04-111-0/+19
| | | | | Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.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>
* *: gethostname-related fixesDenys Vlasenko2010-02-271-3/+7
| | | | | | | | function old new delta hostname_main 218 231 +13 nfsmount 3541 3474 -67 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* remove trailing whitespaceDenys Vlasenko2009-07-151-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* updates for supporting Linux kernel build and initrd utilitiesDenys Vlasenko2009-06-261-30/+91
| | | | | | | | | cpio: --verbose, --quiet, --to-stdout test: make 64-bit math enable-able for hush too dnsdomainname: alias to hostname -d hostname: support --fqdn, --domain, --file Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix several problems with config parser:Denis Vlasenko2008-07-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a bug where it underflows the string a bug where it never frees parser_t struct make read_config() return 0 if parser is NULL, make config_close() accept and ignore NULL parser - eliminates many if() blocks reverse the sense of parser bit flags - negative flags are harder to grok. hexdump: revert the change to use config parser, it is BIGGER and also requires additional quirks in parser *: explicitly use PARSER_NORMAL instead of 0 function old new delta login_main 1575 1596 +21 config_close 18 29 +11 bbunpack 383 391 +8 qgravechar 106 109 +3 rtnl_tab_initialize 121 117 -4 expand 1697 1693 -4 man_main 717 712 -5 nameif_main 674 668 -6 hexdump_main 597 591 -6 read_config 217 209 -8 dnsd_main 1478 1470 -8 sysctl_main 203 189 -14 config_open2 44 25 -19 make_device 1177 1141 -36 config_read 597 549 -48 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 4/11 up/down: 43/-158) Total: -115 bytes
* libbb: [x]fopen_for_{read,write} introduced and used.Denis Vlasenko2008-07-211-19/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (by Valdimir) function old new delta config_open2 - 41 +41 config_read 507 542 +35 find_pair 169 187 +18 fopen_for_write - 14 +14 fopen_for_read - 14 +14 find_main 406 418 +12 xfopen_for_write - 10 +10 xfopen_for_read - 10 +10 popstring 134 140 +6 parse_inittab 396 401 +5 next_token 923 928 +5 pack_gzip 1659 1661 +2 bb__parsespent 117 119 +2 fallbackSort 1719 1717 -2 evalvar 1376 1374 -2 qrealloc 36 33 -3 ... ... ... ... singlemount 4579 4569 -10 process_stdin 443 433 -10 patch_main 1111 1101 -10 ifupdown_main 2175 2165 -10 file_action_grep 90 80 -10 uuidcache_init 649 637 -12 hush_main 797 785 -12 read_config 230 217 -13 dpkg_main 3835 3820 -15 read_line_input 3134 3110 -24 sysctl_main 232 203 -29 config_open 40 10 -30 WARN_BAD_LINE 44 - -44 login_main 1714 1575 -139 ------------------------------------------------------------------------------ (add/remove: 5/1 grow/shrink: 8/74 up/down: 174/-737) Total: -563 bytes
* *: intrduce and use safe_gethostname. By Tito <farmatito AT tiscali.it>Denis Vlasenko2008-02-251-9/+9
| | | | | | | | | | | | | | | | | | | | | safe_gethostname - 48 +48 glob3 35 37 +2 timestamp_and_log 314 315 +1 udhcp_send_kernel_packet 234 231 -3 scan_tree 275 271 -4 passwd_main 1074 1070 -4 print_login_prompt 68 58 -10 obscure 392 377 -15 syslogd_main 882 866 -16 print_login_issue 516 478 -38 hostname_main 278 223 -55 parse_and_put_prompt 825 756 -69 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 2/9 up/down: 51/-214) Total: -163 bytes text data bss dec hex filename 798791 728 7484 807003 c505b busybox_old 798631 728 7484 806843 c4fbb busybox_unstripped
* add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko2007-10-111-1/+1
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* introduce bb_putchar(). saves ~1800 on uclibc (less on glibc).Denis Vlasenko2007-09-271-1/+1
|
* don't pass argc in getopt32, it's superfluousDenis Vlasenko2007-08-181-1/+1
| | | | | | | | (add/remove: 0/0 grow/shrink: 12/131 up/down: 91/-727) Total: -636 bytes text data bss dec hex filename 773469 1058 11092 785619 bfcd3 busybox_old 772644 1058 11092 784794 bf99a busybox_unstripped
* Audit bb_common_bufsiz usage, add script which looks for misuse.Denis Vlasenko2007-06-041-4/+5
| | | | | | tr: stop using globals needlessly. code: -103 bytes
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* fix option -F mishandlingDenis Vlasenko2007-01-261-1/+1
|
* arping: stop using last gethostbyname2 in the treeDenis Vlasenko2007-01-251-3/+4
| | | | hostname: small optimization
* - sed -i -e "/\$Id:/d;"Bernhard Reutner-Fischer2007-01-221-1/+0
|
* vda, we once had a get_chomped_line_from_file or the like. Where is that ↵Bernhard Reutner-Fischer2007-01-091-17/+15
| | | | | | nowadays? FIXME: use it here instead of the fgets() - shrink by ~9%: use common_buf, reuse are_you_root, adopt to global option_mask32
* getopt_ulflags -> getopt32.Denis Vlasenko2006-10-031-2/+2
| | | | | | | | 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.
* hostname: getopt_ulflags'isationDenis Vlasenko2006-09-221-39/+28
|
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley2006-08-031-9/+2
| | | | | | | | | | 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.)
* Add one-line GPL boilerplate to these source files."Robert P. J. Day"2006-07-111-12/+2
|
* just whitespaceTim Riker2006-01-251-2/+2
|
* Update a bunch of docs. Run a script to update my email addr.Eric Andersen2003-07-141-2/+2
|
* Major coreutils update.Manuel Novoa III2003-03-191-6/+6
|
* Fix for hostname -s, by Stephan LinzGlenn L McGrath2002-11-101-2/+2
|
* Fix needless difference vs GNUEric Andersen2002-10-181-2/+2
|
* Major cleanup from Charles Steinkuehler <charles@steinkuehler.net>:Eric Andersen2001-10-311-56/+58
| | | | | | | | | | | | | | | | | | - Switched to getopt argument parsing - Added -f option to get fully qualified domain name - Fixed the -s (short) and -d (domain) options, which were not doing a gethostbyname lookup to get the FQDN before trying to separate the local and domain portions of the hostname. - Fixed probem with 'agressive setting' of the hostname...the previous busybox version would try to set the hostname if called with a non-option argument, or the -F option, even if another option (like -i or -s) was given. This behavior does not match the net-tools hostname, which does not attempt to set anything if given a 'display' option, regardless of the presence/absence of the -F option or additional command line arguments. - When using a file to set the hostname, behavior now matches net-tools version...previous busybox version did not handle comments, and simply grabbed the first line from the file.
* Major rework of the directory structure and the entire build system.Eric Andersen2001-10-241-2/+2
| | | | -Erik
* Vladimir's last_patch_15Glenn L McGrath2001-06-261-3/+4
|
* These were broken when using dmalloc due to include file orderingEric Andersen2001-06-231-2/+2
| | | | | problems. busybox.h must be last. -Erik
* Add xgethostbyname and herror_msg* functions.Matt Kraai2001-05-161-6/+2
|
* Change 'printf("%s\n", ...)' into 'puts(...)'. Noted and patched in hostname.cMatt Kraai2001-05-161-5/+5
| | | | by Larry Doolittle.
* A cleanup patch from Jeff Garzik to static-ify a number ofEric Andersen2001-03-091-2/+2
| | | | namespace polluting things that really should be static.
* Patchs from Jeff Garzik <jgarzik@mandrakesoft.com> to cleanupEric Andersen2001-03-091-1/+2
| | | | | warnings with glibc 2.2 and use always use xfopen -Erik
* This patch, put together by Manuel Novoa III, is a merge of workEric Andersen2001-02-141-5/+5
| | | | | | done by Evin Robertson (bug#1105) and work from Manuel to make usage messages occupy less space and simplify how usage messages are displayed.
* Fix wget error message and add (and use) chomp library function.Matt Kraai2001-02-011-3/+2
|
* Removed trailing \n from error_msg{,_and_die} messages.Matt Kraai2001-01-311-2/+2
|
* Fix header file usage -- there were many unnecessary header files included inEric Andersen2001-01-271-1/+2
| | | | | | | busybox.h which slowed compiles. I left only what was needed and then fixed up all the apps to include their own header files. I also fixed naming for pwd.h and grp.h functions. Tested to compile and run with libc5, glibc, and uClibc. -Erik
* Remove the warning messages. By consensus, netkit-tiny doesn'tEric Andersen2001-01-241-5/+1
| | | | need to happen.
* Fix spelling. s/maintainence/maintenance/Eric Andersen2001-01-241-2/+2
|
* Warn about apps that will be going away in release 0.50Eric Andersen2001-01-221-1/+5
| | | | -Erik
* Use busybox error handling functions wherever possible.Matt Kraai2000-12-221-8/+5
|
* Changed names of functions in utility.c and all affected files, to makeMark Whitley2000-12-071-2/+2
| | | | compliant with the style guide. Everybody rebuild your tags file!
* Apply patch from "Orion Poplawski" <OPoplawski@cqg.com> to makeEric Andersen2000-10-121-1/+7
| | | | | hostname do "--file" -Erik
* Consolidate handling of some fopen failures.Matt Kraai2000-09-271-12/+8
|
* Renamed "internal.h" to the more sensible "busybox.h".Eric Andersen2000-09-251-2/+2
| | | | -Erik
* Extract usage information into a separate file.Matt Kraai2000-07-161-16/+1
|
* Use errorMsg rather than fprintf.Matt Kraai2000-07-141-3/+2
|