summaryrefslogtreecommitdiff
path: root/libbb (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* cleanups: unnecessary casts, unified const_1, eliminate cross-.c fileDenis Vlasenko2007-01-224-31/+32
| | | | | prototypes (heresy!), add spaces in places like "flags&NETSTAT_CONNECTED", removed unused #defines, #ifdef -> #if, use uint32_t for ipv4 addrs.
* exterminate u_intXXX.Denis Vlasenko2007-01-221-2/+2
| | | | fix ping6 buglet (memset is too short), minor sync between ping and ping6
* comment out unused old networking API partsDenis Vlasenko2007-01-221-8/+16
| | | | sockaddr2dotted: return IPV6 addrs in [addr]:port form (was addr:port)
* move shell/cmdedit.c -> libbb/lineedit.cDenis Vlasenko2007-01-221-0/+1798
|
* cmdedit is not a 'command' editing anymore, it's just editing (generic),Denis Vlasenko2007-01-222-0/+60
| | | | so rename stuff accordingly.
* Introduce FEATURE_EXEC_PREFER_APPLETS = "re-execute our ownDenis Vlasenko2007-01-211-2/+5
| | | | | | executable if we asked to exec someting with argv[0] == known_applet" Use it in init. Also respect PATH in init, remove explicit "/sbin" etc from exec. Patch by Gabriel L. Somlo <somlo@cmu.edu>
* - get_terminal_width_height does not and should never write to fd. Cosmetic ↵Bernhard Reutner-Fischer2007-01-201-1/+1
| | | | Precaution
* strdup -> xstrdupDenis Vlasenko2007-01-191-1/+1
| | | | sed: de-obfuscate piece of code
* ls: use get_cached_username/groupnameDenis Vlasenko2007-01-191-3/+3
|
* openvt,getty,vfork_daemon_rexec,mount: tighten up fd cleanup codeDenis Vlasenko2007-01-192-4/+12
| | | | | | | | | (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();
* sed,get_line_from_file: improve commentsDenis Vlasenko2007-01-171-2/+3
|
* Rename bb_sanitize_stdio -> bb_sanitize_server_stdioDenis Vlasenko2007-01-141-1/+1
| | | | | | (name is still bad - it doesn't hint that function may do daemonization trick for you if asked to). Small fixes to fakeidentd.
* By popular request reinstate fakeidentd's standalone mode.Denis Vlasenko2007-01-141-0/+24
| | | | | | | | | | | Since this is also needed for other applets like telnetd, introduce generic driver for such things. It even supports inetd-wait ('linger') mode, when inetd hands out listen socket to child and waits to it to die, instead of handing out accepted socket and continuing listening itself (nowait mode). Code growth ~200 bytes. NB: our inetd doesn't support wait mode yet (or mabe it is buggy).
* small fixes to ipv6 infrastructureDenis Vlasenko2007-01-131-0/+2
|
* random small size optimizationsDenis Vlasenko2007-01-123-1/+15
|
* next part of ipv6-ization. mostly netcat.Denis Vlasenko2007-01-121-16/+34
|
* next part of ipv6-ization is here: wget & httpdDenis Vlasenko2007-01-121-6/+5
|
* Trailing whitespace removal over entire treeDenis Vlasenko2007-01-116-6/+6
|
* ipv6-ization efforts continue. Few bugs are found,Denis Vlasenko2007-01-111-10/+50
| | | | unknown number likely introduced...
* a bit more IPv6-ization workDenis Vlasenko2007-01-101-21/+10
| | | | syslogd: converted to use it (in -R host:port)
* Improve generic ipv4+ipv6 support in libbb.Denis Vlasenko2007-01-101-83/+151
| | | | | | | | | Convert telnet to it. Now this works: telnetd -b [::1]:1234 - bind to IPv6 non-standard port telnet [::1]:1234 - connect to IPv6 non-standard port telnet ::1 1234 - same This does not require ANY ipv6-specific code in applets (no struct sockaddr_in6. In fact, no sockaddr_in, too).
* new libbb func: xmalloc_realpath (+ use it where makes sense)Denis Vlasenko2007-01-041-4/+14
| | | | | syslogd, logread: add debugging code (disabled) syslogs: drastically smaller bss; fix "-C n" behaviour
* convert calloc to xzallocDenis Vlasenko2007-01-034-14/+12
| | | | fix sleep-on-die option
* about.html: update maintainer nameDenis Vlasenko2006-12-301-0/+1
| | | | libbb/Kbuild: less needs xregcomp.o
* next bunch of fixes for bugs found by randconfigDenis Vlasenko2006-12-301-1/+1
|
* bb_xget[pw/gr]nam were horribly misnamed - fixed.Denis Vlasenko2006-12-281-64/+63
| | | | | | | uidgid_get -> get_uidgid, add additional param (numeric_ok). Make chown use it. chown: fix "chown user: ...." install: fix incorrect use of bb_xget[pw/gr]nam
* merge post-1.3.0 fixesDenis Vlasenko2006-12-264-8/+15
|
* style fixesDenis Vlasenko2006-12-264-11/+8
| | | | last xcalloc replaced by xzalloc
* chattr: bugfixes and size reductionDenis Vlasenko2006-12-261-2/+2
|
* leftover of e2fsck surgeryDenis Vlasenko2006-12-262-2/+11
|
* small stupid changes. no code changesDenis Vlasenko2006-12-241-3/+0
|
* missing piece of prev commit: ndelay_offDenis Vlasenko2006-12-241-6/+5
|
* use xbind, xconnect where appropriate.Denis Vlasenko2006-12-231-1/+2
| | | | small edits to arping
* fix recognitions of -SIGname signalsDenis Vlasenko2006-12-231-7/+8
| | | | (fix by Jacques LUDER <jacques.luder@thalesgroup.com>)
* find: fix spurious -exec error messagesDenis Vlasenko2006-12-231-2/+7
| | | | (bug reported by Bernhard Fischer <rep.nop@aon.at>)
* tar et al: die if bb_copyfd_size copies less than asked for.Denis Vlasenko2006-12-221-6/+26
| | | | (we have bb_copyfd_exact_size now for that kind of usage)
* less: stop dying on bad regexps, quietly pipe data w/oDenis Vlasenko2006-12-211-1/+10
| | | | | user interaction if stdout is not a tty. size optimizations
* introduce LONE_CHAR (optimized strcmp with one-char string)Denis Vlasenko2006-12-211-3/+2
|
* less: total cleanup and bugfix.Denis Vlasenko2006-12-211-5/+2
| | | | | | | | | | | | | | Doesn't die horribly on binary files anymore. In fact, they _100%_ work now. Control chars are in reverse video, including DEL and that idiocy of VT-10x, Meta-ESC [inventor of which should be prohibited from reproducing]. Regex search is fixed also. When you specify search ('/' key), control chars turn into dots (unhighlighted), and found occurrences highlighted instead. This is reversible. Memory management fixed (was leaky as hell) and optimized. Linewrapping fixed and thoroughly tested. Max buffer size made configurable. ~ 600 bytes saved.
* less: somewhat buggy applet, but nice. Muchly reducedDenis Vlasenko2006-12-201-2/+2
| | | | | | | | xstrdup'ing and memory consumption. Made linewrap saner. regex matching code was awful - still buggy, but not as leaky as before. Made buffer size configurable. Killed several static and on-stack buffers. Hopefully eliminated staircase effect on Ctrl-C (unable to reproduce).
* remove casts from xmalloc()Denis Vlasenko2006-12-192-3/+3
|
* su: make /etc/shells check configurableDenis Vlasenko2006-12-191-18/+7
| | | | ash: missing ';'
* xfuncs.c: dietlibc actually HAS fdprintf!Denis Vlasenko2006-12-181-2/+2
| | | | | platform.h: define strchrnul for dietlibc ash: stop using few non-standard functions
* nc: add missing castDenis Vlasenko2006-12-181-0/+31
| | | | xfuncs: add dprintf for dietlibc
* A bunch of defined(__GLIBC__) added. static-linking warning expandedDenis Vlasenko2006-12-181-1/+1
|
* start_stop_daemon: fix bug where any program name was "matching"Denis Vlasenko2006-12-171-2/+5
| | | | processes for which readlink(/proc/N/exe) fails
* inline strcmp(s, "-") [actually macro-ize it for now - gcc is too stupid]Denis Vlasenko2006-12-161-1/+1
|
* s/extern inline/static ATTRIBUTE_ALWAYS_INLINE/gDenis Vlasenko2006-12-163-6/+5
| | | | xstrtou: disallow leading '+'
* diff: fix -q exit codeDenis Vlasenko2006-12-161-6/+6
| | | | last_char_is: sacrifice 9 bytes but avoid double-scan
* build system: small fix for "release" target to workDenis Vlasenko2006-12-121-0/+4
|