aboutsummaryrefslogtreecommitdiff
path: root/include/libbb.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Use char for smallint on CRIS as well.Peter Kjellerstedt2007-01-181-1/+1
|
* smallint can be a char for amd64 tooDenis Vlasenko2007-01-181-1/+1
|
* 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/+2
| | | | | | | | | | | 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).
* whitespace fixes (leading spaces to tab)Denis Vlasenko2007-01-131-2/+2
|
* random small size optimizationsDenis Vlasenko2007-01-121-1/+5
|
* next part of ipv6-ization. mostly netcat.Denis Vlasenko2007-01-121-4/+9
|
* next part of ipv6-ization is here: wget & httpdDenis Vlasenko2007-01-121-0/+1
|
* Trailing whitespace removal over entire treeDenis Vlasenko2007-01-111-1/+1
|
* ipv6-ization efforts continue. Few bugs are found,Denis Vlasenko2007-01-111-11/+20
| | | | unknown number likely introduced...
* a bit more IPv6-ization workDenis Vlasenko2007-01-101-3/+20
| | | | syslogd: converted to use it (in -R host:port)
* Improve generic ipv4+ipv6 support in libbb.Denis Vlasenko2007-01-101-11/+10
| | | | | | | | | 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).
* add arp applet - thanks toDenis Vlasenko2007-01-071-0/+37
| | | | "Eric Spakman" <E.Spakman@inter.nl.net>
* new libbb func: xmalloc_realpath (+ use it where makes sense)Denis Vlasenko2007-01-041-0/+1
| | | | | syslogd, logread: add debugging code (disabled) syslogs: drastically smaller bss; fix "-C n" behaviour
* convert calloc to xzallocDenis Vlasenko2007-01-031-0/+1
| | | | fix sleep-on-die option
* introduce small[u]intDenis Vlasenko2007-01-031-0/+12
| | | | fsck_minix: use it for flag variables. 140 bytes saved
* fix for uclibc-without-shadow.h compilationDenis Vlasenko2006-12-301-8/+12
|
* fix build without shadow supportDenis Vlasenko2006-12-281-2/+0
|
* bb_xget[pw/gr]nam were horribly misnamed - fixed.Denis Vlasenko2006-12-281-8/+10
| | | | | | | 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-261-0/+2
|
* properly export externs thru *.h filesDenis Vlasenko2006-12-261-2/+9
|
* leftover of e2fsck surgeryDenis Vlasenko2006-12-261-0/+1
|
* missing piece of prev commit: ndelay_offDenis Vlasenko2006-12-241-0/+1
|
* tar et al: die if bb_copyfd_size copies less than asked for.Denis Vlasenko2006-12-221-1/+6
| | | | (we have bb_copyfd_exact_size now for that kind of usage)
* introduce LONE_CHAR (optimized strcmp with one-char string)Denis Vlasenko2006-12-211-1/+5
|
* A bunch of defined(__GLIBC__) added. static-linking warning expandedDenis Vlasenko2006-12-181-1/+1
|
* inline strcmp(s, "-") [actually macro-ize it for now - gcc is too stupid]Denis Vlasenko2006-12-161-0/+8
|
* build system: add "release" targetDenis Vlasenko2006-12-121-10/+11
| | | | find: support -size N (needed for above)
* passwd: made smaller by ~130 bytes. size can go negativeDenis Vlasenko2006-12-011-1/+1
| | | | if current trend will continue ;)
* fix support for globally disabling --long-options.Denis Vlasenko2006-11-291-1/+3
| | | | (disabling them saves ~4K on fully configured bbox)
* Provide our own isdigit macro. saves more than 400 bytes.Denis Vlasenko2006-11-271-1/+5
|
* safe_strtoXX interface proved to be a bit unconvenient.Denis Vlasenko2006-11-271-22/+11
| | | | | Remove it, introduce saner bb_strtoXX. Saved ~350 bytes.
* Closing bug 730. libbb run_parts is using scandir (a GNUism),Denis Vlasenko2006-11-261-1/+0
| | | | | and it is used only by run_parts applet, so move it there. Also saved ~30 bytes (prolly gcc autoinlining...).
* tee: fix bug: argv[-1] is a no-no!Denis Vlasenko2006-11-251-1/+1
| | | | | bb_full_fd_action: optimize die_if_ferror: "<applet>: filename" isn't a good err msg, add "..I/O error"
* small improvements in str -> num convertorsDenis Vlasenko2006-11-251-6/+0
|
* regularize str -> num convertorsDenis Vlasenko2006-11-251-34/+1
|
* tar: cache [ug]id->username/groupname mappings. Cuts down amountDenis Vlasenko2006-11-241-0/+1
| | | | | of open/read/close of /etc/passwd and /etc/group dramatically (we were rereading those for each untarred file!!!)
* glibc makedev() is a large inline. Save 700+ bytes by wrapping itDenis Vlasenko2006-11-241-0/+6
| | | | into a function.
* header_verbose_list: stop truncating file size in listingDenis Vlasenko2006-11-241-5/+6
|
* tar:Denis Vlasenko2006-11-241-1/+0
| | | | | | | | | * unpack: handle tar header fields which are not NUL terminated * pack: handle 4+GB files correctly * pack: refuse to store 101+ softlinks (was truncating link target name) * pack: mask mode with 07777
* introduce setsockopt_reuseaddr(int fd), setsockopt_broadcast(int fd),Denis Vlasenko2006-11-221-0/+2
| | | | | use them where appropriate. 200 bytes saved
* telnetd: move generic stuff into libbb. It will make it easyDenis Vlasenko2006-11-221-0/+12
| | | | to make other server applets IPv6-aware too.
* telnetd: we were having telnetd with is ONLY inetd or ONLY standalone.Denis Vlasenko2006-11-221-0/+1
| | | | | What if I need to have both?? This patch introduces CONFIG_FEATURE_TELNETD_STANDALONE: y - both, n - only inetd.
* bb_INET_default[] is really just a const "default",Denis Vlasenko2006-11-211-0/+2
| | | | nothing INET-specific
* insmod_ng_main: -80 bytes. Stopp mmapping, use xmalloc_open_read_close().Denis Vlasenko2006-11-211-2/+1
|
* svlogd: new applet. +9k. Still too big, but it was 12k yesterday.Denis Vlasenko2006-11-161-0/+2
|
* rename: compare_string_array -> index_in_str_arrayDenis Vlasenko2006-11-051-1/+2
| | | | | introduce index_in_substr_array and use it in iproute2
* smart_ulltoa5: make available in libbbDenis Vlasenko2006-11-051-0/+1
|
* replace /proc scanning code by more versatile one.Denis Vlasenko2006-11-051-12/+36
| | | | | | | Use it where appropriate. Stop scanning /etc/passwd *for every process*!!! (uid->username) top: reduce memory usage - we won't save unneeded fields from /proc info anymore. Downside: ~+250 bytes of code
* top: improve CPU% calculationDenis Vlasenko2006-11-051-2/+2
| | | | style fixes